PCM-3718 Series User Manual
48
5.6 How to Make an A/D Conversion
To perform A/D conversion, you can write all I/O port instructions
directly in your program, or you can take advantage of the PCM-3718
driver. We suggest that you apply the driver functions in your program.
This will make your programming job easier and improve the program
performance. See the User Manual of the software driver for more infor-
mation.
Do the following to perform software trigger and program controlled data
transfer without the PCM-3718 driver:
1.
Set the input range for each A/D channel.
2.
Set the input channel by specifying the MUX scan range.
3.
Trigger the A/D conversion by writing to the A/D low byte register
(BASE+0) with any value.
4.
Check for the end of the conversion by reading the A/D status regis-
ter (BASE+8) INT bit.
5.
Read data from the A/D converter by reading the A/D data registers
(BASE+0 and BASE+1).
6.
Convert the binary A/D data to an integer.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com