em78p809n ELAN Microelectronics Corp, em78p809n Datasheet

no-image

em78p809n

Manufacturer Part Number
em78p809n
Description
8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78P809N
8-BIT
Microcontroller
Product
Specification
D
. V
1.0
OC
ERSION
ELAN MCCROELECTRONICS CORP.
July 2005

Related parts for em78p809n

em78p809n Summary of contents

Page 1

... EM78P809N Microcontroller Specification ELAN MCCROELECTRONICS CORP. 8-BIT Product 1.0 OC ERSION July 2005 ...

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

Contents 1 General Description ··························································································· Features ·············································································································· 1 2.1 CPU········································································································································ 1 2.2 Applications ···························································································································· Pin Assignment ·································································································· Pin Description ··································································································· Function Description·························································································· 5 4.1 Functional Block Diagram ······································································································ 5 4.2 Operating Registers ...

Page 4

Contents 5 Absolute Maximum Ratings ············································································ 63 5.1 Absolute Maximum Ratings ································································································· 63 5.2 Recommended Operating Conditions ·················································································· Electrical Characteristics················································································· 64 6.1 DC Electrical Characteristics································································································ 64 6.2 AC Electrical Characteristic·································································································· 67 6.3 Timing Diagram ··················································································································· 68 APPENDIX ·············································································································· ...

Page 5

... OTP memory codes. Seven Option bits are also available to meet user’s requirements. With its OTP-ROM feature, the EM78P809N is able to offer a convenient way of developing and verifying user’s programs. Moreover, user can take advantage of ELAN Writer to easily program his development code. ...

Page 6

... Idle mode: Oscillation circuit turned on, CPU halt and Peripheral circuit in operation Sleep mode: Oscillation circuit turned off, CPU and Peripheral circuit halt Package types: 28-pin DIP 600 mil: EM78P809NP 28-pin SOP 300 mil: EM78P809NM 28-pin SSOP 209 mil: EM78P809NS 99.9% single instruction cycle commands 2.2 Applications General purpose 2 • Product Specification (V1.0) 07.26.2005 ...

Page 7

... P71 can be used as SPI serial data input (SI) or UART data receive input (RX) * P72 can be used as SPI serial data output (SO) or UART data transmit output (TX) * P73 can be used as SLEEP mode release input (/SLEEP) or external interrupt input 5 (/INT5) * P70 ~ P73 can be used as pull high or pull low pins EM78P809N 8-Bit Microcontroller (VPP) • 3 ...

Page 8

... EM78P809N 8-Bit Microcontroller Symbol Pin No. Type P80~P81 12~13 I/O P90~P97 4~11 I/O VSS VPP 27 I ACLK 1 I DATAIN 25 I/O DINCK 26 I PGMB 24 I OEB • Function * P80~P83 are bi-directional I/O pins * P80 can be used as 8-bit Timer/Counter 3 (TC3) or external Interrupt Input 3 (INT3) * P81 can be used as 8-bit Timer/Counter 4 (TC4) or programmable ...

Page 9

... WDT Prescaler TCC Prescaler Interrupt Instruction Control General RAM Instruction R4 DATA and CONTROL BUS PORT6 PORT7 IOC6 R6 IOC7 R7 P60 ~ P67 P70 ~ P73 Fig. 2. Functional Block Diagram EM78P809N 8-Bit Microcontroller Stack ROM R2 ALU Register R3 ACC R5 Decoder PORT8 PORT9 IOC8 R8 IOC9 R9 P80 ~ P81 P90 ~ P97 • ...

Page 10

... EM78P809N 8-Bit Microcontroller 4.2 Operating Registers REGISTER BANK 0 Address 00 R0/ IAR 01 R1/ TCC R4/ RSR 05 SCR 06 PORT6 07 PORT7 08 PORT8 TC2CR/ ADDL 09 PORT9 0A Reserved 0B TC4CR 0C TC4D 0D ISFR0 0E ISFR1 0F ISFR2 10 16 Byte : Common Register 1F BANK (7,6) = (0, Byte 3F Common Register Common Register 6 • ...

Page 11

... For an interrupt trigger, the program ROM will jump to individual interrupt vector at Page 0. The CPU will store ACC, R3 status and R5 PAGE automatically, it will restore after instruction RETI. Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) EM78P809N 8-Bit Microcontroller • 7 ...

