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

21 lines
427 B
Plaintext

' ########### start ###########
' pic:PIC16F886
' ########### end ###########
'A program to flash LED on PIN 13/PORTB5
'Chip model
#chip 16F886, 16
'Main routine
Start:
'Turn one LED on, the other off
PORTB = b'00100000' ' PORTB.5, D13 LED on
wait 1 sec
'Now toggle the LEDs
PORTB = b'00000000' ' PORTB.5, D13 LED off
wait 1 sec
'Jump back to the start of the program
goto Start