M37632EFFP#U2 Renesas Electronics America, M37632EFFP#U2 Datasheet

no-image

M37632EFFP#U2

Manufacturer Part Number
M37632EFFP#U2
Description
IC 740 MCU 80QFP
Manufacturer
Renesas Electronics America
Datasheet

Specifications of M37632EFFP#U2

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
To our customers,
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Renesas Electronics website:
Old Company Name in Catalogs and Other Documents
http://www.renesas.com
April 1
Renesas Electronics Corporation
st
, 2010

Related parts for M37632EFFP#U2

M37632EFFP#U2 Summary of contents

Page 1

To our customers, Old Company Name in Catalogs and Other Documents st On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the ...

Page 2

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 3

Family 8 Software Manual RENESAS MCU All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please ...

Page 4

This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in ...

Page 5

REVISION HISTORY Rev. Date Page 1.00 – First edition issued Aug 29, 1997 2.00 – Changed to the RENESAS style. Nov 14, 2006 “Preface” is changed to “Using This Manual”. 4 2.5 Processor Status Register: Description added. 26 3.2 Instruction ...

Page 6

This software manual is written for the 740 Family. It applies to all microcomputers integrating the 740 Family CPU core. The reader of this manual is assumed to have a basic knowledge of electrical circuits, logic circuits, and microcomputers. 740 ...

Page 7

Table of contents CHAPTER 1. OVERVIEW ............................................................................................ 1 CHAPTER 2. CENTRAL PROCESSING UNIT (CPU) ............................................. 2 2.1 Accumulator (A) ........................................................................................................................ 2 2.2 Index Register X (X), Index Register Y (Y) ........................................................................ 2 2.3 Stack Pointer (S) ...................................................................................................................... 3 2.4 Program ...

Page 8

APPENDIX 1. Instruction Cycles in each Addressing Mode ........................ 112 APPENDIX 2. 740 Family Machine Language Instruction Table .................. 178 APPENDIX 3. 740 Family list of Instruction Codes ........................................ 184 <Addressing Mode> Immediate .................................. 7 Accumulator .............................. 8 Zero Page ...

Page 9

OVERVIEW 1. OVERVIEW The distinctive features of the CMOS 8-bit microcomputers 740 Family’s software are described below efficient instruction set and many addressing modes allow the effective use of ROM. 2) The same bit management, test, and branch ...

Page 10

