
5 DATA REGISTERS
The CIO-DAC02/16 has four analog-output data registers. There are two for each
channel, one for the lower eight bits and one for the upper eight bits. The first address
(BASE ADDRESS) is determined by setting a bank of DIP switches on the board.
The information presented in this chapter is intended for experienced programmers. If
you are not familiar with register manipulation, we encourage you to use the Universal
Library.
To write to or read from a register in decimal or HEX, the following weights apply:
801287
40646
20325
10164
883
442
221
110
HEX VALUEDECIMAL VALUEBIT POSITION
The registers and their function are listed on Table 5-1.
Table 5-1. Data Registers
Initiate simultaneous update.D/A 1 Most Significant ByteBASE + 3
Initiate simultaneous update.D/A 1 Least Significant ByteBASE + 2
Initiate simultaneous update.D/A 0 Most Significant ByteBASE + 1
Initiate simultaneous update.D/A 0 Least Significant ByteBASE + 0
READ FUNCTIONWRITE FUNCTIONADDRESS
The bits of the registers are labeled as follows:
BASE + 0 and BASE +2 (LEAST SIGNIFICANT BYTE)
DA16
(LSB)
DA15DA14DA13DA12DA11DA10DA9
01234567
BASE + 1 and BASE +3 (MOST SIGNIFICANT BYTE)
DA8DA7DA6DA5DA4DA3DA2DA1
(MSB)
01234567
6
Komentarze do niniejszej Instrukcji