IBM EM78P447N Nop, Daa, Contw, Slep, Wdtc, IOW R → Iocr, Eni, Disi, Contr → a, IOR R Iocr → a

Page 35

EM78P447N

8-Bit Microcontroller with OTP ROM

 

INSTRUCTION

 

HEX

 

MNEMONIC

 

OPERATION

 

STATUS AFFECTED

 

 

 

 

BINARY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 000

 

0000

 

NOP

 

No Operation

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 001

 

0001

 

DAA

 

Decimal Adjust A

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 010

 

0002

 

CONTW

 

A CONT

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 011

 

0003

 

SLEP

 

0 WDT, Stop oscillator

 

T,P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 100

 

0004

 

WDTC

 

0 WDT

 

T,P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000 rrrr

 

000r

 

IOW R

 

A IOCR

 

None <Note1>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001 000

 

0010

 

ENI

 

Enable Interrupt

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001

001

 

0011

 

DISI

 

Disable Interrupt

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001 010

 

0012

 

RET

 

[Top of Stack] PC

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001 011

 

0013

 

RETI

 

[Top of Stack] PC,

 

None

 

 

 

 

 

Enable Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001 100

 

0014

 

CONTR

 

CONT A

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0001 rrrr

 

001r

 

IOR R

 

IOCR A

 

None <Note1>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

0010 000

 

0020

 

TBL

 

R2+A R2,

 

Z,C,DC

 

 

 

 

 

Bits 8~9 of R2 unchanged

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

01rr

rrrr

 

00rr

 

MOV R,A

 

A R

 

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

1000 000

 

0080

 

CLRA

 

0 A

 

Z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

11rr

rrrr

 

00rr

 

CLR R

 

0 R

 

Z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0001

00rr

rrrr

 

01rr

 

SUB A,R

 

R-A A

 

Z,C,DC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0001

01rr

rrrr

 

01rr

 

SUB R,A

 

R-A R

 

Z,C,DC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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 R A

 

Z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0010

01rr

rrrr

 

02rr

 

OR R,A

 

A R 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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Product Specification (V1.1) 03.30.2005

 

 

 

31

(This specification is subject to change without further notice)

Image 35
Contents EM78P447N Elan Microelectronics Corporation Contents Specification Revision History General Description EM78P447NBWM PIN Assignment EM78P447NAS Pin Description Symbol Pin No Type FunctionEM78P447NAP and EM78P447NAM Pin Description EM78P447NCK and EN78P447NCM Pin Description Power supplyEM78P447NBP and EM78P447NBWM Pin Description EM78P447NDK and EM78P447NDM Pin Description Function Description3 R2 Program Counter & Stack Operational Registers1 R0 Indirect Addressing Register 2 R1 Time Clock /CounterFffh Call RET Retl RetiData Memory Configuration R5, R6 and R7 are I/O registers 5 R4 RAM Select Register6 R5~R7 Port 5 ~ Port7 7 R8~R1F and R20~R3E General Purpose RegisterControl Register Special Purpose Registers8 R3F Interrupt Status Register AccumulatorWDT Rate 3 IOC5 ~ IOC7 I/O Port Control RegisterIocb Wake-up Control Register for Port6 TCC RateWUE Ioce WDT Control RegisterExie Iocf Interrupt Mask RegisterTCC/WDT & Prescaler TCC and WDT Block DiagramIOD I/O PortsReset Reset and Wake-upSLEEP2 SLEEP1 Usage of Sleep1 and Sleep2 ModeSummary of the Initialized Values for Registers Address Name Reset Type BitIocb R3FISRExif Tcif WUE7 WUE6 WUE5 WUE4Events that may Affect the T and P Status Previous status before resetPrevious value before reset Status of RST, T, and P of Status RegisterInterrupt Controller Reset Block DiagramMode OscillatorOscillator Modes Fxt max.MHz Crystal Oscillator/Ceramic ResonatorsXTALSummary of Maximum Operating Speeds ConditionsLXT External RC Oscillator ModeOscillator Type Frequency Mode C1pF C2pF HXTCode Option Register Word Code Option RegisterProtect PR2~PR0 are protect bits, protect type as followingBit 12~0 Customer’s ID code Power On ConsiderationsExternal Power On Reset Circuit Customer ID Register WordResidue-Voltage Protection ResetInstruction Set Slep NOPDAA ContwRRC R Djza RDJZ R Rrca RAC Test Input/Output W aveform Timing DiagramItems Rating DC Electrical CharacteristicSymbol Parameter Condition Min Typ Max Unit Ta= 25 C, VDD= 5.0V±5%, VSS=Ta=- -40 C ~ 85 C, VDD=5V ±5%, VSS=0V AC Electrical CharacteristicSymbol Parameter Conditions Min Typ Max Unit Vih, Vil of TCC, /INT, /RESET Pin Device characteristicPort5, 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 Package Type Pin Count Package Size Lead plastic dual inline package(DIP)- 300 milLead plastic dual inline package(DIP)- 600 mil Lead plastic dual inline skinny package(DIP)- 300 mil838 27TYP EM78P447N