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

14 lines
358 B
Plaintext

'Set chip model:
#chip mega48, 1
'Set the pin direction to output:
' (PORTB.1 = Pin 15 on ATmega48)
Dir PORTB.1 Out
'Main routine
Start:
Set PORTB.1 ON 'turn LED on
Wait 100 Ms 'wait 100 milliseconds
Set PORTB.1 OFF 'turn LED off
Wait 900 Ms 'wait 900 milliseconds
Goto Start 'jump back to the start of the program