RSS

Knightrider LED Flasher(port D of ATMEGA 16)(8 bit)

20 Jun

$regfile = “m16def.dat”
$crystal = 8000000
$sim

Config Portd = Output

Do
Portd = &B00000001
Waitms 400
Portd = &B00000010
Waitms 400
Portd = &B00000100
Waitms 400
Portd = &B00001000
Waitms 400
Portd = &B00010000
Waitms 400
Portd = &B00100000
Waitms 400
Portd = &B01000000
Waitms 400
Portd = &B10000000
Waitms 400
Portd = &B10000000
Waitms 400
Portd = &B01000000
Waitms 400
Portd = &B00100000
Waitms 400
Portd = &B00010000
Waitms 400
Portd = &B00001000
Waitms 400
Portd = &B00000100
Waitms 400
Portd = &B00000010
Waitms 400
Portd = &B00000001
Waitms 400
Loop

End

Advertisements
 
Leave a comment

Posted by on June 20, 2010 in AVR

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: