– i –
CONTENTS
CHAPTER 1 GENERAL...................................................................................................................
1.1
Product Development of 78K/0 Series .......................................................................
1.2
Features of 78K/0 Series ..............................................................................................
1
1
3
CHAPTER 2 FUNDAMENTALS OF SOFTWARE..........................................................................
2.1
Data Transfer..................................................................................................................
2.2
Data Comparison ...........................................................................................................
2.3
Decimal Addition ...........................................................................................................
2.4
Decimal Subtraction ......................................................................................................
2.5
Binary-to-Decimal Conversion.....................................................................................
2.6
Bit Manipulation Instruction.........................................................................................
2.7
Binary Multiplication (16 bits
×
16 bits) .....................................................................
2.8
Binary Division (32 bits
÷
16 bits)...............................................................................
57
57
58
59
66
68
70
71
75
CHAPTER 3 APPLICATION OF SYSTEM CLOCK SELECTION.................................................
3.1
Changing PCC Immediately after RESET...................................................................
3.2
Selecting Power ON/OFF ..............................................................................................
79
89
91
CHAPTER 4 APPLICATIONS OF WATCHDOG TIMER ...............................................................
4.1
Setting Watchdog Timer Mode ....................................................................................
4.2
Setting Interval Timer Mode.........................................................................................
95
101
103
CHAPTER 5 APPLICATIONS OF 16-BIT TIMER/EVENT COUNTER .........................................
5.1
Setting of Interval Timer ...............................................................................................
5.2
PWM Output....................................................................................................................
5.3
Remote Controller Signal Reception ..........................................................................
5.3.1
Remote controller signal reception by counter clearing ................................................
5.3.2
Remote controller signal reception by PWM output and free running mode................
5.4
One-Shot Pulse Output .................................................................................................
5.5
PPG Output.....................................................................................................................
105
116
118
121
123
137
152
156
CHAPTER 6 APPLICATIONS OF 8-BIT TIMER/EVENT COUNTER ...........................................
6.1
Setting of Interval Timer ...............................................................................................
6.1.1
Setting of 8-bit timers ......................................................................................................
6.1.2
Setting of 16-bit timer ......................................................................................................
6.2
Musical Scale Generation.............................................................................................
163
171
172
173
174
CHAPTER 7 APPLICATIONS OF WATCH TIMER........................................................................
7.1
Watch and LED Display Program................................................................................
181
187
CHAPTER 8 APPLICATIONS OF SERIAL INTERFACE ..............................................................
8.1
Interface with EEPROM
TM
(
μ
PD6252) .........................................................................
8.1.1
Communication in 2-wire serial I/O mode ......................................................................
8.1.2
Communication in I
2
C bus mode ....................................................................................
195
240
242
250