Renesas M16C/6NK Información técnica Pagina 218

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 412
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 217
Rev.2.10 Apr 14, 2006 page 194 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 15. Serial Interface
Figure 15.33 shows the SIM Interface Connection. Connect TXD2 and RXD2 and apply pull-up.
Figure 15.33 SIM Interface Connection
15.1.6.1 Parity Error Signal Output
The parity error signal is enabled by setting the U2ERE bit in the U2C1 register to 1 (output enabled).
The parity error signal is output when a parity error is detected while receiving data. This is achieved by
pulling the TXD2 output low with the timing shown in Figure 15.32. If the U2RB register is read while
outputting a parity error signal, the PER bit in the U2RB register is set to 0 (no parity error) and at the
same time the TXD2 output is returned high.
When transmitting, a transmission-finished interrupt request is generated at the falling edge of the transfer
clock pulse that immediately follows the stop bit. Therefore, whether a parity signal has been returned
can be determined by reading the port that shares the UXD2 pin in a transmission-finished interrupt
routine.
Figure 15.34 shows the output timing of the parity error signal
Figure 15.34 Parity Error Signal Output Timing
MCU
SIM card
TXD2
RXD2
D0 D1 D2 D3 D4 D5 D6 D7 P SPST
(NOTE 1)
Transfer
clock
RXD2
TXD2
"H"
"L"
"H"
"L"
"H"
"L"
1
0
This timing diagram applies to the case where the direct format is
implemented.
NOTE:
1: The output of MCU is in the high-impedance state (pulled up externally).
ST: Start bit
P: Even Parity
SP: Stop bit
RI bit in
U2C1 register
Vista de pagina 217
1 2 ... 213 214 215 216 217 218 219 220 221 222 223 ... 411 412

Comentarios a estos manuales

Sin comentarios