CENTRAL PROCESSING UNIT 2. CENTRAL PROCESSING UNIT (CPU) Six main registers are built into the CPU of the 740 Family. The Program Counter (PC sixteen-bit register; however, the Accumulator (A), Index Register X (X), Index Register Y (Y), ...

Page 11

CENTRAL PROCESSING UNIT 2.3 Stack Pointer (S) The Stack Pointer is an eight-bit register used for generating interrupts and calling subroutines. When an interrupt is received, the following procedure is performed automatically in the indicated sequence: (1) The contents of ...

Page 12

CENTRAL PROCESSING UNIT 2.4 Program Counter (PC) The Program Counter is a sixteen-bit counter consisting of PC eight-bit registers. The contetnts of the Program Counter indicates the address which an instruction to be executed next is stored. The 740 Family ...

Page 13

CENTRAL PROCESSING UNIT [ X modified operation mode flag T ] ----------------------- Bit 5 This flag determines whether arithmetic operations are performed via the Accumulator or directly on a memory location. When the flag is set to “0”, arithmetic operations ...

Page 14

INSTRUCTIONS 3. INSTRUCTIONS 3.1 Addressing Mode The 740 Family has 19 addressing modes and a powerful memory access capability. When extracting data required for arithmetic and logic operations from memory or when storing the results of such operations in memory, ...

Page 15

INSTRUCTIONS Immediate Addressing mode : Specifies the Operand as the data for the instruction. Function : ADC, AND, CMP, CPX, CPY, EOR, LDA, LDX, LDY, Instructions : ORA, SBC Example : Mnemonic (A) ← ( Rev.2.00 ...

Page 16

INSTRUCTIONS Addressing mode : Accumulator Function : Specifies the contents of the Accumulator as the data for the instruction. Instructions : ASL, DEC, INC, LSR, ROL, ROR Example : Mnemonic ...

Page 17

INSTRUCTIONS Zero Page Addressing mode : Specifies the contents in a Zero Page memory Function : location as the data for the instruction. The address in the Zero Page memory location is determined by using Operand as the low-order byte ...

Page 18

INSTRUCTIONS Zero Page X Addressing mode : Specified the contents in a Zero Page memory Function : location as the data for the instruction. The address in the Zero Page memory location is determined by the following: (a) Operand and ...

Page 19

INSTRUCTIONS Zero Page Y Addressing mode : Specifies the contents in a Zero Page memory Function : location as the data for the instruction. The address in the Zero Page memory location is determined by the following: (a) Operand and ...

Page 20

INSTRUCTIONS Addressing mode : Absolute Function : Specifies the contents in a memory location as the data for the instruction. The address in the memory location is determined by using Operand I as the low- order byte of the address ...

Page 21

INSTRUCTIONS Absolute X Addressing mode : Specifies the contents in a memory location as the Function : data for the instruction. The address in the memory location is determined by the following: (a) Operand I is used as the low-order ...

Page 22

INSTRUCTIONS Absolute Y Addressing mode : Specifies the contents in a memory location as the Function : data for the instruction. The address in the memory location is determined by the following: (a) Operand I is used as the low-order ...

Page 23

INSTRUCTIONS Implied Addressing mode : Operates on a given register or the Accumulator, but Function : the address is always inherent in the instruction. BRK, CLC, CLD, CLI, CLT, CLV, DEX, DEY, INX, INY, Instructions : NOP, PHA, PHP, PLA, ...

Page 24

INSTRUCTIONS Addressing mode : Relative Function : Specifies the address in a memory location where the next Op-Code is located. When the branch condition is satisfied, Operand and the Program Counter are added. The result of this addition is the ...

Page 25

INSTRUCTIONS Indirect X Addressing mode : Specifies the contents in a memory location as the Function : data for the instruction. The address in the memory location is determined by the following: (a) A Zero Page memory location is determined ...

Page 26

INSTRUCTIONS Indirect Y Addressing mode : Specifies the contents in a memory location as the Function : data for the instruction. The address in the memory location is determined by the following: (a) The Operand is used the low-order byte ...

Page 27

INSTRUCTIONS Indirect Absolute Indirect Absolute Addressing mode : Specifies the address in a memory location as the Function : jump destination address. The address in the memory location is determined by the following: (a) Operand I is used as the ...

Page 28

INSTRUCTIONS Zero Page Indirect Zero Page Indirect Absolute Addressing mode : Specifies the address in a memory location as the Function : jump destination address. The address in the memory location is determined by the following: (a) Operand is used ...

Page 29

INSTRUCTIONS Addressing mode : Special Page Function : Specifies the address in a Special Page memory location as the jump destination address. The address in the Special Page memory location is determined by using Operand as the low-order byte of ...

Page 30

INSTRUCTIONS Zero Page Bit Addressing mode : Specifies one bit of the contents in a Zero Page Function : memory location as the data for the instruction. Operand is used as the low-order byte of the address in the Zero ...

Page 31

INSTRUCTIONS Accumulator Bit Accumulator Bit Addressing mode : Specifies one bit of the Accumulator as the data for Function : the instruction. The bit position is designated by the high-order three bits of the Op-Code. CLB, SEB ...

Page 32

INSTRUCTIONS Accumulator Bit Relative Accumulator Bit Relative Addressing mode : Specifies the address in a memory location where the Function : next Op-Code is located. The bit position is designated by the high-order three bits of the Op-Code. If the ...

Page 33

INSTRUCTIONS Zero Page Bit Relative Zero Page Bit Relative Addressing mode : Specifies the address of a memory location where the Function : next Op-Code is located. The bit position is designated by the high-order three bits of the Op-Code. ...

Page 34

INSTRUCTIONS 3.2 Instruction Set The 740 Family has 71 types of instructions. The detailed explanation of the instructions is presented in §3.3. Note that some instructions cannot be used for some products. 3.2.1 Data transfer instructions These instructions transfer the ...

Page 35

INSTRUCTIONS 3.2.2 Operating instruction The operating instructions include the operations of addition and subtraction, logic, comparison, rotation, and shift. The operating instructions are as follows: Instructions Add memory contents and C flag to Accumulator or memory ADC where is indicated ...

Page 36

INSTRUCTIONS 3.2.3 Bit managing instructions The bit managing instructions clear “0” or set “1” designated bits of the Accumulator or memory. Instructions Clear designated bit in the Accumulator or memory Bit CLB SEB Set designated bit in the Accumulator or ...

Page 37

INSTRUCTIONS 3.2.6 Interrupt instruction (Break instruction) This instruction causes a software interrupt. Instruction Interrupt BRK 3.2.7 Special instructions These special instructions control the oscillation and the internal clock. Instructions WIT Special STP 3.2.8 Other instruction Instruction Other NOP Rev.2.00 Nov ...

Page 38

INSTRUCTIONS 3.3 Description of instructions This section presents in detail the 740 Family instructions by arranging mnemonics of instruc- tions alphabetically and dividing each instruction essentially into one page. The heading of each page is a mnemonic. Operation, explanation and ...

Page 39

ADC When ( (A) ← (A) + (M) + (C) Operation : ( (M(X)) ← (M(X)) + (M) + (C) Function : When this instruction adds the contents M, C, and A; and ...

Page 40

AND When ( (A) ← (A) ∧ (M) Operation : ( (M(X)) ← (M(X)) ∧ (M) When this instruction transfers the contents of A and M Function : to the ALU which performs ...

Page 41

ASL Operation : ← C Function : This instruction shifts the content one bit to the left, with bit 0 always being set to 0 and bit always being contained ...

Page 42

BBC When (Mi) or (Ai (PC) ← (PC REL Operation : (Mi) or (Ai (PC) ← (PC This instruction tests the designated bit and takes Function ...

Page 43

When (Mi) or (Ai (PC) ← (PC REL Operation : (Mi) or (Ai (PC) ← (PC This instruction tests the designated bit i of the ...

Page 44

BCC When ( (PC) ← (PC REL Operation : ( (PC) ← (PC This instruction takes a branch to the appointed address Function : 0. The branch address ...

Page 45

BCS When ( (PC) ← (PC REL Operation : ( (PC) ← (PC This instruction takes a branch to the appointed address Function : 1. The branch address ...

Page 46

BEQ When ( (PC) ← (PC REL Operation : ( (PC) ← (PC This instruction takes a branch to the appointed address when Function : The branch address ...

Page 47

BIT BIT TEST (A) ∧ (M) Operation : This instruction takes a bit-wise logical AND of A and M Function : contents; however, the contents of A and M are not modified. The contents are changed, ...

Page 48

BMI B When ( (PC) ← (PC REL Operation : ( (PC) ← (PC Function : This instruction takes a branch to the appointed address when The branch ...

Page 49

BNE When ( (PC) ← (PC REL Operation : ( (PC) ← (PC This instruction takes a branch to the appointed address Function : 0. The branch address ...

Page 50

BPL When ( (PC) ← (PC REL Operation : ( (PC) ← (PC This instruction takes a branch to the appointed address Function : 0. The branch address ...

Page 51

BRA (PC) ← (PC REL Operation : This instruction branches to the appointed address. The branch Function : address is specified by a relative address. No change Status flag : Addressing mode Statement ∆BRA∆$hhll Relative Note: rr ...

Page 52

BRK (B) ← 1 Operation : (PC) ← (PC (M(S)) ← (PC (S) ← (S) – 1 (M(S)) ← (PC (S) ← (S) – 1 (M(S)) ← (PS) (S) ← (S) – 1 (I) ← 1 (PC) ← ...

Page 53

BVC B RANCH ON O When ( (PC) ← (PC REL Operation : ( (PC) ← (PC Function : This instruction takes a branch to the appointed address ...

Page 54

BVS B When ( (PC) ← (PC REL Operation : ( (PC) ← (PC Function : This instruction takes a branch to the appointed address when The branch ...

Page 55

CLB (Ai) ← Operation : (Mi) ← 0 Function : This instruction clears the designated bit Status flag : No change Statement Addressing mode ∆CLB∆i,A Accumulator bit ∆CLB∆i,$zz Zero page bit Rev.2.00 Nov ...

Page 56

CLC (C) ← 0 Operation : Function : This instruction clears C. Status flag change change change change change No change ...

Page 57

CLD (D) ← 0 Operation : This instruction clears D. Function : No change Status flag change change change change change Z ...

Page 58

CLI CL EAR (I) ← 0 Operation : Function : This instruction clears I. Status flag change No change change change change Z ...

Page 59

CLT (T) ← 0 Operation : This instruction clears T. Function : No change Status flag change change change change change Z ...

Page 60

CLV (V) ← 0 Operation : This instruction clears V. Function : change Status flag change change No change change ...

Page 61

CMP When ( (A) – (M) Operation : ( (M(X)) – (M) When this instruction subtracts the contents of M from Function : the contents of A. The result is not stored and ...

Page 62

COM (M) ← (M) Operation : This instruction takes the one’s complement of the contents of Function : M and stores the result when bit 7 of the after the operation; Status ...

Page 63

CPX ARE MEMORY AND INDEX REGISTER Operation : (X) – (M) Function : This instruction subtracts the contents of M from the contents of X. The result is not stored and the contents of X and M ...

Page 64

CPY ARE MEMORY AND INDEX REGISTER (Y) – (M) Operation : This instruction subtracts the contents of M from the contents of Function : Y. The result is not stored and the contents of Y and M ...

Page 65

DEC (A) ← (A) – Operation : (M) ← (M) – 1 This instruction subtracts 1 from the contents Function : when bit after the addition; ...

Page 66

DEX DE CREMENT INDEX REGISTER (X) ← (X) – 1 Operation : This instruction subtracts one from the current contents of X. Function : Status flag when bit after the operation; otherwise ...

Page 67

DEY DE CREMENT INDEX REGISTER (Y) ← (Y) – 1 Operation : This instruction subtracts one from the current contents of Y. Function : Status flag when bit after the operation; otherwise ...

Page 68

DIV DIV IDE MEMORY BY ACCUMULATOR (A) ← (M(zz+(X)+1),M(zz+(X)) / (A) Operation : M(S) ← one’s complement of Remainder (S) ← (S) – 1 Function : Divides the 16-bit data in M(zz+(X)) (low-order byte) and M(zz+(X)+1) (high-order byte) by the ...

Page 69

EOR E XCLUSIVE When ( (A) ← (A) ∀ (M) Operation : ( (M(X)) ← (M(X)) ∀ (M) Function : When this instruction transfers the contents of the M and A to the ...

Page 70

INC (A) ← ( Operation : (M) ← ( This instruction adds one to the contents Function : when bit after the operation; otherwise N ...

Page 71

INX IN CREMENT INDEX REGISTER (X) ← ( Operation : Function : This instruction adds one to the contents of X. Status flag when bit after the operation; otherwise N ...

Page 72

INY IN CREMENT INDEX REGISTER (Y) ← ( Operation : Function : This instruction adds one to the contents of Y. Status flag when bit after the operation; otherwise N ...

Page 73

JMP When addressing mode is Operation : (a) Absolute, then (b) Indirect Absolute, then (c) Zero page Indirect Absolute, then This instruction jumps to the address designated by the Function : following three addressing modes: Absolute Indirect Absolute Zero Page ...

Page 74

(M(S)) ← (PC Operation : (S) ← (S) – 1 (M(S)) ← (PC (S) ← (S) – 1 After the above operations, if the addressing mode is (a) Absolute, then (b) Special page, then (c) Zero page ...

Page 75

LDA When ( (A) ← (M) Operation : ( (M(X)) ← (M) Function : When this instruction transfers the contents When this ...

Page 76

LDM L OAD IMMEDIATE (M) ← nn Operation : Function : This instruction loads the immediate value in M. Status flag : No change Addressing mode Statement ∆LDM∆#$nn,$zz Zero page Rev.2.00 Nov 14, 2006 page 68 of 185 REJ09B0322-0200 D ...

Page 77

LDX INDEX REGISTER (X) ← (M) Operation : This instruction loads the contents Function : when bit after the operation; otherwise N is Status flag ...

Page 78

LDY INDEX REGISTER (Y) ← (M) Operation : This instruction loads the contents Function : when bit after the operation; otherwise N is Status flag ...

Page 79

LSR Operation : → 0 This instruction shifts either one bit to the right such Function : that bit 7 of the result always is set to 0, and the bit 0 is stored ...

Page 80

MUL MUL TIPLY ACCUMULATOR AND MEMORY M(S) • (A) ← (A) Operation : (S) ← (S) – 1 Multiplies Accumulator with the memory specified by the Zero Function : Page X addressing mode and stores the high-order byte of the ...

Page 81

NOP (PC) ← (PC Operation : Function : This instruction adds one to the PC but does no other operation. Status flag : No change Addressing mode Statement ∆NOP Implied Rev.2.00 Nov 14, 2006 page 73 of 185 ...

Page 82

ORA OR When ( (A) ← (A) ∨ (M) Operation : ( (M(X)) ← (M(X)) ∨ (M) When this instruction transfers the contents of A and M Function : to the ALU which ...

Page 83

PHA P US (M(S)) ← (A) Operation : (S) ← (S) – 1 Function : This instruction pushes the contents the memory location designated by S, and decrements the contents one. Status flag : ...

Page 84

PHP (M(S)) ← (PS) Operation : (S) ← (S) – 1 Function : This instruction pushes the contents the memory loca- tion designated by S and decrements the contents one. ...

Page 85

PLA (S) ← ( Operation : (A) ← (M(S)) This instruction increments S by one and stores the contents of Function : the memory designated when ...

Page 86

PLP (S) ← ( Operation : (PS) ← (M(S)) Function : This instruction increments S by one and stores the contents of the memory location designated PS. Status flag : ...

Page 87

ROL Operation : b7 This instruction shifts either one bit left through Function : stored in bit 0 and bit 7 is stored when bit before ...

Page 88

ROR Operation : C This instruction shifts either one bit right through C. C Function : is stored in bit 7 and bit 0 is stored when ...

Page 89

RRF R Operation : b 7 This instruction rotates 4 bits of the M content to the right. Function : No change Status flag : Addressing mode Statement ∆RRF∆$zz Zero page Rev.2.00 Nov 14, 2006 page 81 of 185 REJ09B0322-0200 ...

Page 90

RTI (S) ← ( Operation : (PS) ← (M(S)) (S) ← ( ← (M(S)) (PC L (S) ← ( ← (M(S)) (PC H Function : This instruction increments S by one, and ...

Page 91

(S) ← ( Operation : ) ← (M(S)) (PC L (S) ← ( ← (M(S)) (PC H (PC) ← (PC Function : This instruction increments S by one and stores ...

Page 92

SBC When ( (A) ← (A) – (M) – (C) Operation : ( (M(X)) ← (M(X)) – (M) – (C) When this instruction subtracts the value of M and the Function : complement ...

Page 93

(Ai) ← Operation : (Mi) ← 1 This instruction sets the designated bit Function : No change Status flag: Addressing mode Statement ∆SEB∆i,A Accumulator bit ∆SEB∆i,$zz Zero page bit Rev.2.00 ...

Page 94

SEC (C) ← 1 Operation : This instruction sets C. Function : No change N : Status flag: No change change change change change change ...

Page 95

(D) ← 1 Operation : This instruction set D. Function : No change Status flag change change change change ...

Page 96

SEI SE (I) ← 1 Operation : This instruction sets I. Function : No change Status flag change change change change change ...

Page 97

SET (T) ← 1 Operation : This instruction sets T. Function : No change Status flag change change change change change Z ...

Page 98

STA ST ORE (M) ← (A) Operation : Function : This instruction stores the contents The contents of A does not change. Status flag: No change Addressing mode Statement ∆STA∆$zz Zero page ∆STA∆$zz,X Zero page X ...

Page 99

STP CPU ← Stand-by state (Oscillation stopped) Operation : This instruction resets the oscillation control F/F and the oscil- Function : lation stops. Reset or interrupt input is needed to wake up from this mode. No change Status flag: Addressing ...

Page 100

STX ST ORE INDEX REGISTER (M) ← (X) Operation : This instruction stores the contents The contents of Function : X does not change. No change Status flag: Statement Addressing mode ∆STX∆$zz Zero page ∆STX∆$zz,Y Zero ...

Page 101

STY ST ORE INDEX REGISTER (M) ← (Y) Operation : This instruction stores the contents Function : The contents of Y does not change. No change Status flag: Addressing mode Statement ∆STY∆$zz Zero page ∆STY∆$zz,X Zero ...

Page 102

TAX T RANSFER (X) ← (A) Operation : Function : This instruction stores the contents The contents of A does not change. Status flag when bit after the ...

Page 103

TAY T RANSFER (Y) ← (A) Operation : This instruction stores the contents The contents of Function : A does not change when bit after the operation; otherwise N is ...

Page 104

TST T E Operation : ( Function : This instruction tests whether the contents of M are “0” or not and modifies the N and Z. Status flag when bit 7 of ...

Page 105

TSX T S RANSFER (X) ← (S) Operation : This instruction transfers the contents Function : Status flag when bit after the operation; otherwise ...

Page 106

TXA T RANSFER INDEX REGISTER (A) ← (X) Operation : This instruction stores the contents Function : when bit after the operation; otherwise Status flag: 0. ...

Page 107

TXS T RANSFER INDEX REGISTER (S) ← (X) Operation : This instruction stores the contents Function : No change Status flag Addressing mode Statement ∆TXS Implied Rev.2.00 Nov 14, 2006 page 99 of 185 REJ09B0322-0200 X ...

Page 108

TYA T RANSFER INDEX REGISTER (A) ← (Y) Operation : Function : This instruction stores the contents Status flag when bit after the operation; otherwise ...

Page 109

WIT CPU ← Wait state Operation : Function : The WIT instruction stops the internal clock but the oscillation of the oscillation circuit is not stopped. Reset or interrupt input is needed to wake up from this mode. Status flag ...

Page 110

INSTRUCTIONS Instructions Related to Interrupt Processing and Subroutine Processing 3.4 Instructions Related to Interrupt Handling and Subroutine Processing 3.4.1 Instructions Related to Interrupt Handling When an interrupt is accepted, the contents of the processor status register are pushed onto the ...

Page 111

INSTRUCTIONS Instructions Related to Interrupt Processing and Subroutine Processing (4) Interrupt Control within Interrupt Routines After an interrupt is accepted and execution of the interrupt routine begins, the interrupt disable flag (I) is set to “1” automatically to prevent multiple ...

Page 112

INSTRUCTIONS Instructions Related to Interrupt Processing and Subroutine Processing Push return address M(S) ← ( onto stack (S) ← (S) – 1 M(S) ← ( (S) ← (S) – 1 Subroutine Execute RTS instruction (S) ← ...

Page 113

NOTES ON USE The information below applies to the entire 740 Family. Please refer conjunction with the usage notes of each specific product model. 4.1 Notes on input and output ports 4.1.1 Notes in standby state ...

Page 114

NOTES ON USE 4.2 Termination of unused pins At the termination of unused pins, perform wiring at the shortest possible distance ( less) from microcomputer pins. With regard to an effects on the system, thoroughly perform system evaluation ...

Page 115

Notes on interrupts 4.3.1 Setting for interrupt request bit and interrupt enable bit To set an interrupt request bit and an interrupt enable bit for interrupts, execute as the following sequence: Clear an interrupt request bit to “0” (no ...

Page 116

NOTES ON USE 4.3.3 Distinction of interrupt request bit When executing the BBC or BBS instruction to an interrupt request (request distinguish) bit of an interrupt request register (interrupt request distinguish register) immediately after this bit is set to “0”, ...

Page 117

Notes on programming 4.4.1 Processor Status Register (1) Initialization of Processor Status Register Flags which affect program execution must be initialized after a reset. In particular essential to initialize the T and D flags because they have ...

Page 118

NOTES ON USE 4.4.2 BRK instruction (1) Method detecting interrupt source It can be detected that the BRK instruction interrupt event or the least priority interrupt event by referring the stored B flag state. Refer the stored B flag state ...

Page 119

Status flags in decimal mode When decimal mode is selected (D = 1), the values of three of the flags in the status register (the flags N, V, and Z) are invalid after a ADC or SBC instruction is ...

Page 120

APPENDIX 1 Instruction Cycles in each Addressing Mode APPENDIX 1. Instruction Cycles in each Addressing Mode Clock φ controls the system timing of 740 Family. The SYNC signal and the value of PC (Program Counter) are output in every instruction ...

Page 121

Instructions : ∆CLD ∆CLI ∆CLT ∆CLV ∆DEX ∆DEY ∆INX ∆INY ∆NOP Byte length : 1 Cycle number : 2 Timing : φ SYNC R ADDR PC DATA ADDR PC H ADDR /DATA Rev.2.00 Nov ...

Page 122

Instruction : Byte length : 1 Cycle number : 7 Timing : φ SYNC R ADDR Op - DATA code ADDR ADDR ...

Page 123

Instructions : ∆WIT Byte length : 1 Timing : φ SYNC R ADDR PC DATA Op -code PC ADDR H H ADDR code /DATA Rev.2.00 Nov 14, 2006 ...

Page 124

Instruction : Byte length : 1 Cycle number : 6 Timing : φ φ φ φ ADDR H H ...

Page 125

Instruction : Byte length : 1 Cycle number : 6 Timing : φ φ φ φ ...

Page 126

Instructions : ∆PHP Byte length : 1 Cycle number : 3 Timing : φ SYNC R ADDR DATA ADDR H ADDR L PC /DATA Note: Some p roducts are “01” or content of SPS flag. Rev.2.00 Nov ...

Page 127

Instructions : ∆PLP Byte length : 1 Cycle number : 4 Timing : φ φ φ φ R ADDR P C DATA ...

Page 128

Instructions : ∆AND∆#$nn ∆CMP∆#$nn ∆CPX∆#$nn ∆CPY∆#$nn ∆EOR∆#$nn ∆LDA∆#$nn ∆LDX∆#$nn ∆LDY∆#$nn ∆ORA∆#$nn ∆SBC∆#$nn 2 Byte length : Cycle number : 2 Timing : φ φ φ φ SYNC R ...

Page 129

Instructions : ∆DEC ∆A ∆INC ∆A ∆LSR ∆A ∆ROL ∆A ∆ROR ∆A Byte length : 1 Cycle number : 2 Timing : φ SYNC R ADDR DATA ADDR PC H ADDR L PC /DATA Rev.2.00 Nov ...

Page 130

ACCUMULATOR BIT RELATIVE ∆BBC∆i,A,$hhll Instructions : ∆BBS∆i,A,$hhll Byte length : 2 (1) With no branch Cycle number : 4 Timing : φ SYNC R ADDR PC DATA Op -code ADDR ADDR ...

Page 131

ACCUMULATOR BIT RELATIVE ∆BBC∆i,A,$hhll Instructions : ∆BBS∆i,A,$hhll Byte length : 2 (2) With branch Cycle number : 6 Timing : φ φ φ φ DATA ...

Page 132

ACCUMULATOR BIT ∆CLB∆i,A Instructions : ∆SEB∆i,A Byte length : 1 Cycle number : 2 Timing : φ SYNC R ADDR DATA ADDR H ADDR L /DATA Rev.2.00 Nov 14, 2006 page 124 of 185 REJ09B0322-0200 PC+1 PC Invalid ...

Page 133

Instructions : ∆BBS∆i,$zz,$hhll Byte length : 3 (1) With no branch Cycle number : 5 Timing : φ SYNC R ADDR DATA PC ADDR H ADDR /DATA Rev.2.00 Nov 14, 2006 page 125 ...

Page 134

Instructions : ∆BBS∆i,$zz,$hhll Byte length : 3 (2) With branch Cycle number : 7 Timing : φ φ φ φ ADDR DATA O ...

Page 135

Instructions : ∆SEB∆i,$zz Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR PC DATA ADDR H PC ADDR /DATA Rev.2.00 Nov 14, 2006 page 127 of 185 REJ09B0322-0200 ZERO ...

Page 136

Instructions : ∆AND ∆$zz ∆BIT ∆$zz ∆CMP ∆$zz ∆CPX ∆$zz ∆CPY ∆$zz ∆EOR ∆$zz ∆LDA ∆$zz ∆LDX ∆$zz ∆LDY ∆$zz ∆ORA ∆$zz ∆SBC ∆$zz ∆TST ∆$zz Byte length : 2 Cycle number : 3 Timing : φ ...

Page 137

Instructions : ∆COM ∆$zz ∆DEC ∆$zz ∆INC ∆$zz ∆LSR ∆$zz ∆ROL ∆$zz ∆ROR ∆$zz Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR DATA ADDR PC H ADDR L PC ...

Page 138

Instruction : Byte length : 2 Cycle number : 8 Timing : φ SYNC R ADDR PC DATA Op -code ADDR ADDR ...

Page 139

Instruction : Byte length : 3 Cycle number : 4 Timing : φ SYNC R ADDR PC DATA PC ADDR H H ADDR code /DATA Rev.2.00 Nov 14, 2006 page 131 ...

Page 140

Instructions : ∆STX∆$zz ∆STY∆$zz Byte length : 2 Cycle number : 4 Timing : φ SYNC R ADDR DATA ADDR H ADDR L PC /DATA Rev.2.00 Nov 14, 2006 page 132 of 185 REJ09B0322-0200 ZERO PAGE PC ...

Page 141

Instruction : Byte length : 2 Cycle number : 15 Timing : φ φ φ φ ...

Page 142

Instruction : Byte length : 2 Cycle number : 16 Timing : φ φ φ φ ...

Page 143

Instructions : ∆DEC ∆$zz,X ∆INC ∆$zz,X ∆LSR ∆$zz,X ∆ROL ∆$zz,X ∆ROR∆$zz,X Byte length : 2 Cycle number : 6 Timing : φ SYNC R ADDR PC DATA ADDR H PC ADDR /DATA Rev.2.00 ...

Page 144

ZERO PAGE X, ZERO PAGE Y ∆ADC ∆$zz,X Instructions : ∆AND ∆$zz,X ∆CMP∆$zz,X ∆EOR ∆$zz,X ∆LDA ∆$zz,X ∆LDX ∆$zz,Y ∆LDY ∆$zz,X ∆ORA∆$zz,X ∆SBC ∆$zz,X Byte length : 2 Cycle number : 4 Timing : φ SYNC R ...

Page 145

ZERO PAGE X, ZERO PAGE Y ∆STA∆$zz,X Instructions : ∆STX∆$zz,Y ∆STY∆$zz,X Byte length : 2 Cycle number : 5 Timing : φ φ φ φ R ADDR DATA ...

Page 146

Instructions : ∆AND ∆$hhll ∆BIT ∆$hhll ∆CMP ∆$hhll ∆CPX ∆$hhll ∆CPY ∆$hhll ∆EOR ∆$hhll ∆LDA ∆$hhll ∆LDX ∆$hhll ∆LDY ∆$hhll ∆ORA ∆$hhll ∆SBC ∆$hhll Byte length : 3 Cycle number : 4 Timing : φ φ φ ...

Page 147

Instructions : ∆DEC ∆$hhll ∆INC ∆$hhll ∆LSR ∆$hhll ∆ROL ∆$hhll ∆ROR∆$hhll Byte length : 3 Cycle number : 6 Timing : φ SYNC R ADDR PC DATA ADDR PC H ADDR /DATA Rev.2.00 ...

Page 148

Instruction : Byte length : 3 Cycle number : 3 Timing : φ SYNC R ADDR DATA ADDR H ADDR L PC /DATA Rev.2.00 Nov 14, 2006 page 140 of 185 REJ09B0322-0200 ABSOLUTE ...

Page 149

Instruction : Byte length : 3 Cycle number : 6 Timing : φ SYNC R ADDR PC DATA Op-code ADDR ADDR L Op code /DATA Note: Some products are “01” or content ...

Page 150

Instructions : ∆STX∆$hhll ∆STY∆$hhll Byte length : 3 Cycle number : 5 Timing : φ SYNC R ADDR DATA ADDR H ADDR L /DATA Rev.2.00 Nov 14, 2006 page 142 of 185 REJ09B0322-0200 ABSOLUTE PC+2 PC+1 PC ...

Page 151

ABSOLUTE X, ABSOLUTE Y ∆ADC ∆$hhll Instructions : ∆AND ∆$hhll ∆CMP ∆$hhll ∆EOR ∆$hhll ∆LDA ∆$hhll ∆LDX ∆$hhll,Y ∆LDY ∆$hhll,X ∆ORA ∆$hhll ∆SBC ∆$hhll Byte ...

Page 152

Instructions : ∆DEC ∆$hhll,X ∆INC ∆$hhll,X ∆LSR ∆$hhll,X ∆ROL ∆$hhll,X ∆ROR ∆$hhll,X Byte length : 3 Cycle number : 7 Timing : φ SYNC R ADDR -code DATA ADDR ...

Page 153

ABSOLUTE X, ABSOLUTE Y ∆STA∆$hhll Instruction : Byte length : 3 Cycle number : 6 Timing : φ SYNC R ADDR PC Op -code DATA ADDR ADDR ...

Page 154

Instruction : Byte length : 3 Cycle number : 5 Timing : φ φ φ φ ...

Page 155

ZERO PAGE INDIRECT ∆JMP∆($zz) Instruction : Byte length : 2 Cycle number : 4 Timing : φ φ φ φ ...

Page 156

ZERO PAGE INDIRECT ∆JSR∆($zz) Instruction : Byte length : 2 Cycle number : 7 Timing : φ φ φ φ ...

Page 157

Instructions : ∆AND ∆($zz,X) ∆CMP ∆($zz,X) ∆EOR ∆($zz,X) ∆LDA ∆($zz,X) ∆ORA ∆($zz,X) ∆SBC ∆($zz,X) Byte length : 2 Cycle number : 6 Timing : φ SYNC R ADDR PC DATA Op-code ADDR ...

Page 158

Instruction : Byte length : 2 Cycle number : 7 Timing : φ φ φ φ SYNC PC ...

Page 159

Instructions : ∆AND ∆($zz),Y ∆CMP∆($zz),Y ∆EOR ∆($zz),Y ∆LDA ∆($zz),Y ∆ORA∆($zz),Y ∆SBC ∆($zz),Y Byte length : 2 Cycle number : 6 Timing : φ SYNC R ADDR DATA Op -code ADDR PC H ...

Page 160

Instruction : Byte length : 2 Cycle number : 7 Timing : φ SYNC R ADDR DATA Op -code ADDR ADDR ...

Page 161

Instructions : ∆BCS ∆$hhll ∆BEQ ∆$hhll ∆BMI ∆$hhll ∆BNE ∆$hhll ∆BPL ∆$hhll ∆BVC ∆$hhll ∆BVS ∆$hhll Byte length : 2 (1)With no branch Cycle number : 2 Timing : φ SYNC R ADDR DATA ADDR H ...

Page 162

Instructions : ∆BCS ∆$hhll ∆BEQ ∆$hhll ∆BMI ∆$hhll ∆BNE ∆$hhll ∆BPL ∆$hhll ∆BVC ∆$hhll ∆BVS ∆$hhll Byte length : 2 (2)With branch Cycle number : 4 Timing : φ φ φ φ R/W RD ...

Page 163

Instruction : Byte length : 2 Cycle number : 4 Timing : φ φ φ φ ADDR Op-code DATA ...

Page 164

Instruction : Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR DATA Op -code PC ADDR H H ADDR code /DATA BA : Basic address ...

Page 165

Instructions : ∆AND∆#$nn ∆EOR∆#$nn ∆ORA∆#$nn ∆SBC∆#$nn Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR PC DATA Op -code ADDR ADDR code ...

Page 166

Instruction : Byte length : 2 Cycle number : 3 Timing : φ SYNC R ADDR PC DATA ADDR ADDR /DATA Rev.2.00 Nov 14, 2006 page 158 of 185 REJ09B0322-0200 ...

Page 167

Instruction : Byte length : 2 Cycle number : 4 Timing : φ SYNC R ADDR DATA ADDR H ADDR L PC /DATA Rev.2.00 Nov 14, 2006 page 159 of 185 REJ09B0322-0200 IMMEDIATE (T= ...

Page 168

Instructions : ∆AND∆$zz ∆EOR∆$zz ∆ORA∆$zz ∆SBC∆$zz Byte length : 2 Cycle number : 6 Timing : φ SYNC R ADDR PC DATA Op -code ADDR ADDR /DATA ...

Page 169

Instruction : Byte length : 2 Cycle number : 4 Timing : φ SYNC R ADDR PC DATA PC ADDR H ADDR /DATA Rev.2.00 Nov 14, 2006 page 161 of 185 REJ09B0322-0200 ZERO ...

Page 170

Instruction : Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR PC DATA Op -code ADDR ADDR /DATA code Rev.2.00 Nov 14, ...

Page 171

Instructions : ∆AND∆$zz,X ∆EOR∆$zz,X ∆ORA∆$zz,X ∆SBC∆$zz,X Byte length : 2 Cycle number : 7 Timing : φ SYNC R ADDR PC PC+1 DATA Op-code ADDR ADDR L Op ...

Page 172

Instruction : Byte length : 2 Cycle number : 5 Timing : φ SYNC R ADDR PC DATA Op-code ADDR ADDR L Op code /DATA Rev.2.00 Nov 14, 2006 page ...

Page 173

Instruction : Byte length : 2 Cycle number : 6 Timing : φ φ φ φ SYNC ADDR PC PC+1 DATA Op-code ...

Page 174

Instructions : ∆AND∆$hhll ∆EOR∆$hhll ∆ORA∆$hhll ∆SBC∆$hhll Byte length : 3 Cycle number : 7 Timing : φ φ φ φ ADDR ...

Page 175

Instruction : Byte length : 3 Cycle number : 5 Timing : φ φ φ φ ADDR PC DATA ADDR P ...

Page 176

Instruction : Byte length : 3 Cycle number : 6 Timing : φ φ φ φ ADDR Op-code ADDR P C ...

Page 177

ABSOLUTE X, ABSOLUTE Y ∆ADC∆$hhll Instructions : ∆AND∆$hhll ∆EOR∆$hhll ∆ORA∆$hhll ∆SBC∆$hhll Byte length : 3 Cycle number : 8 Timing : φ SYNC R ADDR PC PC ...

Page 178

ABSOLUTE X, ABSOLUTE Y ∆CMP∆$hhll (T=1) Instruction : Byte length : 3 Cycle number : 6 Timing : φ SYNC R ADDR DATA Op -code PC ADDR H H ADDR L O ...

Page 179

ABSOLUTE X, ABSOLUTE Y ∆LDA∆$hhll (T=1) Instruction : Byte length : 3 Cycle number : 7 Timing : φ SYNC R ADDR DATA Op -code ADDR ADDR L ...

Page 180

Instructions : ∆AND∆($zz,X) ∆EOR∆($zz,X) ∆ORA∆($zz,X) ∆SBC∆($zz,X) Byte length : 2 Cycle number : 9 Timing : φ φ φ φ R ADDR PC PC+1 Op- DATA B A code A D ...

Page 181

Instruction : Byte length : 2 Cycle number : 7 Timing : φ φ φ φ PC ...

Page 182

Instruction : Byte length : 2 Cycle number : 8 Timing : φ φ φ φ ADDR PC PC DATA ADDR ...

Page 183

Instructions : ∆AND∆($zz),Y ∆EOR∆($zz),Y ∆ORA∆($zz),Y ∆SBC∆($zz),Y 2 Byte length : 9 Cycle number : Timing : φ φ φ φ ...

Page 184

Instruction : Byte length : 2 Cycle number : 7 Timing : φ φ φ φ ADDR DATA Op-code ...

Page 185

Instruction : Byte length : 2 Cycle number : 8 Timing : φ φ φ φ PC+1 Op ...

Page 186

APPENDIX 2 APPENDIX 2. 740 Family Machine Language Instruction Table Parameter SYMBOL Classification LDA # $ nn (A)←nn LDA $ zz (A)←(M) LDA $ zz, X (A)←(M) LDA $ hhII (A)←(M) LDA $ hhII, X (A)←(M) LDA $ hhII, Y ...

Page 187

Parameter SYMBOL Classification (A)←(A)+nn+(C) ADC # $ nn (A)←(A)+(M)+(C) ADC $ zz (A)←(A)+(M)+(C) ADC $ zz, X (A)←(A)+(M)+(C) ADC $ hhII ADC $ hhII, X (A)←(A)+(M)+(C) ADC $ hhII, Y (A)←(A)+(M)+(C) ADC ($ zz, X) (A)←(A)+(M)+(C) (A)←(A)+(M)+(C) ADC ($ zz), ...

Page 188

Parameter SYMBOL Classification AND # $ nn (A)←(A) nn (A)←(A) (M) AND $ zz (A)←(A) (M) AND $ zz, X (A)←(A) (M) AND $ hhII (A)←(A) (M) AND $ hhII, X (A)←(A) (M) AND $ hhII, Y (A)←(A) (M) AND ...

Page 189

Parameter SYMBOL Classification  Left Shift C ←A ASL A  ASL $ zz  ASL $ zz, X  Left Shift  C ← M ASL $ hhII    ASL $ hhII, X Right Shift 0 → ...

Page 190

Parameter SYMBOL Classification (PC) ← (PC)+2+Rel BRA $ hhII (PC) ← hhII JMP $ hhII ) ← (hhII), (PC (PC JMP ($ hhII ←(zz), (PC (PC JMP ($ zz) L (M(S))←(PC H JSR $ hhII (S)←(S) –1, and ...

Page 191

Symbol Means A Accumulator Ai Bit i of accumulator X Index register X Y Index register Y M Memory Mi Bit i of memory PS Processor status register S Stack Pointer PC Program counter PC Low-order byte of program counter ...

Page 192

APPENDIX 3 APPENDIX 3. 740 Family Iist of Instruction Codes D – D 0000 0001 3 0 Hexadecimal – notation ORA BRK 0000 0 IND, X ZP, IND ORA BPL 0001 1 IND, Y ...

Page 193

MEMORANDUM Rev.2.00 Nov 14, 2006 page 185 of 185 REJ09B0322-0200 740 Family Iist of Instruction Codes ...

Page 194

Family Software Manual Publication Data : Rev.1.00 Aug 29, 1997 Rev.2.00 Nov 14, 2006 Published by : Sales Strategic Planning Div. Renesas Technology Corp. © 2006. Renesas Technology Corp., All rights reserved. Printed in Japan. ...

Page 195

Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan 740 Family Software Manual REJ09B0322-0200 ...

Related keywords