ML63611 User’s Manual
Chapter 12 Serial Port (SIO)
12 – 25
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
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).
Figure 12-11 Correspondence Between LSB First Send Data and Send Buffer Register
Figure 12-12 Correspondence Between MSB First Send Data and Send Buffer Register
TB7
TB6
TB5
TB4
TB3
TB2
TB1
TB0
8
7
6
5
4
3
2
1
TB6
TB5
TB4
TB3
TB2
TB1
TB0
7
6
5
4
3
2
1
TB5
TB4
TB3
TB2
TB1
TB0
6
5
4
3
2
1
TB4
TB3
TB2
TB1
TB0
5
4
3
2
1
(Send first)
Send direction
8 bits
7 bits
6 bits
5 bits
[Send data length]
TB0
TB1
TB2
TB3
TB4
TB5
TB6
TB7
8
7
6
5
4
3
2
1
TB1
TB2
TB3
TB4
TB5
TB6
TB7
7
6
5
4
3
2
1
TB2
TB3
TB4
TB5
TB6
TB7
6
5
4
3
2
1
TB3
TB4
TB5
TB6
TB7
5
4
3
2
1
(Send first)
Send direction
[Send data length]
8 bits
7 bits
6 bits
5 bits
Содержание ML63611
Страница 9: ...Chapter 1 Overview...
Страница 33: ...Chapter 2 CPU and Memory Spaces...
Страница 42: ...Chapter 3 CPU Control Functions...
Страница 49: ...Chapter 4 Interrupt INT...
Страница 62: ...Chapter 5 Clock Generator Circuit OSC...
Страница 71: ...Chapter 6 Time Base Counter TBC...
Страница 75: ...Chapter 7 Timers TIMER...
Страница 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Страница 103: ...Chapter 9 Watchdog Timer WDT...
Страница 108: ...Chapter 10 Ports INPUT I O PORT...
Страница 140: ...Chapter 11 Melody Driver MELODY...
Страница 152: ...Chapter 12 Serial Port SIO...
Страница 179: ...Chapter 13 LCD Driver LCD...
Страница 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Страница 204: ...Chapter 15 Power Supply Circuit POWER...
Страница 215: ...Chapter 16 A D Converter ADC...
Страница 238: ...Appendixes...
Страница 271: ...ML63611 User s Manual First Edition May 2001 Second Edition June 2001 2001 Oki Electric Industry Co Ltd PEUL63611 02...