EM78451AP EMC [ELAN Microelectronics Corp], EM78451AP Datasheet

no-image

EM78451AP

Manufacturer Part Number
EM78451AP
Description
8-Bit Microcontroller
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
EM78451
8-Bit
Microcontroller
Product
Specification
D
. V
1.2
OC
ERSION
ELAN MICROELECTRONICS CORP.
May 2004

Related parts for EM78451AP

EM78451AP Summary of contents

Page 1

EM78451 Microcontroller Specification ELAN MICROELECTRONICS CORP. 8-Bit Product ERSION May 2004 1.2 ...

Page 2

Trademark Acknowledgments: IBM is a registered trademark and PS trademark of IBM. Windows is a trademark of Microsoft Corporation. ELAN and ELAN logo © 2005 by ELAN Microelectronics Corporation Copyright All Rights Reserved Printed in Taiwan The contents ...

Page 3

Contents 1 GENERAL DESCRIPTION................................................................................................... 1 2 FEATURES........................................................................................................................... 1 3 PIN ASSIGNMENT ............................................................................................................... 2 4 FUNCTION DESCRIPTION.................................................................................................. 3 4.1 Operational Registers .................................................................................................. 4 4.1.1 R0 (Indirect Address Register) ...................................................................................... 4 4.1.2 R1 (TCC) ....................................................................................................................... 4 4.1.3 R2 (Program Counter) & Stack...................................................................................... ...

Page 4

Contents 4.6.3 Programmed the related registers............................................................................... 31 4.7 RESET and Wake-up ................................................................................................. 32 4.8 Interrupt...................................................................................................................... 37 4.9 Oscillator .................................................................................................................... 38 4.9.1 Oscillator Modes.......................................................................................................... 38 4.9.2 Crystal Oscillator/Ceramic Resonators (XTAL) ........................................................... 39 4.9.3 RC Oscillator Mode ..................................................................................................... 40 4.10 Code Option ...

Page 5

GENERAL DESCRIPTION The EM78451 is an 8-bit microprocessor designed and developed with low-power and high speed CMOS technology. Its operation kernel is implemented with RISC-like architecture, and it is available in the mask ROM version. This device is also ...

Page 6

... EM78451 8-Bit Microcontroller 2 Open-drain pins. 2 R-option pins. 32 Programmable pull-high input pins. Package types: • 40 pin DIP 600mil : EM78451AP. • 44 pin QFP : EM78451AQ. Four types of interrupts. • External interrupt (/INT). • SPI transmission completed interrupt. • TCC overflow interrupt. • Timer1 comparator match interrupt. ...

Page 7

Symbol Pin No. Type DATA 3 I/O P60~P67 27~34 I/O P50~P57 11~18 I/O VDD 38 - VSS 1 - /INT 2 I SDI 7 I/O SDO 8 I/O SCK 9 I/O /SS 10 I/O 4 FUNCTION DESCRIPTION W DT Prescaler ...

Page 8

