beautypg.com

Baseboard analog inputs, Acc-1p analog inputs, Analog inputs setup – Delta Tau PMAC2A-PC/104 User Manual

Page 34

background image

PMAC2A PC104 Hardware Reference Manual

Software Setup

28

Analog Inputs Setup

The optional analog-to-digital converter inputs are ordered either through Option-12 on the baseboard or
Option-2 on the axes expansion board. Each option provides two 12-bit analog inputs with a ±10Vdc range.
The M-variables associated with these inputs provided a range of values between +2048 and –2048 for the
respective ±10Vdc input range. The following is the software procedure to setup and read these ports.

Baseboard Analog Inputs

I903 = 1746

;Set ADC clock frequency at 4.9152 MHz

WX:$C014, $1FFFFF

;Clock strobe set for bipolar inputs

M105->X:$0710,12,12,S

;ADCIN_1 on JMACH1 connector pin 45

M205->X:$0711,12,12,S

;ADCIN_2 on JMACH1 connector pin 46

Acc-1P Analog Inputs

I907 = 1746

;Set ADC clock frequency at 4.9152 MHz

WX:$C034, $1FFFFF

;Clock strobe set for bipolar inputs

M305->X:$0714,12,12,S

;ADCIN_1 on JMACH1 connector (Acc-1P) pin 45

M405->X:$0715,12,12,S

;ADCIN_2 on JMACH1 connector (Acc-1P) pin 46