- ii -
CHAPTER 6
8-BIT TIMER/EVENT COUNTER APPLICATION........................................................... 101
6.1
SETTING THE INTERVAL TIMER ......................................................................... 106
6.1.1
Setting an 8-Bit Timer ................................................................................ 107
6.1.2
Setting the 16-Bit Timer ............................................................................. 109
6.2
MUSICAL SCALE GENERATION........................................................................... 111
CHAPTER 7
WATCH TIMER APPLICATION ....................................................................................... 117
7.1
WATCH AND LED DISPLAY PROGRAM .............................................................. 119
CHAPTER 8
SERIAL INTERFACE APPLICATION ............................................................................. 127
8.1
INTERFACING WITH EEPROM
TM
(
μ
PD6252) ...................................................... 141
8.1.1
Communication in the 2-Wire Serial I/O Mode ......................................... 143
INTERFACING WITH THE OSD LSI (
μ
PD6451A) ................................................ 153
SBI MODE INTERFACE ......................................................................................... 158
8.2
8.3
8.3.1
Application as a Master CPU .................................................................... 160
8.3.2
Application as a Slave CPU....................................................................... 169
8.4
3-WIRE SERIAL I/O MODE INTERFACE .............................................................. 173
8.4.1
Application as a Master CPU .................................................................... 174
8.4.2
Application as a Slave CPU....................................................................... 178
8.5
HALF-DUPLEX ASYNCHRONOUS COMMUNICATION....................................... 182
8.5.1
Half-Duplex Asynchronous Communication of the 3-Wire Mode............. 182
8.5.2
Half-Duplex Asynchronous Communication in the SBI Mode.................. 197
CHAPTER 9
A/D CONVERTER APPLICATION................................................................................... 215
9.1
LEVEL METER ........................................................................................................ 220
9.2
THERMOMETER..................................................................................................... 229
9.3
ANALOG KEY INPUT.............................................................................................. 239
9.4
4-CHANNEL INPUT A/D CONVERSION ............................................................... 245
CHAPTER 10 APPLICATIONS OF FIP CONTROLLER/DRIVER ......................................................... 249
10.1 12-DIGIT DISPLAY FOR FIP AND KEY INPUT .................................................... 262
10.1.1 12-Digit FIP Display ................................................................................... 263
10.1.2 Key Input .................................................................................................... 266
10.1.3 Description of Package .............................................................................. 268
10.1.4 Example of Use .......................................................................................... 270
10.1.5 SPD Chart .................................................................................................. 272
10.1.6 Program Listing .......................................................................................... 273