Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
Modules
17.4.1.7 Running a Program
To execute a program on the sensor controller, the program image must first be uploaded to the AUX
RAM by the system CPU or DMA. The sensor controller will be halted from reset, and will not receive
clock.
There are two ways to have the CPU receive a clock and start executing its code:
Write to [AON_WUC:AUXCTL:SCE_RUN_EN]
Write to [AUX_SCE:CTL:CLK_EN]
Using the AON_WUC register bit is necessary if AUX_PD is being powered down or up by the sensor
controller, and the user wants to have the sensor controller restart without interaction from the system
CPU. TI recommends this way of using the sensor controller.
This register bit survives until the device enters shutdown, or there is a system-wide reset.
The AUX_SCE register bit is reset whenever AUX is reset or power-cycled. Otherwise, it has the same
functionality as the AON_WUC register bit.
17.4.1.7.1 Use Case – Periodic Wake Up
A typical use case is to wake up both AUX _PD and the sensor controller periodically, to execute a task
such as SPI or ADC sampling.
This wake up can be achieved, for example, by enabling the RTC channel 2 in continuous-compare mode
and setting it as a wake-up event vector in [AON_EVENT:AUXWUSEL]. When an RTC compare event
occurs on channel 2, this causes AUX to be powered on in active mode.
However, the sensor controller will not start to execute code until one of the four wakeup event vectors
(described in
Sensor Controller Events) are triggered, so RTC channel 2 must also be
set up as a wakeup vector to the sensor controller in [AUX_EVCTL:VECCFG0] and
[AUX_EVCTL:VECCFG1].
During execution, the sensor controller event vector flag must be cleared to prevent it from restarting
again at the same vector after a SLEEP instruction.
When the task is done executing and AUX_PD should power-down, the sensor controller must make a
power-down request to the AON wake-up controller, and be disconnect from the MCU system bus. This
process is described in
Power Management.
The wake-up event must be cleared before powering down to stop AUX from immediately powering on
again. The RTC has a dedicated interface for clearing channel 2, by writing to
[AUX_WUC:WUEVCLR:AON_RTC_CH2].
AUX_PD should not request to power-down until a read of the corresponding wakeup event flag
[AUX_WUC:WUEVFLAGS] reads 0.
17.4.2 GPIO Control
If the sensor controller is controlling GPIOs instead of the MCU domain, the I/O latches must be opened,
or the I/Os will be in an unknown state. This is done through the [AUX_WUC:AUXIOLATCH] register.
17.4.2.1 Event Control
The AUX domain has an event bus where event outputs from many modules are distributed throughout
the module.
These events can trigger a number of actions, both internally in the AUX domain and in the AON and
MCU domains, where events can be further routed through the event fabric.
Examples of these kinds of interactions are:
Trigger a RTC capture when a timer has reached its target
Wake up the MCU domain when an ADC conversion is done
Trigger a DMA transfer when a comparator changes value
1200
AUX – Sensor Controller with Digital and Analog Peripherals
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated