根据题意。TCNTB0~TCNTB3均设置为:
(TCNTB0~TCNTB3)=1000(0x3E8) ;输出频率
TCMPB0=800(0x320) ;占空比80%
TCMPB1=600(0x258) ;。。。60%
TCMPB2=400(0x190) ;。。。40%
TCMPB3=200(0xC8) ;。。。20%
编程确定:
TCNTB0 EQU 0x5100000C
TCNTB1 EQU 0x51000018
TCNTB2 EQU 0x51000024
TCNTB3 EQU 0x51000030
2022-05-12 16:24:51
1.82MB
嵌入式
1