Streszczenie treści zawartej na stronie nr. 1
FUJITSU SEMICONDUCTOR
CM26-00301-2E
CONTROLLER MANUAL
2
F MC-8FX
8-BIT MICROCONTROLLER
PROGRAMMING MANUAL
Streszczenie treści zawartej na stronie nr. 2
Streszczenie treści zawartej na stronie nr. 3
2 F MC-8FX 8-BIT MICROCONTROLLER PROGRAMMING MANUAL FUJITSU LIMITED
Streszczenie treści zawartej na stronie nr. 4
Streszczenie treści zawartej na stronie nr. 5
PREFACE ■ Purpose and Audience 2 The F MC-8FX is original 8-bit one-chip microcontrollers that support application specific IC (ASIC). It can be widely applied from household to industrial equipment starting with portable equipment. 2 This manual is intended for engineers who actually develop products using the F MC-8FX microcontrollers, especially for programmers who prepare programs using the assembly 2 2 language for the F MC-8FX series assembler. It describes various instructions for the F M
Streszczenie treści zawartej na stronie nr. 6
• The contents of this document are subject to change without notice. Customers are advised to consult with sales representatives before ordering. The information, such as descriptions of function and application circuit examples, in this document are presented solely for the purpose of reference to show examples of operations and uses of FUJITSU semiconductor device; FUJITSU does not warrant proper operation of the device with respect to use based on such information. When you develop equ
Streszczenie treści zawartej na stronie nr. 7
CONTENTS 2 CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE OF F MC-8FX CPU ........... 1 2 1.1 Outline of F MC-8FX CPU .................................................................................................................. 2 2 1.2 Configuration Example of Device Using F MC-8FX CPU .................................................................. 3 CHAPTER 2 MEMORY SPACE ........................................................................................ 5 2.1 CPU Memory Space .......
Streszczenie treści zawartej na stronie nr. 8
6.7 BBC (Branch if Bit is Clear) .............................................................................................................. 60 6.8 BBS (Branch if Bit is Set) .................................................................................................................. 62 6.9 BC (Branch relative if C=1)/BLO (Branch if LOwer) ......................................................................... 64 6.10 BGE (Branch Great or Equal: relative if larger than or equal to Z
Streszczenie treści zawartej na stronie nr. 9
6.54 MOVW (MOVE Immediate Word Data to Extra Pointer) ................................................................ 154 6.55 MOVW (MOVE Word Data from Accumulator to Index Register) ................................................... 156 6.56 MOVW (MOVE Immediate Word Data to Index Register) .............................................................. 158 6.57 MOVW (MOVE Word data from Accumulator to Program Status Register) ................................... 160 6.58 MOVW (MOVE Immediate
Streszczenie treści zawartej na stronie nr. 10
vi
Streszczenie treści zawartej na stronie nr. 11
Main changes in this edition Page Changes (For details, refer to main body.) 11 2.2.2 Program Area Table 2.2-2 CALLV Jump Address Table ( " FFC8 " → " FFC9 " ) H H 53 Execution example : ADDCW A ( NZVC = "1010" → NZVC = "0000" ) 147 Execution example : MOVW A, PC ( A = "F0 63" → A = "F0 62" ) ( PC = "F0 63" → PC = "F0 62" ) 176 6.65 PUSHW (PUSH Word Data of Inherent Register to Stack Memory) ( " Transfer the word value from the memory indicated by SP to dr. Then, subtract 2 fromthe value of SP.
Streszczenie treści zawartej na stronie nr. 12
viii
Streszczenie treści zawartej na stronie nr. 13
CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE 2 OF F MC-8FX CPU 2 This chapter outlines the F MC-8FX CPU and explains its configuration by example. 2 1.1 Outline of F MC-8FX CPU 2 1.2 Configuration Example of Device Using F MC-8FX CPU 1
Streszczenie treści zawartej na stronie nr. 14
2 CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE OF F MC-8FX CPU 2 1.1 Outline of F MC-8FX CPU 2 The F MC-8FX CPU is a high-performance 8-bit CPU designed for the embedded control of various industrial and OA equipment. 2 ■ Outline of F MC-8FX CPU 2 The F MC-8FX CPU is a high-performance 8-bit CPU designed for the control of various industrial and OA equipment. It is especially intended for applications requiring low voltages and low power consumption. This 8-bit CPU can perform 16-bit data oper
Streszczenie treści zawartej na stronie nr. 15
2 CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE OF F MC-8FX CPU 2 1.2 Configuration Example of Device Using F MC-8FX CPU 2 The CPU, ROM, RAM and various resources for each F MC-8FX device are designed in modules. The change in memory size and replacement of resources facilitate manufacturing of products for various applications. 2 ■ Configuration Example of Device Using F MC-8FX CPU 2 Figure 1.2-1 shows a configuration example of a device using the F MC-8FX CPU. 2 Figure 1.2-1 Configuration Ex
Streszczenie treści zawartej na stronie nr. 16
2 CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE OF F MC-8FX CPU 4
Streszczenie treści zawartej na stronie nr. 17
CHAPTER 2 MEMORY SPACE 2 This chapter explains the F MC-8FX CPU memory space. 2.1 CPU Memory Space 2.2 Memory Space and Addressing 5
Streszczenie treści zawartej na stronie nr. 18
CHAPTER 2 MEMORY SPACE 2.1 CPU Memory Space 2 All of the data, program, and I/O areas managed by the F MC-8FX CPU are assigned to 2 the 64 Kbyte memory space of the F MC-8FX CPU. The CPU can access each resource by indicating its address on the 16-bit address bus. ■ CPU Memory Space 2 Figure 2.1-1 shows the address configuration of the F MC-8FX memory space. The I/O area is located close to the least significant address, and the data area is arranged right above it. The data area can be divi
Streszczenie treści zawartej na stronie nr. 19
CHAPTER 2 MEMORY SPACE 2.2 Memory Space and Addressing 2 In addressing by the F MC-8FX CPU, the applicable addressing mode related to memory access may change according to the address. Therefore, the use of the proper addressing mode increases the code efficiency of instructions. ■ Memory Space and Addressing 2 The F MC-8FX CPU has the following addressing modes related to memory access. ([ ] indicates one byte): Direct addressing: Specify the lower 8 bits of the address using the operand.
Streszczenie treści zawartej na stronie nr. 20
CHAPTER 2 MEMORY SPACE Figure 2.2-1 Memory Space and Addressing FFFFH Interrupt vector FFD0H CALLV table FFC0H +127 bytes Program area -128 bytes External area 047FH 0200H Register bank 0100H I/O area 0000H : Direct addressing : Extended addressing : Bit direct addressing : Index addressing : Pointer addressing : General-purpose register addressing : Immediate addressing : Vector addressing : Relative addressing 8 Data area