Page 12

... EM78P809N 8-Bit Microcontroller R5 PC A12 A11 A10 000 : PAGE0 0000~03FF 001 : PAGE1 0400~07FF 010 : PAGE2 0800~0BFF 011 : PAGE3 0C00~0FFF 100 : PAGE4 1000~13FF 101 : PAGE5 1400~17FF 110 : PAGE6 1800~1BFF 111 : PAGE7 1C00~1FFF Fig. 4. Program Counter Organization R3/SR − Status Register ( Address: 03h ) Bit 7 ...

Page 13

... Bit 5 Bit 4 Bit 3 RSR5 RSR4 RSR3 GRBS0 General Purpose Register Bank (Address 20H ~ 3FH Bit 5 Bit 4 Bit 3 PS1 PS0 0 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 RSR2 RSR1 RSR0 Bank 0 Bank 1 Bank 2 Bank 3 Bit 2 Bit 1 Bit 0 1 SIS REM When Note that RET (RETL, RETI) • ...

Page 14

... EM78P809N 8-Bit Microcontroller PS2 Bit 1 ( SIS ) : SLEEP and IDLE mode select. SIS = “0” : IDLE mode SIS = “1” : SLEEP mode Bit 0 ( REM ) : Release method for sleep mode. REM = “0” : /SLEEP pin input rising edge release REM = “ ...

Page 15

... Fc/2^3 0 Fc/2^2 1 Fc/2 External clock (TC4 pin) TC4M0 Operating Mode 0 Timer/Counter 1 0 Programmable Divider output 1 Pulse Width Modulation output EM78P809N 8-Bit Microcontroller Bit 1 Bit 0 P92 P91 P90 Bit 2 Bit 1 Bit 0 TC4M1 TC4M0 Operating Mode Clear Toggle Set Reserved Max. Time ( Fosc=8M ) ...

Page 16

... EM78P809N 8-Bit Microcontroller TC4D − Timer 4 Data Buffer ( Address: 0Ch ) Bit 7 Bit 6 TC4D7 TC4D6 Bit 7 ~ Bit 0 ( TC4D7 ~ TC4D0 ) : Data buffer of 8-bit Timer/Counter 4. ISFR0 − Interrupt Status Flag Register 0 and INT3 Edge Detect Flag. ( Address : 0Dh ) Bit 7 Bit Bit 5 ( INT3F ) : External interrupt 3 falling edge detect flag. ...

Page 17

... Bit 5 Bit 4 Bit 3 RBFF TBEF TBIF disabled. by software. cleared by software. by software. "1" means interrupt request, "0" means non-interrupt Bit 5 Bit 4 Bit 3 TC3CK1 TC3CK0 TC3M EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 EXIF1 0 TCIF0 Bit 2 Bit 1 Bit • 13 ...

Page 18

... EM78P809N 8-Bit Microcontroller Bit 5 ~ Bit 4 ( TC3CK1 ~ TC3CK0 ) : Timer/Counter3 Clock Source Select TC3CK1 TC3CK0 Bit 3 ( TC3M ) : Timer/Counter 3 mode select TC3M = “0” : Timer/Counter3 mode TC3M = “1” : Capture mode TC3DA − Timer 3 Data Buffer A ( Address: 06h ) Bit 7 Bit 6 TC3DA7 TC3DA6 Bit 7 ~ Bit 0 ( TC3DA7 ~ TC3DA0 ) : Data buffer of 8-bit Timer/Counter 3 ...

Page 19

... External clock (TC2 pin) Bit 5 Bit 4 Bit 3 TC2D13 TC2D12 TC2D11 TC2D10 Bit 5 Bit 4 Bit 3 TC2D5 TC2D4 TC2D3 Bit 5 Bit 4 Bit 3 ADCK1 ADCK0 ADP cannot be reset by software. EM78P809N 8-Bit Microcontroller Resolution Max. Time ( Fc= Fc=8M ) 1.05s 19.1h 1.02ms 1.1min 32μs 2.1s 1μs 65.5ms 125ns 7.9ms - - - - Bit 2 ...

Page 20

... EM78P809N 8-Bit Microcontroller Bit 5~ Bit 4 ( ADCK1 ~ ADCK0 ) : AD Conversion Time Select ADCK1 Bit 3 ( ADP ) : AD power control ADP = “0” : Power on ADP = “1” : Power down Bit 2 ~ Bit 0 ( ADIS2 ~ ADIS0 ) : Analog Input Pin Select ADIS2 ADIC − AD Input Pin Control ( Address: 0Ch ) ...

Page 21

... Fc/ 2 Bit 5 Bit 4 Bit 3 BRATE2 BRATE1 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 TBTCK2 TBTCK1 TBTCK0 Keytone Output Frequency ( Fc = 8MHz ) 0.976kHz 1.953kHz 3.906kHz 7.812kHz Interrupt Frequency ( Fc = 8MHz ) 23 0.95Hz 21 3.81Hz 16 122.07Hz 14 488.28Hz 13 976.56Hz 12 1953 ...

Page 22

... EM78P809N 8-Bit Microcontroller Bit 6 ~ Bit 5 ( UMODE1 ~ UMODE0 ) : UART Transmission Mode Select Bit UMODE1 Bit 4 ~ Bit 2 ( BRATE2 ~ BRATE1 ) : Transmit Baud Rate Select BRATE2 Bit 1 ( UTBE ) : UART transfer buffer empty flag. Set to 1 when transfer buffer is empty. Reset to 0 automatically when writing into the URTD register. UTBE bit will be cleared by hardware when enabling the transmission ...

Page 23

... Bit 7 ~ Bit 0 ( URRD7 ~ URRD0 ) : UART receive data buffer. Read only. Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Bit 5 Bit 4 Bit 3 PRE PRERR OVERR Bit 5 Bit 4 Bit 3 URRD5 URRD4 URRD3 URRD2 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 FMERR URBF RXE Bit 2 Bit 1 Bit 0 URRD1 URRD0 • 19 ...

Page 24

... EM78P809N 8-Bit Microcontroller URTD − UART Transmit Data Buffer ( Address: 09h ) Bit 7 Bit 6 URTD 7 URTD 6 Bit 7 ~ Bit 0 ( URTD 7 ~ URTD 0) : UART transmit data buffer. Write only. Register Bank bits ( 7,6) = (1,1) ) SPIC1 − SPI Control Register 1 ( Address: 05h ) Bit 7 Bit 6 SMP DCOL Bit 7 ( SMP ) : SPI data input sample phase. ...

Page 25

... SPRL register is necessary to avoid data collision to occur (DCOL). Bit 5 Bit 4 Bit 3 SPID5 SPID4 SPID3 Bit 5 Bit 4 Bit 3 /PHE81 /PHE80 /PHE63 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 SPIM1 SPIM0 RBF Transfer Mode 8-bit Transmit/Receive mode 8-bit Transmit mode 8-bit Receive mode Reserved Bit 2 ...

Page 26

... EM78P809N 8-Bit Microcontroller Bit /PHE63 ~ /PHE60 ) : bit Port 6 Pull high enable bit /PHE6x = “0” : Enable P6x pull high /PHE6x = “1” : Disable P6x pull high PLC1 (Pull Low Control Register 1 ( Address : 0Bh ) Bit 7 Bit Bit /PLE81 ~ /PLE80 ) : bits Port 8 Pull low enable bit /PLE8x = “ ...

Page 27

... Bit 5 Bit 4 Bit 3 WDTP1 WDTP0 WDTE WDTP0 PSR1 PSR0 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 PSR2 PSR1 PSR0 Operating Mode 1:4 1:16 1:64 1:256 Operating Mode 1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256 • 23 ...

Page 28

... EM78P809N 8-Bit Microcontroller IOC6 ~ IOC9 − I/O Port Control Register "1" puts the relative I/O pin into high impedance, while "0" defines the relative I/O pin as output. IOC6 and IOC9 registers are both readable and writable. INTCR − INT Control Register ( Address : 0Bh ) ...

Page 29

