在这些寄存器的 #define 宏前面,还应该定义另外一个宏,它用来说明 ISR 是在模拟模式中运行还是在原来的中断上下文中运行的。
On top of these register #define macros, you should also define another macro that dictates whether the ISR will run in simulation mode or in the original interrupt context. For example
掉电模式时晶体振荡器停 止振荡,所有功能除了中断和硬件复位之外都停止工作,寄存器的内容则一直保持;
The Powerdown mode saves the register contents but freezes the Oscillator, disabling all other chips until the next interrupt or hardware reset.
应用推荐