Hi all, I'm trying to program a PIC 18F252 using MicroCode studio. I am new to PIC's in general but what I need help with in particular is naming the pins. How in the code do I refer to a particular pin? Like how would I get the code to scan to see if RA0 is high or low? or to output a high logic signal from RA1?
thanks in advance.
If you want to test status of a pin:

HighOrLow VAR BIT

HighOrLow=PORTA.0


The result is in the HighOrLow Variable

To send high level to RA1 use
PORTA.1=1
or
HIGH PORTA.1

To send low level
PORTA.1=0
or
LOW PORTA.1