IBM EM78P447N manual Instruction Set

Page 34

EM78P447N

8-Bit Microcontroller with OTP ROM

4.12 Instruction Set

Each instruction in the instruction set is a 13-bit word divided into an OP code and one or more operands. Normally, all instructions are executed within one single instruction cycle (one instruction consists of 2 oscillator periods), unless the program counter is changed by instruction "MOV R2,A", "ADD R2,A", or by instructions of arithmetic or logic operation on R2 (e.g. "SUB R2,A", "BS(C) R2,6", "CLR R2", ⋅⋅⋅⋅). In this case, the execution takes two instruction cycles.

If for some reasons, the specification of the instruction cycle is not suitable for certain applications, try modifying the instruction as follows:

(A)Change one instruction cycle to consist of 4 oscillator periods.

(B)Executed within two instruction cycles, "JMP", "CALL", "RET", "RETL", "RETI", or the conditional skip ("JBS", "JBC", "JZ", "JZA", "DJZ", "DJZA") instructions which were tested to be true. Also execute within two instruction cycles, the instructions that are written to the program counter.

Case (A) is selected by the CODE Option bit, called CLK. One instruction cycle consists of two oscillator clocks if CLK is low, and four oscillator clocks if CLK is high.

Note that once the 4 oscillator periods within one instruction cycle is selected as in Case (A), the internal clock source to TCC should be CLK=Fosc/4, not Fosc/ 2 as indicated in Fig. 5.

In addition, the instruction set has the following features:

(1)Every bit of any register can be set, cleared, or tested directly.

(2)The I/O register can be regarded as general register. That is, the same instruction can operate on I/O register.

The symbol "R" represents a register designator that specifies which one of the registers (including operational registers and general purpose registers) is to be utilized by the instruction. "b" represents a bit field designator that selects the value for the bit which is located in the register "R", and affects operation. "k" represents an 8 or 10-bit constant or literal value.

30

Product Specification (V1.1) 03.30.2005

(This specification is subject to change without further notice)

Image 34
Contents EM78P447N Elan Microelectronics Corporation Contents Specification Revision History General Description EM78P447NBWM PIN Assignment EM78P447NAP and EM78P447NAM Pin Description Symbol Pin No Type FunctionEM78P447NAS Pin Description EM78P447NBP and EM78P447NBWM Pin Description Power supplyEM78P447NCK and EN78P447NCM Pin Description Function Description EM78P447NDK and EM78P447NDM Pin Description2 R1 Time Clock /Counter Operational Registers1 R0 Indirect Addressing Register 3 R2 Program Counter & StackCall RET Retl Reti FffhData Memory Configuration 7 R8~R1F and R20~R3E General Purpose Register 5 R4 RAM Select Register6 R5~R7 Port 5 ~ Port7 R5, R6 and R7 are I/O registersAccumulator Special Purpose Registers8 R3F Interrupt Status Register Control RegisterTCC Rate 3 IOC5 ~ IOC7 I/O Port Control RegisterIocb Wake-up Control Register for Port6 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 RegistersWUE7 WUE6 WUE5 WUE4 R3FISRExif Tcif IocbStatus of RST, T, and P of Status Register Previous status before resetPrevious value before reset Events that may Affect the T and P StatusController Reset Block Diagram InterruptOscillator Modes OscillatorMode Conditions Crystal Oscillator/Ceramic ResonatorsXTALSummary of Maximum Operating Speeds Fxt max.MHzHXT External RC Oscillator ModeOscillator Type Frequency Mode C1pF C2pF LXTCode Option Register Code Option Register WordPR2~PR0 are protect bits, protect type as following ProtectCustomer ID Register Word Power On ConsiderationsExternal Power On Reset Circuit Bit 12~0 Customer’s ID codeReset Residue-Voltage ProtectionInstruction Set Contw NOPDAA SlepRrca R Djza RDJZ R RRC RTiming Diagram AC Test Input/Output W aveformTa= 25 C, VDD= 5.0V±5%, VSS= DC Electrical CharacteristicSymbol Parameter Condition Min Typ Max Unit Items RatingSymbol Parameter Conditions Min Typ Max Unit AC Electrical CharacteristicTa=- -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