... ENI + INT0EN (IOCB) P61 ENI + EXIE1 (IMR2) ENI + EXIE3 (IMR2) ENI + EXIE5 (IMR2) Bit 5 Bit 4 Bit 3 VOF[2] VOF[1] VOF[0] Bit 5 Bit 4 Bit 3 ADIE 0 EXIE3 EM78P809N 8-Bit Microcontroller Digital Noise Edge Reject Falling - Rising or Falling 15/Fc, 63/Fc Rising or Falling or 7/Fc Rising/Falling - Bit 2 Bit 1 Bit ...

Page 30

... EM78P809N 8-Bit Microcontroller Bit 3 ( EXIE3 ) : External INT3 pin Interrupt enable bit. EXIE3 = “0” : disable EXIF3 interrupt EXIE3 = “1” : enable EXIF3 interrupt Bit 2 ( TCIE4 ) : Timer/Counter 4 Interrupt enable bit. TCIE4 = “0” : disable TCIF4 interrupt TCIE4 = “1” : enable TCIF4 interrupt Bit 1 ( SPIE ) : SPI Interrupt enable bit. SPIE = “ ...

Page 31

... NAME Bit 7 Bit 6 Bit 5 0 PS2 PS1 SCR -- R/W R/W Reset Occurs SIS=0 + SLEP NORMAL MODE CPU : Operating Fosc: Oscillates Interrupt Fig 5. Operation Mode and Switching EM78P809N 8-Bit Microcontroller Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PS0 0 1 SIS REM R R/W R/W SIS=1 + SLEP SLEEP MODE CPU : Halts ...

Page 32

... EM78P809N 8-Bit Microcontroller Table 2. Mode Switching Control Mode Switch Normal Sleep Sleep Normal Normal Idle Normal Table 3. Operation Mode Operation Mode Reset Normal Signal Clock Sleep In NORMAL mode, the CPU core and on-chip peripherals operate in oscillator frequency. In IDLE mode, the CPU core halts, but the on-chip peripheral and oscillator circuit remain active ...

Page 33

... ADIF R/W R/W R/W ADOSCR CALI SIGN VOF[2] VOF[1] VOF[0] R/W R/W R/W R/W EXIE5 TCIE2 IMR1 ADIE R/W R/W R/W EM78P809N 8-Bit Microcontroller IDLE Mode NORMAL Mode R5 (SIS SLEP Instruction R5 (SIS)=(*) vector after RETI Interrupt instruction, then jump to the next instruction or enter IDLE mode No effect Reset Reset Bit 3 Bit 2 Bit 1 ...

Page 34

... ADCK0 and ADCK1 select the conversion time (Tct), in terms of instruction cycles. This allows the MCU to run at maximum frequency without sacrificing accuracy of A/D conversion. For the EM78P809N, the conversion time per bit is about 4μs. Table 5 shows the relationship between Tct and the maximum operating frequencies. ...

Page 35

... R/W R/W 0 UERRIE URIE UTIE IMR2 0 R/W R/W Output Latch D Q MUX TEN 2 TBKTC Fig. 7. TONE Output Pin Configuration EM78P809N 8-Bit Microcontroller Max. Conversion Rate per Bit Rate 250kHz (4μs) 48us(20.8kHz) 250kHz (4μs) 48us(20.8kHz) 250kHz (4μs) 8us(20.8kHz Bit 3 Bit 2 Bit 1 Bit 0 0 ...

Page 36

... EM78P809N 8-Bit Microcontroller P63 TEN TONE Pin 23 Fosc/2 21 Fosc/2 16 Fosc/2 14 Fosc/2 13 Fosc/2 12 Fosc/2 11 Fosc/2 9 Fosc/2 TBTCK2:0 Time Base Timer is used to generate the base time for key scan or dynamic display processing. The interrupt is generated in the first falling edge of the source clock after TBTEN is set to “ ...

Page 37

... ISFR2 UERRIF RBFF -- R/W R/W 0 IMR2 UERRIE URIE -- R/W R/W TC4 Baud rate generator RX Control Interrupt RXE Control RX shift register Parity control URRD URRD8 Error flag Data Bus Fig. 11. Function Block Diagram EM78P809N 8-Bit Microcontroller Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 TXE R/W R/W R R/W R RXE R/W R/W R ...

Page 38

... EM78P809N 8-Bit Microcontroller In Universal Asynchronous Receiver Transmitter (UART), each transmitted or received character is individually synchronized by framing it with a start bit and stop bit. Full duplex data transfer is possible since the UART has independent transmit and receive sections. programmed for continuous data transfer. The figure below shows the general format of one character sent or received. The communication channel is normally held in the marked state (high) ...

Page 39

... PRERR, OVERR or FMERR bit. The error flag should be cleared by software else the UERRIF interrupt will occur when the next byte is received. 5. Read received data from URRD register. And URBF bit will be clear by hardware. Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) EM78P809N 8-Bit Microcontroller • 35 ...

Page 40

... EM78P809N 8-Bit Microcontroller 4.7.4 Baud Rate Generator: The baud rate generator is comprised of a circuit that generates a clock pulse to determine the transfer speed for transmission/reception in the UART. The BRATE2~BRATE0 bits of the URC1 register can determine the desired baud rate. 4.8 SPI (Serial Peripheral Interface) ...

Page 41

... WBE SO pin SPIF SPID Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) shift start shift finish write data Fig. 15. Transmit Mode (8-bit, 1 word) EM78P809N 8-Bit Microcontroller shift start write data • 37 ...

