21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SIM interfaceMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSetting UART2 transmit/receive mode registerb70 1 10 0 1b00 1UARTi transmit/receive mode register [Address 037816]U2MRSerial 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 bitOdd/even parity select bit (Valid when bit 6 = “1”)Must be “1” (even parity) in direct formatParity enable bit1 : Parity enabledTXD, RXD I/O polarity reverse bitUsually set to “0”Setting UART2 transmit/receive control register 0b70 01b0UART2 transmit/receive control register 0 [Address 037C16]U2C0BRG count source select bitb1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedValid when bit 4 = “0”Transmit register empty flag0 : Data present in transmit register (during transmission)1 : No data present in transmit register (transmission completed)CTS/RTS disable bit1 : CTS/RTS function disabledMust be fixed to “0” in UART modeTransfer format select bitMust be “0” (LSB first) in direct formatSetting UART2 transmit/receive control register 1b71 0 1b0UART2 transmit/receive control register 1 [Address 037D16]U2C1UART2 transmit interrupt cause select bit1 : Transmission completed (TXEPT = 1)Invalid in UART modeData logic select bitMust be “0” (no reverse) in direct formatError signal output enable bit1 : Output enabledContinued to the next pageFigure 2.5.15. Set-up procedure of transmission in UART mode (used for SIM interface) (1)368

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

Saved successfully!

Ooh no, something went wrong!