發新話題
打印

关于HCTL2032的问题

关于HCTL2032的问题

by ningliang1111
您好,由於需要我買了一片 HCTL-2032 IC,但是調試了好長的時間都沒有調試好。
我是與 DSP2812 相連的,用來擴展一路 QEP 電路,八根數據線是合 DSP 的數據線相連的,控制線用 DSP 的通用 IO 口來控制,HCTL2032 的輸入晶振手冊上說是 33M,我用的是 DSP 的晶振輸出,輸出為 33.33M,但是 DSP 也是可以輸出為 30M的,這個我可以修改 DSP 的參數來得到。
我讀取數據的程序如下:
    SEL1 = 0; // Select MSB
    SEL2 = 1;
    OE = 0; // Enable OE
    DATA_3 = *ptrMSB; // Fetch the MSB
    SEL1 = 1; // Select 2rd byte
    SEL2 = 1;
    DATA_2 = *ptr2nd; // Fetch the 2rd byte
    SEL1 = 0; // Select 3rd byte
    SEL2 = 0;
    DATA_1 = *ptr3nd; // Fetch the 3rd byte
    SEL1 = 1; // Select LSB
    SEL2 = 0;
    DATA_0 = *ptrLSB; // Fetch the LSB
    OE = 1; // Dis-able OE

我也用示波器測試了 HCTL2032 的輸入管腳的信號,都是正確的輸入信號,但是所有的輸出管腳都沒有信號輸出,數據端口更沒有波形輸出,我開始用的 DSP 的輸出晶振是 33.33,後來改成 30M,也試了好多30M以下的频率,但是均没有数据输出,我
输入的QEP信号频率为1HZ的正交编码脉冲。
调试了几天,都没有结果,我都怀疑芯片是不是好的了
麻烦版主提点意见。。
I connect the HCTL2032 with the DSP2812,the follow imageshow this
  THE code:

    N1 =1;
    EN2 = 0;
    RSTX = 1;

    clk=30Mhz
    void fetch_32(void)
   {   
    /*Fetch 32-bit Data */
    SEL1 = 0; // Select MSB
    SEL2 = 1;
    OE = 0; // Enable OE
    DATA_3 = *ptrMSB; // Fetch the MSB
    SEL1 = 1; // Select 2rd byte
    SEL2 = 1;
    DATA_2 = *ptr2nd; // Fetch the 2rd byte
    SEL1 = 0; // Select 3rd byte
    SEL2 = 0;
    DATA_1 = *ptr3nd; // Fetch the 3rd byte
    SEL1 = 1; // Select LSB
    SEL2 = 0;
    DATA_0 = *ptrLSB; // Fetch the LSB
    OE = 1; // Dis-able OE
}

The problem is the DATA port don't output wave ,andI use the osillograph to  measure the input port ,the wave areall  normal ,but the input singal to the HCTL2032 is only 2.5V,Idon't know this is normal or not.
  Because of it have no signal outputed,I have no idea to do  thenext.



by Sam Lin
I have somesuggestion as below.
1. Please see the HCTL2032’stiming diagrams.
2. You can try another HCTL2032.


by ningliang1111
TodayI debug the HCTL-2032, the DATA port can output wave but the result is notcorrect. I give the ports CHAx and CHBx  QEP signals with a frequency 2HZ,but I read the data with DSP2812, the data almost increase with 100 per second,and it first counter up ,then counter down,and counter up ....counter down.........
for example: 11572->11628->11542->11645->11597->11612...
I couldn't find out  the reason.



by Sam Lin
Could you tell me that Pin 8 and Pin 9 have to connect“High” or “Low” or “floating”?

by ningliang1111
an:  Pin 8 (U/Dx) and Pin 9 (U/Dy)  is "floating "  on my PCB

by Sam Lin
As far as I know,   Pin 8 (U/Dx) and Pin 9 (U/Dy)  are not "floating ".
The datasheet should be to have detailed statement.
U/Dx = UP or DOWN.


by ningliang1111

  On the datasheet the pin 8&9 description likethis:
"This LSTTL-compatible output allowsthe user to determine whether the IC is counting up or down and is intended tobe used with the CNTDEC and CNTCAS outputs. The proper signal U (high level) orD/ (low level) will be present before the rising edge of the CNTDEC and CNTCASoutputs."

I think the pins is just outputpins ,on  the datasheet  we know that it just output a plus totell us the counter is up or down .
Also , at the last page of the datasheet,from the image of the example ,the HCTL2032 also only connect some pins,the pin 8 don'n show on that image.
      As you said,if the pin 8&9 have  to connect somethings ,it wanntconnect what? Because i don't have somethings to  refer.  and onthe web ,the data about HCTL2032 is very little. I feel very puzzled!
     And today ,I have to orderanother piece of HCTL2032, and i will wait few days ,I hope the new chip canmake sense!!
     If you have more suggest or gooddata ,please tell or sent it to me!
   

  Thanks yo give me the  datasheets, But all the data I had see them on your company 's homepage.
     I think I must to think moreabout it.
     Thank you for your help !!



< from Morrihan Avago 產品討論區舊版 2009/6/22 >




TOP

發新話題
最近訪問的版塊