ADLINK ACL-8112 Series User Manual
Page 90
 
82
• C Language Library
7.21 _8112_TIMER_Start
Description
Timer #0 on the ACL-8112 is freely available to be programmed by the 
users. This function is used to program Timer #0. This timer can be 
used as a frequency generator if an internal clock is used. It also can 
be used as an event counter if an external clock is used.
Syntax
int _8112_TIMER_Start( int timer_mode, unsigned int 
c0 ) 
int _8112pg_TIMER_Start( int timer_mode, unsigned int 
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 
Example:
See demo program 'TMR_DEMO.C'