Using 5V AVR's with AVR-USB
Using 5V AVR's with AVR-USB
Generally speaking, is it possible to use a 5V-only rated AVR (e.g. non-L suffix device, such as ATmega8/16) in a AVR-USB design? Most of the reference designs I've looked at use a 3.5V regulator to step down the 5V USB bus voltage to provide the AVR's Vcc supply. I understand why this is the case; the USB D+/D- lines use 3(.5)V signal levels.
The ATmega16 data sheet (as well as most other 5V-only AVR's) indicates that this device is rated for a 16 MHz clock at 4.5-5.5V. It does not specify operation at lower voltages. The -L suffix variant is rated for operation down to 2.7V with a 8 MHz maximum clock. Is it the experience of those using AVR-USB that these 5V-rated devices can run at 12 MHz using a 3.5V Vcc supply ? I am assuming of course that the device will be running at an ambient temperature around 25C, and will not be subjected to temperature extremes during operation.
On a related subject, I have noted that some of the AVR-USB designs I've seen use a 2-series-diode "regulator" in series with the USB 5V bus supply, which under most 'normal' conditions would result in a 1.2-1.4V drop, for a Vcc around 3.6-3.8V. Does this design shortcut work acceptably under most conditions?
The ATmega16 data sheet (as well as most other 5V-only AVR's) indicates that this device is rated for a 16 MHz clock at 4.5-5.5V. It does not specify operation at lower voltages. The -L suffix variant is rated for operation down to 2.7V with a 8 MHz maximum clock. Is it the experience of those using AVR-USB that these 5V-rated devices can run at 12 MHz using a 3.5V Vcc supply ? I am assuming of course that the device will be running at an ambient temperature around 25C, and will not be subjected to temperature extremes during operation.
On a related subject, I have noted that some of the AVR-USB designs I've seen use a 2-series-diode "regulator" in series with the USB 5V bus supply, which under most 'normal' conditions would result in a 1.2-1.4V drop, for a Vcc around 3.6-3.8V. Does this design shortcut work acceptably under most conditions?
There is no maximum clock vs. supply voltage specification directly available from Atmel.
However, if you look at the diagrams in the electrical specification of the ATMega8, especially "Active Supply Current vs. Frequency", parametrized by supply voltage (Figure 119), you see that the supply current has at least been measured at 14 MHz and 3.3V.
For "mass production", I would recommend that you use the ATMega88 which is rated for 2.7 to 5.5V. Figure 26-3 in the Mega88 datasheet indicates the safe operating area in terms of frequency over Vcc. As you can see, the limit can be linearly interpolated.
If the interpolation specified for the Mega88 is also valid for the Mega8, you should be on the safe side.
Otherwise simply try it. AVRs have been successfully overclocked to about twice the specified clock rate. If it still works at 2.7V and 16MHz, I would assume that it works reliably at 3.3V and 12MHz.
However, if you look at the diagrams in the electrical specification of the ATMega8, especially "Active Supply Current vs. Frequency", parametrized by supply voltage (Figure 119), you see that the supply current has at least been measured at 14 MHz and 3.3V.
For "mass production", I would recommend that you use the ATMega88 which is rated for 2.7 to 5.5V. Figure 26-3 in the Mega88 datasheet indicates the safe operating area in terms of frequency over Vcc. As you can see, the limit can be linearly interpolated.
If the interpolation specified for the Mega88 is also valid for the Mega8, you should be on the safe side.
Otherwise simply try it. AVRs have been successfully overclocked to about twice the specified clock rate. If it still works at 2.7V and 16MHz, I would assume that it works reliably at 3.3V and 12MHz.
Thanks for the responses
Thanks to Grendel and Christian for your responses. I'm using a ATmega168 running at 5.0V @ 12 MHz and its working just fine. I have 68 ohm series resistors on the D+/D- lines and a 1.5K pullup on D-. I like Grendel's idea to use 3.3V zeners; I will incorporate them into my design.
Since it seems to be difficult here to get my hands on a LE35CZ I think I´ll try the method above. I don´t have too much experience in circuit design so I try to sum the previous posts up reflecting the reference design on AVR-USB Main page:
Would this be the correct replacement assuming I use a bus powered device?
Maybe R2 and R3 could be changed to 82R as mentioned by Grendel, but I don´t understand his reference to an "ID R" .
Would be great if somebody could help me.
Thanks
Would this be the correct replacement assuming I use a bus powered device?
Maybe R2 and R3 could be changed to 82R as mentioned by Grendel, but I don´t understand his reference to an "ID R" .
Would be great if somebody could help me.
Thanks
atmega8
i would like to know a very basic question.. i need the i/o port sink current atmega8 takes to build a power supply accordingly.. there is a graph in the data sheet.. so assuming i take reading at 25 degree C.. at what output voltage should i consider it.. would be considering Vcc=5V