Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers > AVR


AVR A specify forum for AVR micro controllers made by Atmel.

Reply
 
Tools
Old 20th October 2009, 05:02 AM   #1
Exclamation Atmega32

Hi i am trying to make a Wig Wag sequence for a traffic light using the Atmega32

I have already programmed in Atmel AVR software the 0.5 second delay routine based on a processor speed of 8MHz.

Quote:
.CSEG

LDI R16,0xC1
LDI R17,0x4B
LDI R18,0x15



AGAIN:

DEC R16
BRNE AGAIN

DEC R17
BRNE AGAIN

DEC R18
BRNE AGAIN


SELF: JMP SELF
now i need to create a routine that will produce flashing red lights (Wig Wag sequence see image below or go to this site http://img8.imageshack.us/img8/5445/wigwagsequence.jpg ) on the major and minor roads. The flash rate is to be a repetitive 0.5 second on 0.5 second off.

Can someone please help me to program this. Thanks


Last edited by Computer_Smart; 20th October 2009 at 05:03 AM.
Computer_Smart is offline  
Reply

Tags
atmega32

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Using ADC on Atmega32, plus help and how-to. potoole64 AVR 4 10th June 2009 10:31 PM
Atmega32 and ADC ? potoole64 Micro Controllers 7 22nd November 2008 08:50 PM
ad5933+atmega32 maxx Micro Controllers 6 5th June 2008 09:45 AM
ADC with ATmega32 sficht AVR 7 12th April 2008 02:08 AM
Digital IO for ATMEGA32 j777 Electronic Projects Design/Ideas/Reviews 2 25th July 2006 06:07 PM



All times are GMT. The time now is 12:59 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker