D Question 8 Given the following values, what is the 9S12 doing? LSTRB# 0 R/W# 1
ID: 2293385 • Letter: D
Question
D Question 8 Given the following values, what is the 9S12 doing? LSTRB# 0 R/W# 1 PORTA = 0xA8 PORTB = 0xB9 ECLK = 1 Table 1. LSTRB, ADDR[O], and R/W Decode LSTRB ADDR[O] RVw Type of Access 1 8-bit read of an even address 18-bit read of an odd address 0 8-bit write of an even address 0 8-bit write of an odd address 1 16-bit read of an even address 16-bit read of an odd address Mnemonic R8H R8L W8H W8L RLH W16 WLH (low/high data swapped) 0 16-bit write to an even address 16-bit write to an odd address (low/high data swapped)Explanation / Answer
Answer :- Here we have Low Strobe Enable(nLSTRB) = 0, (Read / nWRITE) = 1 so it is a read operation. The ADDR[0] is same as LSB of PORTB which is 1.
Thus from table we get the operation is :- 8-bit read of an odd address.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.