NEC V850/SB1TM User Manual page 104

32-bit single-chip microcontroller
Table of Contents

Advertisement

A description example is given below.
[Description example]: In case of PSC register
LDSR rX,5
ST.B
r0,PRCMD [r0] ; Write to PRCMD
ST.B
rD,PSC [r0]
LDSR rY,5
NOP
NOP
(next instruction)
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.
104
CHAPTER 3
; NP bit = 1
; PSC register setting
; NP bit = 0
; Dummy instruction (2 or 5 instructions)
.
.
.
; Execution routine following cancellation of
STOP/IDLE mode
.
.
.
User's Manual U13850EJ4V0UM
CPU FUNCTIONS

Advertisement

Table of Contents
loading

Table of Contents