Professional Documents
Culture Documents
Microcomputers
Bus
A Bus is a common communications pathway used to carry information between the various elements of a computer system The term BUS refers to a group of wires or conduction tracks on a printed circuit board (PCB) though which binary information is transferred from one part of the microcomputer to another The individual subsystems of the digital computer are connected through an interconnecting BUS system.
Data Bus
The Data Bus carries the data which is transferred throughout the system. ( bi-directional) Examples of data transfers
Program instructions being read from memory into MPU. Data being sent from MPU to I/O port Data being read from I/O port going to MPU Results from MPU sent to Memory
Address Bus
An address is a binary number that identifies a specific memory storage location or I/O port involved in a data transfer The Address Bus is used to transmit the address of the location to the memory or the I/O port. The Address Bus is unidirectional ( one way ): addresses are always issued by the MPU.
Control Bus
The Control Bus: is another group of signals whose functions are to provide synchronization ( timing control ) between the MPU and the other system components. Control signals are unidirectional, and are mainly outputs from the MPU. Example Control signals
RD: read signal asserted to read data into MPU WR: write signal asserted to write data from MPU
Read-Only Memory
uP can read instructions from ROM quickly Cannot write new data to the ROM ROM remembers the data, even after power cycled Typically, when the power is turned on, the microprocessor will start fetching instructions from the still-remembered program in ROM (bootstrap )
Available ROMs
Masked ROM or just ROM PROM or programmable ROM(once only) EPROM (erasable via ultraviolet light) Flash (can be erased and re-written about 10000 times, usually must write a whole block not just 1 byte or 2 bytes, slow writing, fast reading) EEPROM (electrically erasable read-only memory, also known as EEROMboth reading and writing are very slow but can program millions of timesuseless for storing a program but good for say configuration information.
ROM
A0 A1
m+1 bit Address Capacity :
D0 D1 D2
A2 Am
m +1
2 m+1 ( n + 1)
ROM PROM EEPROM
Dn
CE (CS )
CE
OE
D0-Dn
CE
OE
OE falls to data valid Addr valid to data valid
27XX EPROM
U3 10 9 8 7 6 5 4 3 25 24 21 23 2 22 27 20 1 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 OE PGM CE VPP O0 O1 O2 O3 O4 O5 O6 O7 11 12 13 15 16 17 18 19 U1 8 7 6 5 4 3 2 1 23 22 19 20 18 21 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 OE CE VPP O0 O1 O2 O3 O4 O5 O6 O7 9 10 11 13 14 15 16 17
16 kbit 2 kbyte
2716
2732
32 kbit 4 kbyte
2764
64 kbit 8 kbyte
27XXX EPROM
U7 U4 10 9 8 7 6 5 4 3 25 24 21 23 2 26 22 27 20 1 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 OE PGM CE VPP D0 D1 D2 D3 D4 D5 D6 D7 11 12 13 15 16 17 18 19 10 9 8 7 6 5 4 3 25 24 21 23 2 26 27 22 20 1 U5 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 OE CE VPP D0 D1 D2 D3 D4 D5 D6 D7 11 12 13 15 16 17 18 19 10 9 8 7 6 5 4 3 25 24 21 23 2 26 27 1 22 20 28 U6 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 OE/VPP CE VCC O0 O1 O2 O3 O4 O5 O6 O7 11 12 13 15 16 17 18 19 12 11 10 9 8 7 6 5 27 26 23 25 4 28 29 3 2 24 31 22 1 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 OE PGM CE VPP D0 D1 D2 D3 D4 D5 D6 D7 13 14 15 17 18 19 20 21
27128
128 kbit 16 kbyte
27256
256 kbit 32 kbyte
27512
512 kbit 64 kbyte
27010
1024 kbit 128 kbyte
28XX E2PROM
12 11 10 9 8 7 6 5 27 26 23 25 4 28 29 3 2 24 31 22 32 13 14 15 17 18 19 20 21 12 11 10 9 8 7 6 5 27 26 23 25 4 28 29 3 2 30 1 24 31 22 32 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 OE WE CE VCC D0 D1 D2 D3 D4 D5 D6 D7 13 14 15 17 18 19 20 21
8 7 6 5 4 3 2 1 23 22 19 20 21 18 24
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 OE WE CE VCC
9 10 11 13 14 15 16 17
10 9 8 7 6 5 4 3 25 24 21 23 2 22 27 20 28
I/O0 A0 I/O1 A1 I/O2 A2 I/O3 A3 I/O4 A4 I/O5 A5 I/O6 A6 I/O7 A7 A8 A9 RDY/BUSY A10 A11 A12 OE WE CE VCC
11 12 13 15 16 17 18 19 1
10 9 8 7 6 5 4 3 25 24 21 23 2 26 1 22 27 20 28
D0 D1 D2 D3 D4 D5 D6 D7
11 12 13 15 16 17 18 19
D0 D1 D2 D3 D4 D5 D6 D7
RAM(Static)
m+1 bit Address Capacity :
A0 A1 A2 Am
D0 D1 D2
m +1
2 m+1 ( n + 1)
RAM
CS
Dn
Data bus is Bidirectional
RD
to Address decoder