Docsity

Addresses-Interfacing Microprocessor-Quiz Solution, Exercises of Microprocessor and Interfacing

Toggle sidebar
bg1
Quiz-1A Solution
Q1: Address pins = Log2(16x1024)= log2(24x210)= log2(214)= 14pins
Data pins = 11 (being 11-bit cpu)
Control pins = CS + WR + RD = 3 pins
Q2:
Q3: Interactive elements in VMLAB are 16 keypad, 5 led’s, 3 sliders, speed, temperature, clock control and
TTY window, all contained in Control panel.
These elements allow user to interact with the program externally to input and monitor outputs.
Q4: FLASH = 8192 Bytes (8K) EEPROM= 512 Bytes SRAM= 512 Bytes
Q5: ?1 = FLASH program memory ?2 = Program counter ?3 = 32x8 Gen Purpose Register
?4 = ALU ?5 = Instruction decoder ??6 = 5 ??7 = 13
Q6: 0xF8 = 1111 1000
0x08 = 0000 1000
C 1 1
ADD 0000 0000
Result = zero
C = set (carry generated) N = cleared (result not negative)
H = set (half carry generated) V = cleared (no overflow)
Z = set (result is zero) S = V eor N = cleared
Original SREG 0xD6 1101 0110
After setting and clearing above bits we have SREG = 1110 0011 = 0xE3
Q7: See Fig 9. Of ATmega8515 datasheet
Q8: cycles = AxNUM+B
Therefore, 658 = 50*A+B
And 1048=80*A+B thus, 30*A=390 => A=13 and B=8
i.e., loop overhead (B) is 8 cycles, and loop iteration time is 13 cycles.
docsity.com

Partial preview of the text

Download Addresses-Interfacing Microprocessor-Quiz Solution and more Exercises Microprocessor and Interfacing in PDF only on Docsity!

Quiz-1A Solution

Q1: Address pins = Log 2 (16x1024)= log 2 (2^4 x2^10 )= log 2 (2^14 )= 14pins Data pins = 11 (being 11-bit cpu) Control pins = CS + WR + RD = 3 pins Q2:

Q3: Interactive elements in VMLAB are 16 keypad, 5 led’s, 3 sliders, speed, temperature, clock control and TTY window, all contained in Control panel. These elements allow user to interact with the program externally to input and monitor outputs.

Q4: FLASH = 8192 Bytes (8K) EEPROM= 512 Bytes SRAM= 512 Bytes

Q5: ?1 = FLASH program memory ?2 = Program counter ?3 = 32x8 Gen Purpose Register ?4 = ALU ?5 = Instruction decoder ??6 = 5 ??7 = 13

Q6: 0xF8 = 1111 1000 0x08 = 0000 1000 C 1 1 ADD 0000 0000 Result = zero C = set (carry generated) N = cleared (result not negative) H = set (half carry generated) V = cleared (no overflow) Z = set (result is zero) S = V eor N = cleared Original SREG 0xD6 1101 0110 After setting and clearing above bits we have SREG = 1110 0011 = 0xE

Q7: See Fig 9. Of ATmega8515 datasheet

Q8: cycles = AxNUM+B Therefore, 658 = 50A+B And 1048=80A+B thus, 30*A=390 => A=13 and B= i.e., loop overhead (B) is 8 cycles, and loop iteration time is 13 cycles.

docsity.com