koolguy
Active Member
Hello Guys,
The MPLAB showing error from the vision of code.
the output swing
PORTB=1100000000;
WHY, IN CODE THERE IS 0XFF;
The MPLAB showing error from the vision of code.
the output swing
PORTB=1100000000;
WHY, IN CODE THERE IS 0XFF;
C:
#include <htc.h>
__CONFIG( BOREN_OFF & PWRTE_OFF & WDTE_OFF & FOSC_HS);
#define _XTAL_FREQ 20000000
void main()
{
TRISB=0B0000000;
PORTB=0X00;
while(1)
{
PORTB=0X00;
//__delay_ms(500);
PORTB=0XFF;
//__delay_ms(5000);
}
}