Intel 8XC196NT User Manual page 7

Table of Contents

Advertisement

8XC196NT USER'S MANUAL
CHAPTER 5
5.1
OVERVIEW OF INTERRUPTS...................................................................................... 5-1
5.2
INTERRUPT SIGNALS AND REGISTERS ................................................................... 5-3
5.3
INTERRUPT SOURCES AND PRIORITIES.................................................................. 5-4
5.3.1
Special Interrupts ......................................................................................................5-6
5.3.1.1
Unimplemented Opcode ......................................................................................5-6
5.3.1.2
Software Trap .......................................................................................................5-6
5.3.1.3
NMI .......................................................................................................................5-6
5.3.2
External Interrupt Pins ..............................................................................................5-6
5.3.3
Multiplexed Interrupt Sources ...................................................................................5-7
5.3.4
End-of-PTS Interrupts ...............................................................................................5-7
5.4
INTERRUPT LATENCY................................................................................................. 5-7
5.4.1
Situations that Increase Interrupt Latency ................................................................5-8
5.4.2
Calculating Latency ...................................................................................................5-8
5.4.2.1
Standard Interrupt Latency ...................................................................................5-9
5.4.2.2
PTS Interrupt Latency ..........................................................................................5-9
5.5
PROGRAMMING THE INTERRUPTS......................................................................... 5-10
5.5.1
Programming the Multiplexed Interrupts .................................................................5-11
5.5.2
Modifying Interrupt Priorities ...................................................................................5-14
5.5.3
Determining the Source of an Interrupt ...................................................................5-16
5.5.3.1
Determining the Source of Multiplexed Interrupts ..............................................5-16
5.6
INITIALIZING THE PTS CONTROL BLOCKS............................................................. 5-18
5.6.1
Specifying the PTS Count .......................................................................................5-19
5.6.2
Selecting the PTS Mode .........................................................................................5-20
5.6.3
Single Transfer Mode ..............................................................................................5-21
5.6.4
Block Transfer Mode ...............................................................................................5-24
5.6.5
A/D Scan Mode .......................................................................................................5-26
5.6.5.1
A/D Scan Mode Cycles ......................................................................................5-29
5.6.5.2
A/D Scan Mode Example 1 ................................................................................5-29
5.6.5.3
A/D Scan Mode Example 2 ................................................................................5-30
5.6.6
PWM Modes ...........................................................................................................5-31
5.6.6.1
PWM Toggle Mode Example .............................................................................5-33
5.6.6.2
PWM Remap Mode Example .............................................................................5-37
CHAPTER 6
6.1
I/O PORTS OVERVIEW ................................................................................................ 6-1
6.2
INPUT-ONLY PORT 0 ................................................................................................... 6-1
6.2.1
Standard Input-only Port Operation ..........................................................................6-2
6.2.2
Standard Input-only Port Considerations ..................................................................6-3
6.3
BIDIRECTIONAL PORTS 1, 2, 5, AND 6 ...................................................................... 6-3
6.3.1
Bidirectional Port Operation ......................................................................................6-5
6.3.2
Bidirectional Port Pin Configurations .........................................................................6-9
vi

Advertisement

Table of Contents
loading

Table of Contents