Manuals
/
Fujitsu
/
Computer Equipment
/
Computer Hardware
Fujitsu
F2MC-8FX
manual
Interrupt Processing
Models:
F2MC-8FX
1
50
272
272
Download
272 pages
2.67 Kb
47
48
49
50
51
52
53
54
Symbols
Configuration of Direct Bank
Reset Operation
F2MC-8FX CPU Features
Example of Using Xchw A, PC
Page 50
Image 50
CHAPTER 4 INTERRUPT PROCESSING
38
Page 49
Page 51
Page 50
Image 50
Page 49
Page 51
Contents
F2MC-8FX
Page
Fujitsu Limited
Page
Organization of This Manual
Purpose and Audience
Trademark
Copyright 2004-2008 Fujitsu Limited All rights reserved
Contents
100
221
253
Page
Main changes in this edition
Changes For details, refer to main body
Viii
Chapter Outline and Configuration Example of F2MC-8FX CPU
F2MC-8FX CPU Features
Outline of F2MC-8FX CPU
Configuration Example of Device Using F2MC-8FX CPU
1 Configuration Example of Device Using F2MC-8FX CPU
Outline and Configuration Example of F2MC-8FX CPU
Chapter Memory Space
This chapter explains the F2MC-8FX CPU memory space
CPU Memory Space
1 F2MC-8FX Memory Space
1shows the memory space accessible by each addressing mode
Memory Space and Addressing
Ffffh
Data Area
3 Example of Saving Data in Stack Area
Program Area
2 Callv Jump Address Table
3 Reset and Interrupt Vector Table
Interrupt No Table address Upper data Lower data
Arrangement of 16-bit Data in Memory Space
5 Arrangement of 16-bit Data in Memory
Memory Space
Chapter Registers
F2MC-8FX Registers
F2MC-8FX General-Purpose Registers
Program Counter PC and Stack Pointer SP
Stack Pointer SP
Accumulator a and Temporary Accumulator T
Temporary Accumulator T
XX78H
How To Use The Temporary Accumulator T
Abxxh Cdxxh RAM
Direct Data Transfer from Temporary Accumulator T
9 Direct Data Transfer from Temporary Accumulator T
Program Status PS
1 Structure of Program Status PS
Program Status PS Flags
IL1 IL0
Access to Register Bank Pointer and Direct Bank Pointer
Index Register IX and Extra Pointer EP
Extra Pointer EP
1 Configuration of Register Bank
Register Banks
1 Configuration of Direct Bank
Direct Banks
Chapter Interrupt Processing
Outline of Interrupt Operation
1 Outline of F 2MC-8FX Interrupt Operation
Interrupt Enable/Disable and Interrupt Priority Functions
Interrupt Requests in Resources
To CPU
Creating an Interrupt Processing Program
1 Interrupt Processing Flow
2 Interrupt Response Time
Multiple Interrupt
1 Example of Multiple Interrupt
Reset Operation
Interrupt Processing
Chapter CPU Software Architecture
This chapter explains the instructions for the F2MC-8FX CPU
Types of Addressing Modes
Index Addressing @IX+off
1 Jump Address Table
Address table upper jump address lower jump address
Special Instructions
Callv #k JMP @A
Divu a
1 Example of Using Xchw A, PC
Callv #k
Callv #3
Chapter Detailed Rules for Execution Instructions
Operation
Ffff H
1 Number of Execution Cycles / Byte Count / OP Code
Ffff H
Addcw a
Execution example Addcw a Memory
Assembler format Condition code CCR
Execution example and a Memory
Byte Data of Accumulator and Memory to Accumulator
Execution example and , @EP Memory
Andw a
Execution example Andw a Memory
BBC Branch if Bit is Clear
E7FE H
BBS Branch if Bit is Set
Execution example BBS 84H 0, 0FBH Memory
BC Branch relative if C=1/BLO Branch if LOwer
Execution example BC 0FEH Memory
BGE rel
Execution example BGE 02H Memory
BLT Branch Less Than zero relative if Zero
Execution example BLT 02H Memory
BN Branch relative if N =
FC5F H
BNZ Branch relative if Z = 0/BNE Branch if Not Equal
FE1E H
BNC Branch relative if C = 0/BHS Branch if Higher or Same
Execution example BNC 01H Memory
BP Branch relative if N = 0 Plus
Execution example BP 04H Memory
BZ Branch relative if Z = 1/BEQ Branch if Equal
FE1E H FE1A H
Call Call subroutine
Execution example Call 0FC00H Memory
Callv Call Vectored subroutine
18-1 Call Storage Address of Vector Call Instruction
Vector address VA Instruction Lower address Upper address
Clrb Clear direct Memory Bit
Execution example Clrb 84H Memory
Clrc Clear Carry flag
Set the C-flag to Clrc Clear Carry flag
Execution example Clrc Memory
Clri CLeaR Interrupt flag
Set the I-flag to Clri CLeaR Interrupt flag
IL1 IL0
CMP a
Execution example CMP a Memory
CMP CoMPare Byte Data of Accumulator and Memory
23-1 Number of Execution Cycles / Byte Count / OP Code
Execution example CMP 80H Memory
CMP CoMPare Byte Data of Immediate Data and Memory
24-1 Number of Execution Cycles / Byte Count / OP Code
Execution example CMP @EP , #33H Memory
Cmpw a
Execution example Cmpw Memory
DAA Decimal Adjust for Addition
26-1 Decimal Adjustment Table DAA
26-2 Execution Example
DAS Decimal Adjust for Subtraction
27-1 Decimal Adjustment Table DAS
27-2 Execution Example
DEC DECrement Byte Data of General-purpose Register
103
Decw DECrement Word Data of Accumulator
105
Decw DECrement Word Data of Extra Pointer
107
Decw DECrement Word Data of Index Pointer
109
Decw DECrement Word Data of Stack Pointer
111
Divu DIVide Unsigned
113
INC INCrement Byte Data of General-purpose Register
115
Incw INCrement Word Data of Accumulator
117
Incw INCrement Word Data of Extra Pointer
119
Incw INCrement Word Data of Index Register
121
Incw INCrement Word Data of Stack Pointer
123
JMP JuMP to address pointed by Accumulator
125
JMP JuMP to effective Address
127
MOV @A, T
129
MOV Move Byte Data from Memory to Accumulator
42-1 Number of Execution Cycles / Byte Count / OP Code
131
MOV Move Immediate Byte Data to Memory
43-1 Number of Execution Cycles / Byte Count / OP Code
133
MOV Move Byte Data from Accumulator to memory
44-1 Number of Execution Cycles / Byte Count / OP Code
135
Movw @A, T
137
Movw Move Word Data from Memory to Accumulator
46-1 Number of Execution Cycles / Byte Count / OP Code
139
Movw Move Word Data from Extra Pointer to Accumulator
141
Movw Move Word Data from Index Register to Accumulator
143
Movw A, PS
145
Movw Move Word Data from Program Counter to Accumulator
147
Movw Move Word Data from Stack Pointer to Accumulator
149
Movw Move Word Data from Accumulator to Memory
52-1 Number of Execution Cycles / Byte Count / OP Code
151
Movw Move Word Data from Accumulator to Extra Pointer
153
Movw Move Immediate Word Data to Extra Pointer
155
Movw Move Word Data from Accumulator to Index Register
157
Movw Move Immediate Word Data to Index Register
159
Movw PS, a
161
Movw Move Immediate Word Data to Stack Pointer
163
Movw Move Word data from Accumulator to Stack Pointer
165
Mulu MULtiply Unsigned
167
NOP NoOPeration
No operation NOP NoOPeration
169
Or a
171
Or or Byte Data of Accumulator and Memory to Accumulator
63-1 Number of Execution Cycles / Byte Count / OP Code
173
ORW a
175
Pushw Push Word Data of Inherent Register to Stack Memory
65-1 Number of Execution Cycles / Byte Count / OP Code
177
Popw POP Word Data of Intherent Register from Stack Memory
66-1 Number of Execution Cycles / Byte Count / OP Code
179
RET RETurn from subroutine
181
Reti RETurn from Interrupt
183
Rolc Rotate Byte Data of Accumulator with Carry to Left
185
Rorc Rotate Byte Data of Accumulator with Carry to Right
187
188
189
72-1 Number of Execution Cycles / Byte Count / OP Code
191
192
193
Setb Set Direct Memory Bit
195
Setc SET Carry flag
Set the C-flag to Setc SET Carry flag
197
Seti SET Interrupt flag
199
Swap Swap Byte Data Accumulator H and Accumulator L
201
XCH A, T
203
Xchw eXCHange Word Data Accumulator and Extrapointer
205
Xchw eXCHange Word Data Accumulator and Index Register
207
Xchw eXCHange Word Data Accumulator and Program Counter
209
Xchw eXCHange Word Data Accumulator and Stack Pointer
211
Xchw A, T
213
XOR a
215
85-1 Number of Execution Cycles / Byte Count / OP Code
217
Xorw a
219
220
Appendix
Appendix a Instruction List
F2MC-8FX CPU Instruction Overview
Sign of the Instruction List
Table A.1-1 Sign of the Instruction List
Item in Instruction Table
Table A.1-2 Item in Instruction Table
Operation List
Table A.2-1 Operation List for Transfer Instructions 1/3
Table A.2-1 Operation List for Transfer Instructions 2/3
Table A.2-1 Operation List for Transfer Instructions 3/3
Table A.2-2 Operation List for Operation Instructions 1/3
Table A.2-2 Operation List for Operation Instructions 2/3
← a
Table A.2-2 Operation List for Operation Instructions 3/3
XOR A, @EP
Table A.2-3 Operation List for Branch Instructions
Table A.2-4 Operation List for Other Instructions
Flag Change Table
Table A.3-1 Flag Change Table for Transfer Instructions 1/2
Table A.3-1 Flag Change Table for Transfer Instructions 2/2
Table A.3-2 Flag Change Table for Operation Instructions 1/3
Table A.3-2 Flag Change Table for Operation Instructions 2/3
Table A.3-2 Flag Change Table for Operation Instructions 3/3
Table A.3-3 Flag Change Table for Branch Instructions
239
Table B-1 Bus Operation List 1/11
Appendix B Bus Operation List
Table B-1is a bus operation list Bus Operation List
Table B-1 Bus Operation List 2/11
Table B-1 Bus Operation List 3/11
Table B-1 Bus Operation List 4/11
Table B-1 Bus Operation List 5/11
Table B-1 Bus Operation List 6/11
Table B-1 Bus Operation List 7/11
Table B-1 Bus Operation List 8/11
DAS Rolc a Rorc a Movw A, PS Movw PS, a
Table B-1 Bus Operation List 9/11
PSL CCR
Table B-1 Bus Operation List 10/11
Table B-1 Bus Operation List 11/11
Interrupt
Table C-1 Instruction Map
Appendix C Instruction Map
Table C-1is an instruction map Instruction Map
252
Index
Symbols
Numerics
BLO
INC
Mulu
XCH
Fujitsu Semiconductor Controller Manual
Top
Page
Image
Contents