4.
Software Description
The demo application uses the following programs:
1.
A Flash application with EEPROM settings for the Atmel
®
ATA8510 remote sensor
2.
A SAMD20 application with EEPROM settings for the Atmel ATA8515 receiver
The following section describes each program flow. The IAR embedded workbench for AVR
®
[5] is used
together with the JTAGICE3 debug tool for Flash application development of the remote sensor. Atmel
Studio 6 or 7 [4] is used together with the debug tool included on the Xplained PRO SAMD20 board for
SAMD20 application development.
The source code for all applications is available within the tool pack distribution [10].
4.1.
Flash Application for the ATA8510 Remote Sensor
The program flow for the remote sensor application is illustrated in
device is the OFF mode. The real-time clock of the remote sensor wakes up the transceiver every 2s and
switches the device to active mode. The temperature sensor is powered up and read out followed by the
transmission of the data telegram. During transmission of this data telegram the supply voltage level is
checked and if this is below 2.2V, an error message is transmitted after a delay of 200ms. The device
then enters the OFF mode again until the next wake-up by the RTC (or by pressing the S2 button).
Figure 4-1. Flash Application for the Atmel ATA8510 Remote Sensor
check wake-up source
switch sensor power and LED on
Initialisation
Off mode
Off mode
perform temperature
measurement [40ms]
Measurement
switch off LED and
transmit data telegram [11ms]
Low battery
voltage?
Perform 2-way RF communication
[200ms]
Wait
transmit error telegram [11ms]
Transmission
Wake-up
source?
yes
applied
released
no
Atmel User Guide for the Evaluation Kit ATA8510-EK1 [APPLICATION NOTE]
Atmel-9343D-ATAN0046_Application Note-09/2016
13