– i –
CONTENTS
CHAPTER 1
1.1
1.2
GENERAL .................................................................................................................
Product Development of 78K/0 Series .......................................................................
Features of 78K/0 Series ..............................................................................................
1
1
3
CHAPTER 2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
BASICS OF SOFTWARE.........................................................................................
Data Transfer..................................................................................................................
Data Comparison ...........................................................................................................
Decimal Addition ...........................................................................................................
Decimal Subtraction ......................................................................................................
Binary-to-Decimal Conversion.....................................................................................
Bit Manipulation Instruction.........................................................................................
Binary Multiplication (16 bits
×
16 bits) .....................................................................
Binary Division (32 bits
÷
16 bits)...............................................................................
37
37
38
39
46
48
49
50
53
CHAPTER 3
3.1
3.2
APPLICATION OF SYSTEM CLOCK SELECTION ...............................................
Changing PCC Immediately after RESET...................................................................
Selecting Power ON/OFF ..............................................................................................
57
63
65
CHAPTER 4
4.1
4.2
APPLICATIONS OF WATCHDOG TIMER .............................................................
Setting Watchdog Timer Mode ....................................................................................
Setting Interval Timer Mode.........................................................................................
69
76
77
CHAPTER 5
5.1
5.2
5.3
APPLICATIONS OF 16-BIT TIMER/EVENT COUNTER........................................
Setting of Interval Timer...............................................................................................
PWM Output....................................................................................................................
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
(
μ
PD78014, 78014Y, 78018F, 78018FY, 78014H subseries only)...............................
79
88
89
91
93
107
CHAPTER 6
6.1
APPLICATIONS OF 8-BIT TIMER/EVENT COUNTER..........................................
Setting of Interval Timer...............................................................................................
6.1.1
Setting of 8-bit timers ......................................................................................................
6.1.2
Setting of 16-bit timer ......................................................................................................
Musical Scale Generation.............................................................................................
123
134
135
136
137
6.2
CHAPTER 7
7.1
APPLICATIONS OF WATCH TIMER......................................................................
Watch and LED Display Program................................................................................
143
147
CHAPTER 8
8.1
APPLICATIONS OF SERIAL INTERFACE ............................................................
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 ....................................................................................
Interface with OSD LSI (
μ
PD6451A) ............................................................................
155
185
187
195
208
8.2