A/D Conversion By Software Start - NEC PD78056F User Manual

Pd78058f series; pd78058fy series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) A/D conversion operation in software start
When bit 6 (TRG) and bit 7 (CS) of A/D converter mode register (ADM) are set to 0 and 1, respectively, the
A/D conversion starts on the voltage applied to the analog input pins specified with bits 1 to 3 (ADM1 to
ADM3) of ADM.
Upon termination of the A/D conversion, the conversion result is stored in the A/D conversion result register
(ADCR) and the interrupt request signal (INTAD) is generated. After one A/D conversion operation is started
and terminated, the next A/D conversion operation starts immediately. The A/D conversion operation con-
tinues repeatedly until new data is written to ADM.
If data with CS set to 1 is written to ADM again during A/D conversion, the converter suspends its A/D
conversion operation and starts A/D conversion on the newly written data.
If data with CS set to 0 is written to ADM during A/D conversion, the A/D conversion operation stops im-
mediately.
Conversion Start
CS=1, TRG=0
A /D Conversion
ADCR
INTAD
Remarks 1. n = 0, 1, ... , 7
2. m = 0, 1, ... , 7
CHAPTER 14 A/D CONVERTER
Figure 14-8. A/D Conversion by Software Start
ANIn
ANIn
Conversion suspended
Conversion results are
not stored
ANIn
ADM Rewrite
ADM Rewrite
CS=1, TRG=0
CS=0, TRG=0
ANIn
ANIm
ANIm
ANIn
Stop
ANIm
273

Advertisement

Table of Contents
loading

Table of Contents