Page 42

... EM78P809N 8-Bit Microcontroller (b) 8-bit Receive Mode: Setting SPIM0 ~ SPIM1 to receive mode and setting SPIS to “1” to start receiving. The data are input sequentially from the SI pin in synchronous with the serial clock. When the final bit of transfer data has been received, the SPI interrupt is generated and SPIS is cleared to “ ...

Page 43

... Fig. 17. Transmit/Receive Mode (8-bit, 1 word) P.67 P67 P66 P 65 P65 P 64 P64 /SS SDO SDI SCK SDI Slave Device 2 Slave Device 3 EM78P809N 8-Bit Microcontroller shift start write data read data /SS SDO /SS SDO SDI SDI ...

Page 44

... EM78P809N 8-Bit Microcontroller 4.9 Timer/Counter 2 Registers for Timer/Counter 2 Circuit R_BANK Address NAME BANK 1 0X08 TC2CR BANK 1 0X09 TC2DH TC2D15 TC2D14 TC2D13 TC2D12 TC2D11 TC2D10 TC2D9 BANK 1 0X0A TC2DL BANK 0 0x0E ISFR1 SFR 0x0B INTCR SFR 0x0E IMR1 TC2ES TC2 Pin M 23 fc/2 13 fc/2 MUX ...

Page 45

... Writing to the TCR2L, the comparison is inhibited until TCR2H is written. Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice Fig. 20. Timer Mode Timing Chart Fig. 21. Counter Mode Timing Chart (TC2ES = 1) EM78P809N 8-Bit Microcontroller n-3 n-2 n counter match clear n-2 n ...

Page 46

... EM78P809N 8-Bit Microcontroller TC2 pin Internal clock Up-counter TCR2 TC2 interrupt 4.10 Timer/Counter 3 Registers for Timer/Counter 3 Circuit R_BANK Address NAME BANK 1 0X05 TC3CR TC3CAP BANK 1 0X06 TC3DA TC3DA7 TC3DA6 TC3DA5 TC3DA4 TC3DA3 TC3DA2 TC3DA1 TC3DA0 BANK 1 0X07 TC3DB TC3DB7 TC3DB6 TC3DB5 TC3DB4 TC3DB3 TC3DB2 TC3DB1 TC3DB0 ...

Page 47

... TC3 pin input, the contents of the counter are loaded into TCR3A, counter is Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Inhibit Capture Control 8-bit Up-counter Capture TCR3B TCR3A Fig. 23. Configuration of Timer/Counter3 EM78P809N 8-Bit Microcontroller TC3 Interrupt Overflow Comparator Capture • 43 ...

Page 48

... EM78P809N 8-Bit Microcontroller cleared and interrupt is generated again overflow before the edge is detected, the FFH is loaded into TCR3DA and an overflow interrupt is generated. During interrupt processing, it can be determined whether or not there is an overflow by checking whether the TCR3DA value is FFH. After an interrupt (capture to TCR3DA or overflow detection) is generated, capture and overflow detection are halted until TCR3DA is read out ...

Page 49

