Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Interface LS7166 (Quadrature Counter) to USB-6009

I'm interested in using a LS7166 counter timer with a USB-6009 DAQ.

 

Currently, my code can write the required programming sequences and will read manually generated bytes of data.  However, the LS7166 seems perfectly content to ignore my pleads to communicate.  I'd like to know if anyone else in this community has had any experience with this chip or its cousin, the LS266R1.

 

 

I am open to suggestions.  If anyone has related code, please post in this thread.  I am so stuck I would happily Paypal 20 bucks to the first individual who can generate code and a hardware schematic to get these devices to behave correctly.  (As a side note, this is a hobbyist controls project, not a school/college assignment).

 

 

Hardware interface:

I am currently interfacing the chip with the 12 digital in/out pins of the DAQ.  Since the 6009 requires an invertor to read TTL signals, I've

temporarily connected the 8pin data bus to the 8 analog DAQ input pins to read outputs of the LS7166.  (All writes are performed with the 12 digital lines).   

 

Pin assignments:

DAQ  Pin    IC   

P0   17     8[D0]
P0   18     9[D1]
P0   19    10[D2]
P0   20    11[D3]
P0   21    12[D4]
P0   22    13[D5]
P0   23    14[D6]
P0   24    15[D7]
P1   25     2[CS]
P1   26     1[WR]
P1   27    18[C/D] 
P1   28    19[RD]

Remaining pins:
GND         3[LLCT/LLTC]
GND         4[ABGT/RCTR]
+5V         5[VDD]
A           6[Count Input A]
B           7[Count Input B]
GND        16[CY]
GND        17[BW]
GND        20[VSS]

 

Related links:

USB-6009 manual: http://www.ni.com/pdf/manuals/371303l.pdf

LS7166 manual: http://www.lsicsi.com/pdfs/Data_Sheets/LS7166.pdf

0 Kudos
Message 1 of 3
(5,994 Views)

bcdzt5,

 

Taking a look at your application, it seems that you attempting a fairly unique task with National Instruments hardware. This is mainly because many of our products include counters and will perform counter tasks in a much more straightforward manner than using an external device such as the LS7166.  

 

In order for any engineers or fellow forum posters to provide help, it would be benefecial for you to post specific questions that are related to configuring our hardware to work with the device.  If the questions are related to how the LS7166 works, or how to configure it, then those questions might be better suited for LSI/CSI.  

 

If you would like to pay someone to build your application, National Instruments offers Alliance partners (NI.com/alliance) that offer services for hire.

 

Regards,

 

Aaron

 

National Instruments
0 Kudos
Message 2 of 3
(5,977 Views)

Aaron,

 

While NI certainly offers devices that can read quadrature signals in a more straightforward method, I find their cost prohibitively expensive (~550USD+).  I don't believe my application justifies that nice of equipment Smiley Happy

 

My hope is that another forum member has had experience with interfacing this counter chip and that this member would be willing to share code.  (I believe my code should work, but has some unseen bug). 

 

A specific question I have for this thread relating to the 6009 is whether or not the DIO is reliable enough to program ICs.  Analog loop-back testing of the DIO signals doesn't show any glitches, but I may not be sampling fast enough.  Does the 6009 ever exhibit glitching*?

 

*I'm defining glitching as extraneous short duration pulses that could could confuse a microcontoller.

  

Regards,

-Brandon  | bcdzt5

0 Kudos
Message 3 of 3
(5,970 Views)