![]() |
| | #1 |
| Registered User Join Date: Feb 2003
Posts: 4
| 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 |
| Hunterhunter is offline |
| | #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 | |
|
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 |