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.
工具/软件:Code Composer Studio
您好!
我尝试使用 ADC PPB 进行过零检测。 我已使用 ADC_PPB_LIMits 代码作为参考。 通过对代码进行一些更改,我尝试观察 ISR 是否在过零后被调用。 因此在我的代码中,我已配置相应的寄存器来设置 ADC 过零检测标志。 然而、尽管 在从值为0至1伏的函数发生器提供正弦信号后进行了正确的 ADC 转换(正如我在表达式窗口中看到的那样)、但不会发生过零。 在我的代码中,我在 ADC_ppb_ISR 中设置了一个名为 toggle_count 的变量,该变量应在每次过零时计数,但不会发生。 请建议。 我随附了修改后的代码供您参考。 e2e.ti.com/.../doubt.txt