Interfacing the HCTL-2032 to an Atmel AVR 90S8535
The circuit shown in Figure 17 shows the connections between an HCTL-2032 and an Atmel AVR
controller. Data lines D0-D7 are connected to the Atmel AVR bus port. The 8 MHz oscillators clock
the Atmel AVR, whereas the external 33 MHz oscillators clock the HCTL-2032. Figure 18 illustrates
the program that interfaces with an Atmel AVR 90S8535.
R= 2 .7 k OHM
+ 5 v
R
R
R
5
CHB
CHBX
4
V CC
CHA
CHI
D0
D1
D2
P A0
P A1
P A2
3
CHAX
CHIX
2
1
GND
D3
D4
D5
P A3
P A4
P A5
D6
D7
S EL1
P A6
P A7
P B1
R= 2 .7 k OHM
+ 5 v
S EL2
P B3
EN1
EN2
OE
RS TX
RS TY
P B4
P B5
P B0
P B2
P C7
R
R
R
5
CHB
CHBY
4
V CC
CHA
CHI
3
X/ Y
P B6
CHAY
CHIY
2
1
GND
HCTL2 03 2
AT9 0S 8 5 3 5
Figure 17. An HCTL-2032-to-Atmel AVR Interface
17