© Semtech 2005 www.semtech.com
18
XE3005/XE3006
• On-time (7:0): Time until wakeup. The number of sequential samples that have to be higher than the Reference for
the power down signal to become inactive. The Sandman™ function is disabled (SMAD or SMDA at logic 1) if this
parameter is zero. The ADC and DAC have one common On-time value.
All these parameters are set in the registers L, M, N, O and P.
Reference(7:0) On-time(7:0) Off-time(15:0) Sandman (SMAD or SMDA) Comments
0 don’t care don’t care logic 1 (disable function) Sandman disable
don’t care 0 don’t care logic 1 (disable function) Sandman disable
don’t care don’t care 0 logic 1 (disable function) Sandman disable
1.-.255
corresponds to
128.-.32640
1.-.255
corresponds to
50 µs – 12 ms
1 - 65535
corresponds to
50 µs - 3.2 sec
logic 1 (signal higher than ref)
logic 0 (signal lower than ref)
all registers ≠ zero
time for FSYNC =
20kHz
The reference (7:0) value is related to the absolute value of the 16 bits input signal. The following format is used for the
comparison:
• 16 bit inputs data (2’s-complement) : 0111’1111’1111’1111 = 0x7FFF max positive value
• 8 bit reference (unsigned) : 0111’1111’1000’0000 = 0xFF00/2 reference max
So the reference is compared to the 8 most significant bits of the absolute value of the input signal:
reference(7:0) Absolute reference AIN (mV) if gain = 4 AIN (mV) if gain = 20
0 0 0.00 0.00
1 128 1.10 0.27
2 256 2.20 0.55
M M M M
255
255 × 128 = 32640
280 70
The values in this table are amplitude values, RMS values can be derived by dividing the numbers by √2.
The working mechanism of the Sandman™ function is the following:
The incoming data is compared to the reference after each time step (1/FSYNC = 50µs if FSYNC = 20kHz).
• During the On-time phase
If the input data is higher than the reference, a counter will be incremented otherwise the counter is reset.
When the counter reaches the On-time value, then the SMAD or SMDA signal is activated (high level).
• During the Off-time phase
If the input data is lower than the reference, a counter will be incremented otherwise the counter is reset.
When the counter reaches the Off-time value, then the SMAD or SMDA signal is deactivated (low level).
In a first approximation, the following points are recommended:
• On-time at least 1ms. If the On-time is shorter than 1 ms, the Sandman™ function becomes sensitive to spikes in
the audio input signal AIN.
• Off-time at least 10ms, the Off-time should be longer than 1/f
min
= 10ms, (code = 200). f
min
is the minimum audio
frequency = 100Hz if FSYNC = 20kHz. The value of f
min
scales proportionally with the sampling frequency FSYNC. A
high-pass filter in the ADC filters out signals below 100Hz.
• Reference should be adjusted just above the noise level.