IBM EM78P447N manual Djza R, Djz R, Rrca R, Rrc R, Rlca R, Rlc R, Swapa R, Swap R, Jza R, Jz R

Page 36

EM78P447N

8-Bit Microcontroller with OTP ROM

 

INSTRUCTION

 

HEX

 

MNEMONIC

 

OPERATION

 

STATUS AFFECTED

 

 

BINARY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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)

 

None <Note2>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

101b

bbrr

rrrr

 

0xxx

 

BS R,b

 

1 R(b)

 

None <Note3>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

1110

0000 010

 

1E02

 

INT

 

PC+1 [SP], 002H PC

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1111

kkkk kkkk

 

1Fkk

 

ADD A,k

 

k+A A

 

Z,C,DC

 

 

 

 

 

 

 

 

 

 

 

 

 

NOTE

This instruction is applicable to IOC5 ~ IOC7, IOCB, IOCE, IOCF only.

This instruction is not recommended for R3F operation.

This instruction cannot operate under R3F.

32

Product Specification (V1.1) 03.30.2005

(This specification is subject to change without further notice)

Image 36
Contents EM78P447N Elan Microelectronics Corporation Contents Specification Revision History General Description EM78P447NBWM PIN Assignment Symbol Pin No Type Function EM78P447NAP and EM78P447NAM Pin DescriptionEM78P447NAS Pin Description Power supply EM78P447NBP and EM78P447NBWM Pin DescriptionEM78P447NCK and EN78P447NCM Pin Description Function Description EM78P447NDK and EM78P447NDM Pin DescriptionOperational Registers 1 R0 Indirect Addressing Register2 R1 Time Clock /Counter 3 R2 Program Counter & StackCall RET Retl Reti FffhData Memory Configuration 5 R4 RAM Select Register 6 R5~R7 Port 5 ~ Port77 R8~R1F and R20~R3E General Purpose Register R5, R6 and R7 are I/O registersSpecial Purpose Registers 8 R3F Interrupt Status RegisterAccumulator Control Register3 IOC5 ~ IOC7 I/O Port Control Register Iocb Wake-up Control Register for Port6TCC Rate WDT RateIoce WDT Control Register WUEIocf Interrupt Mask Register ExieTCC and WDT Block Diagram TCC/WDT & PrescalerI/O Ports IODReset and Wake-up ResetUsage of Sleep1 and Sleep2 Mode SLEEP2 SLEEP1Address Name Reset Type Bit Summary of the Initialized Values for RegistersR3FISR Exif TcifWUE7 WUE6 WUE5 WUE4 IocbPrevious status before reset Previous value before resetStatus of RST, T, and P of Status Register Events that may Affect the T and P StatusController Reset Block Diagram InterruptOscillator Oscillator ModesMode Crystal Oscillator/Ceramic ResonatorsXTAL Summary of Maximum Operating SpeedsConditions Fxt max.MHzExternal RC Oscillator Mode Oscillator Type Frequency Mode C1pF C2pFHXT LXTCode Option Register Code Option Register WordPR2~PR0 are protect bits, protect type as following ProtectPower On Considerations External Power On Reset CircuitCustomer ID Register Word Bit 12~0 Customer’s ID codeReset Residue-Voltage ProtectionInstruction Set NOP DAAContw SlepDjza R DJZ RRrca R RRC RTiming Diagram AC Test Input/Output W aveformDC Electrical Characteristic Symbol Parameter Condition Min Typ Max UnitTa= 25 C, VDD= 5.0V±5%, VSS= Items RatingAC Electrical Characteristic Symbol Parameter Conditions Min Typ Max UnitTa=- -40 C ~ 85 C, VDD=5V ±5%, VSS=0V Device characteristic Vih, Vil of TCC, /INT, /RESET PinPort5, Port6 Port7 Voh vs. Ioh,VDD=5V Port5, Port6, and Port7 Voh vs. Ioh, VDD=3V Vol/Iol VDD=5V Vol/Iol VDD=3V Vol/Iol 100 Vol/Iol WDT Cext=100pF, Typical RC OSC Frequency Typical ICC1 and ICC2 vs. Temperature Maximum ICC1 and ICC2 vs. Temperature Typical ISB1 and ISB2 vs. Temperature Maximum ISB1 and ISB2 vs. Temperature EM78P447N HXT ImA Lead plastic dual inline package(DIP)- 300 mil Package Type Pin Count Package SizeLead plastic dual inline skinny package(DIP)- 300 mil Lead plastic dual inline package(DIP)- 600 mil838 27TYP EM78P447N