NEC V850/SB1 User Manual page 199

32-bit single-chip microcontroller
Table of Contents

Advertisement

[Example of prevention program]
LDSR
rx, 5
ST.B
r0, PRCMD[r0]
ST.B
rD, PSC[r0]
LDSR
rY, 5
NOP
NOP
NOP
NOP
NOP
BR $+2
Remark It is assumed that the following values have already been set:
rD: PSC set value, rX: Value written to PSW, rY: Value written back to PSW
CHAPTER 6
CLOCK GENERATION FUNCTION
; Sets value of rX to PSW.
; Writes data to PRCMD.
; Sets PSC register.
; Returns value of PSW.
; Six NOP instructions or more
; Eliminates discrepancy of PC
User's Manual U13850EJ6V0UD
199

Advertisement

Table of Contents
loading

This manual is also suitable for:

V850/sb2

Table of Contents