LED CON 0 doesn't clearly map the LED to a pin.
LED VAR GPIO.0 does. Just easier to understand.
I like to put a pinout connection diagram for the chip as a reminder what is connected to what. It also helps when asking a question.
Similar to this example
Code:; ; Target Controller - PIC16F628A ; __________ ; d6--RA2 |1 18| RA1--d5 ; d7--RA3 |2 17| RA0--d4 ; LED-------RA4 |3 16| OSC1-------- ; +5V-----------!MCLR |4 15| OSC2-------- ; Ground----------Vss |5 14| VDD---------+5 V ; gps in-----RB0 |6 13| RB7--------- ; ---RB1 |7 12| RB6--------- ; ---RB2 |8 11| RB5--e ; pbutt--RB3 |9 10| RB4--rs ; ----------





Bookmarks