Author Topic: ATmega 0 series. setting internal Vref required with external Vref  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
ATmega 0 series. setting internal Vref required with external Vref
« on: September 26, 2021, 03:29:06 pm »
Reading through the ADC section of the ATmega1608 carefully I came across a requirement when using an external reference voltage to set the internal voltage reference to a voltage as close to it and higher than it as possible.

Why? is there some sort of leakage from the inter reference that by default is 0.55V to the external reference pin or the reference circuitry?
 

Offline harerod

  • Frequent Contributor
  • **
  • Posts: 449
  • Country: de
  • ee - digital & analog
    • My services:
Re: ATmega 0 series. setting internal Vref required with external Vref
« Reply #1 on: September 27, 2021, 09:15:18 am »
Simon, thank you for bringing this to my attention. I have been using the tinyAVR 1-series for a while, but never with external ADC reference. I looked through Microchip's appnotes for ATtiny, but couldn't find any information beyond what is found in the datasheet (e.g. ATtiny1616 -> ADC operation -> "external reference").

"When using the external reference voltage V_REFA , configure ADCnREFSEL[0:2] in the corresponding VREF.CTRLn
register to the value that is closest, but above the applied reference voltage. For external references higher than
4.3V, use ADCnREFSEL[0:2] = 0x3."

Looking at this I can only suspect some structural diode.

The implication of this requirement is that other peripherals (e.g. DAC) are limited in their range of reference, when the ADC uses the external reference.

I don't have an isolated tinyAVR 1-series ready for measurement. If anybody had one, I would be curious as how  currents (supply, reference input) and analog accuracy change, when this requirement is violated.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATmega 0 series. setting internal Vref required with external Vref
« Reply #2 on: September 27, 2021, 12:22:01 pm »
The mega 0 series does not have a DAC. In light of this I really don't know why they do not have the internal reference register in the ADC registers. In fact you could be told to select the next voltage up from you external reference thus setting the internal one or the same bit set VDD or one of the internal values, it would make the coding easier. 1 bit to say internal or external followed by 3 bits that set the voltage including VDD as an internal option.

What they have done is so "mechanical"
 

Offline harerod

  • Frequent Contributor
  • **
  • Posts: 449
  • Country: de
  • ee - digital & analog
    • My services:
Re: ATmega 0 series. setting internal Vref required with external Vref
« Reply #3 on: September 27, 2021, 02:54:08 pm »
Ah, thanks for tacitly telling me to clean my glasses.  :palm:
Anyways, the ATmega1608 and ATtiny1616 seem to share some properties. Good to know.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATmega 0 series. setting internal Vref required with external Vref
« Reply #4 on: September 27, 2021, 06:22:35 pm »
all the new mega's and tiny's are just Xmega's with a new name that will run on 5V. I don't know what microchip are playing at other than confusing everyone. They may as well just call everything what it is: Xmega!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf