HCTL-2022 Avago Technologies US Inc., HCTL-2022 Datasheet - Page 19

QUADRATURE DECODER/COUNTER INTER

HCTL-2022

Manufacturer Part Number
HCTL-2022
Description
QUADRATURE DECODER/COUNTER INTER
Manufacturer
Avago Technologies US Inc.
Type
Quadrature Decoder/ Counter Interface ICr
Datasheet

Specifications of HCTL-2022

Package / Case
20-DIP (0.300", 7.62mm)
Mounting Type
Through Hole
Voltage - Supply
4.5 V ~ 5.5 V
Applications
Encoder to Microprocessor
Interface
8-Bit Tristate
Maximum Operating Temperature
+ 100 C
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
Q2414340A

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HCTL-2022
Manufacturer:
AVAGO
Quantity:
1 340
9
Set Portb.4
Reset Portb.5
Reset Portb.6
Result_new = 0
Result_old_x = 0
Result_old_y = 0
Do
Temp = Result_2nd * Mult
Result = 32-bits Count Data
Loop
Figure 18. Typical Program for Reading HCTL-2032 with Atmel AVR
Waitms 25
Waitms 25
Temp = Result_lo * Mult
Temp = Result_3rd * Mult
Temp = Result_hi * Mult
Set Portb.0
Reset Portb.1
Set Portb.3
Reset Portb.0
Gosub Get_hi
Set Portb.1
Set Portb.3
Gosub Get_2nd
Reset Portb.1
Reset Portb.3
Gosub Get_3rd
Set Portb.1
Reset Portb.3
Gosub Get_lo
Set Portb.0
Mult = 1
Result = Temp
Mult = Mult * 256
Result = Result + Temp
Mult = Mult * 256
Result = Result + Temp
Mult = Mult * 256
Result = Result + Temp
‘EN1=1
‘EN2=0
‘Select X-axis
‘Disable OE
‘SEL2=1 (MSB)
‘SEL1=1 (2nd Byte)
‘SEL2=1 (2nd Byte)
‘SEL1=1 (LSB)
‘Disable OE
‘Get MSB
‘Get LSB
‘SEL1=0 (MSB)
‘Enable OE
‘SEL1=0 (3rd Byte)
‘SEL2=0 (3rd Byte)
‘SEL2=0 (LSB)
‘Get 3rd Byte
‘Get 2nd Byte
‘Assign LSB
‘Assign 2nd Byte
‘Assign MSB
‘Assign 3rd Byte

Related parts for HCTL-2022