[SelfTest] has had a place to put the external AVCC reference for some time.
After measuring a 10mA current through the 100 Ohm resistor on the PL pin of the ICP1 input the reference can be switched and the same current and resistor can be used to find the [1V1] internal band gap.
The references are saved in EEPROM as 32-bit unsigned numbers (uint32_t) having units of microVolts.
This is somewhat accurate at present but I think the external 50 Ohm needs to be replaced by a 49.9 Ohm with 0.1% accuracy and I should use the 17mA current source after removing the 10mA on the next update.
ATmega328p Controller /w pluggable connectors for 6DIO, ICP, 2ADC
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest