235
CHAPTER 12 8-BIT A/D CONVERTER (
µ
PD780344, 780344Y SUBSERIES)
User’s Manual U15798EJ2V0UD
(2) A/D conversion by software start
When bit 6 (TRG0) and bit 7 (ADCS0) of A/D converter mode register 0 (ADM0) are set to 0 and 1 after bit 0
(ADCE0) is set to 1, A/D conversion of the voltage applied to the analog input pin specified by analog input channel
specification register 0 (ADS0) starts.
Upon the end of the A/D conversion, the conversion result is stored in A/D conversion result register 1 (ADCR1),
and the interrupt request signal (INTAD0) is generated. After one A/D conversion operation is started and ended,
the next conversion operation is immediately started. A/D conversion operations are repeated until new data
is written to ADS0.
If ADS0 is rewritten during A/D conversion, the converter suspends A/D conversion and A/D conversion of the
newly selected analog input channel is started.
If ADCS0 is set to 0 during A/D conversion, the A/D conversion operation stops immediately.
Figure 12-8. A/D Conversion by Software Start
Remarks 1.
n = 0, 1, ......, 7
2.
m = 0, 1, ......, 7
ADM0 set
ADCE0 = 1, ADCS0 = 1, TRG0 = 0
ADS0 rewrite
ADCS0 = 0
A/D conversion
ADCR1
INTAD0
ANIn
ANIn
ANIn
ANIm
ANIm
Stop
ANIn
ANIn
ANIm
Conversion suspended;
Conversion results are not stored
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...