Using software trigger and polling transfer, 4 using software trigger and polling transfer – Omega ISA- BUS MULTI-FUNCTIONAL BOARD OME-A822PG User Manual
Page 32
2.7.4 Using software trigger and polling transfer
If the user needs to control the A/D converter without the A-822 software driver, software
trigger and polling transfer is suggested. The program steps are listed below:
1. send 0x01 to the A/D mode control register (software trigger + polling transfer)
(refer to Sec. 2.4.8)
2. send channel number to the multiplexer control register (refer to Sec. 2.4.7)
3. send the gain control code value to the gain control register (refer to Sec 2.4.6)
4. delay the settling time (refer to Sec. 2.4.6 and Sec. 2.4.7)
5. send any value to the software trigger control register to generate a software trigger
signal
(refer to Sec. 2.4.9)
6. scan the READY bit of the A/D high byte data until READY=0 (refer to Sec. 2.4.2)
7. read the 12 bit A/D data (refer to Sec. 2.4.2)
8. convert the 12 bit binary data to a floating point value
OME-A-822PGL/PGH Hardware Manual ---- 30