参数资料
型号: HCTL-2022
元件分类: 通用总线功能
英文描述: Quadrature Decoder/Counter Interface ICs
中文描述: 正交解码器/计数器接口芯片
文件页数: 19/20页
文件大小: 302K
代理商: HCTL-2022
19
Figure 18 Cont. Typical Program for Reading HCTL-2032 with Atmel AVR
ACTIONS
1. At first, Port B4, B5, and B6 are setup for 4X encoding and X/Y axis selection.
2. The HCTL-2032 detects that OE/ are low on the next falling edge of the CLK and asserts the internal inhibit signal. Data
can be read without regard for the phase of the CLK.
3. SEL1 and SEL2 are setup to select the appropriate bytes. The "Get_hi" subroutine is called and the data is read into the
AVR.
4. Step 3 is repeated by changing the SEL1 and SEL2 combinations and specific subroutine is called to read in the
appropriate data.
5. The HCTL-2032 detects OE/ high on the next falling edge of the CLK. The program set OE/ high by writing the correct
value to the respective Port. This causes the data lines to be tristated. On the next rising CLK edge new data is transferred
from the counter to the position data latch.
6. For displaying purposes, the data is arranged in 32-bit data by shifting the MSB to the left through multiplication.
Get_2nd:
2nd_old = Pina 'Get current data
2nd_new = Pina 'Get 2nd Data
If 2nd_new = 2nd_old Then
Result_2nd = 2nd_new 'Get stable data
Return
Else
Goto Get_2nd
End If
Get_3rd:
3rd_old = Pina 'Get current data
3rd_new = Pina 'Get 2nd Data
If 3rd_new = 3rd_old Then
Result_3rd = 3rd_new 'Get stable data
Return
Else
Goto Get_3rd
End If
Get_lo:
Lo_old = Pina 'Get current data
Lo_new = Pina 'Get 2nd Data
If Lo_new = Lo_old Then
Result_lo = Lo_new 'Get stable data
Return
Else
Goto Get_lo
End If
相关PDF资料
PDF描述
HCTL-2032 Quadrature Decoder/Counter Interface ICs
HCTL-2032-SC Quadrature Decoder/Counter Interface ICs
HCTS00D Radiation Hardened Quad 2-Input NAND Gate
HCTS00HMSR Radiation Hardened Quad 2-Input NAND Gate
HCTS00DMSR Radiation Hardened Quad 2-Input NAND Gate
相关代理商/技术参数
参数描述
HCTL-2032 功能描述:接口 - 专用 Decoder/Counter RoHS:否 制造商:Texas Instruments 产品类型:1080p60 Image Sensor Receiver 工作电源电压:1.8 V 电源电流:89 mA 最大功率耗散: 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:BGA-59
HCTL-2032-SC 功能描述:接口 - 专用 Decoder/Counter RoHS:否 制造商:Texas Instruments 产品类型:1080p60 Image Sensor Receiver 工作电源电压:1.8 V 电源电流:89 mA 最大功率耗散: 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:BGA-59
HCTL-2032-SCT 制造商:Avago Technologies 功能描述:QUADRATURE DECODER/ COUNTER INTRFC IC 32PIN - Tape and Reel
HCT-L-R5A 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
HCT-L-R5B 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic