User`s manual
XP8600 Software Reference s 37
void write
_
DAC2( int val )
Writes data serially to DAC2 (U4) on the presently addressed XP8600.
The board address must have been set previously with a call to
PBus12
_
Addr. A call to one of these functions must be followed by a
call to latch
_
DAC2or its equivalent in user-supplied code
otherwise no digital-to-analog conversion occurs.
void latch
_
DAC1()
Transfers the data in Register A of DAC1 (U3) to Register B of DAC1,
whereupon it is converted and the analog signal is output. The board
address must have been set previously with a call to PBus12
_
Addr. A
call to this function must be preceded by a call to write
_
DAC1 or its
equivalent in user-supplied code.
void latch
_
DAC2()
Transfers the data in Register A of DAC2 (U4) to Register B of DAC2,
whereupon it is converted and the analog signal is output. The board
address must have been set previously with a call to PBus12
_
Addr. A
call to this function must be preceded by a call to write
_
DAC2 or its
equivalent in user-supplied code.
void Init
_
DAC()
Initializes the presently addressed XP8600, setting both outputs to
zero. The board address must have been set previously with a call to
PBus12
_
Addr.
void Set
_
DAC1( int val )
void Set
_
DAC2( int val )
Combines the functions of write
_
DACx and latch
_
DACx into a single
function for convenience. The board address must have been set
previously with a call to PBus12
_
Addr.
Functions in Other Libraries
Functions in the other libraries listed in Table 4-1 are equivalent to those
listed above except for minor internal details.