EM78P458/459

OTP ROM

4.15 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.

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 registers can be regarded as general registers. That is, the same instruction can operate on I/O registers.

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. The symbol "b" represents a bit field designator that selects the value for the bit located in the register "R" that is affected by the operation. The symbol "k" represents an 8 or 10-bit constant or literal value.

Table 16 The list of the instruction set of EM78P458/459

 

INSTRUCTION BINARY

HEX

MNEMONIC

OPERATION

STATUS AFFECTED

 

 

 

 

 

 

 

 

 

 

 

0

0000

0000

0000

0000

NOP

No Operation

None

 

 

0

0000

0000

0001

0001

DAA

Decimal Adjust A

C

 

 

0

0000

0000

0010

0002

CONTW

A CONT

None

 

 

0

0000

0000

0011

0003

SLEP

0 WDT, Stop oscillator

T,P

 

 

0

0000

0000

0100

0004

WDTC

0 WDT

T,P

 

 

0

0000

0000

rrrr

000r

IOW R

A IOCR

None <Note1>

 

 

0

0000

0001

0000

0010

ENI

Enable Interrupt

None

 

 

0

0000

0001

0001

0011

DISI

Disable Interrupt

None

 

 

0

0000

0001

0010

0012

RET

[Top of Stack] PC

None

 

 

0

0000

0001

0011

0013

RETI

[Top of Stack] PC, Enable Interrupt

None

 

 

0

0000

0001

0100

0014

CONTR

CONT A

None

 

 

0

0000

0001

rrrr

001r

IOR R

IOCR A

None <Note1>

 

 

0

0000

01rr

rrrr

00rr

MOV R,A

A R

None

 

 

0

0000

1000

0000

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

 

 

 

 

 

This specification is subject to change without prior notice.

53

07.01.2003 (V1.3)

 

Page 53
Image 53
ELAN Home Systems EM78P459AK, EM78P459AM, EM78P458AM manual Instruction Set, List of the instruction set of EM78P458/459

EM78P458, EM78P459AM, EM78P458AM, EM78P459AK, EM78P459 specifications

ELAN Home Systems offers a range of advanced microcontrollers, including the EM78P458AP, EM78P459, EM78P459AK, EM78P458AM, and EM78P459AM, that cater to various applications in the consumer electronics sector. These microcontrollers are known for their high efficiency, low power consumption, and robust performance, making them ideal for a wide range of smart home devices.

The EM78P458AP and EM78P459 models feature an 8-bit architecture, enabling efficient processing for applications requiring moderate complexity. They are equipped with a variety of I/O options, including GPIO, UART, and ADC, facilitating seamless integration with numerous peripherals. This flexibility allows developers to create customized solutions tailored to specific user needs.

One of the main highlights of these microcontrollers is their low-power operation, which is essential for battery-operated devices. This is particularly appealing in smart home contexts, where devices are expected to maintain long operational lifetimes without frequent battery replacements. The EM78P458AP and EM78P459 series prioritize energy efficiency, ensuring that they consume minimal power during both active and idle states.

In terms of memory, these microcontrollers also provide substantial ROM and RAM capacities, which enhance their ability to handle complex programs and data. The EM78P459AK variant adds additional features that empower developers with greater flexibility in terms of code storage and execution.

Another critical aspect of these microcontrollers is their built-in protection mechanisms, including voltage and thermal protection, which ensure safe operations under varying environmental conditions. This is vital for home automation systems, where device reliability is paramount to user satisfaction.

The EM78P458AM and EM78P459AM models further extend the family with added functionalities, such as enhanced communication capabilities featuring protocols like I2C and SPI. This facilitates robust inter-device communication, making it easier to integrate various smart home devices into a cohesive network.

Overall, ELAN Home Systems’ EM78P458 and EM78P459 series microcontrollers stand out for their versatile application potential, low power consumption, and reliability. With their innovative technologies and characteristics, they are well-suited for driving the next generation of smart home solutions, ensuring convenience, efficiency, and connectivity for users worldwide.