English
Language : 

TMP88PS42NG Datasheet, PDF (182/224 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
15. Synchronous Serial Interface (SIO)
15.2 Control
TMP88PS42NG
15.2 Control
The serial interface is controlled by SIO control registers (SIOCR1/SIOCR2). The serial interface status can be
determined by reading SIO status register (SIOSR).
The transmit and receive data buffer is controlled by the SIOCR2<BUF>. The data buffer is assigned to address
01F98H to 01F9FH for SIO in the DBR area, and can continuously transfer up to 8 words (bytes or nibbles) at one
time. When the specified number of words has been transferred, a buffer empty (in the transmit mode) or a buffer full
(in the receive mode or transmit/receive mode) interrupt (INTSIO) is generated.
When the internal clock is used as the serial clock in the 8-bit receive mode and the 8-bit transmit/receive mode, a
fixed interval wait can be applied to the serial clock for each word transferred. Four different wait times can be
selected with SIOCR2<WAIT>.
SIO Control Register 1
SIOCR1
7
6
5
4
3
(1F96H)
SIOS SIOINH
SIOM
2
1
0
SCK
(Initial value: 0000 0000)
SIOS Indicate transfer start / stop
SIOINH Continue / abort transfer
SIOM Transfer mode select
SCK Serial clock select
0:
Stop
1:
Start
0:
Continuously transfer
1:
Abort transfer (Automatically cleared after abort)
000: 8-bit transmit mode
010: 4-bit transmit mode
100: 8-bit transmit / receive mode
101: 8-bit receive mode
110: 4-bit receive mode
Except the above: Reserved
NORMAL, IDLE mode
DV1CK = 0
DV1CK = 0
000
fc/213
fc/214
001
fc/28
fc/29
010
fc/27
fc/28
011
fc/26
fc/27
100
fc/25
fc/26
101
fc/24
fc/25
110
Reserved
111
External clock (Input from SCK pin)
Write
only
Write
only
Note 1: fc; High-frequency clock [Hz]
Note 2: Set SIOCR1<SIOS> to "0" and SIOCR1<SIOINH> to "1" when setting the transfer mode or serial clock.
Note 3: SIOCR1 is write-only register, which cannot access any of in read-modify-write instruction such as bit operate, etc.
SIO Control Register 2
SIOCR2
7
6
5
4
3
2
1
0
(1F97H)
WAIT
BUF
(Initial value: ***0 0000)
Page 172