Intel Microcontroller Microscope & Magnifier User Manual


 
8XC196NP, 80C196NU USER’S MANUAL
vi
CHAPTER 6
STANDARD AND PTS INTERRUPTS
6.1 OVERVIEW OF INTERRUPTS...................................................................................... 6-1
6.2 INTERRUPT SIGNALS AND REGISTERS ................................................................... 6-3
6.3 INTERRUPT SOURCES AND PRIORITIES.................................................................. 6-4
6.3.1 Special Interrupts ......................................................................................................6-4
6.3.1.1 Unimplemented Opcode ......................................................................................6-5
6.3.1.2 Software Trap .......................................................................................................6-5
6.3.1.3 NMI .......................................................................................................................6-6
6.3.2 External Interrupt Pins ..............................................................................................6-6
6.3.3 Multiplexed Interrupt Sources ...................................................................................6-6
6.3.4 End-of-PTS Interrupts ...............................................................................................6-6
6.4 INTERRUPT LATENCY................................................................................................. 6-7
6.4.1 Situations that Increase Interrupt Latency ................................................................6-7
6.4.2 Calculating Latency ...................................................................................................6-8
6.4.2.1 Standard Interrupt Latency ...................................................................................6-8
6.4.2.2 PTS Interrupt Latency ..........................................................................................6-9
6.5 PROGRAMMING THE INTERRUPTS......................................................................... 6-10
6.5.1 Programming Considerations for Multiplexed Interrupts .........................................6-11
6.5.2 Modifying Interrupt Priorities ...................................................................................6-13
6.5.3 Determining the Source of an Interrupt ...................................................................6-15
6.6 INITIALIZING THE PTS CONTROL BLOCKS............................................................. 6-17
6.6.1 Specifying the PTS Count .......................................................................................6-18
6.6.2 Selecting the PTS Mode .........................................................................................6-19
6.6.3 Single Transfer Mode ..............................................................................................6-20
6.6.4 Block Transfer Mode ...............................................................................................6-23
6.6.5 PWM Modes ...........................................................................................................6-26
6.6.5.1 PWM Toggle Mode Example .............................................................................6-27
6.6.5.2 PWM Remap Mode Example .............................................................................6-32
CHAPTER 7
I/O PORTS
7.1 I/O PORTS OVERVIEW ................................................................................................ 7-1
7.2 BIDIRECTIONAL PORTS 1–4....................................................................................... 7-1
7.2.1 Bidirectional Port Operation ......................................................................................7-3
7.2.2 Bidirectional Port Pin Configurations .........................................................................7-7
7.2.3 Bidirectional Port Pin Configuration Example ...........................................................7-8
7.2.4 Bidirectional Port Considerations ..............................................................................7-9
7.2.5 Design Considerations for External Interrupt Inputs ...............................................7-11
7.3 EPORT ........................................................................................................................ 7-11
7.3.1 EPORT Operation ...................................................................................................7-12
7.3.1.1 Reset ..................................................................................................................7-14
7.3.1.2 Output Enable ....................................................................................................7-14
7.3.1.3 Complementary Output Mode ............................................................................7-14