This is depends on my own preference for which my output is connected to ?
If LED=RA0
then PORTA=0b00000001
Correct ?
That makes no sense(because you fail to tell us or show us what your ports are set as input/output) and you don't tell us what you expect from this code. I can't seem to understand why you keep asking the same question? There is nothing right about your question because it is barely a question at all...
LED==RA0==PORTA bit 0 (only because you defined LED as RA0)
PORTA=0b00000001 sets bit 0 of PORTA to 'HIGH' IF TRISA bit 0 is an output.
It doesn't get any clearer!!!!
Last edited: