atmega 32 interrupt and timer

Status
Not open for further replies.

lisamoni

Junior Member level 2
Joined
Apr 29, 2010
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Bangladesh
Activity points
1,397
hi,I have an project of CNG billing system design.i have to use interrupt and timer using atmega32.i want to check if a pin is high.when the pin is high than interrupt occurs.when interrupt occurs timers start to count upto 5 sec.within this time again interrupt comes and timer is reset and again starts to count.

plzzzzz help me.i dont know syntax using timer and interrupt.can anyone give me just some hints..
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…