11
11-44
Ver.0.10
11.3.3 Comparator Operation
When comparator mode (single mode only) is selected, the A-D converter functions as a
comparator that compares analog input voltages with a preset comparison voltage.
When a comparison value is written to the successive approximation register, the A-D converter
starts 'comparating' the analog input voltage selected by the Single Mode Register 1 analog input
selection bit with the value written to the successive approximation register. Once comparate
begins, the following operation is automatically executed.
➀
The Single Mode Register 0 or Scan Mode Register 0's A-D conversion/comparate
completion flag is cleared to 0.
➁
The comparison voltage, Vref(note), is fed from the D-A converter into the comparator.
➂
The comparison voltage, Vref, and the analog input voltage, VIN, are compared, with the
comparison result stored in the comparate result flag (A-D Comparate Data Register's D15).
If Vref < VIN, then the comparate result flag = 0
If Vref > VIN, then the comparate result flag = 1
➃
The comparate operation stops after storing the comparison result.
The comparison result is stored in the A-D Comparate Data Register (AD0CMP, AD1CMP)'s
corresponding bit.
Note: The comparison voltage, Vref (the voltage fed from the D-A converter into the comparator), is
determined according to changes of the content of the A-D Successive Approximation Register. Shown
below are the equations used to calculate the comparison voltage, Vref.
• When the content of the A-D Successive Approximation Register = 0
Vref [V] = 0
• When the content of the A-D Successive Approximation Register = 1 to 1,023
Vref [V] = (reference voltage VREF / 1,024) x (content of the A-D Successive Approximation Register - 0.5)
A-D CONVERTERS
11.3 Functional Description of A-D Converters
Summary of Contents for M32170F3VFP
Page 42: ...1 1 24 Ver 0 10 OVERVIEW 1 4 Pin Layout This is a blank page ...
Page 56: ...2 2 14 Ver 0 10 This is a blank page ...
Page 88: ...3 3 32 Ver 0 10 ADDRESS SPACE 3 7 Notes on Address Space This is a blank page ...
Page 270: ...9 9 40 Ver 0 10 DMAC 9 4 Precautions about the DMAC This is a blank page ...
Page 614: ...12 12 64 Ver 0 10 This is a blank page SERIAL I O 12 9 Precautions on Using UART Mode ...
Page 756: ...17 17 10 Ver 0 10 RAM BACKUP MODE 17 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 762: ...18 18 6 Ver 0 10 OSCILLATION CIRCUIT 18 2 Clock Generator Circuit This is a blank page ...
Page 831: ...CHAPTER 22 CHAPTER 22 TYPICAL CHARACTERISTICS 22 1 A D Conversion Characteristics ...
Page 833: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 841: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...