Datasheet
V850ES/JG3-H, V850ES/JH3-H CHAPTER 16 D/A CONVERTER
R01UH0042EJ0500 Rev.5.00 Page 718 of 1513
Aug 12, 2011
16.4 Operation
16.4.1 Operation in normal mode
D/A conversion is performed using a write operation to the DA0CSn register as the trigger.
The setting method is described below.
<1> Set the DA0M.DA0MDn bit to 0 (normal mode).
<2> Set the analog voltage value to be output to the ANOn pin to the DA0CSn register.
Steps <1> and <2> above constitute the initial settings.
<3> Set the DA0M.DA0CEn bit 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 DA0CSn register.
The previous D/A conversion result is held until the next D/A conversion is performed.
Remarks 1. For the alternate-function pin settings, see Table 4-20 Using Port Pins as Alternate-Function Pins.
2. n = 0, 1
16.4.2 Operation in real-time output mode
D/A conversion is performed using the interrupt request signals (INTTAA2CC0 and INTTAA3CC0) of TAA2 and TAA3
as triggers.
The setting method is described below.
<1> Set the DA0M.DA0MDn bit to 1 (real-time output mode).
<2> Set the analog voltage value to be output to the ANOn pin to the DA0CSn register.
<3> Set the DA0M.DA0CEn bit to 1 (D/A conversion enable).
Steps <1> to <3> above constitute the initial settings.
<4> Operate TAA2 and TAA3.
<5> D/A conversion starts when the INTTAA2CC0 and INTTAA3CC0 signals are generated.
<6> After that, the value set in DA0CSn register is output every time the INTTAA2CC0 and INTTAA3CC0 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 HALT, IDLE1, IDLE2, and STOP modes, see
CHAPTER 21 STANDBY FUNCTION.
3. For the alternate-function pin settings, see Table 4-20 Using Port Pins as Alternate-Function Pins.