/*!
\file readme.txt
\brief description of the tamper with timestamp example
\version 2019-02-19, V1.0.0, firmware for GD32E23x
*/
/*
Copyright (c) 2019, GigaDevice Semiconductor Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGE.
*/
This example is based on the GD32E230C-EVAL-V1.0 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 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 LED2 always turn on, 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.
没有合适的资源?快使用搜索试试~ 我知道了~
兆易GD32E230F4单片机使用硬件IIC接口+DMA读写24C04软件例程源码.zip

共489个文件
h:173个
c:160个
txt:75个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉

温馨提示
兆易GD32E230F4单片机使用硬件IIC接口+DMA读写24C04软件例程源码,可供学习设计参考。 int main(void) { /* enable peripheral clocks */ rcu_config(); /* configure systick */ systick_config(); /* configure LEDs */ led_config(); /* configure USART */ // gd_eval_com_init(EVAL_COM); // printf("I2C-24C02 configured....\n\r"); /* configure I2C */ i2c_config(); /* initialize EEPROM */ i2c_eeprom_init(); // printf("\r\nThe I2C is hardware interface "); // printf("\r\nThe speed
资源推荐
资源详情
资源评论


























收起资源包目录





































































































共 489 条
- 1
- 2
- 3
- 4
- 5
资源评论

- t1212212024-03-12资源内容详细全面,与描述一致,对我很有用,有一定的使用价值。

GJZGRB
- 粉丝: 3165
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- GOAT(山羊)是基于 LlaMa 进行 SFT 的中英文大语言模型
- 借助 ChatGPT 大语言模型通过聊天机器人自动搭建 vulhub 漏洞靶机环境
- 一个 JavaScript 的简单范例程序-创建一个简单的待办事项列表(Todo List)
- 第二届广州・琶洲算法大赛智能交通 CV 模型赛题第四名方案
- 第二届广州・琶洲算法大赛智能交通 CV 模型赛题第 4 名解决方案
- 基于ChatGPT大语言模型,通过聊天机器人自动创建vulhub的漏洞靶机环境
- Python 的排序算法范例程序-实现快速排序算法
- 从零开始编写大语言模型相关所有代码用于学习
- kindeditor多图上传H5版 ,替换到原来的plugins\multiimage目录下就可用,无须修改原来的调用代码,要记得刷新缓存
- CID解码最新300-CD软件
- CID解码最新300-CD软件
- 结合大模型强大的自然语言处理能力,自动化地生成全面、高质量的测试用例
- CID解码最新300-CD软件
- MATLAB实现NMEA 0183数据可视化工具
- MATLAB实现NMEA 0183数据可视化工具
- aspmkr7_1.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
