/******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V1.0
* Date : 08/09/2009
* Description : Description of the RTC Example.
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Example description
===================
This example demonstrates and explains how to use the RTC peripheral.
As an application example, it demonstrates how to setup the RTC peripheral, in terms
of prescaler and interrupts, to be used to keep time and to generate Second interrupt.
The Low Speed External (LSE) clock is used as RTC clock source.
The RTC clock can be output on the Tamper pin (PC.13). To enable this functionality,
uncomment the corresponding line: #define RTCClockOutput_Enable in the main.c file.
The RTC is in the backup (BKP) domain, still powered by VBAT when VDD is switched off,
so the RTC configuration is not lost if a battery is connected to the VBAT pin.
A key value is written in backup data register1 (BKP_DR1) to indicate if the RTC
is already configured.
The program behaves as follows:
1. After startup the program checks the backup data register1 value:
� register1 value not correct: (BKP_DR1 value is not correct or has not yet
been programmed when the program is executed for the first time) the RTC is
configured and the user is asked to set the time (entered on HyperTerminal).
� register1 value correct: this means that the RTC is configured and the time
is displayed on HyperTerminal.
2. When a External Reset occurs the BKP domain is not reset and the RTC configuration
is not lost.
3. When power on reset occurs:
� If a battery is connected to the VBAT pin: the BKP domain is not reset and
the RTC configuration is not lost.
� If no battery is connected to the VBAT pin: the BKP domain is reset and the
RTC configuration is lost.
In the RTC interrupt service routine, the LED connected to PC6 toggles every 1 s.
The C library printf function is retargeted to the USART1, that is, the printf
message is output to the HyperTerminal using USART1.
Directory contents
==================
stm32f10x_conf.h Library Configuration file
stm32f10x_it.h Interrupt handlers header file
stm32f10x_it.c Interrupt handlers
main.c Main program
Hardware environment
====================
- Connect a led to pin PC.06 (LD1 on STM3210B-EVAL board).
- The USART1 signals (Rx, Tx) must be connected to a DB9 connector using a RS232
transceiver.
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN6 on STM3210B-EVAL board) and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: None
- Connect a 3V battery on Vbat pin (already mounted on STM3210B-EVAL board)
How to use it
=============
In order to make the program work, you must do the following :
- Create a project and setup all your toolchain's start-up files
- Compile the directory content files and required Library files :
+ stm32f10x_lib.c
+ stm32f10x_gpio.c
+ stm32f10x_rcc.c
+ stm32f10x_rtc.c
+ stm32f10x_bkp.c
+ stm32f10x_pwr.c
+ stm32f10x_nvic.c
+ stm32f10x_usart.c
+ stm32f10x_flash.c
- Link all compiled files and load your image in Flash
- Run the example
******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
RTC.rar_ST_stm32f103 rtc_stm32f103x
共128个文件
h:36个
c:29个
o:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 50 浏览量
2022-09-24
04:44:08
上传
评论
收藏 877KB RAR 举报
温馨提示
st系列单片机STM32F103x的RTC操作例程
资源推荐
资源详情
资源评论
收起资源包目录
RTC.rar_ST_stm32f103 rtc_stm32f103x (128个子文件)
RTC.axf 116KB
RTC_uvopt.bak 66KB
RTC.opt.bak 4KB
RTC_Opt.Bak 4KB
RTC.Uv2.bak 3KB
RTC_Uv2.Bak 3KB
stm32f10x_tim.c 133KB
stm32f10x_tim1.c 116KB
stm32f10x_adc.c 59KB
stm32f10x_i2c.c 46KB
stm32f10x_rcc.c 44KB
stm32f10x_usart.c 44KB
stm32f10x_fsmc.c 41KB
stm32f10x_sdio.c 39KB
stm32f10x_spi.c 35KB
stm32f10x_dma.c 33KB
stm32f10x_flash.c 33KB
stm32f10x_can.c 31KB
stm32f10x_it.c 30KB
stm32f10x_nvic.c 30KB
stm32f10x_it.c 29KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 17KB
main.c 16KB
stm32f10x_rtc.c 13KB
stm32f10x_bkp.c 12KB
stm32f10x_pwr.c 11KB
LCD1602.c 10KB
stm32f10x_lib.c 9KB
stm32f10x_exti.c 9KB
stm32f10x_wwdg.c 8KB
stm32f10x_systick.c 7KB
stm32f10x_iwdg.c 7KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_crc.c 5KB
main.crf 170KB
stm32f10x_it.crf 166KB
stm32f10x_rtc.crf 164KB
stm32f10x_lib.crf 163KB
stm32f10x_gpio.crf 43KB
lcd1602.crf 42KB
stm32f10x_rcc.crf 42KB
stm32f10x_flash.crf 39KB
stm32f10x_bkp.crf 38KB
stm32f10x_nvic.crf 37KB
stm32f10x_pwr.crf 37KB
stm32f10x_systick.crf 28KB
stm32f10x_iwdg.crf 26KB
stm32f10x_it.d 2KB
stm32f10x_lib.d 2KB
stm32f10x_rtc.d 2KB
main.d 1KB
stm32f10x_gpio.d 381B
stm32f10x_bkp.d 372B
stm32f10x_pwr.d 372B
lcd1602.d 358B
stm32f10x_systick.d 351B
stm32f10x_flash.d 335B
stm32f10x_nvic.d 327B
stm32f10x_iwdg.d 327B
stm32f10x_rcc.d 319B
RTC_Target 1.dep 715B
stm32f10x_tim.h 52KB
stm32f10x_tim1.h 40KB
stm32f10x_map.h 32KB
TYC_GPIO_Init.h 23KB
UET_GPIO.h 22KB
stm32f10x_adc.h 21KB
stm32f10x_dma.h 20KB
stm32f10x_fsmc.h 19KB
stm32f10x_nvic.h 18KB
stm32f10x_sdio.h 18KB
stm32f10x_rcc.h 17KB
stm32f10x_i2c.h 16KB
stm32f10x_usart.h 16KB
stm32f10x_spi.h 15KB
stm32f10x_gpio.h 15KB
stm32f10x_flash.h 14KB
stm32f10x_can.h 12KB
stm32f10x_dac.h 10KB
stm32f10x_bkp.h 8KB
stm32f10x_conf.h 6KB
stm32f10x_exti.h 6KB
stm32f10x_pwr.h 4KB
LCD1602.h 4KB
stm32f10x_it.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_it.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_systick.h 3KB
stm32f10x_type.h 3KB
stm32f10x_lib.h 3KB
stm32f10x_dbgmcu.h 3KB
stm32f10x_wwdg.h 3KB
cortexm3_macro.h 2KB
ip_arp_udp_tcp.h 2KB
stm32f10x_crc.h 2KB
LCD1620.h 1KB
RTC.hex 23KB
RTC.htm 82KB
共 128 条
- 1
- 2
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现的模糊聚类分析项目源码.zip
- 基于springboot的医院门诊管理系统源码.zip
- 基于python的垃圾分类系统源码(高分优质项目).zip
- 场景视点偏移改善激光雷达点云分割项目源码(下载即用).zip
- 纸板缺陷检测数据集VOC+YOLO格式1055张1类别.7z
- 基于CarNet实现裂缝检测python源码+文档说明+数据+图片(课程设计)
- 课程设计-基于耐火材料裂缝剥落检测python源码+课件
- 基于OpenCV的视频道路车道检测python源码+文档说明+实验演示+图片+使用方法(高分毕业设计)
- 基于OpenCV的案例:图像边缘、角点和轮廓检测,图像分割,图像增强;图片拼接;运动目标检测,颜色直方图比较,三帧帧差法,抠图
- SmartPlug-html大一笔记
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功