8051 Second Programming Excercise
8051 Second Programming Excercise
8051 Second Programming Excercise
EC Deptt,, GEC Gandhiinagar Miicroconttrollller Lab,, Tuttor Kiinnar Vaghella EC Dep GEC Gandh nagar M crocon ro er Lab Tu or K nnar Vaghe a
Page 12 of 14
EC Deptt,, GEC Gandhiinagar Miicroconttrollller Lab,, Tuttor Kiinnar Vaghella EC Dep GEC Gandh nagar M crocon ro er Lab Tu or K nnar Vaghe a
Page 13 of 14
EC Deptt,, GEC Gandhiinagar Miicroconttrollller Lab,, Tuttor Kiinnar Vaghella EC Dep GEC Gandh nagar M crocon ro er Lab Tu or K nnar Vaghe a
Page 14 of 14
Problem
Design an 8051 based system with the following features. The 8051 device has 4K of on-chip ROM (code memory) which should also be usable. Assume a 11.0592 MHz crystal osc. The address map is specified and you will have to design an address decoder. Try to make the address decoder as simple as possible and try to minimize the number of ICs used for the purpose. You will also show the address/data demultiplexer. 1. 2. 3. 4. 5. 6. 7. Power on Reset and the oscillator circuit Port-1 (P1) bits P1.0 to P1.6 connected to a seven segment LED display. Bit P1.7 connected to a single LED (dont forget current limiting resistors) Port-3 (P3) bits P3.4 and P3.5 connected to two push buttons (assume any polarity) External code memory (ROM1) of size 4K at 0x2000 External code memory (ROM2) of size 8K at 0x4000 External data memory (RAM1) of size 16K at 0x4000 A device (Dev1) that needs 16 address locations (readable and writeable) at data memory location 0x8000. Dev1 has an active low chip select CS, 4 address lines A0 _ _ A3, 8 data lines D0 _ _D7, an active low read line RD and an active low write line WR. A device (Dev2) that needs 4 address locations (writeable only) at data memory location 0xF000. Dev2 is similar to Dev1 but has only 2 address lines A0 _ _ A1 and is not readable (no RD line).
8.
Deliverables :
Submit a schematic diagram with all components neatly labeled, address map diagram and truth table for the address decoder.
EC Deptt,, GEC Gandhiinagar Miicroconttrollller Lab,, Tuttor Kiinnar Vaghella EC Dep GEC Gandh nagar M crocon ro er Lab Tu or K nnar Vaghe a