Professional Documents
Culture Documents
b) Draw the instruction word format and indicate the number of bits in each part.
II. An embedded system employs RAM chips of 1024 x 8 and ROM chips of 256 x 8. The system
needs 2K bytes of RAM and 512 bytes of ROM. The module should be connected on an 8-bit
processor with a 16-bit address bus, and occupy the address range starting from the address 1000H
for RAM and 8000H for ROM.
a) How many RAM and ROM chips are needed?
(Number) RAM (Number) ROM
b) How many lines of the address bus must be used to RAM and ROM memory access?
(Address bus) RAM (Address bus) ROM
c) How many lines of the address bus must be decoded for RAM and ROM chip select? Specify
the size of the decoders.
(Decoder) RAM (Decoder) ROM
Question 3 (Interrupt):
a) Using the Interrupt Vector Table shown below, determine the address of the ISR of a device
with interrupt vector 65. 0 1 2 3 4 5 6 7 8 9 A B C D E F
00000 3C 22 10 38 6F 13 2C 2A 33 22 21 67 EE F1 32 25
00010 11 3C 32 88 90 16 44 32 14 30 42 58 30 36 34 66
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
00100 4A 33 3C 4A AA 1A 1B A2 2A 33 3C 4A AA 1A 3E 77
00110 C1 58 4E C1 4F 11 66 F4 C5 58 4E 20 4F 11 F0 F4
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
00250 00 10 10 20 3F 26 33 3C 20 26 20 C1 3F 10 28 32
00260 20 4E 00 10 50 88 22 38 10 5A 38 10 4C 55 14 54
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
003E0 3A 10 45 2F 4E 33 6F 90 3A 44 37 43 3A 54 54 7F
003F0 22 3C 80 01 3C 4F 4E 88 22 3C 50 21 49 3F F4 65
II. An embedded system employs RAM chips of 1024 x 8 and ROM chips of 256 x 8. The system
needs 2K bytes of RAM and 512 bytes of ROM. The module should be connected on an 8-bit
processor with a 16-bit address bus, and occupy the address range starting from the address 1000H
for RAM and 8000H for ROM.
a) How many RAM and ROM chips are needed?
(Number) RAM (Number) ROM
2K/1024 = 211 /210=2 512/256 = 2
b) How many lines of the address bus must be used to RAM and ROM memory access?
(Address bus) RAM (Address bus) ROM
10 ⇒ (A0...A9) 8 ⇒ (A0...A7)
c) How many lines of the address bus must be decoded for RAM and ROM chip select? Specify
the size of the decoders.
(Decoder) RAM (Decoder) ROM
1X2 ⇒ (A10) 1X2 ⇒ (A8)
d) Give the address range in hexadecimal for RAM and ROM.
A15…..A12 A11 A10 A9 A8 A7………..A0 Mem. Map
0 0 0 1 0 0 x x x ………. x RAM1: 1000-13FF
0 0 0 1 0 1 x x x ………. x RAM2: 1400-17FF
1 0 0 0 0 0 0 0 x ………. x ROM1: 8000-80FF
1 0 0 0 0 0 0 1 x ………. x ROM2: 8100-81FF
Question 3 (Interrupt): (5Marks):
Using the Interrupt Vector Table shown below, determine the address of the ISR of a device with
interrupt vector 65. 0 1 2 3 4 5 6 7 8 9 A B C D E F
00000 3C 22 10 38 6F 13 2C 2A 33 22 21 67 EE F1 32 25
00010 11 3C 32 88 90 16 44 32 14 30 42 58 30 36 34 66
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
00100 4A 33 3C 4A AA 1A 1B A2 2A 33 3C 4A AA 1A 3E 77
00110 C1 58 4E C1 4F 11 66 F4 C5 58 4E 20 4F 11 F0 F4
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
00250 00 10 10 20 3F 26 33 3C 20 26 20 C1 3F 10 28 32
00260 20 4E 00 10 50 88 22 38 10 5A 38 10 4C 55 14 54
......... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
003E0 3A 10 45 2F 4E 33 6F 90 3A 44 37 43 3A 54 54 7F
003F0 22 3C 80 01 3C 4F 4E 88 22 3C 50 21 49 3F F4 65
Answer: Address in table = 4 X 41H = 104H (Multiply by 4 since each entry is 4 bytes) (1)
• Offset Low = [118] =AAH, Offset High = [119] =1AH (1)
• Segment Low = [11A] = 1BH, Segment High = [11B] = A2H (1)
• Address = A21B:1AAA = A21BH+1AAAH = A3C5A H (1)
Which interrupts are generally used for critical events?
Ans. Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off etc.
ﻣﻊ ﺗﻤﻨﯿﺎﺗﻲ ﺑﺎﻟﺘﻮﻓﯿﻖ 4/2