文档详情

使用 STM32F10xxx 微控制器的 RTC 实现时钟日历.pdf

发布:2018-05-13约7.4万字共28页下载文档
文本预览下载声明
AN2821 Application note Clock/calendar implementation on the STM32F10xxx microcontroller RTC The internal RTC (real-time clock) of the 32-bit, ARM® Cortex™-M3-based medium-density STM32F10xxx microcontroller is an independent timer. It provides a set of continuously running counters, which, using suitable software, can be used to implement a clock/calendar function. The RTC and backup registers are supplied through a switch that draws power from either the VDD supply (when present) or the backup battery. Thus the RTC runs even when the main supply is switched off. This application note gives an example of how to implement the clock/calendar functionality using the medium-density STM32F10xxx microcontroller in low-power and standard applications. The firmware example also performs leap year counting and tamper time stamping. It provides a low-power mode demonstration and a basic RTC calibration routine to compensate for crystal and temperature variations. The STM3210B-EVAL board supports the firmware example described in this application note without any modification to its hardware. Figure 1. STM3210B-EVAL board December 2008 Rev 1 1/28 Contents AN2821 Contents 1 Overview o
显示全部
相似文档