IBM EM78P809N 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

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of IBM EM78P809N, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of IBM EM78P809N one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of IBM EM78P809N. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of IBM EM78P809N should contain:
- informations concerning technical data of IBM EM78P809N
- name of the manufacturer and a year of construction of the IBM EM78P809N item
- rules of operation, control and maintenance of the IBM EM78P809N item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of IBM EM78P809N alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of IBM EM78P809N, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the IBM service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of IBM EM78P809N.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the IBM EM78P809N item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    E M78 P809N 8-B IT Microcont roller Product Specification D OC . V ERSION 1.0 ELAN MCCROELECTRONICS CORP. July 2005[...]

  • Page 2

    T radem ark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM. W indows is a tra demark of Microsoft Corpora tion. ELAN and ELAN logo are trademarks of EL AN Micr oelectronics Corporat ion. Copy rig ht © 2005 by ELAN Microe lectronics Corporation All Rights Reserved Pr i nte d in T aiwan The contents of this speci ficat[...]

  • Page 3

    Contents Product Specif icatio n (V1. 0) 07.26.20 05 • iii Contents 1 General Descripti on ······· ····· ··· ·· ··· ··· ··· ····· ··· ··· ·· ··· ··· ····· ··· ··· ·· ··· ··· ····· ··· ··· ·· ··· ··· ····· ··· 1 2 Features ······ ········· ·?[...]

  • Page 4

    Contents iv • Produ ct Specification (V1.0) 07.26.2005 5 Absolute Maximum Rating s ···· ··· ··· ··· ·· ··· ········ ······ ·· ··· ··· ··· ·· ······ ··· ·· ··· ··· ·· ········· ··· 63 5.1 Absolute Maximum Ra tings ······· ········· ········ ····[...]

  • Page 5

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 1 (This specification is subject to change without further notice) 1 Gene ral Description The EM 78P80 9N is an 8 -bit mi crop roces sor with l ow-p ower, high-s peed CMOS techno log y and hi gh noise immunity . It has a built- in 8K×1 3-b its Ele ctric al On[...]

  • Page 6

    EM78P809N 8-Bit Microcontroller 2 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice)  16 bits Counte r/Timer z TC2: Timer /Count er /W indow  8 bits Timer/Counter z TCC: 8 -bit real time cloc k/counter with overflow i nterrupt z TC3: Timer /Co unter /Capt ure z TC4: Ti mer/Co unter / [...]

  • Page 7

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 3 (This specification is subject to change without further notice) 3 Pi n A s signme nt 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 (ACL K) OSCO OSCI TES T (AD0) P90 (AD1) P91 (AD2) P92 (AD3) P93 (AD4) P94 (AD5) P95 (AD6) P96 (AD[...]

  • Page 8

    EM78P809N 8-Bit Microcontroller 4 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) Symbol Pin No. Type Function P80~P81 12~ 13 I/O * P80~P83 are bi-di rectional I/ O pins * P80 can be used as 8-bit Timer/ Counter 3 (TC3) or extern al Interrupt Inp ut 3 (IN T 3) * P81 can be used as 8-bi t[...]

  • Page 9

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 5 (This specification is subject to change without further notice) 4 Func tio n Descr ipt ion 4.1 Functional Block Diagra m Oscillator Timing Control WDT timer TCC Presca ler Control Slee p and Wake-up I/O Port DA TA and CONTROL BUS General R AM R4 R1 (TCC) In[...]

  • Page 10

    EM78P809N 8-Bit Microcontroller 6 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) 4.2 Oper ating Registers 05 06 07 08 09 0A 0B 0C 0D 0E 0F 04 03 02 01 10 : 1F 20 : 3F R3 (7,6)= (0 ,1) Addr ess REGIS TER BANK 0 00 R0/ IA R R1/ TCC R2/ PC R3/ SR R4/ RS R SCR PORT 6 PORT 7 PORT 8 PORT 9 Re[...]

  • Page 11

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 7 (This specification is subject to change without further notice) R0/IAR − Indir ect Addressing R egister ( Address: 00 h ) R0 is not a phys ically i mplemen ted re gister. Its m ajor func tion is to ac t as an in direct addre ssing po inter . Any instru ct[...]

  • Page 12

    EM78P809N 8-Bit Microcontroller 8 • Produ ct Specification (V1.0) 07.26.2005 (This specification is subject to change without further notice) A1 1 A1 0 A9 A8 A7 ~ A0 R5 CALL RET RETL RETI 000 : PA GE0 00 00~0 3FF 001 : PA GE1 04 00~0 7FF 010 : PA GE2 0800~0 BFF PC STA CK LEVEL 1 STA CK LEVEL 2 STA CK LEVEL 3 STA CK LEVEL 4 STA CK LEVEL 5 Rese t V[...]

  • Page 13

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 9 (This specification is subject to change without further notice) Bit 3 (P) : Pow er down b it. Set to “1” d urin g pow er on or by a "W DTC" co mmand and r eset to “0” by a "SLEP" co mmand. Bit 2 (Z) : Zero fl ag. Se t to "1&[...]

  • Page 14

    EM78P809N 8-Bit Microcontroller 10 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) PS2 PS1 PS0 Program M em ory Page [Add ress] 0 0 0 Page 0 [0000~ 03FF] 0 0 1 Page 1 [0400~ 07FF] 0 1 0 Page 2 [0800~0BFF] 0 1 1 Page 3 [0C00~0FF F] 1 0 0 Page 4 [1000~ 13FF] 1 0 1 Page 5 [1400~ 17FF] 1 1[...]

  • Page 15

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 11 (This specification is subject to change without further notice) POR T9 − Port 9 I/O Data Registe r ( Address: 09 h ) Bit 7 Bit 6 Bit 5 Bi t 4 Bit 3 Bit 2 Bit 1 Bit 0 P97 P96 P95 P94 P93 P92 P91 P90 Bit 7 ~ Bit 0 ( P9 7 ~ P90 ) : 8-bit Por t 97 ~ Po rt 9 [...]

  • Page 16

    EM78P809N 8-Bit Microcontroller 12 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) TC4D − Timer 4 D at a Buff er ( Addr ess: 0 Ch ) Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bi t 1 Bit 0 T C4D 7 T C4D 6 T C 4D5 TC 4D 4 T C4D 3 T C4D 2 TC4D 1 T C4D 0 Bit 7 ~ Bit 0 ( TC4 D7 ~ TC4D0 ) : Data[...]

  • Page 17

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 13 (This specification is subject to change without further notice) ISFR2 − Inte rrupt Status Flag Register 2 ( A ddress: 0Fh ) Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bi t 1 Bit 0 0 U ERRIF RBFF TBEF TBIF EXIF1 0 TCIF0 Bit 6 ( UERRIF ) : UART Recei ving E rror[...]

  • Page 18

    EM78P809N 8-Bit Microcontroller 14 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 5 ~ B it 4 ( TC3CK1 ~ TC3CK 0 ) : Timer/C ounter3 Clock Source Sel ect TC3CK1 TC3CK0 Clock source ( Norma l, Idl e ) Resolution ( Fc=8 M ) Max . t ime ( Fc=8 M ) 0 0 Fc/ 2 12 512 μ S 131.1mS 0 1 Fc/[...]

  • Page 19

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 15 (This specification is subject to change without further notice) Bit 2 ~ B it 0 ( TC2CK2 ~ TC2CK 0 ) : Timer/Cou nter 2 Clock Sour ce Select TC2CK2 TC2CK 1 TC2CK 0 Clock Sour ce ( Norma l, Idl e ) Resolution ( Fc=8 M ) Max. Ti me ( Fc=8M ) 0 0 0 F c / 2 23 [...]

  • Page 20

    EM78P809N 8-Bit Microcontroller 16 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 5~ Bit 4 ( ADCK1 ~ AD CK0 ) : AD C onvers ion Time Select ADCK 1 ADCK0 Clock Source ( Normal , Idle ) M ax. Op er at i ng Frequenc y (F c) 0 0 Fc/ 4 1MH z 0 1 F c/16 4MHz 1 0 F c/32 8MHz 1 1 Reserved[...]

  • Page 21

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 17 (This specification is subject to change without further notice) TBKTC − TBT/Keytone Control ( A ddress: 0Eh ) Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 TEN TCK1 TCK0 0 TBTEN TBTCK2 TBTCK1 TBTCK0 Bi t 7 ( TEN ) : Keytone ena ble co ntro l TEN = “[...]

  • Page 22

    EM78P809N 8-Bit Microcontroller 18 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 6 ~ Bit 5 ( UMODE1 ~ UMO DE0 ) : UART T ransmission Mode Select Bit UM ODE1 UMODE0 UART M ode 0 0 Mode1: 7-bits 0 1 Mode2: 8-bits 1 0 Mode3: 9-bits 1 1 Reserved Bi t 4 ~ Bit 2 ( BRATE 2 ~ BRA TE 1 ) [...]

  • Page 23

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 19 (This specification is subject to change without further notice) URS − UART Stat u s Regi ster ( Addre ss: 07h ) Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bi t 2 Bit 1 Bit 0 URRD8 EVEN PRE PRERR OVERR FMERR URBF RXE Bi t 7 ( URRD 8 ) : Receivin g data bit 8 Bi t 6 ([...]

  • Page 24

    EM78P809N 8-Bit Microcontroller 20 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) URTD − UART T r ansmi t Dat a Buf f er ( Add r ess: 09h ) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 URTD 7 URTD 6 URTD 5 URTD 4 URTD 3 URTD 2 URTD 1 URTD0 Bit 7 ~ Bit 0 ( UR TD 7 ~ UR TD 0) : UAR[...]

  • Page 25

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 21 (This specification is subject to change without further notice) Bit 0 ( WBE ) : Write buffer empty fl ag. Read only. WBE = “0” : W rite buffe r empt y WBE = “1” : Not empty , set to “1” au tomatically when writi ng data to t he data buffe r. SP[...]

  • Page 26

    EM78P809N 8-Bit Microcontroller 22 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 3 ~ 0 ( / PHE63 ~ / PHE6 0 ) : bit 3 ~ 0 of Port 6 Pull high en able b it /PHE6 x = “0” : Enable P6x pull high /PHE6 x = “1” : Disable P6x pull high PLC1 ( Pu ll Low Co ntrol Regis ter 1 ( Ad[...]

  • Page 27

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 23 (This specification is subject to change without further notice) 4.3 S peci al Pur pose Register s A (A ccumulator )  Inte rnal d ata tra nsfer , or in struct ion oper and holdin g.  It c annot be a ddressed . CONT ( Cont ro l Re giste r) Bit 7 Bit 6 [...]

  • Page 28

    EM78P809N 8-Bit Microcontroller 24 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) IOC6 ~ IOC9 − I/O Po rt Cont rol R eg ister  "1" puts the re lative I/O pi n int o high impe dance, while "0" d efines th e rela tive I/O pin as output.  I OC6 an d IOC9 regis[...]

  • Page 29

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 25 (This specification is subject to change without further notice) Exte rna l Inte rru pt INT Pin S ec ond ar y Function Pin Enable Condition Edge Digital Noise Reject /INT0 P60 EN I + INT0 EN (IOCB) Falling - INT1 P61 ENI + EXIE1 (IMR2) Risi ng o r Falling 1[...]

  • Page 30

    EM78P809N 8-Bit Microcontroller 26 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bit 3 ( EXIE3 ) : External INT3 pin I nterrupt ena ble bit. EXIE3 = “0” : di sable EX IF3 inte rrupt EXIE3 = “1” : en able E XIF3 inte rrupt Bit 2 ( TCIE4 ) : Tim er/Counter 4 Interrupt e nable b[...]

  • Page 31

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 27 (This specification is subject to change without further notice) Bit 3 ( TBIE ) : Time base timer inte rrupt enable bit. TBIE = “0” : disa ble TBIF inter rupt TBIE = “1” : ena ble TB IF int errupt Bit 2 ( EXIE1 ) : Externa l I NT 1 Int errupt ena bl[...]

  • Page 32

    EM78P809N 8-Bit Microcontroller 28 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Tabl e 2. Mode Switchi ng Control Mode Sw itch S witch Me thod Not e Normal Æ Sleep Set SIS = 1, e xecute SLEP instruction Sleep Æ Normal /SLEEP pin wake up Normal Æ Idle Set SIS = 0, execute SLEP ins[...]

  • Page 33

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 29 (This specification is subject to change without further notice) Wake-up Signal SLEEP Mode R5 (SIS) = 1+SLEP Instruc tion IDLE Mode R5 (SIS)= 0 + SLEP Instr uction NORMAL Mode R5 ( SIS)=(*) 1. Indi vidual i nterrupt so urce in IMR1 , IMR2 2. W DT int errupt[...]

  • Page 34

    EM78P809N 8-Bit Microcontroller 30 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 8 to 1 Ana lo g swit c h ADC (Successiv e A ppro ximat ion) A D7 (P 97) A D6 (P 96) A D5 (P 95) A D4 (P 94) A D3 (P 93) A D2 (P 92) A D1 (P 91) A D0 (P 90) 7 - 0 210 4 to 1 MUX 5 4 Fosc/4 Fosc/16 Fosc/32[...]

  • Page 35

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 31 (This specification is subject to change without further notice) Tabl e 5 ADCK 1: 0 Op er at io n M o de Max. Frequenc y (Fc) Max. Conv ersion Rate per Bi t Ma x. C onv er si on Rate 0 0 Fc/4 1MHz 250kHz (4 μ s) 48us (20.8k Hz) 0 1 Fc/16 4MHz 250kHz (4 μ [...]

  • Page 36

    EM78P809N 8-Bit Microcontroller 32 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) P63 TEN TONE Pin Fig. 8. TON E Output Pin Timing C hart MUX Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 Fosc/2 23 21 16 14 13 12 11 9 TBKTC TBTCK2:0 3 Fall ing Edg e Detector TBT Inte rrupt TBTEN Fi[...]

  • Page 37

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 33 (This specification is subject to change without further notice) 4.7 UART (Un iversal Asynchronous Receiver/T ransmitter) Registe rs for UART Circuit R_ BA NK Address NAM E Bit 7 Bi t 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 BANK 2 0X 05 URC1 URTD8 UMODE1 UMO[...]

  • Page 38

    EM78P809N 8-Bit Microcontroller 34 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) In U nivers al Asy nchron ous Rece iver Tr ansmi tter (UART ), e ach transmi tted or re ceived cha racter is indiv idually sy nchronize d by framing it with a start bit and s top bit. Full duplex d ata t[...]

  • Page 39

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 35 (This specification is subject to change without further notice) 4.7.2 Tran smitting : In transmittin g serial data, the UART operates as follows: 1. Set the TXE bit of t he UR C1 regi ster to enable the UART tra nsmis sion fu ncti on. 2. Wr ite data i nto [...]

  • Page 40

    EM78P809N 8-Bit Microcontroller 36 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.7.4 Baud Rate Generator: The bau d rate gen erator is compri sed of a cir cuit that generat es a clock pu lse to dete rmine the transfer speed for transmission/rece ption in the UART. The BRATE2 ~BRATE[...]

  • Page 41

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 37 (This specification is subject to change without further notice) The ser ial int erface are c onnected to external d evices vi a P70 (/SCK), P7 1 (SI), P7 2 (SO) . The s eria l inter face can also be us ed as I/O por t. In the tra nsm it mode, P71 can be us[...]

  • Page 42

    EM78P809N 8-Bit Microcontroller 38 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) (b) 8-bit Rece ive Mod e: Settin g SPIM0 ~ SPIM1 to receive m ode and setting SPIS to “1” to start receivi ng. The data are inpu t sequ entially from t he SI pin i n sy nch ronous wi th the serial cl[...]

  • Page 43

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 39 (This specification is subject to change without further notice) SPI S RB F WBE SPI F re a d d a ta s h i f t s ta rt s h i f t s ta rt /S C K p i n SI p i n c0 c1 c2 c3 c4 c5 c 6 c7 a SPI D d0 d1 d2 d3 d4 d5 d6 d7 r ead d at a d s h ift fin is h SO p i n a[...]

  • Page 44

    EM78P809N 8-Bit Microcontroller 40 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.9 T ime r/C ou n ter 2 Regi sters f or Tim er/ Counte r 2 Cir cuit R_BANK Address NA ME Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 BANK 1 0X08 TC2CR ADD1 AD D0 0 TC 2M TC 2S TC 2C K2 TC 2C K1 TC 2[...]

  • Page 45

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 41 (This specification is subject to change without further notice) 4.9.1 Tim er Mode: In Tim er mode, c ounting up is perfor med using th e inte rnal clock . When t he contents of the up-cou nter mat ched w ith t he TCR2 ( TCR2 H+TCR 2L) , then int errupt is [...]

  • Page 46

    EM78P809N 8-Bit Microcontroller 42 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 01 2 n - 3 n- 1 n 1 23 In t e rn a l c lo c k U p- cou nt er n- 2 T C2 pi n TC 2 i nte r r u pt 0 n ma t ch count e r c l ear TC R 2 Fig. 22 . Window Mode Ti ming Chart 4.10 T imer /Counter 3 Regist ers [...]

  • Page 47

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 43 (This specification is subject to change without further notice) 8-bit Up-coun ter Comparator TCR3 B TC3 CR MUX INT3ES TC3 pi n TC2 CK TC3S 2 TC3 Interrupt TCR3A fc/ 2 12 fc/ 2 10 fc/ 2 7 Edge Detector Capture Control TC3 M Capture Capture CAP Inhibi t Risi[...]

  • Page 48

    EM78P809N 8-Bit Microcontroller 44 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) cleare d and in terru pt is ge nerate d agai n. If an ove rflow before th e edge is dete cted, the FF H is l oaded into TCR3 DA and an ov erflow int errup t is ge nera ted. Dur ing interr upt pro ce ssin[...]

  • Page 49

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 45 (This specification is subject to change without further notice) 8-bit Up-counter Comparator TCR4 TC4CR MUX TC4 pin TC4 CK TC4S 3 TC4 Interrupt fc/2 11 fc/2 7 fc/2 3 Clear TC4M (1,1) TC4M(1,*) TC4FF Toggle Set Clear /PWM, /PDO Pin Over flow Match F/F Q Fig.[...]

  • Page 50

    EM78P809N 8-Bit Microcontroller 46 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 4.11.4 P WM Mode In Pulse W idth Modulatio n (PW M) Out put mode, cou nting up is perfor med us ing the intern al clock . The co ntent s of the TCR4 are compa red w ith the cont ent s of the up-co unter [...]

  • Page 51

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 47 (This specification is subject to change without further notice) 4.13 I/O Port s The I/O regist ers, Port 6 , Port 7 , Port 8, and Por t 9 are b i-dire ctional tri-sta te I/O port s. Each I /O pin ca n be defin ed as “input ” or “output” pin by th e[...]

  • Page 52

    EM78P809N 8-Bit Microcontroller 48 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice)  The W atchdog t imer an d pres caler are cle ared.  Upon powe r on, the uppe r 2 bits of R3 ar e clear ed.  Upon powe r on, the uppe r 2 bits of R4 ar e clear ed.  Upon powe r on, the uppe r[...]

  • Page 53

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 49 (This specification is subject to change without further notice) Tabl e 6. Summary of the Initia lized Valu es for Registe rs Address Name Reset T ype Bit 7 Bi t 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bi t 1 Bit 0 Bit Nam e C6 7 C66 C65 C64 C63 C62 C61 C60 Power-On 1 1[...]

  • Page 54

    EM78P809N 8-Bit Microcontroller 50 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Regis ter Bank 0 Address Name Re set T ype Bit 7 Bit 6 Bit 5 Bi t 4 Bi t 3 Bit 2 Bi t 1 Bit 0 Bit Name X PS2 PS1 PS0 X X SIS REM Power-On U 0 0 0 U U 0 0 /RESET and WDT time out U 0 0 0 U U 0 0 0x05 SCR [...]

  • Page 55

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 51 (This specification is subject to change without further notice) Regis ter Bank 1 Address Name Reset Ty pe Bit 7 Bit 6 Bi t 5 Bi t 4 Bit 3 Bit 2 Bi t 1 Bi t 0 Bit Name TC3 CAP TC3 S TC3 CK 1 TC3 CK0 TC3M X X X Power-On 0 0 0 0 0 U U U /RESET and WDT time ou[...]

  • Page 56

    EM78P809N 8-Bit Microcontroller 52 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Regis ter Bank 2 Address Name Reset Ty pe Bit 7 Bi t 6 Bit 5 Bi t 4 Bi t 3 Bi t 2 Bit 1 Bit 0 Bit Name URTD8 UMODE 1 UMOD E0 BRAT E2 BRA TE1 BR ATE0 UTBE TXE Power- On U 0 0 0 0 0 0 0 /RESET and W DT tim[...]

  • Page 57

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 53 (This specification is subject to change without further notice) Gene ral Purp ose Regi sters Address Name Reset Type Bit 7 Bit 6 Bi t 5 Bit 4 Bit 3 Bit 2 Bi t 1 Bit 0 Bit Nam e - - - - - - - - Po wer-On U U U U U U U U /RESET and W DT time out P P P P P P [...]

  • Page 58

    EM78P809N 8-Bit Microcontroller 54 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Voltage Detector Power-on Reset WDTE Setup Time VDD DQ CLK CLR CLK RESET WDT Time out WDT /RESET Oscillator Fig. 29 .Control ler Reset B lock Dia gram 4.15 Inter rupt The EM78P809N has 15 inte rrupts ( 9[...]

  • Page 59

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 55 (This specification is subject to change without further notice) W hen one of the i nterr upts (enab led) oc curs, the n ext instruct ion w ill be fetc hed f rom indi vidual address . The inter rupt fl ag bit must be cleared by instruc tions befo re leavin [...]

  • Page 60

    EM78P809N 8-Bit Microcontroller 56 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) OSCI OSCO EM 78P809N Ex t. Clock Fig. 30. C rystal /Resonat or Cir cuit C1 C2 XTAL RS OSCI OSCO EM 78P809N Fig. 31. C rystal /Resonat or Cir cuit Tabl e12. C apacit or S electio n Guid e f or Cry stal Os[...]

  • Page 61

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07 . 2 6 .2 0 05 • 57 (This specification is subject to change without further notice) 740 4 4.7 K 10 K XTA L 740 4 C1 Vdd 10 K C2 OSCI EM78P809N Fig. 3 3. Cr ystal/Re sonat or-Paralle l Mo de Cir cuit 4.16.3 External RC Oscill ato r Mode For app licat ions that do not ne ed ver[...]

  • Page 62

    EM78P809N 8-Bit Microcontroller 58 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) T able13. RC Oscill ator Frequ encies Cext Re xt Aver age Fosc 5V, 25 ° C Av erage Fosc 3 V, 25 ° C 3.3k 4.32 MHz 3.5 6 MHz 5.1k 2.83 M Hz 2.8 MHz 10k 1.62 MHz 1.57 MHz 20 pF 100k 184kHz 187kHz 3.3k 1.[...]

  • Page 63

    EM7 8P 80 9N 8-Bit Microcontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 59 (This specification is subject to change without further notice) Bit 6 ( CYES) : Cycle selecti on for J MP, CALL instruc tion C YES = “0 ” : One cycl e CYES = “1” : Two cycl es Bit 4 (OSC ) : O scillat or t ype s elect ion. OSC = “ 0” : RC type O[...]

  • Page 64

    EM78P809N 8-Bit Microcontroller 60 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) curr ent lea kage fr om th e /RES ET pin i s about ± 5 μ A, it is reco mmend ed that R should not be gr eater tha n 40K. In this wa y, the / RESET pin volta ge is he ld bel ow 0.2V. The diode ( D) acts[...]

  • Page 65

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 61 (This specification is subject to change without further notice) Q1 R2 R1 40K /RESET EM 78P809N Vdd Vdd Fig 37. Resi du e Voltage Pr otecti on Ci r c uit 2 4.19 Inst ruction Set Each in structi on in the ins truct ion set is a 13- bit word d ivide d into an[...]

  • Page 66

    EM78P809N 8-Bit Microcontroller 62 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) Bina ry Instructio n Hex Mnemonic Operation Statu s Affect ed 0 0 000 0000 0000 0000 NOP No O peration None 0 0 000 0000 0001 0001 DAA Decimal Adjust A C 0 0000 0000 0010 0002 CONTW A → CONT None 0 000[...]

  • Page 67

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 63 (This specification is subject to change without further notice) Bina ry Instructio n Hex Mnemonic Operation Statu s Affect ed 1 1 000 kkkk kkkk 18kk MOV A, k k → A None 1 1 001 kkk k kkkk 19kk OR A, k A v k → A Z 1 1 010 kkk k kkkk 1Akk A ND A, k A &am[...]

  • Page 68

    EM78P809N 8-Bit Microcontroller 64 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 6 Electrica l Char acteristics 6.1 DC Electri cal Characterist ics (Ta= 25 ° C, V D D= 5 .0 V ± 5%, VSS= 0V) Sy mbol Pa rameter Condition Min. Ty p. Max. Un it Fc XTAL : 4.5 V to VDD Two cycle s with t[...]

  • Page 69

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 65 (This specification is subject to change without further notice) (Ta= 25 ° C, V D D= 3 .0 V ± 5%, VSS= 0V) Symbol Parameter Condition Min. Typ. Max. Unit Fc XTA L: 2 .5V to V DD Two cycle a wi th t wo clo cks 1 4 MHz ERC ERC: VDD = 3V R : 5.1K Ω , C: 100[...]

  • Page 70

    EM78P809N 8-Bit Microcontroller 66 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) A/D Con verte r Char acter ist ic (V DD =2.5V to 5.5V , Vss=0V, Ta = -40 to 85 ℃ ) Sy mbo l Parameter Condit ion Min. Typ . Max . Un it VAREF 2.5 V DD V VASS Analog reference voltage VAREF - VASS ≧ 2[...]

  • Page 71

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 67 (This specification is subject to change without further notice) 6.2 AC Electri cal Characterist ic (Ta=- 40 ° C ~ 85 ° C, V DD= 5 V ± 5%, VSS=0V) Symbol Paramete r Conditio ns Min Ty p Max Uni t Dclk Input CLK duty cyc le 45 50 55 % Crystal type (hig h [...]

  • Page 72

    EM78P809N 8-Bit Microcontroller 68 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) 6.3 Timing Diagram RE SET Timing ( CLK="0") CLK / RESET NOP Instruct ion 1 Executed Tdr h TCC Input Ti m ing ( C LKS ="0" ) CLK TCC Tt cc Ti ns AC Test ing : I nput is dri v en at 2. [...]

  • Page 73

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 69 (This specification is subject to change without further notice) A PPEND IX Package T ypes: OTP MCU Pac kage T ype Pi n Cou nt Package Size EM78P809NP DIP 28 600 mil EM78P809NM SOP 28 300 mil EM78P809NS SSOP 28 209 mi l[...]

  • Page 74

    EM78P809N 8-Bit Microcontroller 70 • Pr oduct Specific ation (V1.0) 07.26.20 05 (This specification is subject to change without further notice) CONTENTS ..... ......... ........ ..... ........ ......... ........ ........ ........ ........ ......... ........ ........ ........ III 1 General Descripti on ······· ····· ··· ·· ···[...]

  • Page 75

    EM7 8P 80 9N 8-Bit Mi crocontroller Product Specif icatio n ( V 1. 0) 07. 2 6 .2 0 05 • 71 (This specification is subject to change without further notice) APPENDIX ······ ········ ········ ········ ········ ········· ····· ········ ········ ········· ········ ·[...]