EasyManuals Logo
Home>Renesas>Computer Hardware>RL78/D1A

Renesas RL78/D1A User Manual

Renesas RL78/D1A
1879 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #785 background imageLoading...
Page #785 background image
RL78/F13, F14 CHAPTER 12 A/D CONVERTER
R01UH0368EJ0210 Rev.2.10 753
Dec 10, 2015
12.7.5 Setting up test mode
Figure 12-38. Setting up Test Trigger Mode
Notes 1. Depends on the products.
2. Depending on the settings of the ADRCK bit and ADUL/ADLL registers, there is a possibility of no interrupt
signal being generated. In this case, the results are not stored in the ADCR and ADCRH registers.
Start of setup
The ADCEN bit of the PER0 register is set (1), and supplying the clock starts.
The ports are set to analog input.
Note 1
ANI0 to ANI23 pins: Set using the ADPC register
ANI24 to ANI30 pins: Set using the PMCxx register
The ports are set to the input mode.
• ADM0 register
FR2 to FR0, LV1, and LV0 bits: These bits are used to specify the A/D conversion time.
ADMD bit: This is used to s
p
ecif
y
the select mode.
• ADM1 register
ADTMD1 and ADTMD0 bits: These are used to specify the software trigger mode.
ADSCM bit: This is used to specify the one-shot conversion mode.
• ADM2 register
ADREFP1, ADREFP0, and ADREFM bits: These are used to select V
DD
and V
SS
for
the reference voltage source.
ADRCK bit: This is used to set the range of values for comparison with the result of A/D
conversion in the generation of interrupt signals in response to results being
in area 2.
ADTYP bit: This is used to s
p
ecif
y
10-bit resolution.
• ADUL/ADLL register
The ADUL and ADLL registers are set to FFH and 00H, respectively (initial values).
• ADS register
ADS4 to ADS0 bits: These are used to specify ANI0.
The A/D conversion operations are performed.
The A/D conversion end interrupt (INTAD) is generated.
Note 2
The conversion results are stored in the ADCR and ADCRH registers.
PER0 register setting
ADPC and PMCxx register settings
PM register setting
• ADM0 register setting
• ADM1 register setting
• ADM2 register setting
• ADUL/ADLL register setting
• ADS register setting
• ADTES register setting
(The order of the settings is
irrelevant.)
The software counts up to the stabilization wait time (1
µ
s).
Stabilization wait time count B
Start of A/D conversion
End of A/D conversion
Storage of conversion results in
the ADCR and ADCRH registers
The ADCE bit of the ADM0 register is set (1), and the system enters the A/D conversion
standby status.
ADCE bit setting
ADCS bit setting
After counting up to the stabilization wait time B ends, the ADCS bit of the ADM0 register is
set (1), and A/D conversion starts.
• ADTES register
ADTES1, ADTES0 bits: AV
REFM
/AV
REFP
Waiting for the time indicated by A below may be required for the results of conversion to become
stable after a change to the values of the ADREFP1 and ADREFP0 bits if the given condition holds.
If the values of ADREFP1 and ADREFP0 are changed to 1 and 0, respectively: A = 5 µs
A wait is not required if the values of ADREFP1 and ADREFP0 are changed to 0 and 0 or 0 and 1,
respectively.
Stabilization wait time count A

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/D1A and is the answer not in the manual?

Renesas RL78/D1A Specifications

General IconGeneral
BrandRenesas
ModelRL78/D1A
CategoryComputer Hardware
LanguageEnglish

Related product manuals