Welcome![Sign In][Sign Up]
Location:
Search - CCP0

Search list

[Embeded-SCM DevelopTimer32BitRTC

Description: 基于《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.
Platform: | Size: 12288 | Author: | Hits:

[SCMPWM

Description: 使用STC12C5AXXS2的单片机实现准确的脉宽调制(PWM)。本程序演示在CCP0(P1.3)输出占空比可调的矩形波,使用单片机内部资源,主程序只需执行数条控制代码。-STC12C5AXXS2 use of single-chip pulse width modulation to achieve accurate (PWM). Demonstration of this procedure in CCP0 (P1.3) output with adjustable duty cycle rectangular wave, the use of single-chip internal resources, the main program there is no need to implement the code.
Platform: | Size: 11264 | Author: 陈伟卓 | Hits:

[ARM-PowerPC-ColdFire-MIPSInputCapture_4F120

Description: 在边缘时间模式下使用Timer0A要求中断的上升边缘PB0(CCP0),并且计数脉冲。 外部信号连接到PB6(T0CCP0)(上升沿触发)-Use Timer0A in edge time mode to request interrupts on the rising edge of PB0 (CCP0), and count the pulses. external signal connected to PB6 (T0CCP0) (trigger on rising edge)
Platform: | Size: 80896 | Author: pierrefonds | Hits:

[ARM-PowerPC-ColdFire-MIPSedge_count

Description: 这个示例应用程序演示了如何使用一个通用定时器在下降边沿计数模式。定时器4被配置在上升沿被认为是对PM0/CCP0每次递减。计数被初始化为9,匹配设置为0,产生一个中断解雇10积极边缘检测到CCP脚后。-This example application demonstrates the use of a general purpose timer in down edge count mode. Timer 4 is configured to decrement each time a rising edge is seen on PM0/CCP0. The count is initialized to 9 and the match is set to 0, causing an interrupt to fire after 10 positive edges detected on the CCP pin.
Platform: | Size: 4096 | Author: paulhyde | Hits:

CodeBus www.codebus.net