Operation; Operation In Normal Mode; Operation In Real-Time Output Mode - NEC V850ES/SA2 UPD703201 Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4 Operation

11.4.1 Operation in normal mode

D/A conversion is performed using a write operation to D/A conversion value setting register n (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.
Remark
n = 0, 1

11.4.2 Operation in real-time output mode

D/A conversion is performed using the interrupt request signals (INTTM2 and INTTM3) of 8-bit timer/event
counters 2 and 3 (TM2 and TM3) as triggers.
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 timer/event counters 2 and 3 (TM2 and TM3).
<5> D/A conversion starts when the INTTM2 and INTTM3 signals are generated.
<6> The INTTM2 and INTTM3 signals are generated when subsequent D/A conversions are performed.
Before performing the next D/A conversion (generation of INTTM2 and INTTM3 signals), set the analog
voltage value to be output to the ANOn pin to the DACSn register.
294
CHAPTER 11 D/A CONVERTER
Preliminary User's Manual U15905EJ1V0UD

Advertisement

Table of Contents
loading

Table of Contents