STMicroelectronics Multiple-device temperature sensor and RTC demonstration board based on the STM32 STEVAL-IFS017V1 STEVAL-IFS017V1 Fiche De Données

Codes de produits
STEVAL-IFS017V1
Page de 46
UM1539
Getting started
Doc ID 023106 Rev 1
27/46
1.2.28 
M41T83_QFN date and time setting
1.
Click on the RTC Selection icon in the toolbar of the GUI. the RTC selection Radio 
button appears in the GUI, as shown in
2. 
Select RTC M41T83 (QFN) and the RTC child window opens, as shown in 
.
3. 
Press the Update button to enable the configuration of RTC. Pressing the Update 
button enables the GUI window for RTC configuration. It also reads the RTC registers 
from the onboard RTC and displays the same in the GUI.
4. 
After pressing the Update button, reset the HT bit to see the clock ticking on the display.
5. 
Configure the RTC date and time by clicking on the Set Time button in the GUI. It 
programs the onboard RTC with the system date and time.
6. 
CB0, CB1, Stop bit, and OFIE bit are checkboxes to enable or disable the respective bit 
in RTC. Checking the box and then pressing the Write button sets the bits and un-
checking them and clicking on the Write button resets the bits.
7. 
The Program button configures the RTC with the current settings visible in the GUI.
8. 
The RTC Reg button shows the RTC registers and the values present in those 
registers.
9. 
Device time in the GUI also reads the milliseconds from RTC and displays them in the 
GUI.
1.2.29 
M41T83_QFN RTC alarm setting
M41T83_QFN RTC has two alarm functions: 
Alarm one
Alarm two
a) Alarm 
one
1.
Set the alarm date and time using the alarm one date and time section on the RTC GUI 
window.
2. 
Check the A1IE checkbox to see the alarm status on the interrupt output pin of RTC. 
This is seen as an LED glowing on the motherboard whenever the alarm match occurs.
3. 
Press the Write button to program the alarm one date and time in the RTC.
4. 
As the Alarm time is matched, the AF1 flag sets inside the flag status register and if 
A1IE is also checked, the D4 LED glows on the motherboard. This alarm can be seen 
in the GUI by pressing the Read Flag button, the AF1 flag glows and is cleared on a 
second pressing of read flags.
5. 
The D6 LED shows the status of the #IRQ1 pin of the RTC.
a) Alarm 
two
1.
Set the alarm date and time using the alarm two date and time section on the RTC GUI 
window.
2. 
Check the AL2E bit to enable the alarm two function. The A2IE bit is used to enable the 
alarm match status output on the #IRQ2 pin of RTC.
3. 
Press the Write button to program the alarm two configuration in RTC.
4. 
On the matching of RTC clock date and time with the alarm two date and time, the AF2 
flag is set inside the flag status register and, if the A2IE bit is checked, then the alarm 
match status is also seen on the motherboard as the glow of the D1 LED. The D1 LED 
goes off on pressing the Read Flags button.