RE: ATTiny45 AREF

Hi OldSteve

Once again thanks for answering my questions. So the most straight forward option would be to remove the David Mellis Core and replace it with the DrAzzy Core? Am I correct in thinking that the uploading process is the same?

Alternatively, if I stick with the David Mellis Core I need to work out whether setting analogReference(INTERNAL); sets the analog reference voltage to 1.1V or 2.56V. I strongly suspect it's 1.1V.

I'd love to know what analogReference(6); actually does? Looking at the ATtiny45 datasheet, specifically page 134, table 17-3, second last row, if Voltage Reference Selection Bits 2 and 1 are set high and Voltage Reference Selection Bit is set low you can select 2.56V. I wonder whether inserting the number 6 in analogReference(6) actually does this? 110 binary = 6 decimal?

Cheers

Jase :slight_smile: