Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
295
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
16.3
Block Diagram
Figure 16-1.
RTC Block Diagram
16.4
Product Dependencies
16.4.1 Power Management
The Real-time Clock is continuously clocked at 32.768 kHz. The Power Management Controller has no effect on 
RTC behavior.
16.4.2 Interrupt
RTC interrupt line is connected on one of the internal sources of the interrupt controller. RTC interrupt requires the 
interrupt controller to be programmed first. 
16.5
Functional Description
The RTC provides a full binary-coded decimal (BCD) clock that includes century (19/20), year (with leap years), 
month, date, day, hours, minutes and seconds.
The valid year range is 1900 to 2099 in Gregorian mode, a two-hundred-year calendar(or 1300 to 1499 in Persian 
mode).
The RTC can operate in 24-hour mode or in 12-hour mode with an AM/PM indicator.
Corrections for leap years are included (all years divisible by 4 being leap years). This is correct up to the year 
2099.
The RTC can generate configurable waveforms on RTCOUT0/1 outputs.
16.5.1 Reference Clock
The reference clock is Slow Clock (SLCK). It can be driven internally or by an external 32.768 kHz crystal.
During low power modes of the processor, the oscillator runs and power consumption is critical. The crystal 
selection has to take into account the current consumption for power saving and the frequency drift due to 
temperature effect on the circuit for time accuracy.
16.5.2 Timing
The RTC is updated in real time at one-second intervals in normal mode for the counters of seconds, at one-
minute intervals for the counter of minutes and so on.
User Interface
32768 Divider
Time
Slow Clock: SLCK
APB
Date
RTC Interrupt
Entry 
Control
Interrupt 
Control
Clock Calibration
RTCOUT0
RTCOUT1
Wave
Generator
Alarm