Advantech PCM-3718H User Manual page 56

Pc/104 12-bit das module with programmable gain
Hide thumbs Also See for PCM-3718H:
Table of Contents

Advertisement

The following program (written in C) sets the pacer rate to 25 KHz. It
uses FCLK of 10 MHz, C1 of 40 and C2 of 10.25KHz = 19 MHz/
(40*10).
OUTPORTB (BASE+3, 0x76); /* SET COUNTER 1 TO MODE 3*/
OUTPORTB (BASE+1, 40); /* WRITE LOW BYTE OF C1*/
OUTPORTB (BASE+1, 0); /* WRITE HIGH BYTE OF C1*/
OUTPORTB (BASE+3, 0xB6); /* SET COUNTER 2 TO MODE 3*/
OUTPORTB (BASE+2, 10); /*WRITE LOW BYTE OF C2*/
OUTPORTB (BASE+2, 0); /*WRITE HIGH BYTE OF C2*/
5 2
PCM-3718H/3718HG User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

3718hg

Table of Contents