![](http://datasheet.mmic.net.cn/370000/UPD703215_datasheet_16743812/UPD703215_436.png)
CHAPTER 15 D/A CONVERTER
User’s Manual U16890EJ1V0UD
436
15.4 Operation
15.4.1 Operation in normal mode
D/A conversion is performed using a write operation to the DACSn register as the trigger.
The setting method is described below.
<1> Clear the DAM.DAMDn bit to 0 (normal mode).
<2> Set the analog voltage value to be output to the ANOn pin to the DACSn register.
Steps <1> and <2> above constitute the initial settings.
<3> Set the DAM.DACEn bit to 1 (D/A conversion enable).
D/A converted analog voltage value is output from the ANOn pin when this setting is performed.
<4> To change the analog voltage value, write to the DACSn register.
The analog voltage value immediately before set is held until the next write operation is performed.
Remarks 1.
For the alternate-function pin settings, refer to
Table 4-16 Settings When Port Pins Are Used for
Alternate Functions
.
2.
n = 0, 1
15.4.2 Operation in real-time output mode
D/A conversion is performed using the interrupt request signals (INTTMH0, INTTMH1) of 8-bit timers H0 and H1 as
the trigger.
The setting method is described below.
<1> Set the DAM.DAMDn bit to 1 (real-time output mode).
<2> Set the analog voltage value to be output to the ANOn pin to the DACSn register.
<3> Set the DAM.DACEn bit to 1 (D/A conversion enable).
Steps <1> to <3> above constitute the initial settings.
<4> Operate 8-bit timers H0 and H1.
<5> D/A converted analog voltage value is output from the ANOn pin when the INTTMH0 and INTTMH1 signals
are generated.
Set the next output analog voltage value to the DACSn register, before the next INTTMH0 and INTTMH1
signals are generated.
<6> After that, the value set in the DACSn register is output from the ANOn pin every time the INTTMH0 are
INTTMH1 signals are generated.
Remarks 1.
The output values of the ANO0 and ANO1 pins up to <5> above are undefined.
2.
For the output values of the ANO0 and ANO1 pins in the IDLE, HALT, and STOP modes, refer to
CHAPTER 22 STANDBY FUNCTION
.
3.
n = 0, 1