72
•
C Language Library
Syntax
int _8112_DMA_Start( int ad_ch_no, int ad_range,
int
dma_ch_no, int irq_ch_no
int count , int *ad_buffer
unsigned int c1, unsigned int c2)
int _8112pg_DMA_Start( int ad_ch_no, int ad_gain,
int
dma_ch_no, int irq_ch_no
int count , int *ad_buffer
unsigned int c1, unsigned int c2)
Argument:
ad_ch_no:
A/D channel number
ad_range:
A/D analog input range, please refer to the Section
7.9 to find the possible values.
dma_ch_no
:
DMA channel number, DMA_CH_1 or
DMA_CH_3
Note:
Make sure your hardware configuration is set to
right DMA channel.
irq_ch_no
:
IRQ channel number, used to stop DMA
Note:
Make sure your hardware configuration is set to
right IRQ interrupt level.
count:
the number of A/D conversion
ad_buffer:
the start address of the memory buffer
to
store the AD data, the buffer size must
large
than the numbers of AD conversion.
c1:
the 16-bit timer frequency divider of
timer
channel #1
c2:
the 16-bit timer frequency divider of
timer
channel #2
Return Code:
ERR_NoError
ERR_BoardNoInit,
ERR_InvalidADChannel,
ERR_AD_InvalidRange,
ERR_InvalidDMAChannel,
ERR_InvalidIRQChannel,
ERR_InvalidTimerValue
Summary of Contents for ACL-8112 Series
Page 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Page 4: ......
Page 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Page 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Page 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Page 71: ...C Language Library 63 ...
Page 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Page 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...