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