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.

Clock-Synchronous Serial I/OMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERExample of wiring(Note)MicrocomputerCLKiTXDiCTSiReceiver side ICCLKRXDPortNote : Since TXD2 pin is N-channel open drain,this pin needs pull-up resistor.Example of operationTransfer clock(1) Transmission enabled(2) Confirming CTS(3) Start transmission Tc(4) Transmission is complete(5) Transmit next dataTransmitenable bit (TE)Transmitbuffer emptyflag (Tl)CTSiCLKi“1”“0”“1”“0”“H”“L”Data is set to UARTi transmit buffer registerTCLKTransferred from UARTi transmit buffer register to UARTi transmit registerStopped pulsing because CTSi = “H”Stopped pulsing becausetransfer enable bit = “0”TxDiD0 D1 D2 D3 D4 D5 D6 D7D0 D1 D2 D3 D4 D5 D6 D7 D0 D1 D2 D3 D4 D5 D6 D7Transmit registerempty flag(TXEPT)Transmitinterrupt requestbit (IR)“1”“0”“1”“0”Cleared to “0” when interrupt request is accepted, or cleared by softwareShown in ( ) are bit symbols.The above timing applies to the following settings:• Internal clock is selected.• CTS function is selected.• CLK polarity select bit = “0”.• Transmit interrupt cause select bit = “0”.Tc = TCLK = 2(n + 1) / fifi: frequency of BRGi count source (f1, f8, f32)n: value set to BRGiFigure 2.4.7. Operation timing of transmission in clock-synchronous serial I/O mode335

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

Saved successfully!

Ooh no, something went wrong!