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.

Serial I/OMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERUARTi transmit/receive control register 0b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetUiC0(i=0,1) 03A416, 03AC16 0816BitsymbolCLK0CLK1CRSTXEPTCRDNCHBit nameBRG count sourceselect bitCTS/RTS functionselect bitTransmit register emptyflagCTS/RTS disable bitData output select bitFunction(During clock synchronousserial I/O mode)b1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedValid when bit 4 = “0”0 : CTS function is selected (Note 1)1 : RTS function is selected (Note 2)0 : Data present in transmitregister (during transmission)1 : No data present in transmitregister (transmissioncompleted)0 : CTS/RTS function enabled1 : CTS/RTS function disabled(P60 and P64 function asprogrammable I/O port)0 : TXDi pin is CMOS output1 : TXDi pin is N-channelopen-drain outputFunction(During UART mode)b1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedValid when bit 4 = “0”0 : CTS function is selected (Note 1)1 : RTS function is selected (Note 2)0 : Data present in transmit register(during transmission)1 : No data present in transmitregister (transmission completed)0 : CTS/RTS function enabled1 : CTS/RTS function disabled(P60 and P64 function asprogrammable I/O port)0: TXDi pin is CMOS output1: TXDi pin is N-channelopen-drain outputCKPOL CLK polarity select bit0 : Transmit data is output atfalling edge of transfer clockMust always be “0”and receive data is input atrising edge1 : Transmit data is output atrising edge of transfer clockand receive data is input atfalling edgeUFORM Transfer format select bit 0 : LSB first1 : MSB firstMust always be “0”Note 1: Set the corresponding port direction register to “0”.Note 2: The settings of the corresponding port register and port direction register are invalid.UART2 transmit/receive control register 0R W b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetU2C0 037C16 0816BitsymbolCLK0CLK1CRSTXEPTCRDBit nameBRG count sourceselect bitCTS/RTS functionselect bitTransmit register emptyflagCTS/RTS disable bitFunction(During clock synchronousserial I/O mode)b1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : Inhibited0 : Data present in transmitregister (during transmission)1 : No data present in transmitregister (transmissioncompleted)0 : CTS/RTS function enabled1 : CTS/RTS function disabled(P73 functionsprogrammable I/O port)Function(During UART mode)Nothing is assigned.0 : TXDi pin is CMOS output 0: TXDi pin is CMOS outputIn an attempt to write to this bit, write 1 “0”. : TXDi The pin value, is N-channel if read, turns out 1: TXDi to be pin “0”. is N-channelopen-drain outputopen-drain outputCKPOL CLK polarity select bit0 : Transmit data is output atfalling edge of transfer clockMust always be “0”and receive data is input atrising edge1 : Transmit data is output atrising edge of transfer clockand receive data is input atfalling edgeUFORM Transfer format select bit(Note 3)Valid when bit 4 = “0”0 : CTS function is selected (Note 1)1 : RTS function is selected (Note 2)0 : LSB first1 : MSB firstb1 b00 0 : f1 is selected0 1 : f8 is selected1 0 : f32 is selected1 1 : InhibitedValid when bit 4 = “0”0 : CTS function is selected (Note 1)1 : RTS function is selected (Note 2)0 : Data present in transmit register(during transmission)1 : No data present in transmitregister (transmission completed)0 : CTS/RTS function enabled1 : CTS/RTS function disabled(P73 functions programmableI/O port)0 : LSB first1 : MSB firstNote 1: Set the corresponding port direction register to “0”.Note 2: The settings of the corresponding port register and port direction register are invalid.Note 3: Only clock synchronous serial I/O mode and 8-bit UART mode are valid.R W Figure 1.19.6. Serial I/O-related registers (3)119

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

Saved successfully!

Ooh no, something went wrong!