cp3cn23 National Semiconductor Corporation, cp3cn23 Datasheet - Page 61

no-image

cp3cn23

Manufacturer Part Number
cp3cn23
Description
Cp3cn23 Reprogrammable Connectivity Processor With Dual Can Interfaces
Manufacturer
National Semiconductor Corporation
Datasheet
13.0 Multi-Input Wake-Up
The Multi-Input Wake-Up (MIWU) unit consists of two iden-
tical 16-channel modules. Each module can assert a wake-
up signal for exiting from a low-power mode, and each can
assert an interrupt request on any of four Interrupt Control
Unit (ICU) channels assigned to that module. The modules
operate independently, so each may assert an interrupt re-
quest to the ICU. Together, these modules provide 32 MIWU
input channels and 8 interrupt request outputs.
Each 16-channel module monitors its inputs for a software-
selectable trigger condition. On detection of a trigger condi-
tion, the module generates an interrupt request and if en-
abled, a wake-up request. A wake-up request can be used
by the power management unit to exit the Halt, Idle, or Pow-
er Save mode and return to the Active mode. An interrupt
request generates an interrupt to the CPU, which allows an
interrupt handler to respond to MIWU events.
The wake-up event only activates the clocks and CPU, but
does not by itself initiate execution of any code. It is the in-
terrupt request asserted by the MIWU that gets the CPU to
start executing code, by jumping to the corresponding inter-
WUI15
WUI0
WUI16
WUI31
WK0EDG
WK1EDG
Figure 9. Multi-Input Wake-Up Module Block Diagram
WK0PND
WK1PND
15
0
15
15
Peripheral Bus
. . . . . . . . . . .
. . . . . . . . . . .
61
WK0IENA
WK1IENA
WK0ENA
WK1ENA
rupt handler. Therefore, setting up the MIWU interrupt han-
dler is essential for any wake-up operation.
Each 16-channel module has four interrupt requests that
can be routed to the ICU as shown in Figure 9. Each of the
16 channels can be programmed to activate one of these
four interrupt requests.
The 32 MIWU channels are named WUI0 through WUI31,
as shown in Table 27.
Each channel can be configured to trigger on rising or falling
edges, as determined by the setting in the WK0EDG or
WK1EDG register. Each trigger event is latched into the
WK0PND or WK1PND register. If a trigger event is enabled
by its respective bit in the WK0ENA or WK1ENA register, an
active wake-up/interrupt signal is generated. Software can
determine which channel has generated the active signal by
reading the WK0PND or WK1PND register.
The MIWU is active at all times, including the Halt mode. All
device clocks are stopped in this mode. Therefore, detecting
an external trigger condition and the subsequent setting of
the pending bit are not synchronous to the System Clock.
0
0
WK0ICTL1/WK0ICTL2
WK1ICTL1/WK1ICTL2
Encoder
4
MIWU Interrupt 3:0
MIWU Interrupt 7:4
Wake-Up Signal
To Power Mgt
DS218
www.national.com

Related parts for cp3cn23