IBM EM78P259N/260N manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto IBM EM78P259N/260N. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoIBM EM78P259N/260N vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual IBM EM78P259N/260N você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual IBM EM78P259N/260N, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual IBM EM78P259N/260N deve conte:
- dados técnicos do dispositivo IBM EM78P259N/260N
- nome do fabricante e ano de fabricação do dispositivo IBM EM78P259N/260N
- instruções de utilização, regulação e manutenção do dispositivo IBM EM78P259N/260N
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque IBM EM78P259N/260N não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos IBM EM78P259N/260N e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço IBM na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas IBM EM78P259N/260N, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo IBM EM78P259N/260N, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual IBM EM78P259N/260N. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM Product Specification D OC . V ERSION 1.2 ELAN MICROELECTRONICS CORP. May 2007[...]

  • Página 2

    T rademark Acknowledgments: IBM is a registered trad emark and PS/2 is a trademark of IBM. W indows is a trademark of Microsoft Corporation. ELAN and ELAN logo are trademarks of ELAN Microelectronics Corporation. Copy right © 2005~2007 by ELAN Microelectr onics Co rporation All Rights Reserved Printed in T aiwan The contents of this specification [...]

  • Página 3

    Contents Product Specificat ion (V1.2) 0 5.18.2007 • iii Contents 1 General Description .................................................................................................. 1 2 Features ..................................................................................................................... 1 3 Pin Assignment ...........[...]

  • Página 4

    Contents iv • Product Specifica tio n (V1.2) 05.18.2007 6.2.13 IOC61 (TCCB Counter) ....................... .................. ....................... ................... 23 6.2.14 IOC71 (TCCBH/M SB Counter) ................. ....................... ....................... ......... 24 6.2.15 IOC81 (TCCC Co unter) ................... ............[...]

  • Página 5

    Contents Product Specificat ion (V1.2) 0 5.18.2007 • v 6.1 1 Oscill ator ......................................................................................................... 60 6.1 1.1 Oscillator Mode s ...... ....................... .................. ....................... ....................... 60 6.1 1.2 Crystal Oscillato r/Ceramic Res[...]

  • Página 6

    Contents vi • Product Specification (V1.2) 05.18.2007 Specificati on Revision History Doc. Version Revision Descr iption Date 1.0 Init ial official version 2005/06/ 16 1.1 Added the IRC d rift rate in the fe ature 2006/05/29 1.2 1. Improve d the contents and f ormat of the Featu res section, Fig.4-1 EM78P259N /260N Functional Bl ock Diagram , Fi [...]

  • Página 7

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 1 (This specificatio n is subject to change without f urther notice) 1 General Description The EM78P259N an d EM78P260N are 8-bit microproc essors designed and devel oped with lo w-power and high-spee d CMOS technology . Th e series has an on-c hip 2[...]

  • Página 8

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 2 • Product Specificatio n (V1.2) 05.18.2007 (This specification is sub ject to change without further notice) 3 Pin Assignment (1) 18-Pin DIP/SOP P52/ADC2 P53/ADC3 P54/TCC/VREF /RESET Vss P60//INT P61 /TC CA P62 /TC CB P63/TCCC P55 /OS CI P70/OSCO VDD P67/IR OUT P65/CIN+ EM78P259NP EM78P259NM 1 2 [...]

  • Página 9

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 3 (This specificatio n is subject to change without f urther notice) 5 Pin Description 5.1 EM78P259NP/M Symbol Pin No. Type Function P70 15 I/O General pur pose input/ou tput pin Default val ue after a power-on reset P60~P67 6~13 I/O General pur pose[...]

  • Página 10

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 4 • Product Specificatio n (V1.2) 05.18.2007 (This specification is sub ject to change without further notice) 5.2 EM78P260NP/M/KM Symbol Pin No. Type Function P70 16 I/O General pur pose input/ou tput pin Default val ue after a power-on reset P60~P67 7~14 I/O General pur pose input/ou tput pin Ope[...]

  • Página 11

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 5 (This specificatio n is subject to change without f urther notice) 6 Function Description 6.1 Operational Registers 6.1.1 R0 (Indirect Address Register) R0 is not a physically implemented register . Its major function is to perform as an indirect a[...]

  • Página 12

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 6 • Product Specificatio n (V1.2) 05.18.2007 (This specification is sub ject to change without further notice)  "JMP" instruction allows direct load ing of the lower 10 program counter bits. Thus, "JMP" allow s PC to jump to any location with in a page.  "CA LL" [...]

  • Página 13

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 7 (This specificatio n is subject to change without f urther notice) 6.1.3.1 Dat a Memory Configuration Address R PAGE registers IOCX0 PAGE registers 00 R0 (Indirect Ad dressing Register) Reserve 01 R1 (Time Clock Counter) CONT (Control Register) 02 [...]

  • Página 14

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 8 • Product Specificatio n (V1.2) 05.18.2007 (This specification is sub ject to change without further notice) 6.1.4 R3 (Status Regi ster ) Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 RST IOCS PS0 T P Z DC C Bit 7 (RST): Bit of r eset type Set to “1” if wake-up from sleep on pin change, co[...]

  • Página 15

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 9 (This specificatio n is subject to change without f urther notice) 6.1.6 R5 ~ R6 (Port 5 ~ Port 6) R5 & R6 ar e I/O regist ers The upper 2 bits of R5 are fixed to “0” (if EM78 P 259N is selected). Only the lower 6 bits of R5 a re available [...]

  • Página 16

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 10 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 3 & Bit 2 (RCM1, RCM0): IRC mod e selection bit s RCM 1 RCM 0 Frequenc y (MHz ) 1 1 4 (default) 1 0 8 0 1 1 0 0 455kHz 6.1.8 R8 (AISR: ADC Input Select Register) The AISR register[...]

  • Página 17

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 11 (This specificatio n is subject to change without f urther notice) 6.1.9 R9 (ADCON: A DC Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 VREFS CKR1 CKR0 ADRUN ADPD – ADIS1 A DIS0 Bit 7 (VREFS): Input source of the V ref of the [...]

  • Página 18

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 12 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 1 ~ Bit 0 (ADIS1 ~ADIS0): Analog Input Select 00 = ADIN0/P50 01 = ADIN1/P51 10 = ADIN2/P52 1 1 = ADIN3/ P53 These bits can only be changed when the A DIF bit (see Section 6.1.14, RE ([...]

  • Página 19

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 13 (This specificatio n is subject to change without f urther notice) 6.1.12 RC (ADDATA1H: Converted Value of ADC) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 “0” “0” “0” “0” AD11 AD10 AD9 AD8 When AD conversion is comp leted, t h[...]

  • Página 20

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 14 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 2 (CMPWE): Comparator wake-up enable bit 0 = Disable Comparator wake-up 1 = Enable Comp arator wake-up When C omparator enters sleep mode, this bit must b e set to “Enable.“ Bit 1[...]

  • Página 21

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 15 (This specificatio n is subject to change without f urther notice) 6.2 S pecial Purpose Registers 6.2.1 A (Accumulator) Internal data transfer operation, or instruction operand holding usually involves the temporary storage function of the Accumul[...]

  • Página 22

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 16 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 2 ~ Bit 0 (PST2 ~ PST0): TCC prescaler bits PST2 PST1 PST0 TCC Ra t e 0 0 0 1: 2 0 0 1 1: 4 0 1 0 1: 8 0 1 1 1:16 1 0 0 1:32 1 0 1 1:64 1 1 0 1: 128 1 1 1 1: 256 Note: Tcc time -out p[...]

  • Página 23

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 17 (This specificatio n is subject to change without f urther notice) Bit 1 (TCCA TS): TCCA signal source 0 =: internal instruction cycle clock. P61 is a bi-directional I/O pin. 1 = transit thr ough the TCCA pin Bit 0 (TCCA TE): TCCA signal edge 0 = [...]

  • Página 24

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 18 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 0 = increment if the tran sition from low to high takes place on the TCCC pin 1 = increment if the transition from high to low ta kes place on the TCCC pin 6.2.6 IO CA0 (IR and TCCC Scale[...]

  • Página 25

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 19 (This specificatio n is subject to change without f urther notice) Bit 6 ~ Bit 4 (TCCCS2 ~ TCCCS0): TCCC scale bits The TCC CS 2 ~ TCCCS0 b its of the IOCA0 register are used to determine the scale ratio of TC CC as shown below : TCCCS2 TCCCS1 TCC[...]

  • Página 26

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 20 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.2.7 IO CB0 (Pull-down Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 /PD57 /PD56 /PD55 /PD54 /PD53 /PD52 /PD51 /PD 50 Note: The IOCB0 register is bot h readable and w[...]

  • Página 27

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 21 (This specificatio n is subject to change without f urther notice) 6.2.9 IOCD0 (Pull-h igh Control Regi ster) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 /PH57 /PH56 /PH55 /PH54 /PH53 /PH52 /PH51 /PH 50 Note: The IOCD0 register is both readabl[...]

  • Página 28

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 22 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 5 (ADIE): ADIF inte rrupt enable bit 0 = disable ADIF interrupt 1 = ena ble ADIF interrupt Bit 4 (CMPIE ) : CMPIF interrupt enable bit. 0 = disable CMPIF interrupt 1 = enabl e CMP IF [...]

  • Página 29

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 23 (This specificatio n is subject to change without f urther notice) Bit 5 (TCCCIE): TCCCIF interrupt enable bit 0 = Disable TCCCIF interrupt 1 = Enable TCCCIF int errupt Bit 4 (TCCBIE): TCCB IF i nterru pt en able bit 0 = Disable TCCBIF inter rupt [...]

  • Página 30

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 24 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.2.14 IOC71 (TCC BH/MSB Counter) The IOC71 (TCCBH) is an 8-bit clock coun ter for the most significan t byte of TCCBX (TCCBH) . It can be read, written, and cleared on any reset conditio[...]

  • Página 31

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 25 (This specificatio n is subject to change without f urther notice) 6.2.16 IOC91 (Low Time Register) The 8-bit Low time register controls the active or Low segment of the pulse. The decimal va lue of its contents determines the n umber of oscillato[...]

  • Página 32

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 26 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 6 ~ Bit 4 (HTS2 ~ HTS0): High time sca le bits : HTS2 HTS1 HTS0 High time Rate 0 0 0 1:2 0 0 1 1:4 0 1 0 1:8 0 1 1 1:16 1 0 0 1:32 1 0 1 1:64 1 1 0 1:128 1 1 1 1:256 Bit 3 (LTSE): Low[...]

  • Página 33

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 27 (This specificatio n is subject to change without f urther notice) 6.3 TCC/ WDT an d Prescaler There are two 8-bit counters available as prescalers that can be extended to 16-bit counter for the TCC and WDT re spectively . The PST2 ~ PST0 bits o f[...]

  • Página 34

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 28 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 8- Bi t c ount er WDT P r escaler 8 t o 1 M U X WD T Ti me out WDTE (IO C E 0 ) TC C Pi n MUX 1CLK ( Fosc/ 1) 8- Bi t Count er ( I OC C1) 8 t o 1 M U X TE (CO N T) Dat a Bu s TCC over f l[...]

  • Página 35

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 29 (This specificatio n is subject to change without f urther notice) PCWR PCRD PDWR PDRD IOD 0 1 M U X PORT Q Q _ D D Q Q _ CLK P R C L CLK P R C L Note: Open-drain is not shown in the figure. Fig. 6-3 I/O Port and I/O Control Registe r Circuit for [...]

  • Página 36

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 30 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) PCRD M U X IOD 0 1 PDRD P50 ~ P57 PCWR D Q Q _ CLK P R C L PDWR D Q Q _ CLK P R C L P R C L CLK DQ Q _ TI n POR T Note: Pull-hi gh (down) is not shown in the figure. Fig. 6-5 I/O Po rt an[...]

  • Página 37

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 31 (This specificatio n is subject to change without f urther notice) 6.4.1 Usage of Port 5 Inp ut Cha nge Wa ke- up/Interr upt Func tion (1) Wake-up (2) Wake-up and Interrupt (a) Before Sleep (a) Before Sleep 1. Disable WDT 1. Disable WDT 2. Read I/[...]

  • Página 38

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 32 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice)  All I/O port pins are configured as inpu t mode (hig h-impedance state)  The W atchdog T imer and prescaler are cleared  When power is switched on, the upper 3 bits of R3 is cle[...]

  • Página 39

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 33 (This specificatio n is subject to change without f urther notice) Case [c] If Comparator output st atus change is used to wake-up the EM78P259N/ 260N and CMPWE bit of the RE register is enabled before SLEP , WDT must be disabled by software. Henc[...]

  • Página 40

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 34 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.5.1.1 W ake-Up and Interrupt Modes Operation Summary All categories under Wake-up and Interru pt modes are summarized below. Signal Sleep Mode Normal Mode DISI + IOCF0 ( EXIE) Bit2=1 Ne[...]

  • Página 41

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 35 (This specificatio n is subject to change without f urther notice) Signal Sleep Mode Norma l Mo de RE (CMPWE) Bit2=0, IOCE0 (CMPIE) Bit4=0 IOCF0 (CMPIE) Bit4=0 Comparator output st atus changed wake-up is inv alid. Oscillator, TCC, T CCX and IR/PW[...]

  • Página 42

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 36 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.5. 1.2 Reg ister Ini tial V al ues after Re set The following summarizes the init ialized valu es for registers. Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 [...]

  • Página 43

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 37 (This specificatio n is subject to change without f urther notice) Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name /PH57 /P H56 /PH55 /PH54 /PH53 /PH 5 2 /PH51 /PH50 Power- on 1 1 1 1 1 1 1 1 /RESET and WDT 1 1 1 1[...]

  • Página 44

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 38 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name HTR7 HTR6 HTR5 HTR4 HTR3 HTR2 HTR1 HTR0 Power- on 0 0 0 0 0 0 0 0 /RESET and W DT 0 0 0 0 0 0 0 0 N/A IOCA[...]

  • Página 45

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 39 (This specificatio n is subject to change without f urther notice) Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name X BS X X X X X X Power-on 0 0 U U U U U U /RESET and WDT 0 0 P P P P P P 0x04 R4(RS R) Wake-up from[...]

  • Página 46

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 40 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Address Na me Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit Name “0” “0” “0” “0” AD11 AD 10 A D9 AD8 Power-on 0 0 0 0 U U U U /RESET and WDT 0 0 0 0 U U U[...]

  • Página 47

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 41 (This specificatio n is subject to change without f urther notice) 6.5.2 The T and P Status under STATUS (R3) R egister A reset condition is initiated by one of the following events : 1. Power-on reset 2. /RESET pin input "low " 3. WDT t[...]

  • Página 48

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 42 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) The ex tern al int erru pt has an on- chip d igit al nois e rej ecti on ci rcuit . Input puls e less than 8 system clock tim e is eliminated as noise. However, in Low Crystal oscilla tor [...]

  • Página 49

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 43 (This specificatio n is subject to change without f urther notice) INT ENI/DISI IOD RFWR IOCFRD IOCFW R IRQ n IRQ m RFRD IOC F /RES ET /IRQ n VCC RF CLK CLK Q Q D P R L C _ P R L C Q Q _ D Fig. 6-8 Interr upt Input Circuit Interrupt sources Interr[...]

  • Página 50

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 44 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.7 Analog-to-Digital Converter (ADC) The analog-to-digital circuitry consist of a 4-bit analog multiplexer; three control registers (AISR /R8, ADCON/R9, & ADOC/RA), three da ta regis[...]

  • Página 51

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 45 (This specificatio n is subject to change without f urther notice) Bit 1 (ADE1): AD converter enable bit of P51 pin 0 = Disable ADC1, P51 act s as I/O pin 1 = Enable ADC1 acts as analog input pin Bit 0 (ADE0): AD converter enable bit of P50 pin 0 [...]

  • Página 52

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 46 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 4 (ADRUN): ADC starts to RUN. 0 = res et on compl etio n of the c onve rsion. This bit cannot be rese t though so ftware. 1 = an A D conversion is started. This bit can be set by soft[...]

  • Página 53

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 47 (This specificatio n is subject to change without f urther notice) 6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD) When the AD conversion is completed, the result is load ed to the ADDA T A, ADDA T A1H and ADDA T A1L registers. The A[...]

  • Página 54

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 48 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 3. ADWE bit of the RE register is set to “1.” Wake-up from ADC conversion (where it remains in operation during sleep mode). 4. Wake-up and executes the next instruction if ADIE bit o[...]

  • Página 55

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 49 (This specificatio n is subject to change without f urther notice) NOTE In order to obtain accurat e values, it is necessary to av oid any data tr ansition on th e I/O pins dur ing AD conversion . 6.7. 6.2 S ample Dem o Pr ogram s A. Define a Ge n[...]

  • Página 56

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 50 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) RETI INITIAL: MOV A,@0B00000001 ; To define P50 as an analog input MOV AISR,A MOV A,@0B00001000 ; To select P50 as an analog input channel, and AD power on MOV ADCON,A ; To define P50 as [...]

  • Página 57

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 51 (This specificatio n is subject to change without f urther notice) 6.8 Infrared Remote Contr ol Application/PWM W aveform Generation 6.8.1 Overview This LSI can easily output infrared carr i er or PWM standard waveform. As illustrated below , the [...]

  • Página 58

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 52 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) When an interrupt is generated by the High time down coun ter und erflow (if enabled), the next instruction will be fetched from Address 0 18 and 01BH (High time and Low time, respe ct iv[...]

  • Página 59

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 53 (This specificatio n is subject to change without f urther notice) The following figure shows LGP=0 an d HF= 1 . The IR OUT waveform modu lates the Fcarrier waveform at low time segments of the pu lse. When IRE goes low from high, the output wavef[...]

  • Página 60

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 54 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) The following figure show s LGP=1 and HF=1 . When this bit is set to high level, t he high time segment of the pulse is ignored. So , IROUT waveform output is determined by low time w idt[...]

  • Página 61

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 55 (This specificatio n is subject to change without f urther notice)[...]

  • Página 62

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 56 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.9 Timer/Counter 6.9.1 Overview Timer A (TCCA) is an 8-bit clock counter. Timer B (TCCB) is a 16-bit clock counter. Timer C (TCCC) is an 8-bit clock counter that can be extended to 16-bi[...]

  • Página 63

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 57 (This specificatio n is subject to change without f urther notice) Under TCCBH / MSB Counter (IOC71): TCCBH /MSB (I OC71) is an 8-bi t cl ock count er is for the most si gnifi cant byte of TCCBX (TCCBH). It can be read, written to, and cleared on [...]

  • Página 64

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 58 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.9.3 Programming the Related Registers When defining TCCX, refer to it s related registers operation as shown in the tables below . TCCX Related Control Registers : Address Name Bit 7 Bi[...]

  • Página 65

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 59 (This specificatio n is subject to change without f urther notice) 6.10.1 External Reference Signal The analog signal that is presented at Cin– compares to the signal at Cin+. The digital output (CO) of the comparator is adjusted accordingly by [...]

  • Página 66

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 60 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.10.3 Using a Comparator as an Operation Amplifier The comparator can be us ed as an operation amplifier if a feedback resistor is externally connected from the input to the output. In t[...]

  • Página 67

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 61 (This specificatio n is subject to change without f urther notice) 6.11 Oscillator 6.11.1 Oscillator Modes The EM78P259N/260N can be operated in four different oscillator modes, such as High Crystal oscilla tor mode (HXT), Low Crys tal o scillator[...]

  • Página 68

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 62 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.11.2 Crystal Oscillator/Ceramic Resonators (Crystal) The EM 78P2 59N/ 260N c an be dri ven by an ext ern al cl ock s ignal t hro ugh the O SCI pin as illustrated below . OSCI OSCO EM 78[...]

  • Página 69

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 63 (This specificatio n is subject to change without f urther notice) Circuit diagrams for serial and parallel modes Crysta l/Resonator : OSCI EM 78P259N EM 78P260N C 7404 330 330 Crysta l 7404 7404 Fig. 6-1 8 Serial Mode Cryst al/Resonat or Circuit [...]

  • Página 70

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 64 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Based on the above reasons, it must be kept in mind that all supply voltage, the operation temperature, the components of the RC oscillator , the package types, and the way the PCB is lay[...]

  • Página 71

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 65 (This specificatio n is subject to change without f urther notice) 6.12 Pow er- on Considerations Any microcontroller is not warranted to sta rt operating properly before the power supply stabilizes in its steady state. The EM78P2 59N/260N POR vol[...]

  • Página 72

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 66 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 6.12.3 Residual Voltage Protection When the battery is replaced, device power (Vdd) is remo ve d but the residual voltage remains. The residual volt age may trip below Vdd minimum, but no[...]

  • Página 73

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 67 (This specificatio n is subject to change without f urther notice) 6.13 Code Option EM78P259N/260N has two Code option words and one Customer ID word that are not part of the normal pr ogram memory . Word 0 Word1 Word 2 Bit12 ~ Bit0 Bit12 ~ Bit0 B[...]

  • Página 74

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 68 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Bit 3 (HLP): Pow er consumption selection 0 = Low power consumption, applies to working frequency at or bel ow 4MH z 1 = High power consumption, app li es to working frequency above 4MH z[...]

  • Página 75

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 69 (This specificatio n is subject to change without f urther notice) Bit 7 (WDTPS) : WDT Time -out Period Selection bit WDT Time Watchdo g Tim e * 1 18 ms 0 4.5 ms * These are theoretical values provided for reference onl y Bit 6 (CYES): Instruction[...]

  • Página 76

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 70 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) Convention: R = Register design ator that specifies which on e of the registers (including operation and general purpose registers) is to be utilized b y the instruction. b = Bit field de[...]

  • Página 77

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 71 (This specificatio n is subject to change without f urther notice) Instruction B inary HEX Mnemonic Operation Statu s Affec ted 0 0101 01rr rrrr 05rr INC R R+1 → R Z 0 0101 10rr rrrr 05rr DJZA R R-1 → A , ski p if z ero None 0 0101 11rr rrrr 0[...]

  • Página 78

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 72 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 8 DC Electrical Characteristics T a=25 ° C, V DD=5. 0V ± 5%, VSS=0V Symbol Param eter Condition Min Typ Ma x Unit Crystal: VDD t o 5V DC 20 MHz Crys tal: VD D to 3 V Two cy cles with tw[...]

  • Página 79

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 73 (This specificatio n is subject to change without f urther notice) Symbol Param eter Condition Min Typ Ma x Unit ICC1 Operating s upply current at two clocks (VDD to 3V) /RESET= 'High', Fosc=32kHz (Crystal ty pe,CLKS="0"), outp[...]

  • Página 80

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 74 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) 8.1 AD Conv erter Characteristics Vdd= 2.5V t o 5.5V , Vss =0V, T a=25 ° C Symbol Parameter Condition Min. Typ. Max. Unit V AREF 2.5 – Vdd V V ASS Analog referenc e voltage V AREF - V [...]

  • Página 81

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 75 (This specificatio n is subject to change without f urther notice) 8.2 Comparator (OP) Characteristics Vdd = 5.0V , Vss=0V , T a=25 ° C Symbol Parameter C ondition Min. Typ. Max. Unit SR Slew rat e - 0.1 0.2 - V/us Vos Input offset voltage - - - [...]

  • Página 82

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 76 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) I RC OS C Fr eque nc y ( V D D = 5 V ) 0 1 2 3 4 5 6 7 8 9 10 - 4 0 - 2 0 0 2 55 07 08 5 T em p er at u r e ( ℃ ) Fr e que ncy ( M H z) Fig. 8-2 Intern al RC OSC Frequency vs. T emperat[...]

  • Página 83

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 77 (This specificatio n is subject to change without f urther notice) 10 Timing Diagrams RESET Timing ( CLK="0") CLK /RESET NOP Instruction 1 Executed Tdrh TCC Input Timing (CLKS="0") CLK TCC Ttcc Tins A C Test ing : Input is driv[...]

  • Página 84

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 78 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) APPENDIX A Package Type OTP MCU Package Type Pin Count Package S ize EM78P259NPS/NPJ DIP 18 300mil EM78P259NMS/NMJ SOP 18 300mil EM78P260NPS/NPJ DIP 20 300mil EM78P260NMS/NMJ SOP 20 300mi[...]

  • Página 85

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 79 (This specificatio n is subject to change without f urther notice) B.2 18-Lead Plastic Small Outline (SOP) — 300 mil TITLE: SOP-18L(300MIL ) PACKAGE OUTLI NE DIMEN SION Unit : mm Scale: Free Materia l: Edtion: A Sheet:1 of 1 be Min No rmal Max 2[...]

  • Página 86

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 80 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) B.3 20-Lead Plastic Shrink Small Outline (SSOP) — 209 mil TITLE: SSOP-20L (209MI L) OU TLIN E PACKAGE PACKA OUTLI NE DIMENSI ON Unit : mm Scale: Free File : SSOP20 Material: Edtion: A S[...]

  • Página 87

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 81 (This specificatio n is subject to change without f urther notice) B.4 20-Lead Plastic Dual-in-line (PDIP) — 300 mil TITL E: PDIP-20L 300MIL PACKAGE OUTLI NE DIMENSION Unit : mm Scale: Free File : D20 Material: Edtion: A Sheet:1 of 1 Min N or ma[...]

  • Página 88

    EM78P259N/260N 8-Bit Microprocessor with OTP ROM 82 • Product Specification (V1.2 ) 05.18.2007 (This specification is sub ject to change without further notice) B.5 20-Lead Plastic Small Outline (SOP) — 300 mil TITLE: SOP-20L(300MIL ) PACKAGE OUTLI NE DIMENSI ON Unit : m m Scale: Free File : SO20 Material: Edtion: A Sheet:1 of 1 be Sym bal A A1[...]

  • Página 89

    EM78P259N/260N 8-Bi t Micr oproce ssor w ith OTP RO M Product Specificat ion (V1.2) 05.1 8.2007 • 83 (This specificatio n is subject to change without f urther notice) C Quality Assurance and Reliability Test Category Test Conditions Remarks Solderabilit y Solder temperature= 245 ± 5 ° C, for 5 seconds up to the stopper using a rosin-t ype flux[...]