I am not sure of what I am doing wrong. I tried to access one LED on port RA2 of a PIC10LF320. I was able to get it to flash in ASM, but I am trying to work this out in C. So far I have successfully (I think) created my header file. My program compiles and loads, but no light from the LED.
Any ideas on how to address the LAT register more correctly? I also tried LATAbits.RA2 as well as PORTAbits.RA2 and variants of this containing TRISAbits.RA2. The compiler stated it did not recognize RA2. Am I missing an include file or ??
First picture is of the header file and the second is the .c file.
Thanks in advance!


Any ideas on how to address the LAT register more correctly? I also tried LATAbits.RA2 as well as PORTAbits.RA2 and variants of this containing TRISAbits.RA2. The compiler stated it did not recognize RA2. Am I missing an include file or ??
First picture is of the header file and the second is the .c file.
Thanks in advance!

