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.

Parking Lot with 8085

Status
Not open for further replies.

VirusX2

Member level 4
Joined
Nov 18, 2014
Messages
71
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
526
Car Parking with 8085

Hi everyone,

i want help with one project i have. I want to do a car parking with 8085 in Assembly. The program will run in simulator, not in real hardware. There is two sensors, one for car entering and one for car leaving the parking. The initial free spaces of the parking is 100. When a car enters the parking the number of free spaces decreases, when a car leaving the parking the number of free spaces increases. I want to display the number of free spaces at a 7-segment display and also keep in memory the total number of cars have entered the parking.

Has anyone did this before? I really want help with this, i will appreciate a lot if anyone has similar project or can can help me with this
 
Last edited:

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
Re: Car Parking with 8085

in which part of your work , you are struck?
give more information on what have been done before by you?
 

pic.programmer

Advanced Member level 3
Joined
Aug 19, 2015
Messages
773
Helped
141
Reputation
284
Reaction score
140
Trophy points
43
Activity points
7,542
Re: Car Parking with 8085

If you are just simulating in software like Proteus then you can use two buttons, one for car entering and one for car leaving the parking lot. Pressing the car entering button with increase a counter and pressing the button related to car leaving decreases the same counter. 100 minus counter value will give you the number of flee slots for the cars. You have to use timer interrupt to create a 2 ms delay for refreshing the 7 segment display. The 100 minus counter value is displayed on 3 digit 7 segment display.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
19,777
Helped
4,350
Reputation
8,709
Reaction score
4,316
Trophy points
1,393
Activity points
130,886
Hi,

I´m just guessing: where is the problem?

One sensor (input): on rising edge incrementing a value.
Other sensor (input): on rising edge decrementing a value.

* Incrementing a value: x = x +1
* decrementing a value: (as long it is not zero before): x = x - 1
* detecting rising edge: if (actual value = 1) and (previous value = 0) then do something; previous value = actual value

Mind to debounce the input signals, if necessary.

Klaus
 

VirusX2

Member level 4
Joined
Nov 18, 2014
Messages
71
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
526
I dont know from where to start, cause i have no expirience with 8085 Assembly. Can any one give me sample code for this so a can build on it?
 

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
for that , your prototype plan is necessary for 8085.
is there any ports(8255) ?what are its addresses and where exactly your routine is to begin with and to which port display is connected?

based on this you can start.
 

VirusX2

Member level 4
Joined
Nov 18, 2014
Messages
71
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
526
I don't have problem on which port will be the display, as i said i have no expirience with 8085 Assembly. I am searching for sample code similar to this prioject so i can figure it out..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top