Interrupts
7-2
Am186™CC/CH/CU Microcontrollers User’s Manual
The following Am186CH HDLC microcontroller peripherals can generate internal interrupts:
■
Three on-board timers (two of the timers can operate as pulse width modulators)
■
Two UARTs
■
Two HDLC channels
■
Two pairs of transmit/receive SmartDMA channels
■
Four general-purpose DMA channels
The following Am186CU USB microcontroller peripherals can generate internal interrupts:
■
Three on-board timers (two of the timers can operate as pulse width modulators)
■
Two UARTs
■
Two pairs of transmit/receive SmartDMA channels
■
Four general-purpose DMA channels
■
The USB peripheral controller
System configuration determines which of these devices and signals are available as
interrupt sources. In addition to these internal interrupts, nine interrupt signals and eight
PIOs can be configured as external interrupt sources.
An NMI can be generated externally or internally. An external NMI is generated with the
NMI signal. An internal NMI is generated by the microcontroller’s watchdog timer. For more
information on the watchdog timer, see Chapter 11, “Watchdog Timer.”
A trace interrupt is generated with the trace flag (TF bit) in the Processor Status Flags
(FLAGS) register. See Chapter 2, “Configuration Basics.”
Software can also generate interrupts and exceptions. A software interrupt is generated
with the INT or INTO instruction; a software exception is an interrupt resulting from an error
condition after executing any instruction. Software interrupt and exception sources are:
divide error exception, breakpoint interrupt, INTO detected overflow exception, array
bounds exception, unused opcode exception, and ESC opcode exception.
7.2
BLOCK DIAGRAM
Figure 7-1 shows how the microcontroller supports interrupts. The interrupt controller is the
interface between the execution unit and all the peripheral interrupt requests and external
interrupt signals. The watchdog timer can generate an NMI when a time-out value is
reached. Software can determine whether an NMI was generated externally or internally
by reading the RSTFLAG and EXRST bits in the Watchdog Timer Control (WDTCON)
register.
CH
CH
Summary of Contents for Am186 CC
Page 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Page 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Page 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Page 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Page 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Page 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Page 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Page 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Page 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...