// timer0
Æ
for pacer trigger
void enable_timer0(WORD divv) // for internal pacer trigger
{
outport((WORD)(wAd3*4), 0x34); /* enable pacer timer_0 */
outport((WORD)(wAd0*4), (WORD)(divv & 0xff));
outport((WORD)(wAd0*4), (WORD)((divv>>8) & 0xff));
}
void disable_timer0(void)
{
outport((WORD)(wAd3*4), 0x34); /* disable pacer timer_0 */
outport((WORD)(wAd0*4), 0x01);
outport((WORD)(wAd0*4), 0x00);
}
// timer1
Æ
for external trigger
void enable_timer1(WORD divv) /* for external trigger pacer timer */
{
outport((WORD)(wAd3*4), 0x74); /* enable pacer timer_1 */
outport((WORD)(wAd1*4), (WORD)(divv & 0xff));
outport((WORD)(wAd1*4), (WORD)((divv>>8) & 0xff));
}
void disable_timer1(void)
{
outport((WORD)(wAd3*4), 0x74); /* disable timer_1 */
outport((WORD)(wAd1*4), 0x01);
outport((WORD)(wAd1*4), 0x00);
}
PCI-1202/1602/1800/1802 Hardware User’s Manual
(Ver. 4.2, Dec/2009, PMH-014-42)---- 37