Application Description - Atmel ATA8520-EK3-E User Manual

Evaluation kit and extension boards
Table of Contents

Advertisement

6.

Application Description

The Flash application for both kits is set up in the same way with the exceptions described in
are found in the CPU and system and Timer2 clock and sleep modes.
Table 6-1.
Flash Application Differences
Feature
Oscillator and CPU clock
Timer2
Sleep mode
System clock
The source code for all applications is available within the tool pack distribution [7].
The program flow for the Flash application is illustrated in
such as pins, timers, SPI, ADC, UART, TWI and the ATA8520D SIGFOX transceiver by reading out the ID/PAC information
required for SIGFOX
Timer2 is used as a real-time clock and uses either the
External 32.768kHz crystal for the ATA8520-EK1-E kit or the
Internal system clock for the ATA8520-EK2-E and ATA8520-EK3-E kits.
Timer2 is configured to wake up the MCU every hour or every 15 minutes. Pressing button SW1 also causes the MCU to
wake up. The temperature sensor is powered up and read out and after this a data telegram is transmitted. The device then
enters power-down mode again until the next wake-up by the RTC (or manually by pressing SW1).
Figure 6-1. Flash Application Flow Chart
Start
Initialisation 1
Init pins, Timer0, Timer2,
SPI, ADC
Initialisation 2
Init UART, TWI, ATA8520 and
read and print ID/PAC
Switch to power-down mode
(ATA8520-EK1-E only)
Timer2 event
or button
pressed?
no
16
ATAN0104 [APPLICATION NOTE]
9373E–AUTO–11/15
ATA8520-EK1-E
Internal 8MHz RC oscillator
External 32.768kHz crystal
Power down mode
8MHz
registration. This ID/PAC data is send via the UART interface to a PC terminal application. The
Switch sensor power RF
transmitter and LED on
Read-out temp. sensor
and convert result
Switch sensor power off
Transmit count ≥ 4?
yes
yes
Transmit as Downlink Frame
and receive data payload
Switch RF transmitter
and LED off
Check and wait if button
released
ATA8520-EK2-E
Xplained Mini
External 16MHz clock
Internal system clock 16MHz
Idle in main loop
16MHz
Figure
6-1. The application first initializes all required peripherals
Transmit as Downlink Frame
and receive data payload
Load data in TX buffer
no
Transmit as Uplink Frame
Transmit as Uplink Frame
Load data in TX buffer
Table
6-1. The main differences
ATA8520-EK3-E
Xplained Pro
External 32.768kHz crystal
Internal system clock 48MHz
Idle in main loop
48MHz
and transmit
no
Is transmit
Blink LED
finished?
yes
Read RX buffer data
done
and transmit
no
Is transmit
Blink LED
finished?
yes
done

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATA8520-EK3-E and is the answer not in the manual?

This manual is also suitable for:

Ata8520-ek1-eAta8520-ek2-e

Table of Contents