Renesas 740 Family User Manual

Browse online or download User Manual for Networking Renesas 740 Family. 740 Family Software Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 195
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
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.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry
.
Page view 0
1 2 3 4 5 6 ... 194 195

Summary of Contents

Page 1 - To our customers

To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C

Page 2

Rev.2.00 Nov 14, 2006 page 2 of 185REJ09B0322-0200CENTRAL PROCESSING UNIT2. CENTRAL PROCESSING UNIT (CPU)Six main registers are built into the CP

Page 3

Rev.2.00 Nov 14, 2006 page 92 of 185REJ09B0322-0200STXSTXSTORE INDEX REGISTER X IN MEMORY(M) ← (X)This instruction stores the contents of X in M

Page 4

Rev.2.00 Nov 14, 2006 page 93 of 185REJ09B0322-0200STYSTYSTORE INDEX REGISTER Y IN MEMORY(M) ← (Y)This instruction stores the contents of Y in M.

Page 5 - REVISION HISTORY

Rev.2.00 Nov 14, 2006 page 94 of 185REJ09B0322-0200TAXTAXTRANSFER ACCUMULATOR TO INDEX REGISTER X(X) ← (A)This instruction stores the contents

Page 6 - Using This Manual

Rev.2.00 Nov 14, 2006 page 95 of 185REJ09B0322-0200TAYTAYTRANSFER ACCUMULATOR TO INDEX REGISTER Y(Y) ← (A)This instruction stores the contents

Page 7 - Table of contents

Rev.2.00 Nov 14, 2006 page 96 of 185REJ09B0322-0200TSTTSTTEST FOR NEGATIVE OR ZERO(M) = 0 ?This instruction tests whether the contents of M are “

Page 8

Rev.2.00 Nov 14, 2006 page 97 of 185REJ09B0322-0200TSXTSXTRANSFER STACK POINTER TO INDEX REGISTER X(X) ← (S)This instruction transfers the cont

Page 9 - OVERVIEW

Rev.2.00 Nov 14, 2006 page 98 of 185REJ09B0322-0200TXATXATRANSFER INDEX REGISTER X TO ACCUMULATOR(A) ← (X)This instruction stores the contents o

Page 10 - CENTRAL PROCESSING UNIT

Rev.2.00 Nov 14, 2006 page 99 of 185REJ09B0322-0200TXSTXSTRANSFER INDEX REGISTER X TO STACK POINTER(S) ← (X)This instruction stores the contents

Page 11

Rev.2.00 Nov 14, 2006 page 100 of 185REJ09B0322-0200TYATYATRANSFER INDEX REGISTER Y TO ACCUMULATOR(A) ← (Y)This instruction stores the contents

Page 12

Rev.2.00 Nov 14, 2006 page 101 of 185REJ09B0322-0200WITWITWAITOperation :Function :Status flag :CPU ← Wait stateThe WIT instruction stops the in

Page 13

Rev.2.00 Nov 14, 2006 page 3 of 185REJ09B0322-02002.3 Stack Pointer (S)The Stack Pointer is an eight-bit register used for generating interrupts

Page 14

Rev.2.00 Nov 14, 2006 page 102 of 185REJ09B0322-0200INSTRUCTIONS3.4 Instructions Related to Interrupt Handling and Subroutine Processing3.4.1 Ins

Page 15 - Immediate

Rev.2.00 Nov 14, 2006 page 103 of 185REJ09B0322-0200(4) Interrupt Control within Interrupt RoutinesAfter an interrupt is accepted and execution o

Page 16 - Accumulator

Rev.2.00 Nov 14, 2006 page 104 of 185REJ09B0322-0200Instruction to push onto StackPHAPHPAccumulatorProcessor status registerInstruction to pull f

Page 17 - Zero Page

NOTES ON USERev.2.00 Nov 14, 2006 page 105 of 185REJ09B0322-02004. NOTES ON USEThe information below applies to the entire 740 Family. Please r

Page 18

NOTES ON USERev.2.00 Nov 14, 2006 page 106 of 185REJ09B0322-02004.2 Termination of unused pinsAt the termination of unused pins, perform wiring

Page 19 - Zero Page Y

NOTES ON USERev.2.00 Nov 14, 2006 page 107 of 185REJ09B0322-02004.3 Notes on interrupts4.3.1 Setting for interrupt request bit and interrupt en

Page 20 - Absolute

NOTES ON USERev.2.00 Nov 14, 2006 page 108 of 185REJ09B0322-02004.3.3 Distinction of interrupt request bitWhen executing the BBC or BBS instruc

Page 21 - Absolute X

NOTES ON USERev.2.00 Nov 14, 2006 page 109 of 185REJ09B0322-02004.4 Notes on programming4.4.1 Processor Status Register(1) Initialization of Pr

Page 22 - Absolute Y

NOTES ON USERev.2.00 Nov 14, 2006 page 110 of 185REJ09B0322-02004.4.2 BRK instruction(1) Method detecting interrupt sourceIt can be detected th

Page 23

NOTES ON USERev.2.00 Nov 14, 2006 page 111 of 185REJ09B0322-0200(2) Status flags in decimal modeWhen decimal mode is selected (D = 1), the valu

Page 24 - Relative

Rev.2.00 Nov 14, 2006 page 4 of 185REJ09B0322-02002.4 Program Counter (PC)The Program Counter is a sixteen-bit counter consisting of PCH and PCL,

Page 25 - Indirect X

Rev.2.00 Nov 14, 2006 page 112 of 185REJ09B0322-0200APPENDIX 1. Instruction Cycles in each Addressing ModeClock φ controls the system timing of 7

Page 26 - Indirect Y

IMPLIEDRev.2.00 Nov 14, 2006 page 113 of 185REJ09B0322-0200Instructions :Byte length :Cycle number :Timing :∆CLC∆CLD∆CLI∆CLT∆CLV∆DEX∆DEY∆INX∆INY∆

Page 27 - Indirect Absolute

