UG-498
ADuCM320 Hardware Reference Manual
Rev. C | Page 36 of 196
REGISTER SUMMARY: ANALOG COMPARATOR
The CPU accesses the ADC circuit over a die to die interface (D2D) which increases the execution times of ldr and str instructions.
Accessing AFECOMP takes 8 CPU cycles at 80 MHz to execute.
Table 24. Analog Comparator Register Summary
Address
Name
Description
Reset
RW
0x40087838
AFECOMP
Analog comparator configuration register
0x0000
RW
REGISTER DETAILS: ANALOG COMPARATOR
Analog Comparator Configuration Register
Address: 0x40087838, Reset: 0x0000, Name: AFECOMP
Table 25. Bit Descriptions for AFECOMP
Bits
Bit Name
Description
Reset
Access
[15:9]
RESERVED
Reserved.
0x0
R
8
EN
Powers up and enables comparator.
0x0
RW
0: power down and disable comparator
1: power up and enable comparator
[7:6]
INNEG
Selects comparator negative input signal.
0x0
RW
00: AVDD/2
01: AIN5
10: DAC7
11: unused
[5:4]
OUT
Connects comparator output to interrupt logic.
0x0
RW
0: do not connect output
1: connect output to interrupt logic
3
INV
Selects output logic state.
0x0
RW
0: output is high if +ve input is above −ve input.
1: output is high if +ve input is below −ve input.
[2:1]
SPEED
Selects comparator speed to falling output.
0x0
RW
00: 6 µs
01: 4 µs
10: 4 µs
11: 3 µs
Response time to rising output is 6 µs typical.
0
HYS
Enables comparator hysteresis.
0x0
RW
0: disable hysteresis
1: enable hysteresis