ページ1に含まれる内容の要旨
FUJITSU SEMICONDUCTOR
CM26-00301-2E
CONTROLLER MANUAL
2
F MC-8FX
8-BIT MICROCONTROLLER
PROGRAMMING MANUAL
ページ2に含まれる内容の要旨
ページ3に含まれる内容の要旨
2 F MC-8FX 8-BIT MICROCONTROLLER PROGRAMMING MANUAL FUJITSU LIMITED
ページ4に含まれる内容の要旨
ページ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
ページ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
ページ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 .......
ページ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
ページ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
ページ10に含まれる内容の要旨
vi
ページ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.
ページ12に含まれる内容の要旨
viii
ページ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
ページ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
ページ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
ページ16に含まれる内容の要旨
2 CHAPTER 1 OUTLINE AND CONFIGURATION EXAMPLE OF F MC-8FX CPU 4
ページ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
ページ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
ページ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.
ページ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