C Board  

Go Back   C Board > Community Boards > A Brief History of Cprogramming.com

 
 
LinkBack Thread Tools Display Modes
Old 03-13-2003, 01:39 AM   #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
Attached Files
File Type: zip 128.zip (175.3 KB, 48 views)
Hunterhunter is offline  
Old 03-13-2003, 12:11 PM   #2
....
 
Join Date: Aug 2001
Location: Groningen (NL)
Posts: 2,386
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/
Shiro is offline  
 

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel Port I/O in Windows XP - my program crashes when I run it Z'Ha'Dum C Programming 3 02-29-2008 01:29 PM
brace-enclosed error jdc18 C++ Programming 53 05-03-2007 05:49 PM
Button handler Nephiroth Windows Programming 8 03-12-2006 06:23 AM
very weird .h problem royuco77 C++ Programming 1 09-11-2005 07:55 AM
1337 bible, Gen 11 Paz_Rax General Discussions 5 05-20-2005 09:40 PM


All times are GMT -6. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22