... TC4M(1,*) Overflow Match Comparator TCR4 Fig. 25. Timer/Counter 4 Configuration The contents of TCR4 are compared with the contents of the 2 n Fig. 26.Timing Chart for PDO Mode EM78P809N 8-Bit Microcontroller TC4FF TC4 Interrupt F/F /PWM, /PDO Pin Clear Set Q Toggle n n-1 0 ...

Page 50

... EM78P809N 8-Bit Microcontroller 4.11.4 PWM Mode In Pulse Width Modulation (PWM) Output mode, counting up is performed using the internal clock. The contents of the TCR4 are compared with the contents of the up-counter. The F/F is toggled when match is found. The counter is still counting, the F/F is toggled again when the counter overflows, then the counter is cleared. The F/F output is inverted and output to the /PWM pin ...

Page 51

... 3V, set up time period = 19.6ms ± 30% DD Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) PCRD PCW R CLK PDW R CLK PDRD EM78P809N 8-Bit Microcontroller IOD 1 (one oscillator • 47 ...

Page 52

... EM78P809N 8-Bit Microcontroller The Watchdog timer and prescaler are cleared. Upon power on, the upper 2 bits of R3 are cleared. Upon power on, the upper 2 bits of R4 are cleared. Upon power on, the upper 3 bits of R5 are cleared. The bits of CONT register are set to all “1” except bit 6 (INT flag). ...

Page 53

... GRBS1 GRBS0 RSR5 RSR4 RSR3 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit 0 C62 C61 C60 C72 C71 C70 C81 C80 ...

Page 54

... EM78P809N 8-Bit Microcontroller Register Bank 0 Address Name Reset Type Bit Name Power-On 0x05 SCR /RESET and WDT time out Wake-Up from SLEEP, IDLE mode Bit Name Power-On 0x06 PORT6 /RESET and WDT time out Wake-Up from SLEEP, IDLE mode Bit Name ...

Page 55

... TEN TCK1 TCK0 X TBTEN TBTCK2 TBTCK1 TBTCK0 EM78P809N 8-Bit Microcontroller Bit 2 Bit 1 Bit ...

Page 56

... EM78P809N 8-Bit Microcontroller Register Bank 2 Address Name Reset Type Bit Name Power-On 0x05 URC1 /RESET and WDT time out Wake-Up from SLEEP, IDLE mode Bit Name Power-On 0x06 URC2 /RESET and WDT time out Wake-Up from SLEEP, IDLE mode Bit Name ...

Page 57

... Previous value before reset Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Bit 7 Bit 6 Bit 5 Bit Reset Type Event EM78P809N 8-Bit Microcontroller Bit 3 Bit 2 Bit 1 Bit ...

Page 58

... EM78P809N 8-Bit Microcontroller Oscillator Power-on Reset Voltage Detector WDTE /RESET Fig. 29.Controller Reset Block Diagram 4.15 Interrupt The EM78P809N has 15 interrupts (9 external, 6 internal) listed below: Table 9.. Interrupt Vector Interrupt Source Internal / External Internal External Internal External Internal External External External UART Receive error ...

Page 59

... High frequency oscillator 4.16.2 Crystal Oscillator/Ceramic Resonators (Crystal) EM78P809N has a clock generator. i.e. Fc (high frequency) which can be driven by an external clock signal through the OSCI pin. In most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ceramic resonator to generate oscillation. Table 12 provides the recommended values of C1 and C2 ...

Page 60

... Table12. Capacitor Selection Guide for Crystal Oscillator or Ceramic Resonator Oscillator Type Ceramic Resonator Crystal Oscillator OSCI EM78P809N Fig. 32. Crystal/Resonator-Series Mode Circuit 56 • OSCI OSCO EM78P809N Fig. 30. Crystal/Resonator Circuit C1 OSCI XTAL EM78P809N OSCO C2 RS Fig. 31. Crystal/Resonator Circuit Frequency Mode HXT HXT 33 0 740 740 4 4 Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Ext ...

Page 61

... PCB layout, will affect the system frequency. Fig. 34. External RC Oscillator Mode Circuit Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) 4.7 K 740 740 XTAL C1 C2 Vdd Rext OSCI Cext EM78P809N EM78P809N 8-Bit Microcontroller 10 K Vdd • 57 ...

