21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UARTMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSetting UARTi transmit/receive mode register (i=0 to 2)b70 00 0 1b00 1UART0 transmit/receive mode registerU0MR [Address 03A016]UART1 transmit/receive mode registerU1MR [Address 03A816]b70 00 0 1b00 1UART2 transmit/receive mode registerU2MR [Address 037816]Serial I/O mode select bitb2 b1 b01 0 1 : Transfer data 8 bits longInternal/external clock select bit0 : Internal clockStop bit length select bit0 : One stop bitValid when bit 6 = “1”Parity enable bit0 : Parity diabledSleep select bit0 : Sleep mode deselectedSerial I/O mode select bitb2 b1 b01 0 1 : Transfer data 8 bits longMust be fixed to “0” in UART modeStop bit length select bit0 : One stop bitValid when bit 6 = “1”Parity enable bit0 : Parity diabledSleep select bit0 : Sleep mode deselectedSetting UARTi transmit/receive control register 0 (i=0 to 2)b70 000 1b0UART0 transmit/receive control register 0U0C0 [Address 03A416]UART1 transmit/receive control register 0U1C0 [Address 03AC16]b70 00 1b0UART2 transmit/receive control register 0U2C0 [Address 037C16]BRG count source select bitb1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedBRG count source select bitb1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedCTS/RTS function select bit(Valid when bit 4 = “0”)1 : RTS function is selectedTransmit register empty flag0 : Data present in transmit register(during transmission)1 : No data present in transmit register(transmission completed)CTS/RTS disable bit0 : CTS/RTS function enabledData output select bit0 : TxDi pin is CMOS output1 : TxDi pin is N-channel open-drain outputCTS/RTS function select bit(Valid when bit 4 = “0”)1 : RTS function is selectedTransmit register empty flagTransmit 0 : Data register present empty in transmit flag register0 : Data (during present transmission) in transmit register1 (during : No data transmission) present in transmit register1 : No (transmission data present completed) in transmit register(transmission completed)CTS/RTS disable bitMust0 : CTS/RTSbe fixed tofunction“0” in UARTenabledmodeMust be fixed to “0” in UART modeMust be fixed to “0” in UART modeMust be fixed to “0” in UART modeTransfer format select bit0 : LSB firstSetting UART transmit/receive control register 2 and UART2 transmit/receive control register 1b70 0b0UART transmit/receive control register 2UCON [Address 03B016]b70 0b0UART2 transmit/receive control register 1U2C1 [Address 037D16]Invalid in UART modeInvalid in UART modeInvalid in UART modeData logic select bit0 : No reverseInvalid in UART modeMust be fixed to “0” in UART modeError signal output enable bit0 : Output disabledSeparate CTS/RTS bit0 : CTS/RTS shared pinContinued to the next pageFigure 2.5.12. Set-up procedure of reception in UART mode (1)364

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!