[TUT][HARD][SOFT] AVR Clocking

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As mentioned elsewhere I 'volunteered' to write something we can point poster to when then have yet another problem with baud rates and the like. It's still work in progress and will get finalised over the next couple of days.

 

Comment welcomes.

 

Attachment(s): 

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wow - looks great already!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very nice!

 

I might say that this:

As the name suggests this oscillator is inside the AVR and requires no external components. The
word ‘calibrated’ is misleading though as for many applications, especially UART communications,
the frequency it runs at is not accurate enough for reliable operation. Which means you really need
to be using...

... should perhaps be a bit less absolute w.r.t. suitability of RC oscillator for comms.  In very many instances, it is plenty good.  Maybe just say "often not accurate enough".

 

It depends, of course, on the device itself.  Some recent devices ship which a +/-3% factory calibration.  An important caveat is that the factory calibration is generally at a specific VCC and temperature.

 

It's worse for some older devices.  The m8 for example has a +/-10% factory calibration, but only the 1 MHz calibration is loaded at reset, even if the device is running from the  2, 4, or 8 MHz oscillator.  Newer single-oscillator devices with CLKPR and CKDIV8 avoid this.

 

You may also want to mention ceramic resonators, which generally include the capacitors in the same package.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]