EM78451 8-Bit Microcontroller 4.1 Operational Registers 4.1.1 R0 (Indirect Address Register not a physically implemented register used as an indirect addressing pointer. Any instruction using R0 as register actually accesses data pointed by the RAM Select ...

Page 9

In the case of EM78451, the most significant bit (A10,A11) will be loaded with the content of bit PS0 ~PS1 in the status register (R3) upon the execution of a "JMP", "CALL", or any other instructions which writes to R2. ...

Page 10

EM78451 8-Bit Microcontroller PS1 Bit 7 (GP) General read/write bit. 4.1.5 R4 (RAM Select Register) Bits 0~5 are used to select the registers (address: 00~3F) in the indirect addressing mode. Bits 6~7 determines which bank is ...

Page 11

(TCC (PC (Status (RSR (Port (Port (Port (Port (Port ...

Page 12

EM78451 8-Bit Microcontroller 4.1.8 RA (SPIRB: SPI Read Buffer) Name Address 0X0A SPIRB/RA SRB7 SRB7~SRB0 are the 8-bit data when transmission is completed by SPI. 4.1.9 RB (SPIWB: SPI Write Buffer) Name Address 0x0B SPIWB/RB SWB7~SWB0 are the 8-bit data ...

Page 13

CES (bit 7): Clock Edge Select bit 1 = Data shifts out on falling edge, and shifts in on rising edge. Data is on hold during high level Data shifts out on rising edge, and shifts in on ...

Page 14

EM78451 8-Bit Microcontroller 4.1.13 RF (PWP: Pulse width preset register) Name Address 0x0F PWP/RF PWP7~PWP0 are the bit sets of pulse width preset in advance for the desired baud clock width. 4.1.14 R20~R3E (General Purpose Register) RA~R1F, and R20~R3E (including ...

Page 15

Bit 7 (/PHEN) I/O pin pull-high enable flag. 0: For P60~P67, P74~P75 and P90~P95, the pull-high function is enabled. 1: The pull-high function is disabled. Bit 6 (INT) An interrupt enable flag cannot be written by the CONTW instruction. 0: ...

Page 16

EM78451 8-Bit Microcontroller TM1P (bit1~bit0): Timer1 Prescaler bit Refer to the Timer1 prescaler table for FOSC illustration under the section “Timer1” on the subsequent pages. 4.2.5 IOCD (Pull-high Control Register The default values of /PU5, /PU6, /PU8, and ...

Page 17

Code Option bit ENWDT is "0" or not. After waking up, the WDT is enabled if Code Option ENWDT is "1". The block diagram of SLEEP2 mode and wake-up caused by ...

Page 18

EM78451 8-Bit Microcontroller Bit 3 (TM1IE) TM1IE interrupt enable bit. 0: disable TM1IE interrupt 1: enable TM1IE interrupt Bits 4~7 Not used. Individual interrupt is enabled by setting its associated control bit in IOCF to "1". The IOCF Register could ...

Page 19

TCC/WDT Presacler An 8-bit counter is available as prescaler for the TCC or WDT. The prescaler is available for either the TCC or WDT at any given time, and the PAB bit of CONT register is used to determine ...

Page 20

EM78451 8-Bit Microcontroller CLK(=Fosc/ DTE (in IOCE) PORT Fig. 7 (a) The Circuit of I/O Port and I/O Control Register 16 • SYNC U 2 cycles X 0 PAB bit Counter ...

Page 21

VCC ROC Weakly Pull-up PORT Rex* Fig. 7 (b) The Circuit of I/O Port with R-option (P80, P81) 4.5 SERIAL PERIPHERAL INTERFACE MODE 4.5.1 Overview & Features Overview: Figure 8, 9, and 10 shows how the EM78451 communicates with other ...

Page 22

EM78451 8-Bit Microcontroller SPIW Reg SPIR Reg SPIR Reg SPIS Reg SPIS Reg Bit 7 Master Device SDI SDO SCK /SS Master P50 P51 P52 P53 Slave Device 1 Slave Device 2 Fig. 9 The SPI Configuration of Single-Master and ...

Page 23

aster1 lave1 lave 3 for M aster 1/2 S lave 2 for m aster 1 Fig. 10 ...

Page 24

EM78451 8-Bit Microcontroller SPIC Fig. 12 The Function Block Diagram of SPI Transmission The following describes the function of each block and explains how to carry out the SPI communication with the signals depicted in Fig.11 and ...

Page 25

The SSE bit will be kept the communication is still undergoing. This flag must be cleared as the shifting is completed. Users can determine if the next write attempt is available. SBRS2~SBRS0: Programming the clock frequency/rates and ...

Page 26

EM78451 8-Bit Microcontroller SCK/P94 (Pin 9): Serial Clock Generated by a master device Synchronize the data communication on both the SDI and SDO pins The CES (located in Register 0x0D) is used to select the edge to communicate The SBR0~SBR2 ...

Page 27

SRO (bit 5): SPI Read Overflow bit new data is received while the previous data is still being on hold in the SPIB register. Under this condition, the data in SPIS register will be destroyed. To avoid ...

Page 28

EM78451 8-Bit Microcontroller Bit 2 (SPIIE) SPI interrupt enable bit. 0: disable SPI interrupt 1: enable SPI interrupt Bit 1 (EXIE) EXIF interrupt enable bit. 0: disable EXIF interrupt 1: enable EXIF interrupt Bit 0 (TCIE) TCIF interrupt enable bit. ...

Page 29

RBF (bit 0): Read Buffer Full flag 1 = Receive is completed, SPIB is full Receive is ongoing, SPIB is empty. 4.5.5 SPI Mode Timing The edge of SCK is selected by programming bit CES. The waveform shown ...

Page 30

EM78451 8-Bit Microcontroller 4.5.6 Software Application of SPI Example for SPI: For Master ORG 0X0 SETTING: CLRA IOW 0X05 IOW 0X06 MOV 0X05,A MOV A,@0B11001111 ;Set prescaler for WDT CONTW MOV A,@0B00010001 ;Disable wakeup function IOW 0X0E MOV A,@0B00000000 ;Disable ...

Page 31

NOP JBC 0X0D,4 JMP $-2 BC 0X03,2 CALL DELAY MOV A,0X0A XOR A,@0X5A JBS 0X03,2 JMP START FLAG: MOV A,@0X55 MOV 0X05,A CALL DELAY JMP START DELAY: EOP ORG 0XFFF JMP SETTING For Slaver ORG 0X0 INITI: JMP INIT ORG ...

Page 32

EM78451 8-Bit Microcontroller MOV A,@0X00 as 00 MOV 0X0B,A BS 0X0D,4 NOP JBC 0X0D,4 JMP $-2 BS 0X0D,4 BC 0X03,2 MOV A,0X0A MOV 0X06,A XOR A,@0XAA JBS 0X03,2 JMP $-6 JMP SPI ORG 0X30 INIT: CLRA IOW 0X05 IOW 0X06 ...

Page 33

MOV A,@0B00110111 IOW 0x09 BC 0X3F,1 NOP JBS 0X3F,1 JMP $-2 JMP INTERRUPT SPI: BS 0X0D,4 WDTC MOV A,@0X0F MOV 0X06,A JBC 0X08,1 JMP SPI MOV A,@0X5A MOV 0X0B,A NOP JBC 0X0D,4 JMP $-2 BS 0XD,4 NOP NOP MOV A,@0XF0 ...

Page 34

EM78451 8-Bit Microcontroller BC 0x0C,1 NOP JMP SPI DELAY: EOP ORG 0XFFF JMP INITI 4.6 Timer 1 4.6.1 Overview Timer1(TMR1 eight-bit clock counter with a programmable prescaler designed for the SPI module as a baud rate ...

Page 35

Comparator: To change the output status while a match occurs. The TMR1IF flag will be set at the same time. 4.6.3 Programmed the related registers The related registers for defining TMR1 are shown in Table 4 and Table 5 Table ...

Page 36

EM78451 8-Bit Microcontroller 4.7 RESET and Wake-up A RESET is initiated by: (1) Power on reset, or (2) WDT timeout. (if enabled) Oscillator Pow er- on Reset Voltage Detector W DTE The POR voltage of EM78451 ranges between 1.2V~1.8V. Under ...

Page 37

Bits 3,6 of IOCE register are cleared, bits 0,4~5 of IOCE register are set to "1". Bits 0 of R3F and bits 0 of IOCF registers are cleared. The sleep mode (power down) is achieved by executing the SLEP instruction ...

Page 38

EM78451 8-Bit Microcontroller Address Name Reset Type /RESET and WDT Wake-Up from Pin Change Bit Name N/A CONT Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x00 R0(IAR) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 39

Address Name Reset Type 0x07 R7(P7) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x08 R8(P8) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x09 R9(P9) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 40

EM78451 8-Bit Microcontroller Address Name Reset Type /RESET and WDT Wake-Up from Pin Change Bit Name 0x3F R3F(ISR) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x0C IOCC Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 41

The Status of RST, T, and P of STATUS Register A RESET condition is initiated by the following events power-on condition. 2. Watchdog timer time-out. The values of T and P, listed in Table 7 are used to ...

Page 42

EM78451 8-Bit Microcontroller The flag in the Interrupt Status Register (R3F) is set regardless of the status of its mask bit or the execution of ENI instruction. Note that reading R3F will obtain the output of logic AND of R3F ...

Page 43

Crystal Oscillator/Ceramic Resonators (XTAL) EM78451 can be driven by an external clock signal through the OSCI pin as shown in Fig 18. In most applications, pin OSCI and pin OSCO is connected with a crystal or ceramic resonator to ...

Page 44

EM78451 8-Bit Microcontroller Table 10 Capacitor Selection Guide for Crystal Oscillator Ceramic Resonators Oscillator Type Frequency Mode Ceramic Resonator Crystal Oscillator OSCI EM 78451 OSCI EM 78451 4.9.3 RC Oscillator Mode For some applications that do not need a very ...

Page 45

In order to maintain a stable system frequency, the values of the Cext should not be less than 20pF, and that the value of Rext should not be greater than 1 M ohm. If they cannot be kept in this ...

Page 46

EM78451 8-Bit Microcontroller Calibrate frequency of External RC oscillator (For reference only) C ext 20pF 100pF 300pF Internal C, external R Table (For reference only) External R (Ohm) 4.10 Code Option Register 0 ENWDT Bit 0 (ENWDT): Watchdog Timer control. ...

Page 47

Bit 2 (HLF): Frequency mode. 1: High frequency (>32.768KHz) 0: Low frequency (=32.768KHz) Bit 3 : Reserved. The bit0 set to ”1” all the time Bit 4 (RCT): RC type. 1: External RC 0: Internal RC Bit 5 (DEL1) and ...

Page 48

EM78451 8-Bit Microcontroller (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 ...

Page 49

INSTRUCTION BINARY HEX 0 0110 10rr rrrr 06rr 0 0110 11rr rrrr 06rr 0 0111 00rr rrrr 07rr 0 0111 01rr rrrr 07rr 0 0111 10rr rrrr 07rr 0 0111 11rr rrrr 07rr 0 100b bbrr rrrr 0xxx 0 101b ...

Page 50

EM78451 8-Bit Microcontroller 4.12 Timing Diagrams AC Test Input/Output W aveform 2.4 0.4 AC Testing : Input is driven at 2.4V for logic "1",and 0.4V for logic "0".Timing measurements are made at 2.0V for logic "1",and 0.8V for logic "0". ...

Page 51

ABSOLUTE MAXIMUM RATING Items Temperature under bias Storage temperature Input voltage Output voltage Operating Frequency (2clk) 6 ELECTRICAL CHARACTERISTICS 6.1 DC Characteristic (Ta=0°C~70°C, VDD=5V±5%, VSS=0V) Symbol Parameter XTAL VDD to 2.3V FXT XTAL VDD to 3V XTAL VDD to ...

Page 52

EM78451 8-Bit Microcontroller Symbol Parameter Output Low Voltage (Ports 5,6,8, P74~P77, VOL1 P90~P92,P95~P97,and PF5~PF7)) Output Low Voltage VOL2 (P70~P72) Output Low Voltage VOL3 (P93/SDO, P94/SCK) Output Low Voltage VOL4 (P74~P77) IPH Pull-high current Pull-high current IPH2 (P74,P75) ISB Power down ...

Page 53

APPLICATION CIRCUIT EM78451 Product Specification (V1.2) 05.27.2004 (This specification is subject to change without further notice) EM78451 8-Bit Microcontroller • 49 ...

Page 54

... EM78451 8-Bit Microcontroller A Package Types: OTP MCU EM78451AP EM78451AQ 50 • APPENDIX Package Type Pin Count DIP 40 QFP 44 Product Specification (V1.2) 05.27.2004 (This specification is subject to change without further notice) Package Size 600 mil ...

Related keywords