UPD78F1506GF-GAT-AX Renesas Electronics America, UPD78F1506GF-GAT-AX Datasheet - Page 408

no-image

UPD78F1506GF-GAT-AX

Manufacturer Part Number
UPD78F1506GF-GAT-AX
Description
MCU 16BIT 78K0R/LX3 128-LQFP
Manufacturer
Renesas Electronics America
Series
78K0R/Lx3r
Datasheet

Specifications of UPD78F1506GF-GAT-AX

Core Processor
78K/0R
Core Size
16-Bit
Speed
20MHz
Connectivity
3-Wire SIO, I²C, LIN, UART/USART
Peripherals
DMA, LCD, LVD, POR, PWM, WDT
Number Of I /o
78
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x12b, D/A 2x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
78K0R/Lx3
10.4 A/D Converter Operations
10.4.1 Basic operations of A/D converter
R01UH0004EJ0401 Rev.4.01
Jul 2, 2010
<1> Set bit 5 (ADCEN) of peripheral enable register 0 (PER0) to 1 to start the supply of the input clock to the A/D
<2> Set the A/D conversion time by using bits 5 to 1 (FR2 to FR0, LV1, and LV0) of A/D converter mode register
<3> Use bits 7, 3, 1, and 0 (ADREF, VRSEL, VRGV, and VRON) of the analog reference voltage control register
<4> Set bit 0 (ADCE) of ADM to 1 to start the operation of the A/D voltage comparator.
<5> Set the channels for A/D conversion to analog input by using the A/D port configuration register (ADPC) and set
<6> Select one channel for A/D conversion using the analog input channel specification register (ADS).
<7> Use the A/D converter mode register 1 (ADM1) to set the trigger mode.
<8> Start the conversion operation by setting bit 7 (ADCS) of ADM to 1, if the software trigger mode has been set in
<9> The voltage input to the selected analog input channel is sampled by the sample & hold circuit.
<10> When sampling has been done for a certain time, the sample & hold circuit is placed in the hold state and the
<11> Bit 11 of the successive approximation register (SAR) is set. The series resistor string voltage tap is set to (1/2)
<12> The voltage difference between the series resistor string voltage tap and sampled voltage is compared by the
<13> Next, bit 10 of SAR is automatically set to 1, and the operation proceeds to the next comparison. The series
<14> Comparison is continued in this way up to bit 0 of SAR.
<15> Upon completion of the comparison of 12 bits, an effective digital result value remains in SAR, and the result
<16> If single conversion mode has been set in step <2>, ADCS is automatically cleared to 0 and enters a wait state
converter.
(ADM), and set the operation mode by using bit 6 (ADMD) of ADM.
(ADVRC) to specify the reference voltage source of the A/D converter and the operation of the input gate voltage
boost circuit for the A/D converter.
to input mode by using port mode registers (PM2 and PM15).
step <7>.
If timer trigger mode was specified in step <7>, ADCS is automatically set to 1 and A/D conversion starts when
the timer trigger signal is detected.(<9> to <15> are operations performed by hardware.)
sampled voltage is held until the A/D conversion operation has ended.
AV
voltage comparator. If the analog input is greater than (1/2) AV
analog input is smaller than (1/2) AV
resistor string voltage tap is selected according to the preset value of bit 9, as described below.
• Bit 11 = 1: (3/4) AV
• Bit 11 = 0: (1/4) AV
The voltage tap and sampled voltage are compared and bit 8 of SAR is manipulated as follows.
• Sampled voltage ≥ Voltage tap: Bit 10 = 1
• Sampled voltage < Voltage tap: Bit 10 = 0
value is transferred to the A/D conversion result register (ADCR, ADCRH) and then latched.
At the same time, the A/D conversion end interrupt request (INTAD) can also be generated.
after the first A/D conversion ends.
If the continuous conversion mode has been set in step <2>, repeat steps <9> to <15>. To stop the A/D
converter, clear ADCS to 0.
To restart A/D conversion from the status of ADCE = 1, start from <8>. To start A/D conversion again when
ADCE = 0, set ADCE to 1, wait for 1
converted, perform step <6>.
REF
by the tap selector.
REF
REF
REF
, the MSB is reset to 0.
μ
s or longer, and start step <8>. To change the channel to be A/D
REF
, the MSB of SAR remains set to 1. If the
CHAPTER 10 A/D CONVERTER
408

Related parts for UPD78F1506GF-GAT-AX