文件名称:CCP
-
所属分类:
- 标签属性:
- 上传时间:2013-03-22
-
文件大小:228.91kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
三个定时/计数器
定时/计数器0(TIMER0)、定时/计数器1(TIMER1)和定时/计数器2(TIMER2)。
TIMER0 ,TIMER2是8位的增量溢出计数器,TIMER1是16位的增量溢出计数器。
时钟源
TIMER0和TIMER1的时钟源可以是内部系统时钟,也可以是外部时钟;TIMER0和TIMER1既可以作定时器又可以作计数器使用。
而TIMER2的时钟源只能是内部系统时钟,这就意味着TIMER2只能作定时器使用。
CCP模块
TIMER1还可以配合捕捉/比较/PWM(CCP1或CCP2)工作,作为16位捕捉器或16位比较器的时基-Three timer/counterTiming/counter 0 (TIMER0), timing/counter 1 (TIMER1) and timing/counter 2 (TIMER2).TIMER0, TIMER2 is an incremental counter 8, TIMER1 is incremented counter 16.Clock sourceTIMER0 and TIMER1 clock source can be internal system clock, can also be an external clock TIMER0 and TIMER1 can be used as a timer and can be used as a counter.While the TIMER2 clock source is only the internal system clock, which means that TIMER2 can only be used as a timer.The CCP moduleTIMER1 can also be matched with the capture \/\/PWM (CCP1 or CCP2), as the base of 16 trap or 16 comparator
定时/计数器0(TIMER0)、定时/计数器1(TIMER1)和定时/计数器2(TIMER2)。
TIMER0 ,TIMER2是8位的增量溢出计数器,TIMER1是16位的增量溢出计数器。
时钟源
TIMER0和TIMER1的时钟源可以是内部系统时钟,也可以是外部时钟;TIMER0和TIMER1既可以作定时器又可以作计数器使用。
而TIMER2的时钟源只能是内部系统时钟,这就意味着TIMER2只能作定时器使用。
CCP模块
TIMER1还可以配合捕捉/比较/PWM(CCP1或CCP2)工作,作为16位捕捉器或16位比较器的时基-Three timer/counterTiming/counter 0 (TIMER0), timing/counter 1 (TIMER1) and timing/counter 2 (TIMER2).TIMER0, TIMER2 is an incremental counter 8, TIMER1 is incremented counter 16.Clock sourceTIMER0 and TIMER1 clock source can be internal system clock, can also be an external clock TIMER0 and TIMER1 can be used as a timer and can be used as a counter.While the TIMER2 clock source is only the internal system clock, which means that TIMER2 can only be used as a timer.The CCP moduleTIMER1 can also be matched with the capture \/\/PWM (CCP1 or CCP2), as the base of 16 trap or 16 comparator
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PIC单片机定时计数器与CCP的应用.ppt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.