PA 358
8.2
Programming
The board occupies the following addresses in the I/O space:
PA 358-4 8 bytes
PA 358-6 12 bytes
PA 358-8 16 bytes
Each analog output channel occupies 2 addresses, the first address for the lowbyte
and the second for the highbyte.
The values cannot be read back.
It is useful to store the last written value in a shadow register.
It does not matter whether you first write the highbyte or the lowbyte.
When the analog output value has to be changed, then the new digital value has to be
changed in both addresses.
The value is then written on the base address with a dummy I/O read command in the
DAC register.
st
1
example: the value 2048 decimal should be written out on channel 0:
Program
Const
Var
Begin
End
nd
2
example: A 0-10 V ramp should be written out on all 8 channels.
Program
CONST
VAR
Begin
26
SET_DAC_OUTPUT;
Base = $390;
Dummy:Byte;
Value:Word;
Value
:= 2048;
Portw[Base] := Value;
Dummy
:= Port[Base];
Rampe;
Base = $390;
Value: Word;
Dummy,I:byte;
For Value:0 to 4095 DO
Begin
For I: = 0 to 7 DO
Begin
PortW[Base + 2*I]:=Value;
End;
Dummy: = Port[Base];
End
Technical description
PA 358-4C 8 bytes
PA 358-6C 12 bytes
PA 358-8C 16 bytes
(*Base address of PA 358*)
(*Writes value on channel 0*)
(*Actualizes channel 0*)
Chapter 8
Need help?
Do you have a question about the ADDIALOG PA 358 and is the answer not in the manual?
Questions and answers