Monday, September 7, 2009

My BMP

end of the semester d...
this semester i was facing 3 mini projects..
Basic Microprocessor is one of them.
just some sharing with u all what i had done.
UCEC 2054 Basic Microprocessor
4 credit unit
each week
2 + 1 lecture
3 hours practical
1 hour tutorial

but this semester quite interesting bout this subject ...
which we have to write the assembly code for the traffic light control.this is just a simple traffic light control. Cars from side road can interrupt the signal in main road when the hit the sensors. den the main road have to change it's signal light to red after 5 second.
But this traffic light sequence is follow the foreign country one

Seq. No.

Main road

Side street

Time duration/second

1

Green

Red

20

2

Amber

Red

2

3

Red

Red and Amber

2

4

Red

Green

5

5

Red

Amber

2

6

Red and Amber

Red

2


this kinda weird for our country right ? red and amber light on together.
after writing the assembly code, just program it into the EDS 8806 experiment board through the BCG-8088 training kit.The BCG-8088 Training Kit. The bigger chip beside green little round thing is the Micoprocessor for the year of 1979. haha .. we using the old processor... that processor is made by Motorola, called 8088 microprocessor.

The EDS 8806 Experiment Board

When they Connected together. The Black cable is the power supply cable,
gray cable is connected to serial port of CPU, the flat gray connector connect to EDS 8806.

The right most 3 LED represent Main road from red-amber-greed
The left most represent side road, also red-amber-greed
stopwatch used to record the interval timing change of LED light.



here start the demo without the interrupt sensors function. after that use bout 2~3 days to figure out how to implement the interrupt sensors function... actually is not that difficult after figuring it out.



this is the timing i recorded down during the demo. Is not 100% accurate to implement the delay for LED la... just agak-agak only... cos cant program exactly 2,5,20 seconds in assembly language ma...

enjoy~~ ^^

No comments:

Post a Comment