Question

1. Fill in the blanks to configure the SCII module of HCS12 with the following settings 14400 baud (Bus clock is 24 MHz) SCI

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer :- 1) The expression for baud rate register value is given by-

clock BR 1 16 baud rate

thus the register value is-

24000000 BR 104.166 16 14400

Taking the value as 105, in hexadecimal it is 0x069.

Hence SCI1BD = 0x069.

; To enable parity with odd parity, SCI wait mode, one start, stop and 8 data bits.
SCICR1 = 0b00000011 = 0x03.

;To enable TDRE, RDRF, TX and RX enable bit.
SCICR2 = 0b10101100 = 0xAC.

Answer :- 3)a) The the start bit, the next 7 bits are slave address. Thus from the given signal graph, we get the 7-bits as-

slave bits = 0011010 = 0x1A.

Answer :- 3)b) After the acknowledgement bit A, the next 8-bit is the data value. Thus the data value after Ack bit (A) is-

Data = 00010010 = 0x12.

The master is reading the data from slave as R/W' = 1, just after 7-bit of slave address bit.

start slave address data value Slave address RW A Data

Add a comment
Know the answer?
Add Answer to:
1. Fill in the blanks to configure the SCII module of HCS12 with the following settings 14400 baud (Bus clock is 24 MHz) SCI enabled in wait mode One start bit, 8 data bits, one stop bit Enable trans...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT