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 MICROCOMPUTERExample of wiringMicrocomputerSIM cardTxD2RxD2Example of operation (when direct format)(1) Reception enabled(2) Start receptionTc(3) Receiving is completed(4) Data is read(5) Parity error occurredTransfer clockReceive enablebit(RE)RXD2 (Note)TXD2 (Note)Signal line level(Note)“1”“0”StartParitybitbitST D0 D1 D2 D3 D4 D5 D6 D7 PSTD0 D1 D2 D3 D4 D5 D6 D7PSPSPStopbitST D0 D1 D2 D3 D4 D5 D6 D7 P SPSince a parity error occurred, the“L” level returns from TxD2ST D0 D1 D2 D3 D4 D5 D6 D7 P SPReceivecomplete flag(RI)“1”“0”Receive interrupt “1”request bit(IR) “0”Read to receive bufferRead to receive bufferCleared to “0” when interrupt request is accepted, or cleared by softwareShown in ( ) are bit symbols.The above timing applies to the following settings :• Parity is enabled.• One stop bit.• Transmit interrupt cause select bit = “1”.Tc = 16 (n + 1) / fifi : frequency of BRG2 count source (f1, f8, f32)n : value set to BRG2Note: TxD2 and RxD2 are connected in the manner of wired OR as shown in the connection diagram. So TxD2 and RxD2 ought tobecome the same signal from the logical standpoint, but the output signals turn complex, so they are shown separately. Also,the signal level resulting from connecting TxD2 and RxD2 is shown as a signal line level.Figure 2.5.17. Operation timing of reception in UART mode (used for SIM interface)371

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

Saved successfully!

Ooh no, something went wrong!