PIC16(L)F18324/1834428.3比较模式本节中描述的比较模式功能可用于所有CCP模块,并且是相同的。比较模式使用16位
timer0或16位Timer1/3/5资源。将CCPRxH:CCPRxL寄存器对的16位值与TMR1/3/5H:TMR1/3/5L寄存器对的16位值进行比较。当匹配发生时,会发生以下事件之一:·切换CCPx输出从数据表的上述部分中声明我可以在比较模式下使用16位定时器0资源。从数据表中看不出如何选择除定时器1之外的其他定时器。对如何选择16位Time0进行说明。与Timer 1相比,它提供了广泛的预缩放和后缩放选项,这对我来说更有用。
以上来自于百度翻译
以下为原文
PIC16(L)F18324/18344
28.3 Compare Mode
The Compare mode function described in this section
is available and identical for all CCP modules.
Compare mode makes use of either the
16-bit Timer0
or the 16-bit Timer1/3/5 resource. The 16-bit value of
the CCPRxH:CCPRxL register pair is constantly
compared against the 16-bit value of the
TMR1/3/5H:TMR1/3/5L register pair. When a match
occurs, one of the following events can occur:
• Toggle the CCPx output
From the above section of the datasheet it states that I could use 16 Bit Timer 0 resource in compare mode.
It is not apparent from the datasheet how to select a different timer other than Timer 1.
Can someone please shed some light on how I can select 16 Bit Timer0 for this purpose. It would be more useful for me with it's wide range of pre-scale and post scale options when compared to Timer 1.
Thanks
Alan