/*!
\file readme.txt
\brief description of the tamper with timestamp example
*/
/*
Copyright (C) 2016 GigaDevice
2014-12-26, V1.0.0, firmware for GD32F1x0(x=3,5)
2016-01-15, V2.0.0, firmware for GD32F1x0(x=3,5,7,9)
2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9)
*/
This demo is based on the GD32150R-EVAL/GD32190R-EVAL board, it explains how
to configure the RTC module. In this demo, RTC peripheral is configured to keep
time and generate the tamper interrupt.
The RTC clock source can be chose to LXTAL or IRC40K by uncomment the corresponding
define in main file. And the HyperTerminal should be connected to the evaluation
board via USART0/USART1. The vbat bin on the board should connect to the CR1220 battery.
The tamper key is the tamper0 pin. The tamper0 is configured to used for timestamp function.
After start-up, the program check if the BKP data register is written to a key
value. If the value is not correct, the program will ask to set the time value on the
HyperTerminal. If the key value is correct, the current time and subsecond will be
displayed on the HyperTerminal.
The RTC module is in the Backup Domain, and is not reset by the system reset or
power reset.
When press the tamper key, a tamper0 interrupt will be generated, and the tamper0 event
will reset the BKP0 register, thus if you press the reset key, on the HyperTerminal it asks
you to set the time again. LED1, LED2 toggles. If LED3 toggles, there may be other write
operations to BKP0 register has occured. In this example it's configured to enable timestamp
function when the tamper0 event occurs, thus the timestamp value is then be print on the
HyperTerminal to tell the time that tamper0 event occured.
没有合适的资源?快使用搜索试试~ 我知道了~
GD32F1x0_Firmware_Library_V3.0.0.rar
共434个文件
h:175个
c:167个
txt:72个
需积分: 10 18 下载量 115 浏览量
2018-02-02
16:33:26
上传
评论
收藏 513KB RAR 举报
温馨提示
GD32F1x0固件库 V3.0.0,最新的,包含外设例程,适合GD32F130 、GD32F150 、GD32F170 、GD32F190
资源推荐
资源详情
资源评论
收起资源包目录
GD32F1x0_Firmware_Library_V3.0.0.rar (434个子文件)
TSI.bin 10KB
RTC.bin 9KB
Led_Key.bin 2KB
LED.bin 1KB
Beeper.bin 1KB
gd32f1x0_timer.c 73KB
gd32f1x0_rcu.c 40KB
gd32f1x0_usart.c 37KB
gd32f1x0_rtc.c 33KB
gd32f1x0_can.c 31KB
gd32f1x0_adc.c 26KB
usbd_std.c 21KB
gd32f1x0_dac.c 18KB
gd32f1x0_spi.c 17KB
gd32f1x0_i2c.c 16KB
gd32f1x0_tsi.c 15KB
gd32f1x0_fmc.c 15KB
gd32f1x0_cec.c 15KB
slcd_seg.c 14KB
gd32f1x0_slcd.c 14KB
gd32f1x0_dma.c 13KB
rc5_decode.c 11KB
system_gd32f1x0.c 11KB
usbd_core.c 11KB
gd32f1x0_opa.c 11KB
usbd_int.c 10KB
rc5_encode.c 10KB
gd32f1x0_gpio.c 9KB
main.c 9KB
main.c 9KB
gd32f1x0_it.c 8KB
gd32f1x0_eval.c 8KB
main.c 8KB
main.c 8KB
main.c 8KB
main.c 7KB
gd32f1x0_dbg.c 7KB
main.c 7KB
gd32f1x0_syscfg.c 7KB
main.c 7KB
main.c 7KB
main.c 7KB
main.c 6KB
main.c 6KB
gd32f1x0_pmu.c 6KB
gd32f1x0_cmp.c 6KB
main.c 6KB
gd32f1x0_it.c 6KB
gd32f1x0_exti.c 6KB
main.c 5KB
gd32f1x0_misc.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 5KB
main.c 4KB
gd32f1x0_it.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
gd32f1x0_it.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
main.c 4KB
gd32f1x0_fwdgt.c 4KB
main.c 4KB
gd32f1x0_ivref.c 4KB
main.c 4KB
gd32f1x0_crc.c 4KB
main.c 4KB
main.c 3KB
main.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_it.c 3KB
main.c 3KB
main.c 3KB
I2C0_IE.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_wwdgt.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_it.c 3KB
usbd_pwr.c 3KB
main.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_it.c 3KB
gd32f1x0_it.c 3KB
main.c 3KB
共 434 条
- 1
- 2
- 3
- 4
- 5
资源评论
qq_27910929
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功