Renesas RL78 Series User Manual page 413

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
13.3.12 Serial output register m (SOm)
The SOm register is a buffer register for serial output of each channel.
The value of the SOmn bit of this register is output from the serial data output pin of channel n.
The value of the CKOmn bit of this register is output from the serial clock output pin of channel n.
The SOmn bit of this register can be rewritten by software only when serial output is disabled (SOEmn = 0). When
serial output is enabled (SOEmn = 1), rewriting by software is ignored, and the value of the register can be changed only
by a serial communication operation.
The CKOmn bit of this register can be rewritten by software only when the channel operation is stopped (SEmn = 0).
While channel operation is enabled (SEmn = 1), rewriting by software is ignored, and the value of the CKOmn bit can be
changed only by a serial communication operation.
To use the pin for serial interface as a port function pin, set the corresponding CKOmn and SOmn bits to "1".
The SOm register can be set by a 16-bit memory manipulation instruction.
Reset signal generation clears the SOm register to 0F0FH.
Address: F0128H, F0129H (SO0)
Symbol
15
14
SO0
0
0
Address: F0168H, F0169H (SO1)
Symbol
15
14
SO1
0
0
CKO
mn
0
Serial clock output value is "0".
1
Serial clock output value is "1".
SO
mn
0
Serial data output value is "0".
1
Serial data output value is "1".
Caution Be sure to clear bits 15 to 11, 9, and 7 to 3, 1 of the SO0 register to "0".
Be sure to clear bits 15 to 10 and 7 to 2 of the SO1 register to "0".
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0, 2 for m = 0, n = 0, 1 for m = 1)
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Figure 13-16. Format of Serial Output Register m (SOm)
After reset: 0F0FH
R/W
13
12
11
10
CKO
0
0
0
02
After reset: 0F0FH
R/W
13
12
11
10
0
0
0
0
CKO
CHAPTER 13 SERIAL ARRAY UNIT
9
8
7
6
CKO
0
0
0
00
9
8
7
6
CKO
0
0
11
10
Serial clock output of channel n
Serial data output of channel n
5
4
3
2
SO
0
0
0
02
5
4
3
2
0
0
0
0
SO
1
0
SO
0
00
1
0
SO
11
10
392

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents