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.

How to count No.of event occur on port pin

Status
Not open for further replies.

kvtal

Member level 3
Member level 3
Joined
Sep 19, 2009
Messages
64
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Location
india
vkelektroniks.blogspot.in
Activity points
1,583
Hi im using atmega32, im doing a Automatic parking system,for that im using IR Tx & Rx to detect car on each parking slot
i want to show a green led if parking slot is empty and red led if parking slot is fill with a car,
and also i need to calculate the total cars on the parking bay.
can any one help me to solve my problem
 

i think no need to have 200 tx and rx also.
if you want to show the result of combine. means if there is parking slot is empty anywhere in parking area or parking is totally full then you will need only one IR rx and tx.
if you want to show individual effect that at this point parking is empty then you will need that much as jayanth.devarayanadurga said.
 

what is solution???

Well here are some popular solutions.
1. Use Timer in counter mode. configure accordingly to edge detection required
2. Poll the pin continuously
3. Use external interrupt (set according to specification)

Enjoy!!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top