
CHAPTER  14   D/A  CONVERTER
User
’
s Manual  U15862EJ3V0UD
439
14.4  Operation
14.4.1  Operation in normal mode
D/A conversion is performed using a write operation to the D/A conversion value setting register (DACSn) as the
trigger.
The setting method is described below.
<1> Set the DAMDn bit of the D/A converter mode register (DAM) 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 DACEn bit of the DAM register to 1 (D/A conversion enable).
D/A conversion starts when this setting is performed.
<4> To perform subsequent D/A conversions, write to the DACSn register.
The previous D/A conversion result is held until the next D/A conversion is performed.
14.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
(TMH0, TMH1) as the trigger.
The setting method is described below.
<1> Set the DAMDn bit of the DAM register 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 DACEn bit of the DAM register to 1 (D/A conversion enable).
Steps <1> to <3> above constitute the initial settings.
<4> Operate 8-bit timers H0 and H1 (TMH0, TMH1).
<5> D/A conversion starts when the INTTMH0 and INTTMH1 signals are generated.
<6> The INTTMH0 and INTTMH1 signals are generated when subsequent D/A conversions are performed.
Before performing the next D/A conversion (generation of INTTMH0, INTTMH1 signals), set the analog
voltage value to be output to the ANOn pin to the DACSn register.