
ML62Q1000 Series User's Manual
Chapter 23 Successive Approximation Type A/D Converter
FEUL62Q1000
23-23
23.3 Description of Operation
Operation of Successive Approximation Type A/D Converter
23.3.1
Figure 23-2 shows a setting example when one-time A/D conversion is performed using channel 1 and 0.
Figure 23-2 Example of A/D Conversion Setting
Set the mode of the reference voltage.
Set the A/D conversion mode. (SALP = 1)
Set the channel to be A/D-converted. (SADEN0=0x03)
Set the ENOSC bit of the FCON register to "1" to start supplying
the high-speed clock.
The high-speed clock is supplied after the oscillation stabilization
time has passed.
Set the start and end of A/D conversion.
When SARUN bit="1", the A/D conversion is started.
Setting
start
Set the general-purpose port of AINn to the both input and output are
disable.
To use the voltage that is input from the V
REF
pin as the reference
voltage, set the mode of that disables the input and disables the output.
End
If enabling
SADINT
(SA-ADC interrupt), set the ESAD bit of the IE23
register to "1".
Execute the EI instruction to set the master interrupt enable flag (MIE) to "1".
Interrupt generated?
YES
NO
A/D conversion is
completed
Read the A/D conversion result.
(n=0, 1)
The SARUN bit is automatically cleared to "0".
Set IE register
Execute EI instruction
Set PnMOD0 to 7 registers
Set VREFCON register
Set SADMOD register
Set SADEN0 register
Set SADCON register
Read SADRn register
Starts A/D conversion
Set FCON register
Set SADLMOD register
Set SADUPL register
Set SADLOL register
To use the upper/lower limit function for the conversion result, this
setting is required.
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...