- CONTENTS -
1. OVERVIEW...........................................................................................................................................1
1.1. FEATURES..........................................................................................................................................1
1.2. BLOCK DIAGRAM..............................................................................................................................2
1.3. PIN ASSIGNMENT ..............................................................................................................................3
1.4. PACKAGE DIMENSION .....................................................................................................................4
1.5. PIN DESCRIPTION..............................................................................................................................5
2. FUNCTIONS..........................................................................................................................................7
2.1. REGISTERS.........................................................................................................................................7
2.1.1. A - Register....................................................................................................................................8
2.1.2. X- Register.....................................................................................................................................8
2.1.3. Y- Register.....................................................................................................................................8
2.1.4. Stack Pointer .................................................................................................................................8
2.1.5. Program Counter.........................................................................................................................10
2.1.6. Program Status Word...................................................................................................................10
2.2. MEMORY SPACE..............................................................................................................................12
2.2.1. RAM area....................................................................................................................................12
2.2.2. Peripheral Register area..............................................................................................................12
2.2.3. Progr a m ROM area.....................................................................................................................12
2.2.4. Peripheral Register List ...............................................................................................................14
2.3. CLOCK GENERATION CIRCUIT.....................................................................................................16
2.3.1. Oscillation Circuit .......................................................................................................................16
2.3.2. Prescaler.....................................................................................................................................17
2.4. BASIC INTERVAL TIMER................................................................................................................18
2.4.1. Control of Basic Interval Timer....................................................................................................18
2.5. WATCH DOG TIMER........................................................................................................................ 19
2.5.1. Control of Watch Dog Timer........................................................................................................19
2.5.2. The output of WDT signal.............................................................................................................20
2.6. TIMER................................................................................................................................................21
2.6.1. Control of Timer .......................................................................................................................... 23
2.6.2. Interval Timer..............................................................................................................................24
2.6.3. Event Counter..............................................................................................................................24
2.6.4. Pulse Output................................................................................................................................ 24
2.6.5. Input Capture...............................................................................................................................24
2.7. EX TERNA L INTERRUPT..................................................................................................................26
2.8. A/D CONVERTER ............................................................................................................................. 27
2.8.1. Control of A/D Converter.............................................................................................................27
2.9. SERIAL I/O........................................................................................................................................29
2.9.1. Data Transmission/Receiving Timing...........................................................................................31
2.9.2. The Serial I/O operation by Srdy pin ............................................................................................ 31
2.9.3. The method of Serial I/O..............................................................................................................32
2.9.4. The Method to Test Correct Transmission with S/W......................................................................32
2.10. PWM ................................................................................................................................................33
2.10.1. Controls of PWM ....................................................................................................................... 33
2.11. BUZZER DRIVER............................................................................................................................35
2.11.1. Buzzer Driver Operation............................................................................................................36
2.12. INTERRUPTS...................................................................................................................................37
2.12.1. Interrupt Circuit Configuration and Kinds ..................................................................................37
2.12.2. Interrupt Control........................................................................................................................38
2.12.3. Interrupt Priority ..................................................................................................... ..................39