UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 366

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
364
The setting methods are described below.
<Change the channel>
<Complete A/D conversion>
<1> Set bit 0 (ADCE) of the A/D converter mode register (ADM) to 1.
<2> Set the channel to be used in the analog input mode by using bits 4 to 0 (ADPC4 to ADPC0) of the A/D
<3> Select conversion time by using bits 5 to 3 (FR2 to FR0) of ADM.
<4> Select a channel to be used by using bits 3 to 0 (ADS3 to ADS0) of the analog input channel
<5> Set bit 7 (ADCS) of ADM to 1 to start A/D conversion.
<6> When one A/D conversion has been completed, an interrupt request signal (INTAD) is generated.
<7> Transfer the A/D conversion data to the A/D conversion result register (ADCR, ADCRH).
<8> Change the channel using bits 3 to 0 (ADS3 to ADS0) of ADS to start A/D conversion.
<9> When one A/D conversion has been completed, an interrupt request signal (INTAD) is generated.
<10> Transfer the A/D conversion data to the A/D conversion result register (ADCR, ADCRH).
<11> Clear ADCS to 0.
<12> Clear ADCE to 0.
Cautions 1. Make sure the period of <1> to <5> is 1 s or more.
port configuration register (ADPC) and bits 7 to 0 (PM27 to PM20) of port mode register 2 (PM2).
specification register (ADS).
2. <1> may be done between <2> and <4>.
3. <1> can be omitted. However, ignore data of the first conversion after <5> in this case.
4. The period from <6> to <9> differs from the conversion time set using bits 5 to 3 (FR2 to
FR0) of ADM. The period from <8> to <9> is the conversion time set using FR2 to FR0.
Preliminary User’s Manual U19748EJ1V0UD
CHAPTER 11 A/D CONVERTER

Related parts for UPD78F0838