EM78P451AQ ELAN Microelectronics Corp, EM78P451AQ Datasheet

no-image

EM78P451AQ

Manufacturer Part Number
EM78P451AQ
Description
Manufacturer
ELAN Microelectronics Corp
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
EM78P451AQ
Manufacturer:
EM
Quantity:
2 600
Part Number:
EM78P451AQ
Manufacturer:
EMC
Quantity:
9 588
EM78P451
8-Bit Microcontroller
with OTP ROM
Product
Specification
D
. V
1.1
OC
ERSION
ELAN MICROELECTRONICS CORP.
June 2003

Related parts for EM78P451AQ

EM78P451AQ Summary of contents

Page 1

... EM78P451 8-Bit Microcontroller with OTP ROM Specification Product D OC ELAN MICROELECTRONICS CORP 1.1 ERSION June 2003 ...

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 of this specification are subject to change without further notice. ELAN Microelectronics assumes no responsibility concerning the accuracy, adequacy, or completeness of this specification ...

Page 3

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

Page 4

Contents 4.6.3 Programmed the Related Registers ............................................................................30 4.7 RESET and Wake-up .................................................................................................31 4.7.1 The Status of RST, T, and P of STATUS Register .......................................................36 4.8 Interrupt......................................................................................................................36 4.9 Oscillator ....................................................................................................................37 4.9.1 Oscillator Modes..........................................................................................................37 4.9.2 Crystal Oscillator/Ceramic Resonators (XTAL) ...........................................................38 4.9.3 RC ...

Page 5

GENERAL DESCRIPTION The EM78P451 is an 8-bit microprocessor designed and developed with low-power, high speed CMOS technology. Its operational kernel is implemented with RISC-like architecture and is available in the mask ROM version. The one time programmable (OTP) version ...

Page 6

... TProgrammable free running on-chip watchdog timer. T12 wake-up pins. T2 open-drain pins. T2 R-option pins. T32 programmable pull-high input pins. TPackages pin DIP 600mil : EM78P451P pin QFP : EM78P451AQ. TFour types of interrupts. x External interrupt (/INT). x SPI transmission completed interrupt. x TCC overflow interrupt. x Timer1 comparator match interrupt. ...

Page 7

Table 1 Pin description Symbol Pin No. Type L In XTAL mode: Crystal input; In internal C, external R mode: 56Kohmr5% pull R-OSCI 39 I high for 1.8432MHz. OSCO XTAL mode: Crystal output mode: ...

Page 8

EM78P451 8-Bit Microcontroller with OTP ROM 4 FUNCTION DESCRIPTION W DT Prescaler Tim e-out Oscillator/ Tim m ing Control R1(TCC) Sleep RAM & W ake Up Control IOC5 IOC6 ...

Page 9

T"CALL" instruction loads the lower 10 bits of the PC, and then PC+1 is pushed into the stack. Thus, the subroutine entry address can be located anywhere within a page T"RET" ("RETL k", "RETI") instruction loads the program counter with ...

Page 10

EM78P451 8-Bit Microcontroller with OTP ROM 4.1.4 R3 (Status Register PS1 Bit 0 (C) Carry flag Bit 1 (DC) Auxiliary carry flag Bit 2 (Z) Zero flag. Set to "1" if the result of an arithmetic or ...

Page 11

R9 (Port9) A general 6-bit I/O register. The values of the two most significant bits are read as "0" (TCC (PC (Status (RSR (Port ...

Page 12

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

Page 13

RD (SPIC: SPI Control Register) Address Name 0x0D SPIC/RD CES (bit 7): Clock Edge Select bit 1 = Data shifts out on falling edge, and shifts in on rising edge. Data Data shifts out on ...

Page 14

EM78P451 8-Bit Microcontroller with OTP ROM 4.1.13 RF (PWP: Pulse width preset register) Address Name 0x0F PWP/RF PWP7 PWP7~PWP0 is bit set of pulse width preset in advance for the desired width of baud clock. 4.1.14 R20~R3E (General Purpose Register) ...

Page 15

Bit 6 (INT) An interrupt enable flag cannot be written by the CONTW instruction. 0: interrupt masked by the DISI instruction. 1: interrupt enabled by the ENI or RETI instruction. Bit4, 5 Not used, and to be read as “0”. ...

Page 16

EM78P451 8-Bit Microcontroller with OTP ROM 4.2.5 IOCD (Pull-high Control Register The default values of /PU5, /PU6, /PU8, and /PU9 are one, which means the pull-high function is disabled. /PU6 and /PU9 are “AND” gating with ...

Page 17

Bit 5 (WDTE) Control bit used to enable Watchdog timer. The WDTE bit can be used only if ENWDT, the CODE Option bit, is "1". If the ENWDT bit is "1", then WDT can be disabled/enabled by the WDTE bit. ...

Page 18

EM78P451 8-Bit Microcontroller with OTP ROM Oscillator Enable Disable CLK Clear Set from S/W Fig. 5 Block Diagram of Sleep Mode and Wake-up Circuits on I/O Ports 4.3 TCC/WDT Presacler An 8-bit counter ...

Page 19

WDT time-out (if enabled) will cause the device to reset. The WDT can be enabled or disabled any time during the normal mode by software programming (if Code Option bit ENWDT is "1"). Refer to ...

Page 20

EM78P451 8-Bit Microcontroller with OTP ROM PORT Fig. 7 (a) The Circuit of I/O Port and I/O Control Register VCC ROC Weakly Pull-up PORT Rex* Fig.7(b) The Circuit of I/O Port with R-option (P80, P81 PCRD P Q ...

Page 21

SERIAL PERIPHERAL INTERFACE MODE 4.5.1 Overview & Features 4.5.1.1 Overview Figures 8, 9, and 10 show how EM78P451 communicates with other devices through SPI module. If EM78P451 is a master controller, it sends clock through the SCK pin. A ...

Page 22

EM78P451 8-Bit Microcontroller with OTP ROM SDI SDO SCK /SS Master P50 P51 P52 P53 Slave Device 1 Slave Device 2 Fig. 9 The SPI Configuration of Single-Master and Multi-Slave SDI SDO SCK /SS Master1 or P50 Slave1 P51 P52 ...

Page 23

SPI Function Description Read RBF RBFI Set to 1 Buffer Full Detector P92/SDI P93/SDO SBR0 ~SBR2 P95/ / Prescaler Tsco 4, 8, 16, 32, 64 TMR1 SPIC SPIWB Fig. 12 The Function Block Diagram ...

Page 24

EM78P451 8-Bit Microcontroller with OTP ROM P92/SDI: P93/SDO: P94/SCK: P95//SS: RBF: RBIF: Buffer Full Detector: Sets to 1 when an 8-bit shifting is completed. SSE: SPIS reg.: SPIR reg.: SPIW reg.: SBRS2~SBRS0: Programming the clock frequency/rates and sources. Clock Select: ...

Page 25

TProgram the same clock rate and clock edge to latch on both the master and slave devices, TThe received byte will update the transmitted byte, TBoth the RBF and RBFIF bits (located in Register 0x0C) will be set as the ...

Page 26

EM78P451 8-Bit Microcontroller with OTP ROM 4.5.4 Programmed the Related Registers As the SPI mode is defined, the related registers of this operation are shown in Table 2 and Table 3. Table 2 Related Control Registers of the SPI Mode ...

Page 27

SBRS (bit 2~0): SPI Baud Rate Select Bits SBRS2 (Bit 2) SBRS1 (Bit 1) SBRS0 (Bit 0) INTC: Interrupt control register Bit 3 (TM1IE) TM1IE interrupt enable bit. 0: disable TM1IE interrupt 1: enable TM1IE interrupt Bit 2 (SPIIE) SPI ...

Page 28

EM78P451 8-Bit Microcontroller with OTP ROM SPIS: SPI Status register TM1IF (bit 4): Timer1 interrupt flag. OD3 (bit 3): Open-Drain Control bit (P93 Open-drain enable for SDO Open-drain disable for SDO. OD4 (bit 2): Open Drain-Control ...

Page 29

Software Application of SPI Example for SPI: For Master ORG 0X0 SETTING: CLRA IOW 0X05 IOW 0X06 MOV 0X05,A MOV A,@0B11001111 CONTW MOV A,@0B00010001 IOW 0X0E MOV A,@0B00000000 IOW 0X0F MOV A,@0x07 IOW 0x09 MOV A,@0B10000000 MOV 0x0C,A MOV ...

Page 30

EM78P451 8-Bit Microcontroller with OTP ROM WDTC BC 0X0C,1 MOV A,@0XFF MOV 0X05,A MOV 0X0A,A MOV A,@0XAA MOV 0X0B,A BS 0X0D,4 NOP JBC 0X0D,4 JMP $-2 BC 0X03,2 CALL DELAY MOV A,0X0A XOR A,@0X5A JBS 0X03,2 JMP START FLAG: MOV ...

Page 31

For Slaver ORG 0X0 INITI: JMP INIT ORG 0X2 INTERRUPT: MOV A,@0X55 MOV 0X06,A MOV A,@0B11100110 MOV 0X0D,A BS 0X0D,4 MOV A,@0X00 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 ...

Page 32

EM78P451 8-Bit Microcontroller with OTP ROM MOV 0X06,A MOV A,@0XFF IOW 0X08 MOV A,@0B11001111 CONTW MOV A,@0B00010001 IOW 0X0E MOV A,@0B00000010 IOW 0XF ENI MOV A,@0B00110111 IOW 0x09 BC 0X3F,1 NOP JBS 0X3F,1 JMP $-2 JMP INTERRUPT SPI: BS 0X0D,4 ...

Page 33

MOV A,@0X00 MOV 0X0B,A NOP JBC 0X0D,4 JMP $-2 BS 0X0D,4 BS 0x0C,7 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. It ...

Page 34

EM78P451 8-Bit Microcontroller with OTP ROM 4.6.2 Function Description Fig. 15 shows TIMER1 block diagram. Each signal and block is described as follows: OSC/4: Input clock. Prescaler: Option of 1:1, 1:4, 1:8, and 1:16 defined by T1P1 and T1P02 (T1CON<1, ...

Page 35

Table 5 Related Status/Data Registers ofTMR1 Address Name 0X0E TMR1/RE TMR17 TMR16 TMR15 TMR14 TMR13 TMR12 TMR11 TMR10 0x0F PWP/RF 0x0C T1CON/IOCC TMR1: Timer1 Register TMR17~TMR10 is bit set of Timer1 register and it increases until the value matches PWP ...

Page 36

EM78P451 8-Bit Microcontroller with OTP ROM EM78P451 POR voltage range is 1.2V~1.8V. Under customer application, when power is OFF, Vdd must drop to below 1.2V and remains OFF for 10us before power can be switched ON again. This way, the ...

Page 37

Table 6 The Summary of the Initialized Values for Registers Address Name Reset Type Bit Name N/A IOC5 Power-On /RESET and WDT Wake-Up from Pin Change Bit Name N/A IOC6 Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 38

EM78P451 8-Bit Microcontroller with OTP ROM Address Name Reset Type Wake-Up from Pin Change Bit Name 0x04 R4(RSR) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x05 R5(P5) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 39

Address Name Reset Type 0x0D RD(SPIC) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x0E RE(TMR1) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x0F RF(PWP) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 40

EM78P451 8-Bit Microcontroller with OTP ROM X: Not used. U: Unknown or don’t care. P: Previous value before reset Check Table 7 4.7.1 The Status of RST, T, and P of STATUS Register A RESET condition is initiated ...

Page 41

R3F register. The interrupt flag bit must be cleared by software before leaving the interrupt service routine and enabling interrupts to avoid recursive interrupts. The flag in the Interrupt Status Register (R3F) is set regardless of the status of ...

Page 42

EM78P451 8-Bit Microcontroller with OTP ROM 4.9.2 Crystal Oscillator/Ceramic Resonators (XTAL) EM78P451 can be driven by an external clock signal through the OSCI pin as shown in Fig 18 below. In the most applications, pin OSCI and pin OSCO is ...

Page 43

OSCI EM 78P451 Fig. 20 Circuit for Crystal/Resonator-Series Mode O SCI EM 78P451 Fig. 21 Circuit for Crystal/Resonator-Parallel Mode 4.9.3 RC Oscillator Mode For some applications that do not need a very precise timing calculation, the RC oscillator (Fig 22 ...

Page 44

EM78P451 8-Bit Microcontroller with OTP ROM Fig. 22 Circuit for External RC Oscillator Mode Fig. 23 Circuit for External R, Internal C Oscillator Mode Calibrate frequency of External RC oscillator (For reference only) C ext 20pF 100pF 300pF 40 x ...

Page 45

Internal C, external R Table (For reference only) External R (Ohm) 10K 15K 20K 30K 51K 100K 150K 200K 510K 2M 3.3M 4.10 Code Option Register Address 0xFFF MS ENWDT CLKS PTB Bit 12 (MS): Oscillator type ...

Page 46

EM78P451 8-Bit Microcontroller with OTP ROM Bit 7 (RCT): Resistor Capacitor. 0: internal RC 1: external RC Bit 6 (HLP): Power consumption selection. 0: Low power 1: High power Bit 5 ~ Bit 4: DEL1 and DEL0 (SDI) input delay ...

Page 47

INSTRUCTION BINARY HEX 0 0000 0000 0000 0000 0 0000 0000 0001 0001 0 0000 0000 0010 0002 0 0000 0000 0011 0003 0 0000 0000 0100 0004 0 0000 0000 rrrr 000r 0 0000 0001 0000 0010 0 0000 ...

Page 48

EM78P451 8-Bit Microcontroller with OTP ROM INSTRUCTION BINARY HEX 0 0110 01rr rrrr 06rr 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 ...

Page 49

Timing Diagrams AC Test Input/O utput W aveform 2.4 0.4 AC Testing : Input is driven at 2.4V for logic "1",and 0.4V for logic "0".Tim ing m easurem ents are m ade at 2.0V for logic "1",and 0.8V for ...

Page 50

EM78P451 8-Bit Microcontroller with OTP ROM 5 ABSOLUTE MAXIMUM RATING Items Temperature under bias Storage temperature Input voltage Output voltage Operating Frequency (2clk) 6 ELECTRICAL CHARACTERISTICS 6.1 DC Characteristic (Ta=0qC~70qC, VDD=5Vr5%, VSS=0V) Symbol Parameter XTAL VDD to 2.3V FXT XTAL ...

Page 51

Symbol Parameter Output High Voltage VOH3 (P93/SDO,P94/SCK) 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 ...

Page 52

EM78P451 8-Bit Microcontroller with OTP ROM 7 Application Circuit EM78P451 48 x Product Specification (V1.1) 06.30.2003 (This specification is subject to change without further notice) ...

Page 53

... A Package Types OTP MCU EM78P451P EM78P451AQ Product Specification (V1.1) 06.30.2003 (This specification is subject to change without further notice) 8-Bit Microcontroller with OTP ROM APPENDIX Package Type Pin Count DIP 40 QFP 44 EM78P451 Package Size 600 mil x 49 ...

Page 54

EM78P451 8-Bit Microcontroller with OTP ROM 50 x Product Specification (V1.1) 06.30.2003 (This specification is subject to change without further notice) ...

Related keywords