PCI-1202/1602/180x Series Card
Multi-Function Boards
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 56
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 pacertimer */
{
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);
}