IMPLIEDRev.2.00 Nov 14, 2006 page 114 of 185REJ09B0322-0200Instruction :Byte length :Cycle number :Timing :∆BRK17PCHPCHPCLPCL+1PC PC+1 S,00(Note

Page 28 - Zero Page Indirect

IMPLIEDRev.2.00 Nov 14, 2006 page 115 of 185REJ09B0322-0200∆STP∆WITInstructions :Byte length :Timing :1PCLPCL+1PCL+1PCHPC PC+1PCH SYNCR/WRD ADDRD

Page 29 - Special Page

IMPLIEDRev.2.00 Nov 14, 2006 page 116 of 185REJ09B0322-0200∆RTIInstruction :Byte length :Cycle number :Timing :16PC PC+1P CHP CHPCLPCL+1S,00(Note

Page 30 - Zero Page Bit

IMPLIEDRev.2.00 Nov 14, 2006 page 117 of 185REJ09B0322-0200Instruction :Byte length :Cycle number :Timing :∆RTS16PCLP CL+ 1SS+1S+2PCLPCHPCHPCH00

Page 31 - Accumulator Bit

IMPLIEDRev.2.00 Nov 14, 2006 page 118 of 185REJ09B0322-0200∆PHA∆PHPInstructions :Byte length :Cycle number :Timing :13PCPC+1PCHPCHPCLPCL+1SAor PS

Page 32 - Accumulator Bit Relative

IMPLIEDRev.2.00 Nov 14, 2006 page 119 of 185REJ09B0322-0200Instructions :Byte length :Cycle number :Timing :∆PLA∆PLP14P CLP CL+ 1PCHPCH0 0 ( N

Page 33 - Zero Page Bit Relative

Rev.2.00 Nov 14, 2006 page 120 of 185REJ09B0322-0200[T=0]IMMEDIATEInstructions :Byte length :Cycle number :Timing :∆ADC∆#$nn (T=0)∆AND∆#$nn

Page 34

Rev.2.00 Nov 14, 2006 page 121 of 185REJ09B0322-0200ACCUMULATORInstructions :Byte length :Cycle number :Timing :∆ASL ∆A∆DEC ∆A∆INC ∆A∆LSR ∆A∆ROL

Page 35

Rev.2.00 Nov 14, 2006 page 5 of 185REJ09B0322-0200[ X modified operation mode flag T ] ----------------------- Bit 5This flag determines whether

Page 36

Rev.2.00 Nov 14, 2006 page 122 of 185REJ09B0322-0200ACCUMULATOR BIT RELATIVEInstructions :Byte length :(1) With no branchCycle number :Timing :

Page 37

Rev.2.00 Nov 14, 2006 page 123 of 185REJ09B0322-0200ACCUMULATOR BIT RELATIVEInstructions :Byte length :(2) With branchCycle number :Timing :26

Page 38

Rev.2.00 Nov 14, 2006 page 124 of 185REJ09B0322-0200ACCUMULATOR BITInstructions :Byte length :Cycle number :Timing :∆CLB∆i,A∆SEB∆i,A12PCPC+1PCHPC

Page 39 - ADD WITH CARRY

Rev.2.00 Nov 14, 2006 page 125 of 185REJ09B0322-0200BIT RELATIVEInstructions :Byte length :(1) With no branchCycle number :Timing :∆BBC∆i,$zz,

Page 40

Rev.2.00 Nov 14, 2006 page 126 of 185REJ09B0322-0200BIT RELATIVEInstructions :Byte length :(2) With branchCycle number :Timing :∆BBC∆i,$zz,$hhl

Page 41 - ARITHMETIC SHIFT LEFT

Rev.2.00 Nov 14, 2006 page 127 of 185REJ09B0322-0200ZERO PAGE BITInstructions :Byte length :Cycle number :Timing :∆CLB∆i,$zz∆SEB∆i,$zz25PCPCLPCL+

Page 42 - BRANCH ON BIT CLEAR

Rev.2.00 Nov 14, 2006 page 128 of 185REJ09B0322-0200ZERO PAGE[T=0]Instructions :Byte length :Cycle number :Timing :∆ADC ∆$zz (T=0)∆AND ∆$zz

Page 43 - BRANCH ON BIT SET

Rev.2.00 Nov 14, 2006 page 129 of 185REJ09B0322-0200ZERO PAGEInstructions :Byte length :Cycle number :Timing :25∆ASL ∆$zz∆COM ∆$zz∆DEC ∆$zz∆INC ∆

Page 44 - BRANCH ON CARRY CLEAR

Rev.2.00 Nov 14, 2006 page 130 of 185REJ09B0322-0200ZERO PAGEInstruction :Byte length :Cycle number :Timing :∆RRF∆$zz28PCPC+1PCHPCHPCLPCL+100ADLA

Page 45 - BRANCH ON CARRY SET

Rev.2.00 Nov 14, 2006 page 131 of 185REJ09B0322-0200ZERO PAGEInstruction :Byte length :Cycle number :Timing :∆LDM∆#$nn,$zz34PCPC+1PCHPCHPCLPCL+10

Page 46 - BRANCH ON EQUAL

Rev.2.00 Nov 14, 2006 page 6 of 185REJ09B0322-0200Fig.3.1.1 Byte Structure of InstructionsINSTRUCTIONSAddressing mode3. INSTRUCTIONS3.1 Addressin

Page 47

Rev.2.00 Nov 14, 2006 page 132 of 185REJ09B0322-0200ZERO PAGEInstructions :Byte length :Cycle number :Timing :24∆STA∆$zz∆STX∆$zz∆STY∆$zzPCPC+1PCH

Page 48 - BRANCH ON RESULT MINUS

Rev.2.00 Nov 14, 2006 page 133 of 185REJ09B0322-0200Zero Page X∆MUL∆$zz,X (Note)Instruction :Byte length :Cycle number :Timing :215P CP C + 1A DL

Page 49 - BRANCH ON NOT EQUAL

Rev.2.00 Nov 14, 2006 page 134 of 185REJ09B0322-0200Zero Page XInstruction :Byte length :Cycle number :Timing :∆DIV∆$zz,X (Note)216P CP C + 1A

Page 50 - BRANCH ON RESULT PLUS

Rev.2.00 Nov 14, 2006 page 135 of 185REJ09B0322-0200Zero Page XInstructions :Byte length :Cycle number :Timing :∆ASL ∆$zz,X∆DEC ∆$zz,X∆INC ∆$zz,X

Page 51 - BRANCH ALWAYS

Rev.2.00 Nov 14, 2006 page 136 of 185REJ09B0322-0200ZERO PAGE X, ZERO PAGE Y[T=0]∆ADC∆$zz,X (T=0)∆AND∆$zz,X (T=0)∆CMP∆$zz,X (T=0)∆

Page 52

Rev.2.00 Nov 14, 2006 page 137 of 185REJ09B0322-0200ZERO PAGE X, ZERO PAGE YInstructions :Byte length :Cycle number :Timing :∆STA∆$zz,X∆STX∆$zz,Y

Page 53 - BRANCH ON OVERFLOW CLEAR

Rev.2.00 Nov 14, 2006 page 138 of 185REJ09B0322-0200ABSOLUTE[T=0]Instructions :Byte length :Cycle number :Timing :∆ADC ∆$hhll (T=0)∆AND ∆$hhl

Page 54 - BRANCH ON OVERFLOW SET

Rev.2.00 Nov 14, 2006 page 139 of 185REJ09B0322-0200ABSOLUTE∆ASL ∆$hhll∆DEC ∆$hhll∆INC ∆$hhll∆LSR ∆$hhll∆ROL ∆$hhll∆ROR∆$hhllInstructions :Byte l

Page 55 - CLEAR BIT

Rev.2.00 Nov 14, 2006 page 140 of 185REJ09B0322-0200ABSOLUTEInstruction :Byte length :Cycle number :Timing :∆JMP∆$hhll33PCHPCL+1PC PC+1PCHPCLPC+2

Page 56 - CLEAR CARRY FLAG

Rev.2.00 Nov 14, 2006 page 141 of 185REJ09B0322-0200ABSOLUTEInstruction :Byte length :Cycle number :Timing :∆JSR∆$hhll36PC PC+1PCH PCHPCLPCL+1 S

Page 57 - CLEAR DECIMAL MODE

Rev.2.00 Nov 14, 2006 page 7 of 185REJ09B0322-0200INSTRUCTIONSImmediateAddressing mode :Function :Instructions :Example :ImmediateSpecifies the O

Page 58

Rev.2.00 Nov 14, 2006 page 142 of 185REJ09B0322-0200ABSOLUTEInstructions :Byte length :Cycle number :Timing :∆STA∆$hhll∆STX∆$hhll∆STY∆$hhll35PCPC

Page 59 - CLEAR TRANSFER FLAG

Rev.2.00 Nov 14, 2006 page 143 of 185REJ09B0322-0200ABSOLUTE X, ABSOLUTE Y[T=0]∆ADC ∆$hhll,X or Y (T=0)∆AND ∆$hhll,X or Y (T=0)∆CMP ∆$h

Page 60 - CLEAR OVERFLOW FLAG

Rev.2.00 Nov 14, 2006 page 144 of 185REJ09B0322-0200ABSOLUTE XInstructions :Byte length :Cycle number :Timing :∆ASL ∆$hhll,X∆DEC ∆$hhll,X∆INC ∆$h

Page 61

Rev.2.00 Nov 14, 2006 page 145 of 185REJ09B0322-0200ABSOLUTE X, ABSOLUTE YInstruction :Byte length :Cycle number :Timing :36∆STA∆$hhll,X or YPCPC

Page 62 - COMPLEMENT

Rev.2.00 Nov 14, 2006 page 146 of 185REJ09B0322-0200INDIRECTInstruction :Byte length :Cycle number :Timing :35∆JMP∆($hhll)PCPC+1PCHPCHP CLP CL+ 1

Page 63

Rev.2.00 Nov 14, 2006 page 147 of 185REJ09B0322-0200ZERO PAGE INDIRECTInstruction :Byte length :Cycle number :Timing :24∆JMP∆($zz)P CPC+1P CHPCLP

Page 64

Rev.2.00 Nov 14, 2006 page 148 of 185REJ09B0322-0200ZERO PAGE INDIRECTInstruction :Byte length :Cycle number :Timing :∆JSR∆($zz)27PC P C + 1PCHPC

Page 65 - DECREMENT BY ONE

Rev.2.00 Nov 14, 2006 page 149 of 185REJ09B0322-0200INDIRECT X[T=0]26Instructions :Byte length :Cycle number :Timing :∆ADC ∆($zz,X) (T=0)∆AN

Page 66

Rev.2.00 Nov 14, 2006 page 150 of 185REJ09B0322-0200INDIRECT XInstruction :Byte length :Cycle number :Timing :27∆STA∆($zz,X)PC+1P CHPCLP CL+ 1B A

Page 67

Rev.2.00 Nov 14, 2006 page 151 of 185REJ09B0322-0200INDIRECT Y[T=0]∆ADC∆($zz),Y (T=0)∆AND∆($zz),Y (T=0)∆CMP∆($zz),Y (T=0)∆EOR∆($zz

Page 68 - DIVIDE MEMORY BY ACCUMULATOR

Rev.2.00 Nov 14, 2006 page 8 of 185REJ09B0322-0200INSTRUCTIONSAccumulatorAddressing mode :Function :Instructions :Example :AccumulatorSpecifies t

Page 69

Rev.2.00 Nov 14, 2006 page 152 of 185REJ09B0322-0200INDIRECT YInstruction :Byte length :Cycle number :Timing :27∆STA∆($zz),YPC PC+1PCHPCLPCL+1PCH

Page 70 - INCREMENT BY ONE

Rev.2.00 Nov 14, 2006 page 153 of 185REJ09B0322-0200RELATIVE∆BCC ∆$hhll∆BCS ∆$hhll∆BEQ ∆$hhll∆BMI ∆$hhll∆BNE ∆$hhll∆BPL ∆$hhll∆BVC ∆$hhll∆BVS ∆$h

Page 71

Rev.2.00 Nov 14, 2006 page 154 of 185REJ09B0322-0200RELATIVE∆BCC ∆$hhll∆BCS ∆$hhll∆BEQ ∆$hhll∆BMI ∆$hhll∆BNE ∆$hhll∆BPL ∆$hhll∆BVC ∆$hhll∆BVS ∆$h

Page 72

Rev.2.00 Nov 14, 2006 page 155 of 185REJ09B0322-0200RELATIVEInstruction :Byte length :Cycle number :Timing :24∆BRA∆$hhll φφφφP CPCLPCHPCL+1(

Page 73

Rev.2.00 Nov 14, 2006 page 156 of 185REJ09B0322-0200SPECIAL PAGEInstruction :Byte length :Cycle number :Timing :∆JSR∆\$hhll25PC PC+1PCHPCLPCL+1

Page 74 - JUMP TO SUBROUTINE

Rev.2.00 Nov 14, 2006 page 157 of 185REJ09B0322-0200IMMEDIATE[T=1]Instructions :Byte length :Cycle number :Timing :25∆ADC∆#$nn (T=1)∆AND∆#$n

Page 75 - LOAD ACCUMULATOR WITH MEMORY

Rev.2.00 Nov 14, 2006 page 158 of 185REJ09B0322-0200IMMEDIATE[T=1]∆CMP∆#$nn (T=1)Instruction :Byte length :Cycle number :Timing :23PCPC+1PCH

Page 76 - LOAD IMMEDIATE DATA TO MEMORY

Rev.2.00 Nov 14, 2006 page 159 of 185REJ09B0322-0200IMMEDIATE[T=1]Instruction :Byte length :Cycle number :Timing :∆LDA∆#$nn (T=1)24PCPC+1PCH

Page 77

Rev.2.00 Nov 14, 2006 page 160 of 185REJ09B0322-0200ZERO PAGE[T=1]Instructions :Byte length :Cycle number :Timing :26∆ADC∆$zz (T=1)∆AND∆$zz

Page 78

Rev.2.00 Nov 14, 2006 page 161 of 185REJ09B0322-0200∆CMP∆$zz (T=1)ZERO PAGE[T=1]Instruction :Byte length :Cycle number :Timing :24PCPC+1PCHP

Page 79 - LOGICAL SHIFT RIGHT

Rev.2.00 Nov 14, 2006 page 9 of 185REJ09B0322-0200Zero PageINSTRUCTIONSAddressing mode :Function :Instructions :Example :Zero PageSpecifies the c

Page 80 - 16, zz16

Rev.2.00 Nov 14, 2006 page 162 of 185REJ09B0322-0200ZERO PAGE[T=1]Instruction :Byte length :Cycle number :Timing :25∆LDA∆$zz (T=1)PCPC+1PCHP

Page 81 - NO OPERATION

Rev.2.00 Nov 14, 2006 page 163 of 185REJ09B0322-0200ZERO PAGE X[T=1]Instructions :Byte length :Cycle number :Timing :∆ADC∆$zz,X (T=1)∆AND∆$z

Page 82 - OR MEMORY WITH ACCUMULATOR

Rev.2.00 Nov 14, 2006 page 164 of 185REJ09B0322-0200ZERO PAGE X[T=1]Instruction :Byte length :Cycle number :Timing :∆CMP∆$zz,X (T=1)25PC+1PC

Page 83 - PUSH ACCUMULATOR ON STACK

Rev.2.00 Nov 14, 2006 page 165 of 185REJ09B0322-0200∆LDA∆$zz,X (T=1)ZERO PAGE X[T=1]Instruction :Byte length :Cycle number :Timing :26PC+1PC

Page 84

Rev.2.00 Nov 14, 2006 page 166 of 185REJ09B0322-0200ABSOLUTE[T=1]Instructions :Byte length :Cycle number :Timing :∆ADC∆$hhll (T=1)∆AND∆$hhll

Page 85 - PULL ACCUMULATOR FROM STACK

Rev.2.00 Nov 14, 2006 page 167 of 185REJ09B0322-0200ABSOLUTE[T=1]Instruction :Byte length :Cycle number :Timing :∆CMP∆$hhll (T=1)35P CHPCL+1P

Page 86

Rev.2.00 Nov 14, 2006 page 168 of 185REJ09B0322-0200ABSOLUTE[T=1]Instruction :Byte length :Cycle number :Timing :∆LDA∆$hhll (T=1)36P CHP CL+

Page 87 - ROTATE ONE BIT LEFT

Rev.2.00 Nov 14, 2006 page 169 of 185REJ09B0322-0200∆ADC∆$hhll,X or Y (T=1)∆AND∆$hhll,X or Y (T=1)∆EOR∆$hhll,X or Y (T=1)∆ORA∆$hhl

Page 88 - ROTATE ONE BIT RIGHT

Rev.2.00 Nov 14, 2006 page 170 of 185REJ09B0322-0200ABSOLUTE X, ABSOLUTE Y[T=1]Instruction :Byte length :Cycle number :Timing :∆CMP∆$hhll,X or Y

Page 89 - ROTATE RIGHT OF FOUR BITS

Rev.2.00 Nov 14, 2006 page 171 of 185REJ09B0322-0200ABSOLUTE X, ABSOLUTE Y[T=1]Instruction :Byte length :Cycle number :Timing :∆LDA∆$hhll,X or Y

Page 90 - RETURN FROM INTERRUPT

Rev.2.00 Nov 14, 2006 page 10 of 185REJ09B0322-0200INSTRUCTIONSZero Page XAddressing mode :Function :Instructions :Example :Zero Page XSpecified

Page 91 - RETURN FROM SUBROUTINE

Rev.2.00 Nov 14, 2006 page 172 of 185REJ09B0322-0200INDIRECT X[T=1]Instructions :Byte length :Cycle number :Timing :∆ADC∆($zz,X) (T=1)∆AND∆(

Page 92 - SUBTRACT WITH CARRY

Rev.2.00 Nov 14, 2006 page 173 of 185REJ09B0322-0200INDIRECT X[T=1]Instruction :Byte length :Cycle number :Timing :27∆CMP∆($zz,X) (T=1)PCHP

Page 93 - SET BIT

Rev.2.00 Nov 14, 2006 page 174 of 185REJ09B0322-0200∆LDA∆($zz,X) (T=1)INDIRECT X[T=1]Instruction :Byte length :Cycle number :Timing :28PCHPC

Page 94 - SET CARRY FLAG

Rev.2.00 Nov 14, 2006 page 175 of 185REJ09B0322-0200INDIRECT Y[T=1]Instructions :Byte length :Cycle number :Timing :∆ADC∆($zz),Y (T=1)∆AND∆(

Page 95 - SET DECIMAL MODE

Rev.2.00 Nov 14, 2006 page 176 of 185REJ09B0322-0200INDIRECT Y[T=1]Instruction :Byte length :Cycle number :Timing :∆CMP∆($zz),Y (T=1)27PCHPC

Page 96 - SET INTERRUPT DISABLE FLAG

Rev.2.00 Nov 14, 2006 page 177 of 185REJ09B0322-0200INDIRECT Y[T=1]∆LDA∆($zz),Y (T=1)Instruction :Byte length :Cycle number :Timing :28P CHP

Page 97 - SET TRANSFER FLAG

Rev.2.00 Nov 14, 2006 page 178 of 185REJ09B0322-0200APPENDIX 2740 Family Machine Language Instruction TableAPPENDIX 2. 740 Family Machine Languag

Page 98 - STORE ACCUMULATOR IN MEMORY

Rev.2.00 Nov 14, 2006 page 179 of 185REJ09B0322-0200222333222223332212233122331111226965756D7D796171E9E5F5EDFDF9E1F13AE6F6EEFE1AC6D6CEDEE8CAC8886

Page 99

Rev.2.00 Nov 14, 2006 page 180 of 185REJ09B0322-0200AND # $ nnAND $ zzAND $ zz, XAND $ hhIIAND $ hhII, XAND $ hhII, YAND ($ zz, X)AND ($ zz), YOR

Page 100 - Statement

Rev.2.00 Nov 14, 2006 page 181 of 185REJ09B0322-0200256672566725667256678252512233122331223312233212120A06160E1E4A46564E5E2A26362E3E6A66766E7E82(

Page 101 - Addressing mode

Rev.2.00 Nov 14, 2006 page 11 of 185REJ09B0322-0200Zero Page YAddressing mode :Function :Instructions :Example :INSTRUCTIONSZero Page YSpecifies

Page 102

Rev.2.00 Nov 14, 2006 page 182 of 185REJ09B0322-020043546754545222222226672222332322232322222222111111804C6CB2200222(1+2i)x10+3(1+2i)x10+72ix10+3

Page 103

Rev.2.00 Nov 14, 2006 page 183 of 185REJ09B0322-0200SymbolAAiXYMMiPSSPCPCLPCHNVTBDIZC#$MeansAccumulatorBit i of accumulatorIndex register XIndex

Page 104 - TEST FOR NEGATIVE OR ZERO

Rev.2.00 Nov 14, 2006 page 184 of 185REJ09B0322-0200D7 – D4D3 – D0Hexadecimalnotation000000010010001101000101011001111000100110101011110011011110

Page 105

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

Page 106

740 Family Software ManualPublication Data : Rev.1.00 Aug 29, 1997Rev.2.00 Nov 14, 2006Published by : Sales Strategic Planning Div.Renesas Technology

Page 107

1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan740 FamilyREJ09B0322-0200Software Manual

Page 108

Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang

Page 109

Rev.2.00 Nov 14, 2006 page 12 of 185REJ09B0322-0200INSTRUCTIONSAbsoluteAddressing mode :Function :Instructions :Example :AbsoluteSpecifies the co

Page 110 - INSTRUCTIONS

Rev.2.00 Nov 14, 2006 page 13 of 185REJ09B0322-0200INSTRUCTIONSAbsolute XAddressing mode :Function :Instructions :Example :Absolute XSpecifies th

Page 111

Rev.2.00 Nov 14, 2006 page 14 of 185REJ09B0322-0200INSTRUCTIONSAbsolute YAddressing mode :Function :Instructions :Example :Absolute YSpecifies th

Page 112

Rev.2.00 Nov 14, 2006 page 15 of 185REJ09B0322-0200ImpliedAddressing mode :Function :Instructions :Example :ImpliedOperates on a given register o

Page 113 - NOTES ON USE

Rev.2.00 Nov 14, 2006 page 16 of 185REJ09B0322-0200INSTRUCTIONSRelativeAddressing mode :Function :Instructions :Example :Addressing modeRelativeS

Page 114

Rev.2.00 Nov 14, 2006 page 17 of 185REJ09B0322-0200INSTRUCTIONSIndirect XAddressing mode :Function :Instructions :Example :Indirect XSpecifies th

Page 115

Rev.2.00 Nov 14, 2006 page 18 of 185REJ09B0322-0200INSTRUCTIONSIndirect YAddressing mode :Function :Instructions :Example :Indirect YSpecifies th

Page 116

Rev.2.00 Nov 14, 2006 page 19 of 185REJ09B0322-0200INSTRUCTIONSIndirect AbsoluteAddressing mode :Function :Instructions :Example :Indirect Absolu

Page 117

Rev.2.00 Nov 14, 2006 page 20 of 185REJ09B0322-0200INSTRUCTIONSAddressing mode :Function :Instructions :Example :Zero Page Indirect AbsoluteSpeci

Page 118

Rev.2.00 Nov 14, 2006 page 21 of 185REJ09B0322-0200INSTRUCTIONS Special PageAddressing mode :Function :Instructions :Example :Addressing modeSpec

Page 119

740 FamilySoftware Manual8User’s ManualRev.2.00 2006.11RENESAS MCUAll information contained in these materials, including products and product speci

Page 120 - APPENDIX 1

Rev.2.00 Nov 14, 2006 page 22 of 185REJ09B0322-0200INSTRUCTIONSZero Page BitAddressing mode :Function :Instructions :Example :Zero Page BitSpecif

Page 121 - REJ09B0322-0200

Rev.2.00 Nov 14, 2006 page 23 of 185REJ09B0322-0200INSTRUCTIONSAccumulator BitAddressing mode :Function :Instruction:Example :Accumulator BitSpec

Page 122

Rev.2.00 Nov 14, 2006 page 24 of 185REJ09B0322-0200INSTRUCTIONSAddressing mode :Function :Instructions :Example :Addressing modeAccumulator Bit R

Page 123

Rev.2.00 Nov 14, 2006 page 25 of 185REJ09B0322-0200INSTRUCTIONSZero Page Bit RelativeSpecifies the address of a memory location where thenext Op-

Page 124

Rev.2.00 Nov 14, 2006 page 26 of 185REJ09B0322-02003.2 Instruction SetThe 740 Family has 71 types of instructions. The detailed explanation of th

Page 125

Rev.2.00 Nov 14, 2006 page 27 of 185REJ09B0322-02003.2.2 Operating instructionThe operating instructions include the operations of addition and s

Page 126

Rev.2.00 Nov 14, 2006 page 28 of 185REJ09B0322-0200INSTRUCTIONSInstruction SetContentsClear C flagSet C flagClear D flagSet D flagClear I flagSet

Page 127

Rev.2.00 Nov 14, 2006 page 29 of 185REJ09B0322-0200InstructionsWITSTPInstructionBRKContentsExecutes a software interrupt.INSTRUCTIONSInterruptIns

Page 128 - IMMEDIATE

Rev.2.00 Nov 14, 2006 page 30 of 185REJ09B0322-0200INSTRUCTIONS3.3 Description of instructionsThis section presents in detail the 740 Family inst

Page 129 - ACCUMULATOR

Rev.2.00 Nov 14, 2006 page 31 of 185REJ09B0322-0200ADC ADCADD WITH CARRYWhen (T) = 0, (A) ← (A) + (M) + (C)(T) = 1, (M(X)) ← (M(X)) + (M) + (C)Wh

Page 130 - ACCUMULATOR BIT RELATIVE

1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use.

Page 131

Rev.2.00 Nov 14, 2006 page 32 of 185REJ09B0322-0200AND ANDLOGICAL ANDWhen (T) = 0, (A) ← (A) ∧ (M)(T) = 1, (M(X)) ← (M(X)) ∧ (M)When T = 0, thi

Page 132 - ACCUMULATOR BIT

Rev.2.00 Nov 14, 2006 page 33 of 185REJ09B0322-0200ASL ASLARITHMETIC SHIFT LEFTOperation :Function :Status flag:C ← b7

Page 133 - BIT RELATIVE

Rev.2.00 Nov 14, 2006 page 34 of 185REJ09B0322-0200BBC BBCBRANCH ON BIT CLEARWhen (Mi) or (Ai) = 0, (PC) ← (PC) + n + REL(Mi) or (Ai) = 1, (PC)

Page 134

Rev.2.00 Nov 14, 2006 page 35 of 185REJ09B0322-0200BBS BBSBRANCH ON BIT SETWhen (Mi) or (Ai) = 1, (PC) ← (PC) + n + REL(Mi) or (Ai) = 0, (PC) ←

Page 135 - ZERO PAGE BIT

Rev.2.00 Nov 14, 2006 page 36 of 185REJ09B0322-0200BCC BCCBRANCH ON CARRY CLEARWhen (C) = 0, (PC) ← (PC) + 2 + REL(C) = 1, (PC) ← (PC) + 2This i

Page 136 - ZERO PAGE

Rev.2.00 Nov 14, 2006 page 37 of 185REJ09B0322-0200BCS BCSBRANCH ON CARRY SETWhen (C) = 1, (PC) ← (PC) + 2 + REL(C) = 0, (PC) ← (PC) + 2This ins

Page 137

Rev.2.00 Nov 14, 2006 page 38 of 185REJ09B0322-0200BEQ BEQBRANCH ON EQUALWhen (Z) = 1, (PC) ← (PC) + 2 + REL(Z) = 0, (PC) ← (PC) + 2This instruct

Page 138

Rev.2.00 Nov 14, 2006 page 39 of 185REJ09B0322-0200BIT BITTEST BIT IN MEMORY WITH ACCUMULATOR(A) ∧ (M)This instruction takes a bit-wise logical

Page 139

Rev.2.00 Nov 14, 2006 page 40 of 185REJ09B0322-0200BMI BMIBRANCH ON RESULT MINUSWhen (N) = 1, (PC) ← (PC) + 2 + REL(N) = 0, (PC) ← (PC) + 2This i

Page 140

Rev.2.00 Nov 14, 2006 page 41 of 185REJ09B0322-0200BNE BNE BRANCH ON NOT EQUALWhen (Z) = 0, (PC) ← (PC) + 2 + REL(Z) = 1, (PC) ← (PC) + 2This ins

Page 141 - Zero Page X

A - 1REVISION HISTORYRev. Date DescriptionPage Summary740 Family Software Manual1.00 Aug 29, 1997 – First edition issued2.00Nov 14, 2006 – Changed to

Page 142

Rev.2.00 Nov 14, 2006 page 42 of 185REJ09B0322-0200BPLBPLBRANCH ON RESULT PLUSWhen (N) = 0, (PC) ← (PC) + 2 + REL(N) = 1, (PC) ← (PC) + 2This ins

Page 143

Rev.2.00 Nov 14, 2006 page 43 of 185REJ09B0322-0200BRA BRABRANCH ALWAYS(PC) ← (PC) + 2 + RELThis instruction branches to the appointed address.

Page 144 - ZERO PAGE X, ZERO PAGE Y

Rev.2.00 Nov 14, 2006 page 44 of 185REJ09B0322-0200BRKBRKFORCE BREAK(B) ← 1(PC) ← (PC) + 2(M(S)) ← (PCH)(S) ← (S) – 1(M(S)) ← (PCL)(S) ← (S) –

Page 145

Rev.2.00 Nov 14, 2006 page 45 of 185REJ09B0322-0200BVC BVCBRANCH ON OVERFLOW CLEARWhen (V) = 0, (PC) ← (PC) + 2 + REL(V) = 1, (PC) ← (PC) + 2Thi

Page 146 - ABSOLUTE

Rev.2.00 Nov 14, 2006 page 46 of 185REJ09B0322-0200BVSBVSBRANCH ON OVERFLOW SETWhen (V) = 1, (PC) ← (PC) + 2 + REL(V) = 0, (PC) ← (PC) + 2This i

Page 147

Rev.2.00 Nov 14, 2006 page 47 of 185REJ09B0322-0200CLB CLBCLEAR BIT(Ai) ← 0, or(Mi) ← 0This instruction clears the designated bit i of A or M.

Page 148

Rev.2.00 Nov 14, 2006 page 48 of 185REJ09B0322-0200CLCCLCCLEAR CARRY FLAG(C) ← 0This instruction clears C.No changeNo changeNo changeNo changeNo

Page 149

Rev.2.00 Nov 14, 2006 page 49 of 185REJ09B0322-0200CLD CLDCLEAR DECIMAL MODE(D) ← 0This instruction clears D.No changeNo changeNo changeNo chang

Page 150

Rev.2.00 Nov 14, 2006 page 50 of 185REJ09B0322-0200CLICLICLEAR INTERRUPT DISABLE STATUSAddressing modeImpliedStatement∆CLIMachine codes5816Byte

Page 151 - ABSOLUTE X, ABSOLUTE Y

Rev.2.00 Nov 14, 2006 page 51 of 185REJ09B0322-0200CLT CLTCLEAR TRANSFER FLAG(T) ← 0This instruction clears T.No changeNo change0No changeNo cha

Page 152 - ABSOLUTE X

Hardware overview and electrical characteristicsHardware specifications (pin assignments, memory maps, peripheralspecifications, electrical characteri

Page 153

Rev.2.00 Nov 14, 2006 page 52 of 185REJ09B0322-0200CLVCLVCLEAR OVERFLOW FLAG(V) ← 0This instruction clears V.No change0No changeNo changeNo chang

Page 154 - INDIRECT

Rev.2.00 Nov 14, 2006 page 53 of 185REJ09B0322-0200CMP CMPCOMPAREWhen (T) = 0, (A) – (M)(T) = 1, (M(X)) – (M)When T = 0, this instruction subtrac

Page 155 - ZERO PAGE INDIRECT

Rev.2.00 Nov 14, 2006 page 54 of 185REJ09B0322-0200COMCOMCOMPLEMENT(M) ← (M)This instruction takes the one’s complement of the contents ofM and s

Page 156

Rev.2.00 Nov 14, 2006 page 55 of 185REJ09B0322-0200CPX CPXCOMPARE MEMORY AND INDEX REGISTER X(X) – (M)This instruction subtracts the contents of

Page 157 - INDIRECT X

Rev.2.00 Nov 14, 2006 page 56 of 185REJ09B0322-0200CPYCPYCOMPARE MEMORY AND INDEX REGISTER Y(Y) – (M)This instruction subtracts the contents of

Page 158

Rev.2.00 Nov 14, 2006 page 57 of 185REJ09B0322-0200DEC DECDECREMENT BY ONE(A) ← (A) – 1, or(M) ← (M) – 1This instruction subtracts 1 from the co

Page 159 - INDIRECT Y

Rev.2.00 Nov 14, 2006 page 58 of 185REJ09B0322-0200DEXDEXDECREMENT INDEX REGISTER X BY ONE(X) ← (X) – 1This instruction subtracts one from the cu

Page 160

Rev.2.00 Nov 14, 2006 page 59 of 185REJ09B0322-0200DEYDEYDECREMENT INDEX REGISTER Y BY ONE(Y) ← (Y) – 1This instruction subtracts one from the c

Page 161 - RELATIVE

Rev.2.00 Nov 14, 2006 page 60 of 185REJ09B0322-0200(A) ← (M(zz+(X)+1),M(zz+(X)) / (A)M(S) ← one’s complement of Remainder(S) ← (S) – 1Divides t

Page 162

Rev.2.00 Nov 14, 2006 page 61 of 185REJ09B0322-0200EOREOREXCLUSIVE OR MEMORY WITH ACCUMULATOROperation :Function :Status flag:When (T) = 0, (A)

Page 163

A-1Table of contentsCHAPTER 1. OVERVIEW... 1CHAPTER 2. CENTRA

Page 164 - SPECIAL PAGE

Rev.2.00 Nov 14, 2006 page 62 of 185REJ09B0322-0200INCINCINCREMENT BY ONEOperation :Function :Status flag:N :V :T :B :I :D :Z :C :Addressing mode

Page 165

Rev.2.00 Nov 14, 2006 page 63 of 185REJ09B0322-0200INXINXINCREMENT INDEX REGISTER X BY ONEOperation :Function :Status flag:(X) ← (X) + 1This ins

Page 166

Rev.2.00 Nov 14, 2006 page 64 of 185REJ09B0322-0200INYINYINCREMENT INDEX REGISTER Y BY ONE(Y) ← (Y) + 1This instruction adds one to the contents

Page 167

Rev.2.00 Nov 14, 2006 page 65 of 185REJ09B0322-0200JMPJMPJUMPOperation :Function :Status flag:When addressing mode is(a) Absolute, then(PC) ←

Page 168

Rev.2.00 Nov 14, 2006 page 66 of 185REJ09B0322-0200JSRJSRJUMP TO SUBROUTINE(M(S)) ← (PCH)(S) ← (S) – 1(M(S)) ← (PCL)(S) ← (S) – 1After the ab

Page 169

Rev.2.00 Nov 14, 2006 page 67 of 185REJ09B0322-0200LDALDALOAD ACCUMULATOR WITH MEMORYOperation :Function :Status flag:When (T) = 0, (A) ← (M)

Page 170

Rev.2.00 Nov 14, 2006 page 68 of 185REJ09B0322-0200LDMLDMLOAD IMMEDIATE DATA TO MEMORY(M) ← nnThis instruction loads the immediate value in M.No

Page 171 - ZERO PAGE X

Rev.2.00 Nov 14, 2006 page 69 of 185REJ09B0322-0200LDXLDXLOAD INDEX REGISTER X FROM MEMORY(X) ← (M)This instruction loads the contents of M in

Page 172

Rev.2.00 Nov 14, 2006 page 70 of 185REJ09B0322-0200LDYLDYLOAD INDEX REGISTER Y FROM MEMORY(Y) ← (M)This instruction loads the contents of M in

Page 173

Rev.2.00 Nov 14, 2006 page 71 of 185REJ09B0322-0200LSRLSRLOGICAL SHIFT RIGHTThis instruction shifts either A or M one bit to the right suchthat

Page 174

A-2Table of contentsAPPENDIX 1. Instruction Cycles in each Addressing Mode ... 112APPENDIX 2. 740 Family Machine Language Instruc

Page 175

Rev.2.00 Nov 14, 2006 page 72 of 185REJ09B0322-0200M(S) • (A) ← (A) ✕ M(zz+(X))(S) ← (S) – 1Multiplies Accumulator with the memory specified by

Page 176

Rev.2.00 Nov 14, 2006 page 73 of 185REJ09B0322-0200NOPNOPNO OPERATIONAddressing modeImpliedStatement∆NOP(PC) ← (PC) + 1This instruction adds on

Page 177

Rev.2.00 Nov 14, 2006 page 74 of 185REJ09B0322-0200ORAORAOR MEMORY WITH ACCUMULATOROperation :Function :Status flag:When (T) = 0, (A) ← (A) ∨

Page 178

Rev.2.00 Nov 14, 2006 page 75 of 185REJ09B0322-0200PHAPHAPUSH ACCUMULATOR ON STACKOperation :Function :Status flag :(M(S)) ← (A)(S) ← (S) –

Page 179

Rev.2.00 Nov 14, 2006 page 76 of 185REJ09B0322-0200PHPPHPPUSH PROCESSOR STATUS ON STACK(M(S)) ← (PS)(S) ← (S) – 1This instruction pushes the co

Page 180

Rev.2.00 Nov 14, 2006 page 77 of 185REJ09B0322-0200PLAPLAPULL ACCUMULATOR FROM STACKOperation :Function :Status flag:(S) ← (S) + 1(A) ← (M(S)

Page 181

Rev.2.00 Nov 14, 2006 page 78 of 185REJ09B0322-0200PLPPLPPULL PROCESSOR STATUS FROM STACK(S) ← (S) + 1(PS) ← (M(S))This instruction increments

Page 182

Rev.2.00 Nov 14, 2006 page 79 of 185REJ09B0322-0200ROLROLROTATE ONE BIT LEFTOperation :Function :Status flag:This instruction shifts either A

Page 183

Rev.2.00 Nov 14, 2006 page 80 of 185REJ09B0322-0200RORRORROTATE ONE BIT RIGHTThis instruction shifts either A or M one bit right through C. Cis

Page 184

Rev.2.00 Nov 14, 2006 page 81 of 185REJ09B0322-0200RRFRRFROTATE RIGHT OF FOUR BITSOperation :Function :Status flag : b7 b4 b3

Page 185

Rev.2.00 Nov 14, 2006 page 1 of 185REJ09B0322-0200OVERVIEW1. OVERVIEWThe distinctive features of the CMOS 8-bit microcomputers 740 Family’s softw

Page 186 - APPENDIX 2

Rev.2.00 Nov 14, 2006 page 82 of 185REJ09B0322-0200RTIRTIRETURN FROM INTERRUPT(S) ← (S) + 1(PS) ← (M(S))(S) ← (S) + 1(PCL) ← (M(S))(S) ← (S)

Page 187 - SYMBOL FUNCTION

Rev.2.00 Nov 14, 2006 page 83 of 185REJ09B0322-0200RTSRTSRETURN FROM SUBROUTINEOperation :Function :Status flag:(S) ← (S) + 1(PCL) ← (M(S))(S)

Page 188 - Comparison

Rev.2.00 Nov 14, 2006 page 84 of 185REJ09B0322-0200SBCSBCSUBTRACT WITH CARRYWhen (T) = 0, (A) ← (A) – (M) – (C)(T) = 1, (M(X)) ← (M(X)) – (M) – (

Page 189 - INSTRUCTION CODE

Rev.2.00 Nov 14, 2006 page 85 of 185REJ09B0322-0200SEBSEBSET BIT(Ai) ← 1, or(Mi) ← 1This instruction sets the designated bit i of A or M.No chan

Page 190 - Branch and Return

Rev.2.00 Nov 14, 2006 page 86 of 185REJ09B0322-0200SECSECSET CARRY FLAG(C) ← 1This instruction sets C.No changeNo changeNo changeNo changeNo cha

Page 191

Rev.2.00 Nov 14, 2006 page 87 of 185REJ09B0322-0200SEDSEDSET DECIMAL MODE(D) ← 1This instruction set D.No changeNo changeNo changeNo changeNo ch

Page 192 - APPENDIX 3

Rev.2.00 Nov 14, 2006 page 88 of 185REJ09B0322-0200(I) ← 1This instruction sets I.No changeNo changeNo changeNo change1No changeNo changeNo chan

Page 193 - MEMORANDUM

Rev.2.00 Nov 14, 2006 page 89 of 185REJ09B0322-0200SETSETSET TRANSFER FLAG(T) ← 1This instruction sets T.No changeNo change1No changeNo changeNo

Page 194 - Renesas Technology Corp

Rev.2.00 Nov 14, 2006 page 90 of 185REJ09B0322-0200STASTASTORE ACCUMULATOR IN MEMORY(M) ← (A)This instruction stores the contents of A in M.The

Page 195 - Software Manual

Rev.2.00 Nov 14, 2006 page 91 of 185REJ09B0322-0200STPSTPSTOPCPU ← Stand-by state (Oscillation stopped)This instruction resets the oscillation c

Comments to this Manuals

No comments