Hello everyone,
I'm having a problem trying to program my PIC32 with the simplest code I can...
I just want to start using it but it doesn't work, the device is programming but the code is not doing what I want.
I just try to put 2 pins (RA4 & RB4) on High level.
Could anyone help me, am I doing something wrong here ?
I'm having a problem trying to program my PIC32 with the simplest code I can...
I just want to start using it but it doesn't work, the device is programming but the code is not doing what I want.
I just try to put 2 pins (RA4 & RB4) on High level.
Code:
#include <xc.h>
int main(void) {
TRISA = 0x00;
TRISB = 0x00;
PORTA = 0x00;
PORTB = 0X00;
while(1){
LATA = 0x10;
LATB = 0x10;
}
}