
98
4958B–AUTO–11/10
Atmel ATA6285/ATA6286 [Preliminary]
3.13.6.7
Mode 7: Modulator Mode with SSI and Modulator Output T2O2 at the PD6 Pin
The Timer2/Counter2 can be supplied with internal/external clocks. Mode 7 uses only one mod-
ulator I/O pin (SO --> T2O2). The port pins (PD5, PD7) can be used as general digital I/O. The
timer output clock (CLK
T2) can be used to supply the SSI with shift clock. Together with the con-
tinuous serial data stream generated by Synchronous Serial Interface (SSI) the modulator mode
7 of the timer allows the generation of Biphase code, Manchester code or PWM code.
Figure3-43 shows an example of PWM code generation.
Figure 3-43. Modulator Mode and Modulator Output at the T2O2 Pin, Timing Diagram
PWM Code:
Standard practice dictates a 2/3, 1/3 format (of the overall bit period).
Each bit comprise High and a Low in a 2/3, 1/3 - partition.
In the same moment the 8-bit Shift register (SR) is loaded with the T2MDR (TXD) data the first
bit (MSB) will appear at T202 output pin
3.13.6.8
Mode 8/9: Transmit Mode with SSI and Modulator Outputs T2O1/T2O2 at the PD5/PD6 Pins
The Timer2/Counter2 can be supplied with internal/external clocks. Mode 8/9 uses two modula-
tor I/O pins (SO --> T2O1 and SCLK --> T2O2 in mode 8 and SCLK --> T2O1 and SO --> T2O2
in mode 9). The port pin PD7 can be used as general digital I/O. The timer output clock (CLK
T2)
can be used to supply the SSI with a shift clock. The transmit mode of the timer allows a SSI
synchronous data transfer between the ATA6289 and peripheral devices. The data is always
shifted from Master (SSI) to Slave on the Serial data Output line (SO), synchronized to either the
rising or falling edge of the shift clock output line (SCLK). Serial data is organized in 8-bit tele-
grams which are shifted with the most significant bit (MSB) first to the serial data output line
0xB4
0x49
0x9B
T2MDR
(TXD)
PMW coded
bit stream
Load 8-bit Shift
Register (SR)
T2SSIE
Shifted Value of 8-bit
Shift Register (SR)
T202
SCLK
CLKT2
Bit 3 = ’1’
Bit 2 = ’0’
Bit 4 = ’1’
Bit 6 = ’0’
Bit 7 = ’1’
Bit 5 = ’0’
Bit 1 = ’0’
Bit 0 = ’1’
0xB0
0xD8
0x6C
0x36
0x9B
0x68
0x80
0x40
0xD0
0xA0
0xB4
0x80
0x24
0x40
0x20
0x48
0x90
0x60
0x92
0x49
0xC0
0x80