Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

atmega 32 interrupts code help

Status
Not open for further replies.

mostafa zaky

Newbie level 4
Joined
Jan 31, 2009
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
interrupts atmega

hi guys
i am working on a project depends on the car brakes ,battery and seat belt
i made a simulation for the brakes ,and the seat belt by using push buttons
and the car battery by using a switch
but i am facing a problem in the code
i want to display on an LCD if the brakes is pressed or not
, if the seat belt is closed or not
and if the car battery is on or off
so that i used a micro controller atmega32 and used it`s 3 external interrupts pins INT0,INT1,INT2
and make the interrupt occurs at the rising edge but the problem that i wrote code but there is no thing appear on the screen when the push buttons is pressed
here is the code i wrote and the circuit i made
the program checks for the battery if it is on (switch is closed) then it displays battery on then checks the brakes and the seat belt
if the push button switches are pressed it displays (seat belt on)__this in case of seat belt and (brakes on ) ________this in case of brakes
plz i need help?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top