Page 62

... Note: 1. Measured on DIP packages. 2. For design reference only. 4.17 Code Option Register The EM78P809N has one CODE option word that is not part of the normal program memory. The option bits cannot be accessed during normal program execution. Code Option Register and Customer ID Register arrangement distribution: ...

Page 63

... Power-on Considerations Any microcontroller is not guaranteed to start and operate properly before the power supply maintains at its steady state. The EM78P809N has a built-in Power On Voltage Detector (POVD) with a detecting level of 2.1V. It will work well less). In many critical applications, however, additional components are required to provide solutions on probable power-up problems ...

Page 64

... Fig. 35. External Power-Up Reset Circuit 4.18.2 Residue-Voltage Protection When battery is replaced, device power (V The residue-voltage may trip below V cause a poor power-on reset. Fig.35 and Fig.36 show how to build the residue-voltage protection circuit. EM78P809N /RESET 60 • R Rin taken off but residue-voltage remains. ...

Page 65

... Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Vdd Q1 /RESET 40K Fig 37. Residue Voltage Protection Circuit 2 EM78P809N 8-Bit Microcontroller Vdd R1 R2 • 61 ...

Page 66

... EM78P809N 8-Bit Microcontroller Binary Instruction 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 0001 0001 0011 0 0000 0001 0010 ...

Page 67

... A, k k+A → A ADD A, k PAGE k K->R5(6:4) BANK k K->R4(7:6) Rating -40 ° -65 ° -0.3V to -0. Condition Fc = 10MHz Fc = 4MHz Two cycles with two clocks EM78P809N 8-Bit Microcontroller Status Affected None None Z,C,DC Z,C,DC None None 85 ° C 150 ° C +6.0V +6.0V 10MHz Min. Typ. Max. Unit 4.0 5 MHz ...

Page 68

... EM78P809N 8-Bit Microcontroller 6 Electrical Characteristics 6.1 DC Electrical Characteristics (Ta= 25 ° C, VDD= 5.0V ± 5%, VSS= 0V) Symbol Parameter Fc XTAL: 4.5V to VDD ERC ERC: VDD = 5V Input High Threshold Voltage VIHRC (Schmitt trigger ) IRC1 Sink current Input Low Threshold Voltage VILRC (Schmitt trigger ) IRC2 Sink current Input Leakage Current for input ...

Page 69

... Pull-high active, input pin at VSS Pull-low active, input pin at VDD All input and I/O WDT disabled pins at VDD, output pin floating WDT enabled VDD=3V, /RESET= 'High', Fc=4MHz, CLKS="0", output pin floating, WDT enabled EM78P809N 8-Bit Microcontroller Min. Typ. Max. Unit 1 4 MHz ...

Page 70

... EM78P809N 8-Bit Microcontroller A/D Converter Characteristic (V DD Symbol Parameter VAREF Analog reference voltage VAREF - VASS ≧ 2.5V VASS VAI Analog input voltage IV DD IAI1 Analog supply current Ivref IV DD IAI2 Analog supply current IVref RN Resolution LN Linearity error Differential nonlinear DNL error FSE Full scale error ...

Page 71

... SDO output hi-impedance delay time delay time * N= selected prescaler ratio Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) 8-Bit Microcontroller Conditions Min 45 200 500 (Tins+20)/ N* 11.3 2000 11.3 200 200 400 EM78P809N Typ Max Unit 16.2 21 16.2 21 ...

Page 72

... EM78P809N 8-Bit Microcontroller 6.3 Timing Diagram 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". RESET Timing (CLK="0") CLK /RESET TCC Input Tim ing (CLKS="0") ...

Page 73

... APPENDIX Package Types: OTP MCU EM78P809NP EM78P809NM EM78P809NS Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Package Type Pin Count DIP 28 SOP 28 SSOP 28 EM78P809N 8-Bit Microcontroller Package Size 600 mil 300 mil 209 mil • 69 ...

Page 74

... EM78P809N 8-Bit Microcontroller CONTENTS.............................................................................................................III 1 General Description ··························································································· Features · ...

Page 75

... Package Types:······························································································································ 69 Product Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) EM78P809N 8-Bit Microcontroller • 71 ...

Related keywords