D-A CONVERTER
13.4 Setting method, 13.5 Operation description
13.4 Setting method
Figure 13.4.1 shows an initial setting example of registers related to the D-A converter.
Setting of a value to D-A register i
b7
b0
D-A register 0 (Address 9816
D-A register 1 (Address 9916
)
)
A value (0016 to FF16) to be D-A converted is set.
Setting of the D-A
i
output enable bit to “1”.
b7
b0
D-A control register (Address 9616
)
D-A
D-A
0
1
output enable bit
output enable bit
Analog voltage output started
Fig. 13.4.1 Initial setting example of registers related to D-A converter
13.5 Operation description
When any of the D-Ai output enable bits is set to “1,” the value loaded in D-A register i is converted to an
analog voltage, and the analog voltage is output from pin DAi.
The relationship between analog output voltage V and value n, which has been loaded in D-A register i, can
be expressed as follows :
n
256
V = VREF ✕
(n = 0 to 255)
VREF : Reference voltage
7906 Group User’s Manual Rev.2.0
13-5