Atmel Xplained Evaluation Board ATXMEGAA3BU-XPLD ATXMEGAA3BU-XPLD Data Sheet

Product codes
ATXMEGAA3BU-XPLD
Page of 15
 
AVR1934
 
 
11
8413A-AVR-09/11 
“Set date” and “set time” presents the 
user with the current date or time and 
spinner widgets to adjust them. The 
date widget does not do real-time 
checking of valid dates, so if the user 
tries to set an invalid date such as Feb. 
31
th
; an error message will be 
presented, and the date will not be stored. 
The “Set timezone” menu option is the same application that is presented to the user 
on initial startup, and will present the user with a list of time zones from UTC -12 to 
+12 hours and UTC +0, +15, +30 or +45 minutes. The selector uses the menu system 
and a list of strings to present the user with the available options. The selected time 
zone is stored in EEPROM. 
The date and time menu, along with the associated applications are located in 
date_time.c
 and 
date_time.h
. The time zone selector is located in 
timezone.c
 and 
timezone.h
It is important to note that this application does not account for Daylight Saving Time 
(DST). 
3.3 Production date application 
The production date application uses 
the current time from the RTC and the 
production time stored in user signature 
row to calculate and show on the LCD 
display how much time in months, days 
and hours has elapsed since production. 
If production time in the signature row is 
corrupted, it will be assumed to be 01.01.1970, 00:00:00. The production date 
application is available from the main menu. It is located in 
production_date.c
 and 
production_date.h
3.4 Temperature application 
The temperature application acquires 
the temperature using the functions 
available from 
adc_sensors.c
 and 
adc_sensors.h
, and then displays this 
data on the screen, together with a 
thermometer picture which has a scale 
depending on the measured data. The temperature application is available from the 
main menu. It is located in the files 
ntc_sensor.c
 and 
ntc_sensor.h
 
 
 
 
Figure 6 "Time since production" 
application screenshot 
Figure 7 A cold winter day 
Figure 5 Set date, month spinner 
selected