Reference Manual
SLEEP AND WAKE-UP TIMER
2. Set the TMRCON register, Bit 0 to enable the timer wake-up
function.
3. Set the AFE PWRMOD register, Bits[3:1] and the SEQSLP-
LOCK register to 0xA47E5 to enable the sequencer to trigger
sleep.
4. Set the final sequence in the CON register, Bits[3:1]. If only one
sequence is used, select that sequence.
5. Write the sleep time and wake-up time to the SEQxSLEEPH,
SEQxSLEEPL, SEQxWUPH, and SEQxWUPL registers.
6. Use the SEQORDER register to configure the order in which
sequences are triggered.
7. Write 1 to the CON register, Bit 0, to enable the timer.
When Bit 0 of the CON register = 1, the timer loads the values from
the SEQxWUPH and SEQxWUPL registers and begins counting
down. When the timer reaches zero, the device wakes up and
executes sequences in the order specified in the SEQORDER reg-
SLEEP AND WAKE-UP TIMER REGISTERS
Table 180. Sleep and Wake-Up Timer Registers Summary
Address
Name
0x400C0800
CON
0x400C0804
SEQORDER
0x400C0808
SEQ0WUPL
0x400C0818
SEQ1WUPL
0x400C0828
SEQ2WUPL
0x400C0838
SEQ3WUPL
0x400C080C
SEQ0WUPH
0x400C081C
SEQ1WUPH
0x400C082C
SEQ2WUPH
0x400C083C
SEQ3WUPH
0x400C0810
SEQ0SLEEPL
0x400C0820
SEQ1SLEEPL
0x400C0830
SEQ2SLEEPL
0x400C0840
SEQ3SLEEPL
0x400C0814
SEQ0SLEEPH
0x400C0824
SEQ1SLEEPH
0x400C0834
SEQ2SLEEPH
0x400C0844
SEQ3SLEEPH
0x400C0A1C
TMRCON
Timer Control Register
Address: 0x400C0800, Reset: 0x0000, Name: CON
The CON register is the wake-up timer control register.
Table 181. Bit Descriptions for CON Register
Bits
Bit Name
Settings
[15:7]
Reserved
6
MSKTRG
analog.com
Description
Timer control register
Order control register
Sequence 0 wake-up time register (LSB)
Sequence 1 wake-up time register (LSB)
Sequence 2 wake-up time register (LSB)
Sequence 3 wake-up time register (LSB)
Sequence 0 wake-up time register (MSB)
Sequence 1 wake-up time register (MSB)
Sequence 2 wake-up time register (MSB)
Sequence 3 wake-up time register (MSB)
Sequence 0 sleep time register (LSB)
Sequence 1 sleep time register (LSB)
Sequence 2 sleep time register (LSB))
Sequence 3 sleep time register (LSB)
Sequence 0 sleep time register (MSB)
Sequence 1 sleep time register (MSB)
Sequence 2 sleep time register (MSB)
Sequence 3 sleep time register (MSB)
Timer wake-up configuration register
Description
Reserved.
Mask Sequence Trigger From Sleep and Wake-Up Timer. This bit masks the sequence trigger from
the sleep and wake-up timer. When the trigger is masked, it does not go to the sequencer.
ister, Bits[1:0]. The timer loads the values from the SEQxSLEEPH
and SEQxSLEEPL registers and begins counting down again when
the sequencer is running. When the timer elapses, the ADuCM356
returns to sleep mode if the TMRCON register, Bit 0 = 1. If the AFE
PWRMOD register, Bit 3 = 1, the ADuCM356 returns to sleep mode
at the end of the last sequence.
The maximum hibernate time is 32 seconds when using the internal
32 kHz oscillator.
To calculate the code for the SEQxWUPx and SEQxSLEEPx regis-
ters, use the following equation:
Code = ClkFreq × Time
where:
Code is the code value for the SEQxWUPx register.
ClkFreq is the frequency of the internal oscillator in Hz.
Time is the required timeout duration in seconds.
ADuCM356
Reset
Access
0x0000
R/W
0x0000
R/W
0xFFFF
R/W
0xFFFF
R/W
0xFFFF
R/W
0xFFFF
R/W
0x000F
R/W
0x000F
R/W
0x000F
R/W
0x000F
R/W
0xFFFF
R/W
0xFFFF
R/W
0xFFFF
R/W
0xFFFF
R/W
0x000F
R/W
0x000F
R/W
0x000F
R/W
0x000F
R/W
0x0000
R/W
Reset
Access
0x0
R
0x0
R/W
Rev. A | 144 of 312
Need help?
Do you have a question about the ADuCM356 and is the answer not in the manual?
Questions and answers