Examples Of Stopping And Restarting The User Break Controller - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

20.6.3

Examples of Stopping and Restarting the User Break Controller

The following are example programs:
; Transition to user break controller stopped state
; (1) Initialize BBRA and BBRB to 0.
mov
mov.l
mov.w
mov.l
mov.w
; (2) Initialize BRCR to 0.
mov.l
mov.w
; (3) Dummy read BRCR.
mov.w
; (4) Read STBCR2, then set MSTP5 bit in the read data to 1 and write
it back
mov.l
mov.b
or
mov.b
; (5) Twice dummy read STBCR2.
mov.b
mov.b
; Canceling user break controller stopped state
; (6) Read STBCR2, then clear MSTP5 bit in the read data to 0 and write
it back
mov.l
mov.b
and
mov.b
; (7) Twice dummy read STBCR2.
mov.b
mov.b
Rev. 3.0, 04/02, page 776 of 1064
#0, R0
#BBRA, R1
R0, @R1
#BBRB, R1
R0, @R1
#BRCR, R1
R0, @R1
@R1, R0
#STBCR2, R1
@R1, R0
#H'1, R0
R0, @R1
@R1, R0
@R1, R0
#STBCR2, R1
@R1, R0
#H'FE, R0
R0, @R1
@R1, R0
@R1, R0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents