IBM EM78M611E manual This instruction is not recommended for RE, RF operation

Page 42

EM78M611E

Universal Serial Bus Series Microcontroller

 

Binary Instruction

 

Hex

 

Mnemonic

 

Operation

 

Status Affected

 

 

 

 

 

 

 

 

 

 

 

 

0

0001

10rr

rrrr

 

01rr

DECA R

 

R-1 A

 

Z

0

0001

11rr

rrrr

 

01rr

DEC R

 

R-1 R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0010

00rr

rrrr

 

02rr

OR A,R

 

A VR A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0010

01rr

rrrr

 

02rr

OR R,A

 

A VR R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0010

10rr

rrrr

 

02rr

AND A,R

 

A & R A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0010

11rr

rrrr

 

02rr

AND R,A

 

A & R R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0011

00rr

rrrr

 

03rr

XOR A,R

 

A R A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0011

01rr

rrrr

 

03rr

XOR R,A

 

A R R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0011

10rr

rrrr

 

03rr

ADD A,R

 

A + R A

 

Z, C, DC

 

 

 

 

 

 

 

 

 

 

 

0

0011

11rr

rrrr

 

03rr

ADD R,A

 

A + R R

 

Z, C, DC

 

 

 

 

 

 

 

 

 

 

 

0

0100

00rr

rrrr

 

04rr

MOV A,R

 

R A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0100

01rr

rrrr

 

04rr

MOV R,R

 

R R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0100

10rr

rrrr

 

04rr

COMA R

 

/R A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0100

11rr

rrrr

 

04rr

COM R

 

/R R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0101

00rr

rrrr

 

05rr

INCA R

 

R+1 A

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0101

01rr

rrrr

 

05rr

INC R

 

R+1 R

 

Z

 

 

 

 

 

 

 

 

 

 

 

0

0101

10rr

rrrr

 

05rr

DJZA R

 

R-1 A, skip if zero

 

None

 

 

 

 

 

 

 

 

 

 

 

0

0101

11rr

rrrr

 

05rr

DJZ R

 

R-1 R, skip if zero

 

None

 

 

 

 

 

 

 

 

 

 

 

 

0

0110

00rr

rrrr

 

06rr

RRCA R

 

R(n) A(n-1),

 

C

 

 

R(0) C, C A(7)

 

 

 

 

 

 

 

 

 

 

 

 

0

0110

01rr

rrrr

 

06rr

RRC R

 

R(n) R(n-1),

 

C

 

 

R(0) C, C R(7)

 

 

 

 

 

 

 

 

 

 

 

 

0

0110

10rr

rrrr

 

06rr

RLCA R

 

R(n) A(n+1),

 

C

 

 

R(7) C, C A(0)

 

 

 

 

 

 

 

 

 

 

 

 

0

0110

11rr

rrrr

 

06rr

RLC R

 

R(n) R(n+1),

 

C

 

 

R(7) C, C R(0)

 

 

 

 

 

 

 

 

 

 

 

 

0

0111

00rr

rrrr

 

07rr

SWAPA R

 

R(0-3) A(4-7),

 

None

 

 

R(4-7) A(0-3)

 

 

 

 

 

 

 

 

 

 

 

 

0

0111

01rr

rrrr

 

07rr

SWAP R

 

R(0-3) R(4-7)

 

None

 

 

 

 

 

 

 

 

 

 

 

0

0111

10rr

rrrr

 

07rr

JZA R

 

R+1 A, skip if zero

 

None

 

 

 

 

 

 

 

 

 

 

 

0

0111

11rr

rrrr

 

07rr

JZ R

 

R+1 R, skip if zero

 

None

 

 

 

 

 

 

 

 

 

 

 

0

100b

bbrr

rrrr

 

0xxx

BC R,b

 

0 R(b)

 

None2

0

101b

bbrr

rrrr

 

0xxx

BS R,b

 

1 R(b)

 

None

 

 

 

 

 

 

 

 

 

 

 

0

110b

bbrr

rrrr

 

0xxx

JBC R,b

 

if R(b)=0, skip

 

None

 

 

 

 

 

 

 

 

 

 

 

0

111b

bbrr

rrrr

 

0xxx

JBS R,b

 

if R(b)=1, skip

 

None

 

 

 

 

 

 

 

 

 

 

 

 

1

00kk kkkk kkkk

 

1kkk

CALL k

 

PC+1 [SP],

 

None

 

 

(Page, k) PC

 

 

 

 

 

 

 

 

 

 

 

 

1

01kk kkkk kkkk

 

1kkk

JMP k

 

(Page, k) PC

 

None

 

 

 

 

 

 

 

 

 

 

1

1000

kkkk kkkk

 

18kk

MOV A,k

 

k A

 

None

 

 

 

 

 

 

 

 

 

 

1

1001

kkkk kkkk

 

19kk

OR A,k

 

A k A

 

Z

 

 

 

 

 

 

 

 

 

 

1

1010

kkkk kkkk

 

1Akk

AND A,k

 

A & k A

 

Z

 

 

 

 

 

 

 

 

 

 

1

1011

kkkk kkkk

 

1Bkk

XOR A,k

 

A k A

 

Z

 

 

 

 

 

 

 

 

 

 

1

1100

kkkk kkkk

 

1Ckk

RETL k

 

k A, [Top of Stack] PC

 

None

 

 

 

 

 

 

 

 

 

 

1

1101

kkkk kkkk

 

1Dkk

SUB A,k

 

k-A A

 

Z, C, DC

 

 

 

 

 

 

 

 

 

 

1

1111

kkkk kkkk

 

1Fkk

ADD A,k

 

k+A A

 

Z, C, DC

 

 

 

 

 

 

 

 

 

 

 

 

Note: 1 This instruction is applicable to IOCx only.

2This instruction is not recommended for RE, RF operation.

38

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

Image 42
Contents EM78M611E Trademark Acknowledgments 2.1 Product Specification V1.1 AppendixFeatures General DescriptionUniversal Serial Bus Series Microcontroller Product Specification V1.1 Type Definition ApplicationOriginal With Both Pin Assignment VNNEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Symbol Function Pin DescriptionBlock Diagram ALU ACC Data & Control BUSFunction Description Program MemoryData Memory Special Purpose Register2.2 R1 Timer / Clock Counter Default Value 0B00000000 2.3 R2 Program Counter & Stack Default Value 0B00000000Operation Registers 2.4 R3 Status Register Default Value0B00011XXX R3 0 Carry/Borrow FlagBit Condition Program Memory Page Address2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall Default Value 0B00000000 RF Interrupt Status RegisterControl Registers AccumulatorControl Register Default Value 0B00111111 TCC Rate WDT RateOperation Mode PS/2DualFrq.1 DualFrq.0 Frequency Bit P96 P95 P94 P93 P92 P91 P90PH95 PH93 PU8 PU6 PU5 Extra Control Register USB Application FIFOsUSB Application USB Device ControllerReset Saving Power ModeDual Clock Mode InterruptPattern Detect Application PDA Function DescriptionControl Register Sampling Rate and Debounce LengthDB.2 DB.1 DB.0 Debounce Time SR.2 SR.1 SR.0 Sampling RateDuty Cycle Erepwm Control Register Default Value 0B00000001Pulse Width Modulation PWM R10 PWM1 Duty Cycle RegisterERA AD Channel Select Register Default Value 0B00011111 Analog-To-Digital Converter ADCClock Hz Period/255 s ERB AD LSB Data Register Default Value 0B00000000 Channel PortERC AD MSB Data Register Default Value 0B00000000 ERD AD Control Register Default Value 0B00000000Command Value Action Execution Time Symbol Parameter Condition Min Type Max Unit DC Electrical CharacteristicSymbol Min Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Address Name Bit Bit1 Default Value Special Register MapOperation Registers Address Name Bit Default Value Extra Register IOCA3 =Instruction Set Binary Instruction Hex Mnemonic Operation Status AffectedThis instruction is not recommended for RE, RF operation Code Option Register Address11 16ms Bits 4~12 User ID Address EM78M611E