![](http://datasheet.mmic.net.cn/370000/UPD17120_datasheet_16743697/UPD17120_9.png)
– iv –
11.6 COMPARISON JUDGEMENT ..........................................................................................
11.6.1
“Equal to” Judgement ........................................................................................................
11.6.2
“Not Equal to” Judgement .................................................................................................
11.6.3
“Greater Than or Equal to” Judgement.............................................................................
11.6.4
“Less Than” Judgement.....................................................................................................
11.7 ROTATIONS.......................................................................................................................
11.7.1
Rotation to the Right ...........................................................................................................
11.7.2
Rotation to the Left .............................................................................................................
99
100
100
101
101
102
102
103
CHAPTER 12 PORTS........................................................................................................................
105
12.1 PORT 0A (P0A
0
, P0A
1
, P0A
2
, P0A
3
).................................................................................
12.2 PORT 0B (P0B
0
, P0B
1
, P0B
2
, P0B
3
)..................................................................................
12.3 PORT 0C (P0C
0
, P0C
1
, P0C
2
, P0C
3
) ... in the case of the
μ
PD17120 and 17121 .......
12.4 PORT 0C (P0C
0
/Cin
0
, P0C
1
/Cin
1
, P0C
2
/Cin
2
, P0C
3
/Cin
3
) in the case of the
μ
PD17132,
17133, 17P132, and 17P133............................................................................................
12.5 PORT 0D (P0D
0
/SCK, P0D
1
/SO, P0D
2
/SI, P0D
3
/TMOUT) ............................................
12.6 PORT 0E (P0E0, P0E1/V
ref
) ... V
ref
,
μ
PD17132, 17133, 17P132, and
17P133 only .......................................................................................................................
12.6.1
Cautions when Operating Port Registers ..........................................................................
12.7 PORT CONTROL REGISTER ............................................................................................
12.7.1
Input/Output Switching by Group I/O.................................................................................
12.7.2
Input/Output Switching by Bit I/O ......................................................................................
105
106
107
108
109
111
112
113
113
114
CHAPTER 13 PERIPHERAL HARDWARE .......................................................................................
117
13.1 8-BIT TIMER COUNTER (TM) ..........................................................................................
13.1.1
8-Bit Timer Counter Configuration......................................................................................
13.1.2
8-bit Timer Counter Control Register .................................................................................
13.1.3
Operation of 8-bit Timer Counters .....................................................................................
13.1.4
Selecting Count Pulse .........................................................................................................
13.1.5
Setting a Count Value in Modulo Register and Calculation Method ................................
13.1.6
Margin of Error of Interval Time .........................................................................................
13.1.7
Reading Count Register Values ..........................................................................................
13.1.8
Timer Output .......................................................................................................................
13.1.9
Timer Resolution and Maximum Setting Time ..................................................................
13.2 COMPARATOR (mPD17132, 17133, 17P132, AND 17P133 ONLY) .............................
13.2.1
Configuration of Comparator...............................................................................................
13.2.2
Functions of Comparator.....................................................................................................
13.3 SERIAL INTERFACE (SIO) ................................................................................................
13.3.1
Functions of the Serial Interface ........................................................................................
13.3.2
3-wire Serial Interface Operation Modes ...........................................................................
13.3.3
Setting Values in the Shift Register ...................................................................................
13.3.4
Reading Values from the Shift Register.............................................................................
13.3.5
Program Example of Serial Interface..................................................................................
117
117
119
120
120
121
124
126
129
130
131
131
132
135
135
137
141
142
143