This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我用TM4的timer来测脉宽,发现用timerccp0可以准确测量,然后换成ccp1就发现不行了,求教ccp0和ccp1的区别
应该是其他地方还需要修改了,你没修改吧,比如时钟,你去主函数里面看看,有什么需要修改的了
这两个没有区别的,对应修改好了之后就能正常运行的。
检查一下配置的管脚是否能对应上,外设初始化配置是否正确,以及终端向量表映射等。
我检查了没发现问题、、、那同一timer的ccp0和ccp1可以同时用吗?timerbase不会冲突吗?
可以的,32/64bit的timer可以分成16/32bit的timera和timerb来使用,分别对应ccp0和ccp1.