我用的官方的例子改了下,想产生一个两个不同频率的波形,芯片型号G2553,用的是Outmod 4输出 CCR0=643 CCR1=14,用示波器测量 只有CCR0能输出正确的波形,而CCR1输出的波形则不对?
CCR0 ~ 1MHz/(2*200) ~2500Hz
CCR1 ~ 1MHz/(2*14) ~38KHz
overflow ~ 1MHz/(2*65536) ~8Hz
当把CCR1改成50的时候能输出12KHZ 在变小的话,就无法输出波形,我觉得很奇怪。找不到原因啊~~
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.