i was hoping someone could possible assist me.
we are looking at using the thunder click to make mobile lighting detectors.
we would like to use the PIC24F08KL200 however the devices will probably be dropped pretty often, so we will not be using a crystal. the devices will power up and check the status every so often.
the problem is i cant even get the pic to do the basics.
i suspect the problem is with my scheme setup.
i have attched my project to test an LED, have also tried using uart1 unsuccessfully.
Code: Select all
void main() {
delay_ms(200);
PORTAbits;
TRISA = 0; // Initialize PORTA as output
TRISB = 0; // Initialize PORTB as output
LATA = 1; // Set PORTA to zero
LATB = 1; // Set PORTB to zero
while(1) {
LATA = ~LATA; // Invert PORTA value
LATB = ~LATB; // Invert PORTB value
Delay_ms(1000);
}
}