TOSHIBA CORPORATION
131
TMP96C141AF
Generating Timing
1) UART mode
Note:
Framing error occurs after an interrupt has occurred. Therefore, to check for framing error during interrupt operation, it is necessary to wait for 1 bit
period of transfer rate.
Receiving
Mode
9-Bit
8-Bit + Parity
8-Bit, 7-Bit + Parity, 7-Bit
Interrupt timing
Center of last bit (Bit 8)
Center of last bit (parity bit)
Center of stop bit
Framing error timing
Center of stop bit
Center of stop bit
Center of stop bit
Parity error timing
Center of last bit (Bit 8)
Center of last bit (parity bit)
Center of stop bit
Overrun error timing
Center of last bit (Bit 8)
Center of last bit (parity bit)
Center of stop bit
Transmitting
Mode
9-Bit
8-Bit + Parity
8-Bit, 7-Bit + Parity, 7-Bit
Interrupt timing
Just before last bit is transmitted.
←
←
11
➇
Transmission Buffer
Transmission buffer (SC0BUF/SC1BUF) shifts to and
sends the transmission data written from the CPU from
the least significant bit (LSB) in order, using transmission
shift clock TxDSFT which is generated by the transmis-
sion control. When all bits are shifted out, the transmis-
sion buffer becomes empty and generates INTTX0/
INTTX1 interrupt.
➈
Parity Control Circuit
When serial channel control register SC0CR <PE>/
SC1CR <PE> is set to “1", it is possible to transmit and
receive data with parity. However, parity can be added
only in 7-bit UART or 8-bit UART mode. With SC0CR
<EVEN>/SC1CR <EVEN> register, even (odd) parity can
be selected.
For transmission, parity is automatically generated
according to the data written in the transmission buffer
SCBUF, and data are transmitted after being stored in
SC0BUF <TB7>/SC1BUF <TB7> when in 7-bit UART
mode while in SCMOD <TB8>/SCMOD <TB8> when in
8-bit UART mode. <PE> and <EVEN> must be set
before transmission data are written in the transmission
buffer.
For receiving, data is shifted in the receiving buffer 1,
and parity is added after the data is transferred in the
receiving buffer 2 (SC0BUF/SC1BUF), and then com-
pared with SC0BUF <RB7>/SC1BUF <RB7> when in 7-
bit UART mode and with SC0MOD <RB8>/SC1MOD
<RB8> when in 8-bit UART mode. If they are not equal, a
parity error occurs, and SC0CR <PERR>/SC1CR
<PERR> flag is set
➉
Error Flag
Three error flags are provided to increase the reliabil-
ity of receiving data.
1. Overrun error <OERR>
If all bits of the next data are received in
receiving buffer 1 while valid data is stored in
receiving buffer 2 (SCBUF), an overrun error
will occur.
2. Parity error <PERR>
The parity generated for the data shifted
in receiving buffer 2 (SCBUF) is compared
with the parity bit received from RxD pin. If
they are not equal, a parity error occurs.
3. Framing error <FERR>
The stop bit of received data is sampled
three times around the center. If the majority
is “0", a framing error occurs.
Содержание TLCS-900 Series
Страница 2: ...2 TOSHIBA CORPORATION TMP96C141AF Figure 1 TMP96C141AF Block Diagram ...
Страница 10: ...10 TOSHIBA CORPORATION TMP96C141AF Figure 3 3 1 Interrupt Processing Flowchart ...
Страница 17: ...TOSHIBA CORPORATION 17 TMP96C141AF Figure 3 3 3 1 Block Diagram of Interrupt Controller ...
Страница 18: ...18 TOSHIBA CORPORATION TMP96C141AF 1 Interrupt Priority Setting Register ...
Страница 19: ...TOSHIBA CORPORATION 19 TMP96C141AF 2 External Interrupt Control ...
Страница 26: ...26 TOSHIBA CORPORATION TMP96C141AF Port 0 Register Figure 3 5 3 Registers for Ports 0 and 1 ...
Страница 28: ...28 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 5 Registers for Port 2 ...
Страница 30: ...30 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 6 Port 3 P30 P31 P32 P35 P36 P37 ...
Страница 31: ...TOSHIBA CORPORATION 31 TMP96C141AF Figure 3 5 7 Port 3 P33 P34 ...
Страница 34: ...34 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 9 Port 4 ...
Страница 38: ...38 TOSHIBA CORPORATION TMP96C141AF Port 6 Register Figure 3 5 14 Registers for Port 6 ...
Страница 40: ...40 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 16 Registers for Port 7 ...
Страница 43: ...TOSHIBA CORPORATION 43 TMP96C141AF Figure 3 5 19 Registers for Port 8 ...
Страница 47: ...TOSHIBA CORPORATION 47 TMP96C141AF Figure 3 5 24 Registers for Port 9 ...
Страница 55: ...TOSHIBA CORPORATION 55 TMP96C141AF Figure 3 7 1 Block Diagram of 8 Bit Timers Timers 0 and 1 ...
Страница 58: ...58 TOSHIBA CORPORATION TMP96C141AF Figure 3 7 4 Timer Operation Control Register TRUN ...
Страница 59: ...TOSHIBA CORPORATION 59 TMP96C141AF Figure 3 7 5 Timer Mode Control Register TMOD ...
Страница 60: ...60 TOSHIBA CORPORATION TMP96C141AF Figure 3 7 6 Timer Flip Flop Control Register TFFCR ...
Страница 74: ...74 TOSHIBA CORPORATION TMP96C141AF Figure 3 8 4 8 Bit PWM0 Mode Control Register ...
Страница 75: ...TOSHIBA CORPORATION 75 TMP96C141AF Figure 3 8 5 8 Bit PWM1 Mode Control Register ...
Страница 76: ...76 TOSHIBA CORPORATION TMP96C141AF Figure 3 8 6 8 Bit PWM F F Control Register ...
Страница 77: ...TOSHIBA CORPORATION 77 TMP96C141AF Figure 3 8 7 Timer Operation Control Register TRUN ...
Страница 85: ...TOSHIBA CORPORATION 85 TMP96C141AF Figure 3 9 1 Block Diagram of 16 Bit Timer Timer 4 ...
Страница 86: ...86 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 2 Block Diagram of 16 Bit Timer Timer 5 ...
Страница 87: ...TOSHIBA CORPORATION 87 TMP96C141AF Figure 3 9 3 16 Bit Timer Mode Controller Register T4MOD 1 2 ...
Страница 88: ...88 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 4 16 Bit Controller Register T4MOD 2 2 ...
Страница 89: ...TOSHIBA CORPORATION 89 TMP96C141AF Figure 3 9 5 16 Bit Timer 4 F F Control T4FFCR ...
Страница 90: ...90 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 6 16 Bit Timer Mode Control Register T5MOD 1 2 ...
Страница 91: ...TOSHIBA CORPORATION 91 TMP96C141AF Figure 3 9 7 16 Bit Timer Control Register T5MOD 2 2 ...
Страница 104: ...104 TOSHIBA CORPORATION TMP96C141AF Figure 3 10 2a Pattern Generation Control Register PG01CR ...
Страница 105: ...TOSHIBA CORPORATION 105 TMP96C141AF Figure 3 10 2b Pattern Generation Control Register PG01CR ...
Страница 107: ...TOSHIBA CORPORATION 107 TMP96C141AF Figure 3 10 5 16 bit Timer Trigger Control Register T45CR ...
Страница 121: ...TOSHIBA CORPORATION 121 TMP96C141AF Figure 3 11 6 Serial Mode Control Register Channel 1 SC1MOD ...
Страница 140: ...140 TOSHIBA CORPORATION TMP96C141AF Figure 3 12 2 A D Control Register ...
Страница 148: ...148 TOSHIBA CORPORATION TMP96C141AF Figure 3 13 4 Watchdog Timer Mode Register ...
Страница 149: ...TOSHIBA CORPORATION 149 TMP96C141AF Figure 3 13 5 Watchdog Timer Control Register ...
Страница 153: ...TOSHIBA CORPORATION 153 TMP96C141AF 1 Read Cycle ...
Страница 154: ...154 TOSHIBA CORPORATION TMP96C141AF 2 Write Cycle ...
Страница 157: ...TOSHIBA CORPORATION 157 TMP96C141AF 4 8 Timing Chart for I O Interface Mode ...
Страница 159: ...TOSHIBA CORPORATION 159 TMP96C141AF 4 10 Interrupt Operation Vcc 5V Ta 25 C unless otherwise noted ...
Страница 171: ...TOSHIBA CORPORATION 171 TMP96C141AF 8 Interrupt Control 1 2 ...
Страница 175: ...TOSHIBA CORPORATION 175 TMP96C141AF P42 CS2 CAS2 P5 AN0 3 P87 INT0 P90 TXD0 P93 TXD1 ...
Страница 176: ...176 TOSHIBA CORPORATION TMP96C141AF NMI WDTOUT CLK EA AM8 16 ALE RESET ...
Страница 177: ...TOSHIBA CORPORATION 177 TMP96C141AF X1 X2 VREF AGND ...