Send/Receive Data Lsb/Msb First Select; Selecting Send Data Lsb/Msb First - Oki ML63611 User Manual

Table of Contents

Advertisement

12.5

Send/Receive Data LSB/MSB First Select

Either LSB first or MSB first for send can be selected by setting STLMB (bit 3 of STCON1).
Either LSB first or MSB first for receive can be selected by setting SRLMB (bit 3 of SRCON1).

12.5.1 Selecting Send Data LSB/MSB First

Set STLMB (bit 3 of STCON1) to "0" to select LSB first for send.
The correspondence between LSB first send data and the send buffer register bit is shown in Figure 12-11. In this
case, the LSB is TB0 (bit 0 of STBUFL).
Set STLMB to "1" to send the MSB first.
The correspondence between MSB first send data and the send buffer register bit is shown in Figure 12-12. In this
case, the MSB is TB7 (bit 3 of STBUFH).
[Send data length]
8 bits
7 bits
6 bits
5 bits
Figure 12-11 Correspondence Between LSB First Send Data and Send Buffer Register
[Send data length]
8 bits
7 bits
6 bits
5 bits
Figure 12-12 Correspondence Between MSB First Send Data and Send Buffer Register
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
Send direction
8
7
6
5
TB7
TB6
TB5
TB4
7
6
5
TB6
TB5
TB4
6
5
TB5
TB4
5
TB4
Send direction
8
7
6
5
TB0
TB1
TB2
TB3
7
6
5
TB1
TB2
TB3
6
5
TB2
TB3
5
TB3
12 – 25
ML63611 User's Manual
Chapter 12 Serial Port (SIO)
(Send first)
4
3
2
TB3
TB2
TB1
TB0
4
3
2
TB3
TB2
TB1
TB0
4
3
2
TB3
TB2
TB1
TB0
4
3
2
TB3
TB2
TB1
TB0
(Send first)
4
3
2
TB4
TB5
TB6
TB7
4
3
2
TB4
TB5
TB6
TB7
4
3
2
TB4
TB5
TB6
TB7
4
3
2
TB4
TB5
TB6
TB7
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
1
1
1
1
1
1
1
1

Advertisement

Table of Contents
loading

Table of Contents