User`s guide
C/C++ Library 65
5.28 _8316_AD_Timer
@ Description
This function is used to setup the Timer #1 and Timer #2. Timer #1 & #2
are used as frequency divider for generating constant A/D sampling rate
dedicatedly. It is possible to stop the pacer trigger by setting any one of
the dividers as 0. Because the AD conversion rate is limited due to the
conversion time of the AD converter, the highest sampling rate of the
ACL-8316/12 can not exceed 100 kHz. The multiplication of the dividers
must be larger than 20.
@ Syntax
I16 _8316_AD_Timer( U16 c1 , U16 c2 )
@ Argument
c1: frequency divider of timer #1
c2: frequency divider of timer #2,
Note
: the A/D sampling rate is equal to:
2MHz / (c1 * c2),
when c1 = 0 or c2 = 0, the pacer trigger will be stopped.
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidTimerValue
5.29 _8316_TIMER_Start
@ Description
The Timer #0 on the ACL-8316/12 can be freely programmed by the
users. This function is used to program the Timer #0. This timer can be
used as frequency generator if internal clock is used. It also can be used
as event counter if external clock is used. All the 8253 mode is available.
@ Syntax
I16 _8316_TIMER_Start( U8 timer_mode, U16 c0 )
@ Argument
timer_mode: the 8253 timer mode, the possible values are:
TIMER_MODE0, TIMER_MODE1,
TIMER_MODE2, TIMER_MODE3,
TIMER_MODE4, TIMER_MODE5.
c0: the counter value of timer
@ Return Code
ERR_NoError,ERR_BoardNoInit, ERR_InvalidTimerMode
ERR_InvalidTimerValue