Thread: Control different DA output value!

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    4

    Red face Control different DA output value!

    I've two question about using Turbo C++ programming to control a hardware which is a 12-bit ADDA (analog-to-digital) card
    1. I use a function "outport()" to output a byte to the DA output port like this:
    outport(0x27F, 0x01);
    outport(0x27E, 0xff);

    where 0x27F and 0x27E is the I/O port address for output DA high byte and low byte data respectively.

    I cannot adjust the output ampitude( voltage ). I have tried to put different value e.g 0x01, 0x0f, 0xff, ... to the output port, but the output ampitude is almost the same. How can I do to adjust the output value? How can I keep the output steady, like a DC output? Any code can be provided to explain?
    For more information about the hardware, see attachement(128.zip) P. 11 -2 Digital to analog (D/A) procedure.

    Thanks and regards

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Can you show us the function you use to send out the signal for DA conversion? Have you selected to channel to be used? Are you sure you need to write 0xFF to 0x27E?

    Perhaps you can ask the manufacturer for a demo C program.
    http://www.decision.com.tw/

    Another link with more info:
    http://www.pciadda.com/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. 1337 bible, Gen 11
    By Paz_Rax in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 05-20-2005, 09:40 PM