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.

SIM interfaceMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER2.5.5 Operation of Serial I/O (reception used for SIM interface)In receiving data in UART mode (used for SIM interface), choose functions from those listed in Table2.5.7. Operations of the circled items are described below. Figure 2.5.17 shows the operation timing, andFigures 2.5.18 and 2.5.19 show the set-up procedures.Figure 2.5.7. Choosed functionsItemTransfer dataformatOSet-upDirect formatInverse formatOperation(1) Setting the transmit enable bit and receive enable bit to “1” readies data-receivable status.(2) When the first bit (the start bit) of reception data is received from the RxD2 pin, data is received,bit by bit, in sequence: LSB, ····, MSB, and stop bit(s).(3) When the stop bit(s) is (are) received, the content of the UART2 receive register is transmittedto the UART2 receive buffer register.At this time, the receive complete flag goes to “1” to indicate that the reception is completed,the UART2 receive interrupt request bit goes to “1”.(4) The receive complete flag goes to “0” when the lower-order byte of the UART2 buffer registeris read.(5) When the parity error is occurred, TXD2 pin goes to “L” level.370

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

Saved successfully!

Ooh no, something went wrong!