ATAM894X-TNQY ATMEL [ATMEL Corporation], ATAM894X-TNQY Datasheet - Page 77

no-image

ATAM894X-TNQY

Manufacturer Part Number
ATAM894X-TNQY
Description
8k-flash Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
4679D–4BMCU–05/05
Combination Mode 8: Manchester Demodulation/Pulse-width Demodulation
SSI mode 1:
Timer 3 mode 10:
For Manchester demodulation, the edge detection stage must be programmed to detect each
edge at the input. These edges are evaluated by the demodulator stage. The timer stage is used
to generate the shift clock for the SSI. A compare register 1 match event defines the correct
moment for shifting the state from the input T3I as the decoded bit into the shift register. After
that, the demodulator waits for the next edge to synchronize the timer by a reset for the next bit.
The compare register 2 can be used to detect a time error and handle it with an interrupt routine.
Before activating the demodulator mode the timer and the demodulator stage must be synchro-
nized with the bit-stream. The Manchester code timing consists of parts with the half bit-length
and the complete bit-length. A synchronization routine must start the demodulator after an inter-
val with the complete bit-length.
The counter can be driven by any internal clock source. The output T3O can be used by Timer 2
in this mode. The Manchester decoder can also be used for pulse-width demodulation. The input
must programmed to detect the positive edge. The demodulator and timer must be synchronized
with the leading edge of the pulse. After that a counter match with the compare register 1 shifts
the state at the input T3I into the shift register. The next positive edge at the input restarts the
timer.
Figure 6-57. Manchester Demodulation
CM31 = SCI
SR-DATA
Timer 3
T3EX
mode
T3I
SI
Synchronize
8-bit shift register internal data input (SI) and the internal shift clock
(SCI) from the Timer 3
Manchester demodulation/pulse-width demodulation with Timer 3
1
0
BIT 0
1
1
BIT 1
1
1
Manchester demodulation mode
BIT 2
1
1
0
BIT 3
0
0
BIT 4
0
BIT 5
1
1
ATAM894
BIT 6
1
1
0
0
77

Related parts for ATAM894X-TNQY