Program Example Of Address Match Detection Function - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 22 ADDRESS MATCH DETECTION FUNCTION
22.5

Program Example of Address Match Detection Function

This section gives a program example for the address match detection function.
Program Example for Address Match Detection Function
Processing specifications
If the address of the instruction to be executed by the program matches the address set in the detection
address setting register (PADR0), the INT9 instruction is executed.
Coding example
PACSR0 EQU
PADRL
PADRM
PADRH
;
;---------Main program-------------------------------------
CODE
START:
;
LOOP:
;---------Interrupt program-------------------------------------
WARI:
522
00009EH
EQU
0079E0H
EQU
0079E1H
EQU
0079E2H
CSEG
MOV
PADRL,#00H
MOV
PADRM,#00H
MOV
PADRH,#00H
MOV
I:PACSR0,#00000010B ;Enable address match
.
processing by user
.
.
processing by user
.
BRA
LOOP
.
processing by user
;Address detection control register 0
;Detection address setting register 0
(Low)
;Detection address setting register 0
(Middle)
;Detection address setting register 0
(High)
;Stack pointer (SP), etc.,
;already initialized
;Set address detection register 0
(Low)
;Set address detection register 0
(Middle)
;Set address detection register 0
(High)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents