Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Parallel ADC

Status
Not open for further replies.
I've been working on an ADC for the parallel port of my computer, and I've hit a road block. The ADC is supposed to use 8 D-type FF to enable up to 4 channels. I use a 74LS161 instead because I was testing and I already had some on hand. I have checked that the counters are connected properly and they are, with a preset input they change to the input on a high going clock pulse.

The computer is a Sony Vaio 2002 model with a 1.67GHz processor and 512MB of RAM.

The problem that I am having is with the test program. It is GW basic and the test code is as follows:

Code:
10 OUT 888,128 
    20 OUT 890,11
    30 out 890,4
    40 out 890,11
    50 input "dac1 value ", A
    60 input "dac2 value ", B
    70 input "dac3 value ", C
    80 print""
    120 Out 888,A
    130 Out 890,10
    140 out 890,11
    150 Out 888,B
    160 Out 890,3
    170 out 890,11
    180 Out 888,C
    190 Out 890,15
    200 out 890,11
    220 GOTO 50
[FONT=Arial, Helvetica]

But I have entered this program several times and it never works, can someone help me figure out what is wrong?

The schematic of the ADC is as follows:
[/FONT] Motion_drive_DAC.jpg

Please note that I didn't wright the code or design the schematic the original website is http://www.simprojects.nl/index.htm
 
Last edited:
hi,
Which Windows operating system are you using eg: Win XP etc...?
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top