C:\> Rostislav Persion's Projects

.:: Flashing LED ::.
Hello World Flashing LED






This project flashes an LED using the AVR ATMEGA48 microcontroller. This is a basic "Hello World" program.



SOFTWARE WRITTEN IN GREAT COW BASIC
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 ;Chip Settings
 #chip 16F88,8
 #config CP=OFF, DEBUG=OFF, CPD=OFF, LVP=OFF, BODEN=OFF, MCLR=OFF, PWRTE=OFF, WDT=OFF, OSC=INTRC_CLKOUT, IESO=OFF, FCMEN=OFF
  
 Dir PORTA.0 Out
 Do Forever
     Set PORTA.0 On
     Wait 1 s
     Set PORTA.0 Off
     Wait 1 s
 Loop