Table of Contents (Continued)
15.2.1 Programmable Gain Amplifier Settling Time ................................................................................... 52
15.2.2 Programmable Gain Amplifier Offset Calibration ............................................................................. 53
15.2.3 Trimming the Offset on the Programmable Gain Amplifier ............................................................. 53
15.3 A/D OPERATION ................................................................................................................................... 54
15.3.1 Prescaler .......................................................................................................................................... 54
15.4 ANALOG INPUT AND SOURCE RESISTANCE CONSIDERATIONS .................................................. 54
16.0 Temperature Sensor ................................................................................................................................. 55
16.1 GENERAL DESCRIPTION .................................................................................................................... 55
16.2 OPERATION .......................................................................................................................................... 55
16.2.1 Procedure for Reading the Temperature Sensor Voltage ............................................................... 55
17.0 Stand-Alone Amplifier ............................................................................................................................... 56
17.1 BLOCK DIAGRAM ................................................................................................................................ 56
18.0 Interrupts .................................................................................................................................................. 57
18.1 INTRODUCTION ................................................................................................................................... 57
18.2 MASKABLE INTERRUPTS ................................................................................................................... 57
18.3 VIS INSTRUCTION ............................................................................................................................... 58
18.3.1 VIS Execution .................................................................................................................................. 59
18.4 NON-MASKABLE INTERRUPT ............................................................................................................ 60
18.4.1 Pending Flag .................................................................................................................................... 60
18.4.2 Software Trap .................................................................................................................................. 60
18.4.2.1 Programming Example: External Interrupt ................................................................................. 61
18.5 PORT L INTERRUPTS .......................................................................................................................... 62
18.6 INTERRUPT SUMMARY ....................................................................................................................... 62
19.0 WATCHDOG/Clock Monitor ..................................................................................................................... 62
19.1 CLOCK MONITOR ................................................................................................................................ 63
19.2 WATCHDOG/CLOCK MONITOR OPERATION .................................................................................... 63
19.3 WATCHDOG AND CLOCK MONITOR SUMMARY .............................................................................. 63
19.4 DETECTION OF ILLEGAL CONDITIONS ............................................................................................ 64
20.0 MICROWIRE/PLUS .................................................................................................................................. 64
20.1 MICROWIRE/PLUS OPERATION ......................................................................................................... 65
20.1.1 MICROWIRE/PLUS Master Mode Operation .................................................................................. 65
20.1.2 MICROWIRE/PLUS Slave Mode Operation .................................................................................... 65
20.1.2.1 Alternate SK Phase Operation and SK Idle Polarity ................................................................. 65
21.0 Memory Map ............................................................................................................................................ 68
22.0 Instruction Set .......................................................................................................................................... 69
22.1 INTRODUCTION ................................................................................................................................... 69
22.2 INSTRUCTION FEATURES .................................................................................................................. 69
22.3 ADDRESSING MODES ......................................................................................................................... 69
22.3.1 Operand Addressing Modes ............................................................................................................ 69
22.3.2 Tranfer-of-Control Addressing Modes .............................................................................................. 70
22.4 INSTRUCTION TYPES ......................................................................................................................... 71
22.4.1 Arithmetic Instructions ...................................................................................................................... 71
22.4.2 Transfer-of-Control Instructions ....................................................................................................... 71
22.4.3 Load and Exchange Instructions ..................................................................................................... 71
22.4.4 Logical Instructions .......................................................................................................................... 71
22.4.5 Accumulator Bit Manipulation Instructions ....................................................................................... 71
22.4.6 Stack Control Instructions ................................................................................................................ 71
22.4.7 Memory Bit Manipulation Instructions ............................................................................................. 71
22.4.8 Conditional Instructions ................................................................................................................... 71
22.4.9 No-Operation Instruction .................................................................................................................. 72
22.5 REGISTER AND SYMBOL DEFINITION .............................................................................................. 72
22.6 INSTRUCTION SET SUMMARY .......................................................................................................... 73
22.7 INSTRUCTION EXECUTION TIME ...................................................................................................... 74
23.0 Development Support .............................................................................................................................. 77
23.1 TOOLS ORDERING NUMBERS FOR THE COP8S/C/A FLASH FAMILY DEVICES .......................... 77
23.2 COP8 TOOLS OVERVIEW ................................................................................................................... 79
23.3 WHERE TO GET TOOLS ..................................................................................................................... 80
24.0 Revision History ....................................................................................................................................... 81
25.0 Physical Dimensions ................................................................................................................................ 82
5
www.national.com