你好,我在PIC12F1840和MPLABX IDE 3.35上工作。我写了一个代码读取PWM脉冲宽度在一个引脚,并写入该值到另一个PWM引脚。但是,在逻辑分析仪
仿真时,输出PWM脉冲不是连续的,在一个代码中使用捕获模式和比较模式是正确的方法吗?请检查附上的C代码并指导我。谢谢你,Gitanjali。
以上来自于百度翻译
以下为原文
Hello,
I am working on PIC12F1840 and MPLABX IDE 3.35 . I have written a code for reading PWM pulse width at one pin and wri
ting that value to another PWM pin. But, at the time of simulation in logic analyzer output PWM pulse is not continuous.Is a correct way to use capture mode and compare mode in one code ? please check attached C code and guide me.
thanking you ,
Gitanjali
Attachment(s)
2_pwm_in_out.txt (4.89 KB) - downloaded 66 times