CHAPTER 3 CPU FUNCTIONS
User’s Manual U13850EJ4V0UM
104
A description example is given below.
[Description example]: In case of PSC register
LDSR rX,5
; NP bit = 1
ST.B r0,PRCMD [r0]
; Write to PRCMD
ST.B rD,PSC [r0]
; PSC register setting
LDSR rY,5
; NP bit = 0
NOP
; Dummy instruction (2 or 5 instructions)
.
.
.
NOP
(next instruction)
; Execution routine following cancellation of
STOP/IDLE mode
.
.
.
rX: Value to be written to PSW
rY: Value to be written back to PSW
rD: Value to be set to PSC
When saving the value of PSW, the value of PSW prior to setting the NP bit must be
transferred to the rY register.
Cautions 2. The instructions (<5> interrupt disable cancel, <6> NOP instruction) following the store
instruction for the PSC register for setting the software STOP mode and IDLE mode are
executed before a power save mode is entered.
3. Always stop the DMA prior to accessing special registers.
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...