AnsweredAssumed Answered

Disable interrupt will lead to program Collapse?

Question asked by 赵子成 on Apr 17, 2018
Latest reply on May 10, 2018 by ZhangJennie

Hi, All

I happened to an issue. I used the ADC interrupt in my 9S12Xep100 CPU. I disable the ADC interrupt in the course of running. Because the main loop and the ADC interrupt function will access a same varible, so in the main loop, before accessing the variable, I must disable the  ADC interrupt. I can see that sometime the ADC interrupt is disabled indeed. The result is that sometime the program will collapse. I don't know why. Can someone answer my question? Thanks.