Yes, thanks. The issue I usually have is converting datasheet info into Arduino code, it's all well and good the datasheet giving a bit pattern on a register but what is that in Arduino code?
The first para of section 25 says
...When the voltage on the positive pin AIN0 is higher than the voltage on the negative pin
AIN1, the Analog Comparator output, ACO, is set...
Table 25.2 says
Bits 1, 0 – ACIS1, ACIS0: Analog Comparator Interrupt Mode Select
...
1, 0, Comparator Interrupt on Falling Output Edge
1, 1, Comparator Interrupt on Rising Output Edge
If I want an interrupt when the analog value falls Below a given voltage I assume I need to set Bits 1,0 to 1,1? Still no clude how to write Arduino code to do that though????