Question: Two Push Button Switches are connected to the PTC0, PTC1 of the Microcontroller, and a seven-segment indicator at ports 0-6 of port B. Write a

Two Push Button Switches are connected to the PTC0, PTC1 of the Microcontroller, and a seven-segment indicator at ports 0-6 of port B. Write a program that will simulate the parking function of a parking lot. Initially, the indicator will be zero, as an indication that there are no parked cars. For each vehicle entering the parking area (push of the PTC0 switch), the display will increase. Correspondingly for each vehicle coming out of the parking space (pushing the PTC1 switch), the display will decrease.

Programming language: Assembly

Microcontroller: Motorola MC68HC908GP32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!