English
Language : 

UPD17P133 Datasheet, PDF (9/289 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLER
11.6 COMPARISON JUDGEMENT .......................................................................................... 99
11.6.1 “Equal to” Judgement ........................................................................................................ 100
11.6.2 “Not Equal to” Judgement ................................................................................................. 100
11.6.3 “Greater Than or Equal to” Judgement ............................................................................. 101
11.6.4 “Less Than” Judgement ..................................................................................................... 101
11.7 ROTATIONS ....................................................................................................................... 102
11.7.1 Rotation to the Right ........................................................................................................... 102
11.7.2 Rotation to the Left ............................................................................................................. 103
CHAPTER 12 PORTS ........................................................................................................................ 105
12.1 PORT 0A (P0A0, P0A1, P0A2, P0A3) ................................................................................. 105
12.2 PORT 0B (P0B0, P0B1, P0B2, P0B3) .................................................................................. 106
12.3 PORT 0C (P0C0, P0C1, P0C2, P0C3) ... in the case of the µPD17120 and 17121 ....... 107
12.4 PORT 0C (P0C0/Cin0, P0C1/Cin1, P0C2/Cin2, P0C3/Cin3) in the case of the µPD17132,
17133, 17P132, and 17P133 ............................................................................................ 108
12.5 PORT 0D (P0D0/SCK, P0D1/SO, P0D2/SI, P0D3/TMOUT) ............................................ 109
12.6 PORT 0E (P0E0, P0E1/Vref) ... Vref, µPD17132, 17133, 17P132, and
17P133 only ....................................................................................................................... 111
12.6.1 Cautions when Operating Port Registers .......................................................................... 112
12.7 PORT CONTROL REGISTER ............................................................................................ 113
12.7.1 Input/Output Switching by Group I/O ................................................................................. 113
12.7.2 Input/Output Switching by Bit I/O ...................................................................................... 114
CHAPTER 13 PERIPHERAL HARDWARE ....................................................................................... 117
13.1 8-BIT TIMER COUNTER (TM) .......................................................................................... 117
13.1.1 8-Bit Timer Counter Configuration ...................................................................................... 117
13.1.2 8-bit Timer Counter Control Register ................................................................................. 119
13.1.3 Operation of 8-bit Timer Counters ..................................................................................... 120
13.1.4 Selecting Count Pulse ......................................................................................................... 120
13.1.5 Setting a Count Value in Modulo Register and Calculation Method ................................ 121
13.1.6 Margin of Error of Interval Time ......................................................................................... 124
13.1.7 Reading Count Register Values .......................................................................................... 126
13.1.8 Timer Output ....................................................................................................................... 129
13.1.9 Timer Resolution and Maximum Setting Time .................................................................. 130
13.2 COMPARATOR (mPD17132, 17133, 17P132, AND 17P133 ONLY) ............................. 131
13.2.1 Configuration of Comparator............................................................................................... 131
13.2.2 Functions of Comparator..................................................................................................... 132
13.3 SERIAL INTERFACE (SIO) ................................................................................................ 135
13.3.1 Functions of the Serial Interface ........................................................................................ 135
13.3.2 3-wire Serial Interface Operation Modes ........................................................................... 137
13.3.3 Setting Values in the Shift Register ................................................................................... 141
13.3.4 Reading Values from the Shift Register ............................................................................. 142
13.3.5 Program Example of Serial Interface .................................................................................. 143
– iv –