![Atmel ATSAM4C-EK Скачать руководство пользователя страница 35](http://html.mh-extra.com/html/atmel/atsam4c-ek/atsam4c-ek_user-manual_3003465035.webp)
35
ATSAM4C-EK [USER GUIDE]
11251A–ATARM–16-Dec-13
4.
Evaluation Kit Firmware Demonstration
4.1
ATSAM4C-EK Default Application
The ATSAM4C-EK is delivered with a preprogrammed default application in SAM4C Flash memory. This application
implements SAM4C embedded peripherals and external (on-board) peripherals as detailed in the table below.
After the first power-up without the backup battery, the time (hour and minute) of the RTC can be configured. The Hour
and Minute settings are entered using the following push buttons:
BP4 (SCROLL-UP)—sets the Hour (24H mode entries must be made)
BP5 (SCROLL-DOWN)—sets the Minute
BP6 (TMP2)—saves the Hour and Minute settings
Once the time settings have been saved, BP4 (SCROLL-UP) can be used to toggle the Hour display between 12H or
24H mode.
Note:
RTC time configuration can be skipped by pressing BP6.
Once the Hour and Minute have been configured, the main application on core 0 runs in an infinite loop, repeating the
following steps:
Every second, the time is displayed with colon (:) icon blinking
Every fifteen (15) seconds, the VDDBU pin voltage is measured and displayed
(1)
Every thirty (30) seconds, the temperature (using the AT30TS75) is measured and displayed in °C and in °F.
Note:
1.
On the ATSAM4C-EK, the voltage measured is the VDDIO voltage minus the forward voltage of the diode in
the BAT54C (D4).
At startup, the main application configures the core 1 subsystem to run a CoreMark algorithm from the core 1 SRAM
memories (SRAM1 and SRAM2). Once the CoreMark is finished, the result of the CoreMark (number of CoreMark/MHz)
is passed to the main application using the inter-processor communication embedded in the SAM4C. Once the result is
retrieved by the main application, the result of the CoreMark is displayed and the CoreMark algorithm running on core 1
is restarted. An ammeter connected either on JP12 (VDDIN) or on JP6 (VDDCORE) can measure the active current
consumption of both cores.
4.2
Measuring the Backup mode current consumption on VDDBU
The SAM4C has an ultra-low-power mode RTC and Supply controller allowing less than 1µA (typical) on VDDBU, with
the following functions/peripherals configuration:
32.768 kHz Crystal Oscillator enabled
POR backup on VDDBU disabled
RTC running
RTT enabled on 1 Hz mode
Force wake-up (FWUP) enabled
Anti-tamper Input (TMP0) enabled
Table 4-1.
SAM4C Embedded Peripheral
Connected to External (on-board) Peripheral
Real-Time Clock (RTC)
—
Anti-Tamper
BP3 Push Button
Two-wire Interface
Temperature Sensor AT30TS75
Segmented LCD
Custom Atmel Display
SAM4C Core 1
—
10-bit ADC
Internal ADC channel connected to Battery Backup Power Rail (VDDBU)
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from