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.

MSP430 flash擦除时,需要响应外部中断

Other Parts Discussed in Thread: MSP430F449

背景:有一个外部输入脉冲触发单片机P1中断,在中断中计数,如果这个时候程序中药擦除flash,则会影响外部中断。能不能在擦除过程中依旧响应中断,所有中断

芯片:MSP430F449

硬件环境:自己做的PCB

软件环境:IAR for MSP430 5.5.2

我需要在擦除flash的时候中断开启,449手册中提到有两种擦除方式,一种是RAM中擦除,一种是从Flash中擦除!

  • 不论哪种启动擦除flash的方式,最后都是对flash硬件的操作。

    在flash硬件擦除的过程中,是需要关闭中断的。

    如果你的外部中断不是太频繁,完全可以在中断的间隙擦除flash