Hello.. I am a beginner to programming. I need to use the MSP430FG4618 as the MCU for my school project. I have written all the codes for it. The codes actually work fine except that it will have some unexpected reset occasionally.
I have seen other posts related to this issue. I think there is no problems related to the hardware as I am using the experimenter's board provided by the school. And I have switched off the watchdog timer as well.
I think it will probably be the problem of stack overflow. In fact, I think I have used too many interrupts. In my program, I used the basic timer interrupt, timer A interrupt, timer B interrupt, port 1 interrupt, port 2 interrupt as well as the ADC interrupt. At the start of each interrupt, I have disabled the other GIE to prevent nesting of the interrupts. However, with so many interrupts, will the stack be overflow easily??
I have tried different ways to eliminate the reset condition of the MCU. I found that once I decreased the number of the interrupts, the problem seems to be solved.
I am really tired about it. Can anyone give me some suggestions? In fact, I am wondering whether I can use so many interrupts in one program.
Thanks for any help!!!
