Datasheet
CHAPTER 16 MANCHESTER CODE GENERATOR
User’s Manual U18698EJ1V0UD
415
(3) MCG control register 2 (MC0CTL2)
This register is used to set the transmit baud rate.
This register can be set by an 8-bit memory manipulation instruction.
Reset signal generation sets this register to 1FH.
Figure 16-6. Format of MCG Control Register 2 (MC0CTL2)
Address: FF4EH After reset: 1FH R/W
Symbol 7 6 5 4 3 2 1 0
MC0CTL2 0 0 0 MC0BRS4 MC0BRS3 MC0BRS2 MC0BRS1 MC0BRS0
MC0BRS4 MC0BRS3 MC0BRS2 MC0BRS1 MC0BRS0 k
Output clock selection of 5-bit
counter
0 0 0
× ×
4 fXCLK/4
0 0 1 0 0 4 fXCLK/4
0 0 1 0 1 5 fXCLK/5
0 0 1 1 0 6 fXCLK/6
0 0 1 1 1 7 fXCLK/7
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1 1 1 0 0 28 fXCLK/28
1 1 1 0 1 29 fXCLK/29
1 1 1 1 0 30 fXCLK/30
1 1 1 1 1 31 fXCLK/31
Cautions 1. Clear bit 7 (MC0PWR) of the MC0CTL0 register to 0 before rewriting the MC0BRS4 to
MC0BRS0 bits.
2. The value from further dividing the output clock of the 5-bit counter by 2 is the baud
rate value.
Remarks 1. f
XCLK: Frequency of the base clock selected by the MC0CKS2 to MC0CKS0 bits of the
MC0CTL1 register
2. k: Value set by the MC0BRS4 to MC0BRS0 bits (k = 4, 5, 6, 7, …., 31)
3. ×: Don’t care
(4) MCG status register (MC0STR)
This register is used to indicate the operation status of the Manchester code generator.
This register can be read by a 1-bit or 8-bit memory manipulation instruction. Writing to this register is not
possible.
Reset signal generation or setting MC0PWR = 0 clears this register to 00H.