文件名称:Timer32BitRTC
介绍说明--下载内容均来自于网络,请自行研究使用
基于《Stellaris外设驱动库》的例程:定时器32位RTC用法示例(32.768kHz振荡信号从CCP2管脚输入,RTC时钟从UART2输出)
本实验程序演示了如何使用定时器配置为32为RTC模式,并使用RTC定时器产生匹配中断。每次进入中断函数中由串口发送显示一次当前时间,初始时间假设为9:58:40。
本实验需要一个32.768kHz的RTC时钟源,本范例把TIMER0A配置成了16位PWM模式,利用CCP0脚输出频率大致为32768Hz的PWM波,免去了用户外接32768晶振的麻烦。调试时,只需把PB0和PB1短接就可以。
-Based on " Stellaris peripheral driver library" of routines: 32-bit RTC timer usage examples (32.768kHz oscillation signal input from the CCP2 pin, RTC clock output from the UART2) The experimental procedure to demonstrate how to use the timer is configured to 32 for the RTC mode, and use the RTC timer interrupt generated match. Into the interrupt function for each serial port to send shows from a current time, the initial time is assumed to be 9:58:40. This experiment requires a 32.768kHz clock source of the RTC, the example of the configuration TIMER0A become 16-bit PWM mode, the use of foot CCP0 roughly 32768Hz output frequency of PWM wave, which eliminates the user the trouble of external 32768 crystal. When debugging, you just need to PB0 and PB1 can be shorted.
本实验程序演示了如何使用定时器配置为32为RTC模式,并使用RTC定时器产生匹配中断。每次进入中断函数中由串口发送显示一次当前时间,初始时间假设为9:58:40。
本实验需要一个32.768kHz的RTC时钟源,本范例把TIMER0A配置成了16位PWM模式,利用CCP0脚输出频率大致为32768Hz的PWM波,免去了用户外接32768晶振的麻烦。调试时,只需把PB0和PB1短接就可以。
-Based on " Stellaris peripheral driver library" of routines: 32-bit RTC timer usage examples (32.768kHz oscillation signal input from the CCP2 pin, RTC clock output from the UART2) The experimental procedure to demonstrate how to use the timer is configured to 32 for the RTC mode, and use the RTC timer interrupt generated match. Into the interrupt function for each serial port to send shows from a current time, the initial time is assumed to be 9:58:40. This experiment requires a 32.768kHz clock source of the RTC, the example of the configuration TIMER0A become 16-bit PWM mode, the use of foot CCP0 roughly 32768Hz output frequency of PWM wave, which eliminates the user the trouble of external 32768 crystal. When debugging, you just need to PB0 and PB1 can be shorted.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Timer32BitRTC
.............\Timer_32Bit_RTC
.............\...............\Demo.dep
.............\...............\Demo.ewd
.............\...............\Demo.ewp
.............\...............\Demo.eww
.............\...............\LM3S1138_PinMap.H
.............\...............\main.c
.............\...............\startup_ewarm.c
.............\...............\UART_GetPut.C
.............\...............\UART_GetPut.H
.............\调试说明.txt
.............\Timer_32Bit_RTC
.............\...............\Demo.dep
.............\...............\Demo.ewd
.............\...............\Demo.ewp
.............\...............\Demo.eww
.............\...............\LM3S1138_PinMap.H
.............\...............\main.c
.............\...............\startup_ewarm.c
.............\...............\UART_GetPut.C
.............\...............\UART_GetPut.H
.............\调试说明.txt