Hey could someone please tell what I am doing wrong in this code
#include <pic.h>
#include <htc.h>
__CONFIG(HS & WDTDIS & PWRTDIS & UNPROTECT);
void main(void)
{
TRISA=0b00000000;
TRISB=0b00000000;
while(1){
PORTA = 0b11111111;
PORTB = 0b11111111;
}
}
I have tried many variations of this such as TRISA=0 a "for" loop instead of a while loop. I cant see 5 volts on any of the ports. I am pretty sure I have the crystal and caps connect properly.
I have googled for a while now and can't seem to find anything to solve my problem
#include <pic.h>
#include <htc.h>
__CONFIG(HS & WDTDIS & PWRTDIS & UNPROTECT);
void main(void)
{
TRISA=0b00000000;
TRISB=0b00000000;
while(1){
PORTA = 0b11111111;
PORTB = 0b11111111;
}
}
I have tried many variations of this such as TRISA=0 a "for" loop instead of a while loop. I cant see 5 volts on any of the ports. I am pretty sure I have the crystal and caps connect properly.
I have googled for a while now and can't seem to find anything to solve my problem