17 lines
414 B
Plaintext
17 lines
414 B
Plaintext
'Set chip model:
|
|
#chip 16F1824, 0.5
|
|
'Switch Low-Volt-Programming:
|
|
#config LVP = Off
|
|
|
|
'Set the pin direction to output:
|
|
' (PORTC.2 = Pin 8 on PIC16f1824)
|
|
Dir PORTC.2 Out
|
|
|
|
'Main routine
|
|
Start:
|
|
Set PORTC.2 ON 'turn LED on
|
|
Wait 100 Ms 'wait 100 milliseconds
|
|
Set PORTC.2 OFF 'turn LED off
|
|
Wait 900 Ms 'wait 900 milliseconds
|
|
Goto Start 'jump back to the start of the program
|