![Atmel SAM4C32-EK Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/atmel/sam4c32-ek/sam4c32-ek_user-manual_3003491033.webp)
SAM4C32-EK [USER GUIDE]
Atmel-11253A-ATARM-SAM4C32-EK-UserGuide_17-Sep-14
33
4.
SAM4C32-EK Firmware Demonstration
4.1
SAM4C32-EK Default Application
The SAM4C32-EK is delivered with a preprogrammed default application in SAM4C32 Flash memory. This
application implements SAM4C32 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
Every thirty (30) seconds, the temperature (using the AT30TS75) is measured and displayed in °C and in °F.
Note:
1.
On the SAM4C32-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
SAM4C32. 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.
Table 4-1.
SAM4C32 Embedded Peripherals
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
SAM4C32 Core 1
—
10-bit ADC
Internal ADC channel connected to Battery Backup Power Rail (VDDBU)