EM78P458/459

OTP ROM

(1)Write to the three bits (IMS2:IMS0) on the AD-CMP-CON1 register to define the characteristics of R6: Digital I/O, analog channels, and voltage reference pin;

(2)Write to the ADCON register to configure AD module:

(a)Select A/D input channel ( ADAS2:ADAS0 );

(b)Select the proper gains by writing to the GCON register ( optional );

(c)Define A/D conversion clock rate ( CKR1:CKR0 );

(d)Set the ADPD bit to 1 to begin sampling.

(3)Put “ENI” instruction, if the interrupt function is employed.

(4)Set the ADRUN bit to 1.

(5)Wait for either the interrupt flag to be set or the ADC interrupt to occur.

(6)Read ADDATA, the conversion data register.

(7)Clear the interrupt flag bit (ADIF).

(8)For next conversion, go to Step 1 or Step 2 as required. At least 2 Tct is required before next acquisition starts.

<Note>: To obtain an accurate value, it is necessary to avoid any data transition on I/O pins during AD conversion.

2.The Demonstration Programs

;To define the general registers

R_0 == 0

; Indirect addressing register

PSW == 3

; Status register

PORT5 == 5

 

PORT6 == 6

 

R_F== 0XF

; Interrupt status register

; To define the control register

 

IOC50 == 0X5

; Control Register of Port 5

IOC60 == 0X6

; Control Register of Port 6

C_INT== 0XF

; Interrupt Control Register

This specification is subject to change without prior notice.

35

07.01.2003 (V1.3)

Page 35
Image 35
ELAN Home Systems EM78P459AK, EM78P459AM, EM78P458AM, EM78P458AP manual Demonstration Programs, CINT== 0XF

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.