I'm making a thing which as a current shunt sense resistor, of about 5 mOhm,
I have wired it into a pin on the attiny1617 which can work as ADC, I can read the ADC - which is cool.
I checked the datasheet and I see that I can also use the analog (/ analogue) comparator peripheral to compare it with a voltage from the DAC - presumably the AC can work a lot faster than the ADC and give the CPU an interrupt if it exceeds (which is very useful).
Would it work? Would it work at low voltages like 50mV? I can see the lowest voltage reference is 0.55V, then I can use the (8-bit) DAC to create a lower threshold voltage, e.g. 50mV, and detect if my current shunt sees 10 amps (for example) ?
Is my interpretation of the datasheet ok?
I don't have the hardware yet so I can't test it (I can maybe rig something on a breadboard, might do that later)