RTC System
UG0331 User Guide Revision 15.0
608
7. For more information on RTC usage, sample projects that are available can be generated, as shown in the
following figure.
Figure 260 •
RTC Examples
18.3.2
RTC Use Model
Use the following steps to use RTC:
1.
Configure the RTC from Libero SoC using the RTC configuration window.
2.
Initialize the RTC driver using the MSS_RTC_init() function.
3.
Use the MSS_RTC_configure() function to configure the RTC.
4.
Set match value of the RTC using the MSS_RTC_set_rtc_match() function.
5.
Use the MSS_RTC_enable_irq() function to enable the RTC match interrupt.
6.
Call the MSS_RTC_start() function to increment RTC.
7.
On reaching the match value, RTC generates the interrupt. Clear the interrupt.
8.
Stop RTC increment using the MSS_RTC_stop( ) function
Note:
The MSS RTC does not support full behavioral simulation models. Refer to
for more information.
18.4
RTC Register Map
The Register Map for the RTC is shown in
Note:
In this peripheral, all the register writes should be a WORD operation. A byte operation corrupts the
other bits in the register.
Control of RTC
MSS_RTC_start()
Starts the RTC incrementing
MSS_RTC_stop()
Stops the RTC from incrementing
MSS_RTC_reset_counter()
Resets the calendar counters
Interrupt control
MSS_RTC_enable_irq()
Enables the RTC wakeup interrupt
MSS_RTC_disable_irq()
Disables the RTC wake up interrupt
MSS_RTC_clear_irq()
Clears pending RTC wakeup interrupt
Table 603 •
RTC APIs
(continued)
Category
API
Description and Usage
Содержание SmartFusion2 MSS
Страница 1: ...UG0331 User Guide SmartFusion2 Microcontroller Subsystem ...
Страница 166: ...Cortex M3 Processor Reference Material UG0331 User Guide Revision 15 0 132 ...
Страница 200: ...Embedded NVM eNVM Controllers UG0331 User Guide Revision 15 0 166 Figure 87 System Builder Window ...
Страница 407: ...Universal Serial Bus OTG Controller UG0331 User Guide Revision 15 0 373 ...
Страница 806: ...Fabric Interface Controller UG0331 User Guide Revision 15 0 772 Figure 345 FIC Master AHB Lite Subsystem ...