New blog about Atmel MCU and Atmel Software framework

We discover in this article the flexible system clock of the AVR XMega A4U that remember to be very similar to other XMega and let’s see how to configure it with ease thanks to the ASF module Clock Control System we have added to our project and analyzed in previous episodes.
For those wishing to download the Atmel Studio project created so far: progetto_introduzione_ASF_3
As mentioned in the previous article, after the reset (and when) the device will start theinternal oscillator from 2 MHz then you can change at runtime through our various firmware system clock.
Let’s see a schema based on the datasheet of the microcontroller that summarizes well what we offer for the clock:
Initially you may be frightened by the many Options and acronyms, a question often asked by newcomers is “but not just a simple General clock?”
asf_structure_thumb11.jpg
The microcontroller has many devices that typically work at different speeds from the CPU:
-the Brown-out that detects any cali when the power reset and Watchdog Timer that allows the detection of firmware blocks working at 1 kHz tone generated from a clocked at 32 kHz
-Real-time counter (RTC) that allows you to keep track of the time typically works at 1024 kHz but can work with higher resolution (greater than 1ms) to 32,768 kHz
USB module requires a minimum clock speed of 6 MHz for working in low speed and at least 48 MHz to full speed mode
-the devices as the DMA controller, event system, interrupt controller and RAM have a clock set called clkPER
-the EBI (External Bus Interface) used to connect external memory such as SRAM and SDRAM or devices such as LCD display memory mapped working on a clkPER2 clocks up to twice as much to devices. The module is only present on some package, generally with a large number of pins, is not present on our Development Board ATXMega32A4U EWS.
-the Hi-Res has clkPER4 clock up to four-fold compared to devices, is used to generate waveforms with high resolutionInitially you may be frightened by the many Options and acronyms, a question often asked by newcomers is “but not just a simple General clock?”
 
For more detail: New blog about Atmel MCU and Atmel Software framework


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top