![Mitsubishi 32172 User Manual Download Page 463](http://html1.mh-extra.com/html/mitsubishi/32172/32172_user-manual_1808662463.webp)
11
11-47
Rev.1.0
11.3.3 Comparator Operation
When comparator mode (single mode only) is selected, the A-D converter functions as a
comparator to compare the comparison voltage set in software and the analog input voltages.
Upon writing a comparison value to the Successive Approximation Register, the A-D converter
starts "comparating" the analog input voltages selected with the Single Mode Register 1 analog
input select bits and the value written to the Successive Approximation Register. Once comparate
operation starts, the following operations are executed automatically.
(a) Clear the Single Mode Register 0 or Scan Mode Register 0 A-D conversion/comparate
complete flag to 0.
(b) Enter the comparison voltage Vref (Note) from the D-A Converter into the Comparator.
(c) Compare the comparison voltage Vref and the analog input voltage VIN. Next, store the
comparison result in the comparate result flag (A-D Comparate Data Register D15 bit).
If Vref < VIN, then the comparate result flag = 0
If Vref > VIN, then the comparate result flag = 1
(d) Stop comparate operation after storing the comparison result.
The comparison result is stored in the A-D Comparate Data Register (AD0CMP or AD1CMP)'s
corresponding bits.
Note: The comparison voltage Vref (the voltage entered from the D-A Converter into the
Comparator) is determined according to changes of the content of the A-D Successive
Approximation Register. The comparison voltage Vref is calculated by the equation below.
•
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 1023
Vref [V] = (reference voltage VREF / 1024) x (content of the A-D Successive
Approximation Register - 0.5)
A-D CONVERTERS
11.3 Functional Description of the A-D Converters
Summary of Contents for 32172
Page 20: ... This is a blank page 16 ...
Page 21: ...1 1 Overview 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Layout CHAPTER 1 CHAPTER 1 OVERVIEW ...
Page 44: ...1 1 24 Rev 1 0 This is a blank page Overview 1 4 Pin Layout ...
Page 58: ...2 2 14 Rev 1 0 This is a blank page CPU 2 6 Data Formats ...
Page 122: ...4 4 26 Rev 1 0 This is a blank page EIT 4 13 Precautions on EIT ...
Page 200: ...7 7 6 Rev 1 0 This is a blank page RESET 7 4 Precautions to Be Taken Immediately after Reset ...
Page 298: ...9 9 58 Rev 1 0 This is a blank page DMAC 9 4 Precautions on Using DMAC ...
Page 776: ...19 19 10 Rev 1 0 RAM BACKUP MODE 19 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 782: ...20 20 6 Rev 1 0 OSCILLATION CIRCUIT 20 2 Clock Generator Circuit This is a blank page ...
Page 856: ...23 23 26 Rev 1 0 This is a blank page ELECTRICAL CHARACTERISTICS 23 6 AC Characteristics ...
Page 857: ...24 1 A D Conversion Characteristics CHAPTER 24 CHAPTER 24 STANDARD CHARACTERISTICS ...
Page 859: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 865: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...