cc254x 电源管理中 PCON.IDLE设置注意事项翻译

cc254x 电源管理中 PCON.IDLE设置注意事项英语原版非常晦涩,我试着翻译了一下,自己留个记录,希望翻译不到位的地方高手能指导一下,先谢过!

先贴上原版英文:

The instruction that sets the PCON.IDLE bit must be aligned in a certain way for correct operation. The
first byte of the assembly instruction immediately following this instruction must not be placed on a 4-byte
boundary. Furthermore, cache must not be disabled (see CM in the FCTL register description in
Chapter 6). Failure to comply with this requirement may cause higher current consumption. Provided this
requirement is fulfilled, the first assembly instruction after the instruction that sets the PCON.IDLE bit is
performed before the ISR of the interrupt that caused the system to wake up, but after the system woke
up. If this instruction is a global interrupt disable, it is possible to have it followed by code for execution
after wakeup, but before the ISR is serviced.


翻译如下:
为了实现正确操作,设置PCON.IDLE位的汇编指令必须采取一种特定的对齐方式,使得紧随其后汇编指令的第一个字节地址不能处于4字节边界位置。而且一定要使能高速缓存(参见第六章FCTL寄存器描述中CM部分)。如果满足这个要求,在这条指令(设置PCON.IDLE指令)之后的第一条汇编指令将在会唤醒系统的ISR中断指令之前执行,而不是在系统唤醒后执行。这样,如果这条指令(设置PCON.IDLE指令之后的指令)是一条全局中断指令,那么在唤醒CPU后将先执行紧随其后的代码,而不是先处理ISR中断。


发布了3 篇原创文章 · 获赞 0 · 访问量 1万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章