Go Down

Topic: atMega8L -- any external components required at all? (Read 2790 times) previous topic - next topic

pico

Oct 04, 2012, 07:11 pm Last Edit: Oct 04, 2012, 07:14 pm by pico Reason: 1
I've got some atMega8L chips ordered I intend to run at 3.3V, 8MHz from the internal oscillator.

I'm not intending to use the analog ADC, but the datasheet says I should supply power to AVcc as well as Vcc anyway.

Is there any need for any external components (e.g., caps) at all in this setup? I've seen some mega8 chips setup with small filter caps on AVcc and AREF to GND, but not sure if this will be beneficial at all if not using the ADC. The datasheet itself doesn't have anything definite to say on the matter AFAICT.

Thoughts?
 
WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

retrolefty


I've got some atMega8L chips ordered I intend to run at 3.3V, 8MHz from the internal oscillator.

I'm not intending to use the analog ADC, but the datasheet says I should supply power to AVcc as well as Vcc anyway.

Is there any need for any external components (e.g., caps) at all in this setup? I've seen some mega8 chips setup with small filter caps on AVcc and AREF to GND, but not sure if this will be beneficial at all if not using the ADC. The datasheet itself doesn't have anything definite to say on the matter AFAICT.

Thoughts?
 


.1 ufd caps mounted close to Vcc and Avcc for sure. If your not going to use ADC then bypassing Aref not really required. Chip manufacures almost always recommend applying standard Vcc bypassing as standard industry practice. 

Lefty

fungus


I've got some atMega8L chips ordered I intend to run at 3.3V, 8MHz from the internal oscillator.

I'm not intending to use the analog ADC, but the datasheet says I should supply power to AVcc as well as Vcc anyway.

Is there any need for any external components (e.g., caps) at all in this setup? I've seen some mega8 chips setup with small filter caps on AVcc and AREF to GND, but not sure if this will be beneficial at all if not using the ADC. The datasheet itself doesn't have anything definite to say on the matter AFAICT.


Atmel recommends a 220nF ceramic capacitor for decoupling and a 4.7k pullup resistor on RESET. That's it.

http://www.atmel.com/Images/doc0484.pdf

http://www.atmel.com/images/doc2521.pdf


Bear in mind that the internal 8mHz clock rate varies with temperature/voltage. Timing won't be very accurate, serial comms won't work except at slow speeds.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Coding Badly

Timing won't be very accurate, serial comms won't work except at slow speeds.


A problem easily rectified with tuning.

dhenry

Quote
Is there any need for any external components (e.g., caps) at all in this setup?


You don't have to have them. But it is better to have them.

Quote
A problem easily rectified with tuning.


It actually requires far more than that. RC oscillators suffer a few issues: temperature drift, accuracy and jitter. Accuracy at a given temperature is easy to deal with. Jitter for long-time horizon applications can be dealt with. Temperature drift is difficult to resolve. fungus is right on target on this one.


Coding Badly

It actually requires far more than that.


The target accuracy is "good enough for reliable serial communication at high speeds".  I stand by what I said.

dhenry

Quote
The target accuracy is "good enough for reliable serial communication at high speeds".


Not sure how "high" of a high speed you are talking about but set the mcu on internal oscillator and run it at 38400 bps. Put your solder iron to the mcu and watch what happens on the transmission.

It is not pretty.


Coding Badly

Put your solder iron to the mcu and watch what happens on the transmission.


I can't tell if you're serious so I'll assume you are.  Grossly exceeding the temperature specification is not a valid test.

dhenry

Quote
Grossly exceeding the temperature specification is not a valid test.


Which part of it exceeded the temperature specification?

lemming

The data sheet specifies an operating temperature way below the ~300C degrees of a soldering iron.

Unless the OP's application requires a soldering iron to be constantly applied (while on) to the micro, I don't think this will pose a problem for its day-to-day operation. 

dhenry

You can get a peek at the internal rc's performance by looking an atmel app note (053), figure 2-1, p4.

dhenry

Most people do not understand the distinction between the internal rc's accuracy vs. (thermal) drift.

Coding Badly


Over the entire voltage-temperature envelope of the 328P processor, with a goal of 38400 baud, the error is -6.73% to 3.92%.  Well within range for serial communications to work.

Assuming the application does not require the full voltage range (1.8 to 5.5), the error over the temperature range drops to -3.60% to 2.66%.  Low enough for serial communications to be considered reliable.

pico


and a 4.7k pullup resistor on RESET.


The internal pullup by itself isn't reliable? Surprising.

Quote

http://www.atmel.com/Images/doc0484.pdf

http://www.atmel.com/images/doc2521.pdf


Thanks for the links! Useful reference material there.

BTW, just for some context, the discussion regarding the internal clock accuracy is interesting and useful for the general situation, but in this particular application I won't be using serial comms at all. Actually, I'll be using the atMega8L to replace an atTiny85, which works fine with an internal oscillator at 8MHz for this application, so I had assumed the atMega8L would too.

In this situation, since I'm not using ADC, or anything requiring a high clock accuracy, I was just wondering what external components (if any) I must/would be advised to have for an atMega8L.

WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

Coding Badly

and a 4.7k pullup resistor on RESET.


The internal pullup by itself isn't reliable? Surprising.


It's "weak".  30K to 60K ohms.  In some situations that makes it unreliable.

And, the cost of a single 4.7K to 10K resistor is how much?

Go Up