clalender

所属分类:处理器开发
开发工具:Visual C++
文件大小:552KB
下载次数:11
上传日期:2011-06-19 18:57:46
上 传 者dfei
说明:  (1)利用EK3210B评估板上的4位米字LCD显示日历和时间信息,用按键切换显示内容。日期和时间信息利用电池供电的RTC模块和备份寄存器保存。 (2)需要显示的内容包括:年、月、日、时、分、秒。 (3)可以用按键当前修改日期和时间。修改过程中,修改的信息用闪烁表示;修改完成,显示内容不再闪烁。 (3)闹钟设定:按小时分钟(HHMM)设定闹钟,能关闭/启动闹钟。启动了闹钟时,要有所显示。闹钟定时到时,用4个LED发光管的10次亮灭,或蜂鸣器声音表示闹钟发生了。 (4)将上述内容同时经过串行通信口在PC的超级终端上实现(包括日期、日间信息显示、设定和闹钟设定)。
((1) the use of EK3210B evaluation board 4 meters character LCD display the calendar and time information, with buttons to switch the display. Date and time information using the RTC module and battery-powered backup registers saved. (2) to display the content including: year, month, day, hour, minute and second. (3) can be modified with the key current date and time. Modify the process, modify the information, said with flashing change is made, the display no longer blinks. (3) alarm settings: by the hour minutes (HHMM) set the alarm, to shut down/start the clock. Start the clock, to be displayed. Alarm time to time, with four LED light tube 10 light off, or buzzer alarm sounds that occurred.)

文件列表:
日历电子钟结课课题 (0, 2011-05-10)
日历电子钟结课课题\Libraries (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3 (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\CoreSupport (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c (17273, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h (85714, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\Release_Notes_for_STM32F10x_CMSIS.html (25107, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s (15763, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s (15500, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s (15767, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s (12373, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s (13653, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s (12762, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s (14070, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s (15952, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar (0, 2011-05-10)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_cl.s (16629, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd.s (16231, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd_vl.s (15791, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld.s (12653, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld_vl.s (12952, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md.s (12914, 2011-03-20)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md_vl.s (13603, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_xl.s (16630, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h (629762, 2010-10-18)
日历电子钟结课课题\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.h (2068, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver (0, 2011-05-10)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc (0, 2011-05-10)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (8893, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (21601, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7466, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (23230, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_cec.h (6483, 2010-10-18)
日历电子钟结课课题\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (2073, 2010-10-18)
... ...

本例说明如何使用外设实时时钟RTC,如何配置RTC的预分频,产生秒中断。读写备份域寄存器。 1 使用外部低速时钟(LSE)作为RTC的时钟源。 2 RTC和后备数据寄存器(BKP)一样,即便撤去VDD,仍能通过电池向管脚VBAT供电,因此RTC的配置不会丢失。在本例程中,通过向备份域寄存器BKP_DR1写入一个数据作为完成RTC设置的标志。 3 运行程序: (1) 检查BKP_DR1:如果数据不正确,表示未设置RTC,因此设置RTC,用户可以通过超级终端设置事件;如果数据正确,则把时间显示在超级终端上。 (2) 即使发生外部引脚复位,RTC的配置和时间也不会丢失。 (3) 如果发生上电复位,那么只要电池输出连接到管脚VBAT,RTC的配置和时间也不会丢失。 (4) 要去除RTC的配置和时间信息,可以去掉跳线VBAT,重新上电。 4 在RTC中断(即秒中断)中,翻转LED1。通过USART1,可以调用printf函数向超级终端输出信息。 项目文件夹 - stm32f10x_conf.h Library Configuration file - stm32f10x_it.c Interrupt handlers - stm32f10x_it.h Header for stm32f10x_it.c - main.c Main program - system_stm32f10x.c STM32F10x system source file STM32外设库函数 - stm32f10x_gpio.c - stm32f10x_rcc.c - stm32f10x_rtc.c - stm32f10x_bkp.c - stm32f10x_pwr.c - misc.c - stm32f10x_usart.c - stm32f10x_exti.c 硬件环境: 用RS232电缆连接USART1和PC串行口。使用PC的超级终端显示串行口接收内容,参数设定为: 8数据位,1停止位,无校验,无流控制,57600bps. 需要连接跳线VBAT,把备用电源连接到STM32。

近期下载者

相关文件


收藏者