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.
大家好!
我尝试通过将 TRIPHI 设置为3V、将 TRIPLOW 设置为1V 来配置 ADC PPB 限制、其中 VREF 为3.3V、我尝试将过零设置为2V、 其中 OFFREF =(2000/3300)* 4096 = 2482 LSB (根据此计算) ADCEVTSTAT 寄存器 PPB1ZERO 被设置为高电平(1)、但即使在通过(ADC_clearPPBEventStatus (MCA_ADCA_BASE、ADC_PPB_number1、ADC_EVT_ZERO)清除寄存器之后、该寄存器也未被清除。 请澄清此概念。
您好 Tejas:
如果在您写入 ADCEVTCLR 时 ADCEVTSTAT 位没有被清除、有两种可能的原因:
如果您是在 ISR 代码内运行此代码(并且您的 PWM 触发周期足够长、足以容纳 ISR 处理)、那么 应该不会出现问题。 更可能的原因是您尝试从调试器中读取此值、而 PWM/ADC 的后台操作会阻止您观察到寄存器被清除。
此致、
伊袋