文件名称:CCP
介绍说明--下载内容均来自于网络,请自行研究使用
三个定时/计数器
定时/计数器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