English
Language : 

CP3BT10 Datasheet, PDF (61/210 Pages) National Semiconductor (TI) – Reprogrammable Connectivity Processor with Bluetooth and USB Interfaces
13.0 Multi-Input Wake-Up
The Multi-Input Wake-Up Unit (MIWU) monitors its 16 input
channels for a software-selectable trigger condition. On de-
tection of a trigger condition, the module generates an inter-
rupt request and if enabled, a wake-up request. A wake-up
request can be used by the power management unit to exit
the Halt, Idle, or Power Save mode and return to the active
mode. An interrupt request generates an interrupt to the
CPU (interrupt IRQ2–IRQ5), which allows an interrupt han-
dler to respond to MIWU events.
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.
13.1 MULTI-INPUT WAKE-UP REGISTERS
Table 29 lists the MIWU unit registers.
Table 29 Multi-Input Wake-Up Registers
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 associated with the MIWU that gets the CPU
to start executing code, by jumping to the corresponding in-
terrupt handler. Therefore, setting up the MIWU interrupt
handler is essential for any wake-up operation.
There are four interrupt requests that can be routed to the
ICU as shown in Figure 10. Each of the 16 MIWU channels
can be programmed to activate one of these four interrupt
requests.
The MIWU channels are named WUI0 through WUI15, as
shown in Table 28.
Table 28 MIWU Sources
Name
WKEDG
WKENA
WKIENA
WKICTL1
WKICTL2
Address
FF FC80h
FF FC82h
FF FC8Ch
FF FC84h
FF FC86h
Description
Wake-Up Edge
Detection Register
Wake-Up Enable
Register
Wake-Up Interrupt
Enable Register
Wake-Up Interrupt
Control Register 1
Wake-Up Interrupt
Control Register 2
MIWU Channel
WUI0
WUI1
Source
TWM-T0OUT
ACCESS.bus
WKPND
WKPCL
FF FC88h
FF FC8Ah
Wake-Up Pending
Register
Wake-Up Pending
Clear Register
WUI2
WUI3
WUI4
WUI5
WUI6
Reserved
MWCS
CTS
RXD
Bluetooth LLC
13.1.1 Wake-Up Edge Detection Register (WKEDG)
The WKEDG register is a word-wide read/write register that
controls the edge sensitivity of the MIWU channels. The
WKEDG register is cleared upon reset, which configures all
channels to be triggered on rising edges. The register for-
mat is shown below.
WUI7
AAI SFS
15
0
WUI8
USB Wake-Up
WKED
WUI9
PI6
WUI10
WUI11
WUI12
WUI13
WUI14
WUI15
PG0
PG1
PG2
PG3
PG6
PG7
WKED
The Wake-Up Edge Detection bits control the
edge sensitivity for MIWU channels. The
WKED15:0 bits correspond to the WUI[15:0]
channels, respectively.
0 – Triggered on rising edge (low-to-high
transition).
1 – Triggered on falling edge (high-to-low
transition).
Each channel can be configured to trigger on rising or falling
edges, as determined by the setting in the WKEDG register.
Each trigger event is latched into the WKPND register. If a
trigger event is enabled by its respective bit in the WKENA
register, an active wake-up/interrupt signal is generated.
Software can determine which channel has generated the
active signal by reading the WKPND register.
61
www.national.com