EasyManuals Logo

Atmel AVR XMEGA AU series User Manual

Atmel AVR XMEGA AU series
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #124 background imageLoading...
Page #124 background image
124
8331B–AVR–03/12
Atmel AVR XMEGA AU
10.5.2 Main Power Restore and Start-up Sequence
At every startup after main power is restored, the software should:
1. Control the main reset source to determine that a POR or BOD took place.
2. Check for power on the V
BAT
pin by reading the BBPWR flag.
3. Read the power supervisor flags to determine further software action:
a. If all power supervision flags are cleared, the battery backup system runs as nor-
mal. The software should enable access to the battery backup system and check
the crystal oscillator failure flag. If the flag is set, the software should assume that
the RTC counter value is invalid and take appropriate action.
b. If any power supervision flags are set, it indicates the battery backup system has
lost power sometime during the period when the rest of the device was unpower-
erd. Software should assume that the configuration and RTC value are invalid and
take appropriate action.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR XMEGA AU series and is the answer not in the manual?

Atmel AVR XMEGA AU series Specifications

General IconGeneral
BrandAtmel
ModelAVR XMEGA AU series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals