tmp19a43fzxbg TOSHIBA Semiconductor CORPORATION, tmp19a43fzxbg Datasheet - Page 279

no-image

tmp19a43fzxbg

Manufacturer Part Number
tmp19a43fzxbg
Description
32bit Tx System Risc
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
(3) Mode 2 (8-bit UART mode)
mode, a parity bit can be used. Parity can be enabled or disabled using SC0CR<PE>. When PE = 1
(parity enabled), even or odd parity can be selected using SC0CR<EVEN>.
Example: To transmit data in the following format, set the control registers as shown below.
Note: X = Don’t care; “—” = No change
Example: To transmit data in the following format, set the control registers as shown below.
SC0MOD
SC0CR
BR0CR
IMCCLH
SC0BUF
PDCR
PDFC
Setting the SM1 and SM0 bits of SC0MOD to 10 places the device into 8-bit UART mode. In this
Note: X = Don’t care; “—” = No change
Setting in the main routine
Example of interrupt routine processing
PDCR
SC0MOD
SC0CR
BR0CR
IMCCLL
SC0MOD
INTCLR
Reg.
End of interrupt processing
Reg.
if Reg. ≠ 0 then ERROR processing
* Clock conditions
* Clock conditions
← X 0 − X 0 1 0 1
← X 1 1 X X X 0 0
← 0 0 1 0 1 0 1 0
← − − 1 1 0 1 0 0
← * * * * * * * *
← − − − − − − − 1
← − − − − − − − 1
7 6 5 4 3 2 1 0
← − − − − − − 0 −
← − 0 0 X 1 0 0 1
← X 0 1 X X X 0 0
← 0 0 0 1 0 1 0 1
← − − 1 1 0 1 0 0
← − − 1 X − − − −
← X X 1 1 0 0 0 0
← SC0CR AND 0x1C
← SC0BUF
start
start
7 6 5 4 3 2 1 0
bit 0
bit 0
TMPR1942CY/CZ-278
Direction of transfer (transfer rate = 2400 bps at fc = 24.576 MHz)
1
1
Direction of transfer (transfer rate = 9600 bps at fc = 24.576 MHz)
System clock:
High-speed clock gear:
Prescaler clock:
System clock:
High-speed clock gear:
Prescaler clock:
2
2
Select 7-bit UART mode.
Select even parity.
Set transfer rate to 2400 bps.
Set PD0 to TXD0 pin.
Enable INTTX0 interrupt and set its priority level to 4.
Set transmit data.
3
3
Set PD1 (RxD0) to input pin.
Select 8-bit UART mode.
Select odd parity.
Set transfer rate to 9600 bps.
Enable INTRX0 interrupt and set its priority level to 4.
Enable reception.
Clear interrupt request.
Check for errors.
Read received data.
4
4
5
5
High-speed (fc)
× 1 (fc)
f
periph/4
High-speed (fc)
× 1 (fc)
f
6
6
periph/4
TMP1942 CY/CZ
parity
even
7
(f
(f
periph
periph
parity
stop
odd
= f
= f
sys
sys
)
stop
)

Related parts for tmp19a43fzxbg