17 lines
414 B
Plaintext
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
|