Files
SyncHome/trunk/workspace/gcb/_MyFiles/Blink_12f1840.gcb
2023-03-09 12:51:54 +00:00

17 lines
414 B
Plaintext

'Set chip model:
#chip 12F1840, 0.5
'Switch Low-Volt-Programming:
#config LVP = Off
'Set the pin direction to output:
' (PORTA.2 = Pin 5 on PIC12f1840)
Dir PORTA.2 Out
'Main routine
Start:
Set PORTA.2 ON 'turn LED on
Wait 100 Ms 'wait 100 milliseconds
Set PORTA.2 OFF 'turn LED off
Wait 900 Ms 'wait 900 milliseconds
Goto Start 'jump back to the start of the program