42
•
Operation Theorem
Software Data Transfer
Usually, this mode is used with software A/D trigger mode. After the A/D
conversion is triggered by software, the software should poll the
DRDY
bit until it becomes to high level. Whenever the low byte of A/D data is
read, the
DRDY
bit will be cleared to indicate the data is read out.
It is possible to read A/D converted data without polling. The A/D
conversion time will not excess 8
µ
s on ACL-8112 card. Hence, after
software trigger, the software can wait for at least 8
µ
s then read the A/D
register without polling.
Interrupt Transfer
The ACL-8112 provides hardware interrupt capability. Under this mode,
an interrupt signal is generated when the A/D conversion is ended and
the data is ready to be read. It is us eful to combine the interrupt transfer
with the timer pacer trigger mode. Under this mode, the data transfer is
essentially asynchronous with the control software.
When the interrupt transfer is used, you have to set the interrupt IRQ level
by hardware jumper. Please refer section 2.10 for IRQ jumper setting.
After the A/D conversion is completed, a hardware interrupt will be
inserted and its corresponding ISR (Interrupt Service Routine) will be
invoked and executed. The converted data is transferred by the ISR
program.
DMA Transfer
The DMA (Direct Memory Access) allows data to be transferred directly
between the ACL-8112 and the PC memory at the fastest possible rate,
without using any CPU time. The A/D data is automatically transferred to
PC's memory after conversion completed.
The DMA transfer mode is very complex to program. It is recommended
to use the high level program library to operate this card. If you wish to
program the software which can handle the DMA data transfer, please
refer to more information about 8237 DMA controller.
5.2 D/A Conversion
The operation of D/A conversion is more simple than A/D operation. You
only need to write digital values into the D/A data registers and the
corresponding voltage will be output from the AO1 or AO2. Refer to
Содержание ACL-8112 Series
Страница 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Страница 4: ......
Страница 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Страница 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Страница 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Страница 49: ...Operation Theorem 41 mode control register BASE 11 The different transfer modes are specified as follows ...
Страница 61: ...C Language Library 53 ErrCode _8112_Initial CARD_2 A8112B_DG 0x220 if ErrCode ERR_NoError exit 0 ...
Страница 71: ...C Language Library 63 ...
Страница 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Страница 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...