ETC W79E8213

W79E8213
8
-
1
2
3
3.1
4
5
6
6.1
6.2
6.3
6.4
6.5
.......................................................................................................................................... 4
.......................................................................................................................................... 4
............................................................................................................................ 5
(ROHS) ............................................................................................... 5
!#" ................................................................................................................................... 6
#$ ................................................................................................................................... 7
%&$ ................................................................................................................................... 8
')( FLASH EPROM .............................................................................................................. 8
I/O *,+ ................................................................................................................................. 8
-/.10 ................................................................................................................................... 8
23 ...................................................................................................................................... 8
4567 ............................................................................................................................... 8
CPU 89 ............................................................................................................................... 8
6.6
6.6.1
6.6.2
ALU ............................................................................................................................... 8
(ACC) .................................................................................................................. 9
:<;=
6.6.3
B >@?= ........................................................................................................................ 9
ABCDEF>@?= (PSW) ................................................................................................ 9
6.6.4
GH#IKJ ........................................................................................................................ 9
6.6.5
LMNFO ........................................................................................................................ 9
6.6.6
PQ#RS ............................................................................................................................... 9
6.7
TVU#WX ................................................................................................................................. 10
7
YZ[(V\ ............................................................................................................................. 10
7.1
45\]0 .......................................................................................................................... 10
7.2
45\]0 (MOVX) ............................................................................................................ 10
7.3
^<\0_`1a ...................................................................................................................... 11
7.4
b)c>?= ................................................................................................................... 12
7.4.1
d#e1fg ...................................................................................................................... 13
7.4.2
LM ............................................................................................................................. 13
7.4.3
h#%/&iUj ...................................................................................................................... 14
8
kl ........................................................................................................................................ 39
9
6mn.1Z ............................................................................................................................. 47
9.1
oVp/q ................................................................................................................................. 50
10
10.1 rs1tu ............................................................................................................................. 50
-1-
Publication Release Date: 3. 31, 2008
Revision.SC1
W79E8213
v Ptu ............................................................................................................................. 50
)
wxyz ................................................................................................................................. 51
11
11.1 {<|}Q ............................................................................................................................. 51
11.1.1 ~)@€nd ...................................................................................................................... 51
11.1.2 ƒ‚„€nd (POR) ............................................................................................................ 51
11.1.3 …/†‡1ˆ‰=€d ........................................................................................................ 51
11.2 {<|Š‹ ............................................................................................................................. 51
Œ ........................................................................................................................................ 52
12
12.1 23<Q ................................................................................................................................. 52
12.2 23<Ž .......................................................................................................................... 53
12.3 23#‘’.“ ...................................................................................................................... 54
12.4 23<”• ............................................................................................................................. 55
–—˜™šj / ›œj .............................................................................................................. 57
13
13.1 -/.10 / 40 0&1 ............................................................................................................... 57
13.1.1 ‰žŸ ...................................................................................................................... 57
13.1.2 ¡¢ 0 .......................................................................................................................... 57
13.1.3 ¡¢ 1 ........................................................................................................................... 58
13.1.4 ¡¢ 2 ........................................................................................................................... 58
13.1.5 ¡¢ 3 .......................................................................................................................... 59
14
NVM œ£U¤j ..................................................................................................................... 61
¥§¦K¨ ™šj ......................................................................................................................... 62
15
15.1 ©§ª@«¬­ .......................................................................................................................... 63
15.2 ©§ª@«¬­F.1® ................................................................................................................... 63
š¯°²±³´ .......................................................................................................................... 64
16
µ¶·#¸nŒ< .......................................................................................................................... 66
17
18
I/O ¹ƒº»!" ........................................................................................................................... 68
18.1 ¼½[¾V*ƒ+„tu¿À ............................................................................................................ 68
18.2 ÁÂ*,+Ãtu¿#À ............................................................................................................... 69
18.3 ÄÅ*,+Ãtu¿#À ............................................................................................................... 69
18.4 ”•¿À ............................................................................................................................. 70
Æ#Çj .................................................................................................................................... 71
19
19.1 ')( RC ÈÉ<0ÊË .............................................................................................................. 71
19.2 ÌÍF.1®”•ÊË ............................................................................................................... 71
ÎÏ<jÐÑ ............................................................................................................................. 72
20
10.2
-2-
W79E8213
oVp#ÒÓ%/& .......................................................................................................................... 75
21.1 Ô§PÕÖ ............................................................................................................................. 75
21.2 ×ØÕÖ ............................................................................................................................. 75
Ù#ÚÛÜ (PWM)..................................................................................................................... 76
22
ÝÞ#œßà#áj ...................................................................................................................... 79
23
23.1 ADC _1âãäåtæ§PQ :.................................................................................................... 79
24
ICP ( ç§oK藘 ) FLASH —˜ ................................................................................................ 81
!"x .................................................................................................................................... 82
25
21
25.1
25.2
CONFIG0............................................................................................................................ 82
1 ................................................................................................................................. 84
27.1
27.2
20-PIN SOP-300MIL .............................................................................................................. 92
20-PIN PDIP......................................................................................................................... 93
¿ À
oé# ................................................................................................................................. 86
26
26.1 ênë1ì4 ............................................................................................................................. 86
26.2 DC Píî#ï ........................................................................................................................ 87
26.3 ADC ð#ñ DC P@íîï .......................................................................................................... 88
26.4 AC Píîï ........................................................................................................................ 90
26.5 ÌÍF.1®îï ...................................................................................................................... 90
26.6 AC òó ............................................................................................................................... 91
26.7 ô’õ[Pö ...................................................................................................................... 91
÷ø#ùú ................................................................................................................................. 92
27
ûü#ý#þ
........................................................................................................................................... 94
ÿ
8 uC!"$#%
!&'(*),+-. 2299/ 270
213 021-62365999
453 021-62365998
-3-
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
687
W79E8213 9:;<,=> 51 ?¬­0@2A,BCEDGF!9HJIY)_ (ICP) ’õYZ Flash EPROM @KCLDGM
õJNO0F!9JH2IYEP W79E8213 9n_K6m9JH,QJR!ST¼)_ 80526m9JH,UV . The W79E8213
,WB 4K XY,Z Flash EPROM; 128 XY RAM; 2< 16-|#-/.10 / 40 ; 4ö 10| PWM; 3<[,\J]^
23<”• ; 8ö 10| ADðñ0 . W79E8213 9 ,W_B 128 X
Y _ NVM 45 Flash EPROM. `,a 10<)23
I Yåcd@ W79E8213 9 §(Ín_ FLASH EPROMYZ[(V\,`,)
a PeI Yfg*P2;,<h Y
Q 4n2<3 . Vb
Z#
i -Jj1@ õkCEDml,no,pJqrsLP .
2 tvu
Rw ‹ 8| CMOSxJ> 51? ¬­0@ .®yz 20 MHZ.
CPU .1®QÊ,{ :
ÌÍÈ#É0 : CJ| 20MHz .K®å*K
} È (M!~ ¿#À| ).
')(ÃÈ#É0 : 20/10MHz ±2% € ( M!
~ ¿À| ), 1 -nPØåJ‚ ä .
I Y_ (ICP)’õYZ Flash EPROM (AP Flash EPROM).
4K XJY,CEDGF!9H
Y '§( RAM.
128 X
„ 4!… 10K „ .
128 XY NVM 45 FLASH EPROM @2ƒO
6mS MCS-51UV .
18 < I/O + .
2†
16- |#-/.K0 / 40 .
`,a 10 n
< 2<3<Q@ 4n2<3 .
D Ê{!… 4ˆ ”EK‰ t#uå TTL/ Š‹JŒ]^ 0”•, u .
I/O +‡CEV
CIY©[ª@«-/.10
C ÊE .
4 ö 10 | PWM Žyz
1
ö 10| ADC.
( ÍJ‘J’^“<0”•–—!˜0 .
3 <[,\J]^23<”• .
™B_@*ƒ›+ šœ,JBž,Ÿ LED __~_ R œ,¡)e
P ¢ (50mA).
8 < I/O _
£§PØÕ
Ö @CED!
“F23<å{<| .
8
(20/15mA).
ICP
¤¥
:
- Lead Free (RoHS) DIP20:
- Lead Free (RoHS) SOP20:
W79E8213AKG
W79E8213ASG
-4-
W79E8213
3
3.1
¦¨§ª©v«­¬¯®
°L± (RoHS)²8³!´Eµ*¶$·¸ª¹
.
EPROM
FLASH
º»
W79E8213AKG
4KB
W79E8213ASG
4KB
÷ø
RAM
DATA FLASH
128B
128B
128B
DIP-20 Pin
128B
SOP-20 Pin
¼J½
3-1: Lead Free (RoHS) Parts information list
-5-
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
4
¾¿ÁÀ¯Â
Ã
4-1:
R_œ¿À
-6-
W79E8213
5
¾¿ÁÄÁ7
Å w#Æ %/&
1
wÆ#%/&
2
wÆ#%&
Ý Ç
(ICP 3
)
Å $
VDD
P
VSS
P
P0.0
AD6
PWM3
I/O
P0.1
AD5
PWM0
I/O
P0.2
AD4
BRAKE
I/O
P0.3
AD0
P0.4
AD1
Data
I/O
P0.5
AD2
Clock
I/O
P0.6
AD3
P0.7
AD7
P1.0
BUZ
I/O
T1
I/O
I/O
P1.1
ED1
I/O
P1.2
ED2
P1.3
/INT0
I/O
/INT1
I/O
P1.5
STADC
T0
I/O
HV
RST
I
P1.6
PWM1
I/O
P1.7
PWM2
I/O
P2.0
XTAL2/CLKOUT
I/O
P2.1
XTAL1
I/O
ÏÍ Î ÐÒÑÔÓÖÕ ÐÒч×ØÕ ÐÚÙeÛÏÑÜÓØÑm×
5-1: šœ,ÝÞ
* TYPE: P:
r, I
È
PQ
*,+
.
.
0:
`,a 4ˆ ”*‰ 2ˆ ”•tu
.
{<õ!…É
T1, PWM0, PWM3,
BRAKE, AD0-7, Data and
Clock (for ICP).
I/O
ED0
P1.4
Å O
I/O
*,+
1:
`,a 4ˆ ”*‰ 2ˆ”•tu .
( Ê P1.5 Ë!~”• ).
{<õ!…É /RST, T0, /INT0-1,
BUZ, PWM1-2, ED0-2,
STADC, and HV (for ICP).
¡)P›¢ ..
CRYSTAL2: .1®”*‰ . CEDV¿À
…_̔ I/O + .
¿À…_̔ I/O +K.2`,a 4
ˆ ”
‰ 2ˆ ”•tu .
D ¿À
CRYSTAL1: .1®”• . CEV
…_̔ I/O + .
¿À…_̔ I/O +K.2`,a 4
ˆ ”
‰ 2ˆ ”•tu .
P1.0-P1.7 50mA
.
-7-
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ßáà$ÄÁ7
9 ,:ªâ 4ãy 8051 (Gäå^<\0 , 4K XY Flash EPROM, 128 XY RAM, 18<”õ
W79E8213 +å 2< 16-|-/.10 / 40Eå 8 ö 10| ADðñ0*å 128XY NVM æç*P 3 <[\],^n2<3<”•
10 | PWM, (Ín_ FLASH EPROM YZ[(V\C*Dâm”õJN!O0,è ICP N!O<0N!O
6
6.1
éÁê
I/O
, 4
ö
*
Flash EPROM
9 [(KÍJB 4 KX,Y)_1’õY#Z\]/r/“@Jë_Mõ,F[P@ö,IY.KìJíî[ª_ ICPNO0N!O
(Ín_
X,Y Flash EPROM P ICPîïMïðññ /òóô,õö,÷,ðö,V!b<åøJù@ú.û,:,ü*ý
kF,þ,ìJíJÿv IC,þ,ìJí ÁJCLDG‘
_2ñ’õYZ .
W79E8213
4 K
6.2
I/O
9 _C| 18< I/O šœEPe”•À PxM1.yå PxM2. ^<\
0 @2™,B*,‡+ CEDõ!… 4ˆ”‰
tuE@<Ä#Å#t/uåø<”#•ˆtuþ!ì,í#ÌÍ)_Ô@Ì!ûCD"!…Ì!”§_ I/O +Gè/ÁÂ
+ Pe™B_@*ƒ‡+ CED#!…<½[¾ I/OE
* P$*ƒG+ :%&
Ô P
I/O K
W79E8213
6.3
')(*
|-n.0E@#+,~S 8052-!9n2#_-n.0./LPJë!…-F.0,Mõ.,@C
0 A1À…2 49<),.B ®2<316
4,pq;!„4@_è52 12 <.®34pq!;!„4EP"#|#õk6798tæ
: q_›;ˆ‘uP .
8052 .1®,
The W79E8213
6.4
;<
9)_#239,H!SJT¼ 8052=§23J9,H,B>J?§_K€?EPâ@\FA,~åÌ*@#23Q
_14Bå)23¾CB,
 D’ö AxP .
W79E8213
EGF9HGI
å T¼ 8052 ;J
6.5
6.6
CPU
W79E8213
9
MCU
B
|)_14567
8-
|_
KML
9, :N@T¼_ 8052 (Gä@2F
^<\0EP›CEDCS,qT¼ 8052 _K6mP .
W79E8213
6.6.1
16
ALU
ALU
(DPTR).
3O#PQ8Kõ@R#.\]45嬭Ìn_/(VÍ
9 MCU _2äT@2ABUV:UåWX:U,!~!@›AYWJBZ3<åYZð[,!~!P
\ ýk!: þ,W79E8213
CªD›žŸ,Mõ ALU @6m!ï•]o0]o!j,ï,• ALU å,A§__^`/^\#0#“n_":U/8a*P ALU
Zí,”,• îb/^\0 ACCåîb/^<\0 B cdeÊ_f:ULP ALU“g,ˆŠ‹,Th@"$Th\i@Š
‹
X ^<\0 (PSW) 2 .
ALU
-8-
W79E8213
6.6.2
jkj
W79E8213
CPU
\0EP
(ACC)
9 n_ MCU 2"UV:Ul"WX:UMl45mn_#o!n2@pKx0
ž,ŸrGstp_x0@2™LD›ø>6mu,Mõp_xv!,…xwyz{|
(ACC)
:J;J<÷ðqJí)_^
€ ‚ƒ Bv }B~„ y… 8† ‚ƒ v‡"ˆ‰ / _Š ‹ŒŽ ƒ wz{G|ˆ‘’“”Ž €‚xƒ v B9
• –#—˜ €
‚xƒ v™  .
6.6.3
š ›œž}‚~ƒ  (PSW)ƒ
y… 8 †Ÿ vG‡ ALU ¡_¢M£¤¥|"¦§¥¨t©†Ÿ †9ª«¬©†Ÿ †9ª ­ Ÿ PSW‚x„
ƒ
†Mª v®—¯°±†Mªt²³Ÿ ´µ¶Ÿ .
6.6.4
9
· ¸C¹º
W79E8213
Ð ‡t•G–ÑÒ»™ ¼ ½ .
6.6.5
128
¾¿ÀÂÁ#ÃÄ
RAM
|tˆÅÆ¥¡_ÇÈŽ_•É–ÊË ƒ {Ì9‡x½y…•†MÍÎGÏ
ÓÔÕÖ
y… 8- † ×ؓÙM‡"’“ÂÚÛ×Ø¡#ÜÝ| ×؈ÃÄ
W79E8213
äå RAMàỼæ½
çM¡ .
6.6.6
RAM
χ Þ#ß×ØM¡"àáGâãß
ì íîèïé¥
ð ŸêGñ9ë ¡ 8052òó‡ W79E8213 »¼½ôõ"´ö ì÷ø | ˆôõ ÷øù ‡ CPU Ë"úûüýç
Ë"vM‡þCÈÉÿã´GŽËtúûüG|#ˆö ì÷øù ‡½¡Ë#úûüM‡"ßMË
G|
6.7
-9-
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ƒ å
9ƒ¡!Ï Ð ÅÆÂÁ ƒ Ï_´{Ì ƒ vÏ|"ÅÆÉÁ ƒ Ï ƒ ÅÆ
W79E8213
‡t{Ì ƒ »vM¼Ï ɁÁ ƒ ˜ {2̅¥
Á
¡"#
7
$
7.1
'(*),+
»¼à½
Ð
8 . /Ï .
W79E8213
7.2
93:3+;3<
4K
»¼Ž#½
7-1: W79E8213
¾¿¡#ÅÆ¥Á ƒ ‡½“”-./Ï Ð Ž10G³#ÇÈ|
†¯=>¡
{ƒ Ì ƒ v9|5?@ äå ¡ÁBA™ 
‚
DE
v F{Ì .
W79E8213
128
NVM
NVMADDR, NVMDAT NVMCON
9 H :3
í .+;3<
G • &3
7.3
´
ƒ&%
(MOVX)
- 10 -
MOVC
“”32546,7
“MOVC A,@A+DPTR”
¨ €C
W79E8213
I+3<JKML
ƒ M
ô N_´{Ì ƒ  ô N|_À¥Á 128ø ¾¿8 ÃÄ RAM OPQ ä Á ƒ ‡_’¦
W79E8213 »¼½9¡tÅÆ
‚
ƒ
‚
ƒ
§½D&E
R 8 v (D&E&
MR v ) | SFR SMR Ñ ÒÍÎT 7 ‘’9¡_À¥Á RAM •9–ÑÒÍÎ6
•G–U"N ÒÍxÎ7 .
7.4
$
Ãù Ä
.
RAM
S½
128
7-1: W79E8213 RAM and SFR memory map
¾¿M‡Þ"ßVW  P{ÌXYá¡5Z[¨#ˆ™  ¡Ë]\M‡5^_`a³]bdc|1efg
- 11 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
FFH
Indirect RAM
80H
7FH
Direct RAM
30H
2FH
7F
7E
7D
7C
7B
7A
79
78
2EH
77
76
75
74
73
72
71
70
2DH
6F
6E
6D
6C
6B
6A
69
68
2CH
67
66
65
64
63
62
61
60
2BH
5F
5E
5D
5C
5B
5A
59
58
2AH
57
56
55
54
53
52
51
50
29H
4F
4E
4D
4C
4B
4A
49
48
28H
47
46
45
44
43
42
41
40
27H
3F
3E
3D
3C
3B
3A
39
38
26H
37
36
35
34
33
32
31
30
25H
2F
2E
2D
2C
2B
2A
29
28
24H
27
26
25
24
23
22
21
20
23H
1F
1E
1D
1C
1B
1A
19
18
22H
17
16
15
14
13
12
11
10
21H
0F
0E
0D
0C
0B
0A
09
08
20H
1FH
07
06
05
04
03
02
01
00
Bank 3
18H
17H
Bank 2
10H
0FH
Bank 1
08H
07H
Bank 0
00H
$
7-2: RAM
hi}~
‚
ƒ
½kjt8 ¯‡‚lƒ ¯o½ p8q … å8-r † ‚ ƒ v¥|"¯&mŸn˜ w 1 ¯ ª_w 2 ¯ª_w 3 ¯Mª_w 4 ¯‡tˆ¯GŽ ‚ƒ
o®—•Â–"Ñv
Ò&7 |
˜ R0 ª R1 ª R2 ª R3 ª R4 ª R5 ª R6 ´ R7 ‡Ust•Â–"“ÉÚ5uMvy
¯‡"½ PSW ‚_ƒ o Ž¡ RS0 ª RS1 ¡1wxæçM| R0´ R1 ‚xƒ oy  d
— N"ÒÍΡzÎ .
7.4.1
- 12 -
W79E8213
{M|}~
Ð •9–#¾¿ÍÎ&6•9–#†Í·U6€„ˆ.…Ï Ð •9–‚†Í·_“”
Ã
Ä
RAM
2Fh ¡Ï
ƒ o „†Ï,… - å20h
‡ † “
”ˆ„¾¿“”G|CˆDE
&R ‚ƒ o Ž1z΄– 0‰ 8 £UŠM¡]•G–Û†ÍÎ .
7.4.2
Ó Ô 
ÃÄ RAM•9 – —×؇]@Ï Ð â ×ؓ٠(SP)“ç‡ SP „x×Ø¡#ÜÝzÎG|,‹]Œª]Ž  ‰MŽU&,Ž™ 
•
Ë]3zÎ ˆØÜG‡tˆ RAM Ž"×ØG¡‘’z΄“½3”xçM¡‡•†–×ؓÙ&—˜„ 07h ‡x™
–1šÌ&›œ&,ž×Ø¡5‘’zÎ9| SP“ÂÚÛ×؟–G¡ …¡‡t©¢– SP£ 1 ‡³t؄?G³"ØçM¡¡¤
– SP¥ 1..
7.4.3
- 13 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
¦§¨ª©¬«­*® 
" o÷ø |1DE
»¼ MCU Á1¯ DE
&R ‚ƒ o (D E
MR ‚xƒ o )ø °± ´8 ²³Q"ŒÈ´Q
W79E8213
‚
ƒ
‚
ƒ
o
MR
†P 80H-FFH
ô&N‚Áƒ ‡o SMR ÑÒÍÎG¡T
7 |#y/DE
MR
„•†Í‚
r W  P¡]Sz´Îµ
ÎG
¡
‡
.
…
R
D

Ž
¡
¶
y
†
·
d
¸
t
¹
‘
’
G
†
¡
Z
G
[
t
|
•
†
Í
9
Î
1
¡
D
&
E
ƒ o ‡_‘zÎ&º&m„9– 0 ‰ 8 £Š9| W79E8213 »¼Ž_§½Ÿñ 8052 Ž]½G¡DME&
MR ‚ƒ o ‡M
M2RË6
£»3t¼ y/
½ ¡5DE
MR ‚ƒ o |#‚xˆƒ yo /¾  Z
[ ‡ 8052 Ž]¿ y ç
À ¡#† yÁ ¼
½ ¡]
M
R | ùÃ ¼M³
¼ W79E8213 »¼MŽ¡5DE
&R
| .
8
F8
IP1
F0
B
E8
EIE
E0
ACC
ADCCON
ADCH
ADCCON1
D8
WDCON
PWMPL
PWM0L
PWM1L
D0
PSW
PWMPH
PWM0H
PWM1H
BUZCON
PWMCON1
PADIDS
IP1H
PWM2L
PWM3L
PWMCON2
PWM2H
PWM3H
PWMCON3
NVMCON
NVMDAT
C8
C0
B8
NVMADDRH NVMADDRL
IP0
B0
P2M1E
P0M1
A8
IE
A0
P2
TA
P0M2
P1M1
AUXR1
EDIC
P1M2
P2M1
P2M2
TH0
TH1
CKCON
IP0H
98
90
P1
88
TCON
TMOD
TL0
TL1
80
P0
SP
DPL
DPH
à 8-1: DE
R ‚xƒ o ¼ Ã
Note: 1. ÄÆÅÈdžÉÈÊBËÍÌÈÎÈÏÑÐÓÒÓÔÑՆÖ×ËÙØÆÚÆÛÈÜÆÝßÞÈà
Ë 2. áÈâÆãÈäÈåBæ 8 ÏBçÍèêéìëÓâÆíÈîÈïÈÖÑèÑðòñÈÄÓØÆÚÆÛÆÜÈÝßÞÈà†ÞÆóõôÍöÆ÷ÈøÑèùð†ËÙú5ûýüÈþÆÿ 1 - 14 -
PCON
.
W79E8213
SYMBOL
DEFINITION
ADDR MSB
ESS
BIT_ADDRESS, SYMBOL
LSB RESET
BUZCON
Square wave control register
F9H
-
-
BUZDIV.5 BUZDIV.4 BUZDIV.3 BUZDIV.2 BUZDIV.1 BUZDIV.0 xx00 0000B
IP1
Interrupt priority 1
F8H
(FF)
PED
(FE)
PPWM
(FD)
PBK
(FC)
PWDI
(FB)
-
(FA)
-
(F9)
-
(F8)
-
PEDH
PPWMH
PBKH
PWDIH
-
-
-
-
IP1H
Interrupt high priority 1
F7H
PADIDS
Port ADC digital input disable
F6H
B
B register
F0H
(F7)
(F6)
EIE
Interrupt enable 1
E8H
(EF)
EED
(EE)
(ED)
EPWMUF EPWM
ADCCON1
ADC control register 1
E3H
ADCH
ADC converter result high register E2H
ADCCON
ADC control register
E1H
0000xxxxB
0000xxxxB
00000000B
(F5)
(F4)
(F3)
(F2)
(F1)
(F0)
00000000B
(EC)
EWDI
(EB)
-
(EA)
-
(E9)
-
(E8)
-
0000xxxxB
ADCLK.1 ADCLK.0 -
-
-
AADR2
-
-
10xxx0xxB
ADC.9
ADC.8
ADC.7
ADC.6
ADC.5
ADC.4
ADC.3
ADC.2
00000000B
ADC.1
ADC.0
ADCEX
ADCI
ADCS
RCCLK
AADR1
AADR0
00000000B
ACC
Accumulator
E0H
(E7)
(E6)
(E5)
(E4)
(E3)
(E2)
(E1)
(E0)
00000000B
PWMCON2
PWM control register 2
DFH
BKCH
BKPS
BPEN
BKEN
PWM3B
PWM2B
PWM1B
PWM0B
00000000B
PWM3L
PWM 3 low bits register
DEH
PWM3.7
PWM3.6
PWM3.5
PWM3.4
PWM3.3
PWM3.2
PWM3.1
PWM3.0
00000000B
PWM2L
PWM 2 low bits register
DDH
PWM2.7
PWM2.6
PWM2.5
PWM2.4
PWM2.3
PWM2.2
PWM2.1
PWM2.0
00000000B
PWMCON1
PWM control register 1
DCH
PWMRU
N
load
PWMF
CLRPWM PWM3I
PWM2I
PWM1I
PWM0I
00000000B
PWM1L
PWM 1 low bits register
DBH
PWM1.7
PWM1.6
PWM1.5
PWM1.4
PWM1.3
PWM1.2
PWM1.1
PWM1.0
00000000B
PWM0L
PWM 0 low bits register
DAH
PWM0.7
PWM0.6
PWM0.5
PWM0.4
PWM0.3
PWM0.2
PWM0.1
PWM0.0
00000000B
PWMPL
PWM counter low register
D9H
PWMP0.7 PWMP0.6 PWMP0.5 PWMP0.4 PWMP0.3 PWMP0.2 PWMP0.1 PWMP0.0 00000000B
WDCON
Watch-Dog control
D8H
(DF)
WDRUN
(DE)
-
(DD)
WD1
(DC)
WD0
(DB)
WDIF
(DA)
WTRF
(D9)
EWRST
(D8)
WDCLR
External
reset:
0x00 0000B
Watchdog
reset:
0x00 0100B
Power on
reset
0x000000B
PWMCON3
PWM control register 3
D7H
-
-
-
-
FP1
FP0
-
BKF
xxxx00x0B
PWM3H
PWM 3 high bits register
D6H
-
-
-
-
-
-
PWM3.9
PWM3.8
xxxxxx00B
PWM2H
PWM 2 high bits register
D5H
-
-
-
-
-
-
PWM2.9
PWM2.8
xxxxxx00B
PWM1H
PWM 1 high bits register
D3H
-
-
-
-
-
-
PWM1.9
PWM1.8
xxxxxx00B
PWM0H
PWM 0 high bits register
D2H
-
-
-
-
-
-
PWM0.9
PWM0.8
xxxxxx00B
PWMPH
PWM counter high register
D1H
-
-
-
-
-
-
PWMP0.9 PWMP0.8 00000000B
PSW
Program status word
D0H
(D7)
CY
(D6)
AC
(D5)
F0
(D4)
RS1
(D3)
RS0
(D2)
OV
(D1)
F1
(D0)
P
NVMDATA
NVM Data
CFH
NVMCON
NVM Control
CEH
EER
EWR
-
-
-
-
-
-
00xxxxxxB
TA
Timed Access Protection
C7H
TA.7
TA.6
TA.5
TA.4
TA.3
TA.2
TA.1
TA.0
11111111B
NVMADDRL NVM low byte address
C6H
NVMADD NVMADD NVMADD NVMADD NVMADD NVMADD NVMADD NVMADD 00000000B
R.7
R.6
R.5
R.4
R.3
R.2
R.1
R.0
NVMADDRH NVM high byte address
C5H
-
00000000B
00000000B
-
-
-
-
-
-
NVMADD xxxxxxxx0B
R.8
P2M1E
Port 2 output mode 1 extended
BBH
-
-
-
-
P2M1.3
P2M1.2
-
-
Xxxx00xxB
IP0
Interrupt priority
B8H
(BF)
-
(BE)
PADC
(BD)
PBO
(BC)
-
(BB)
PT1
(BA)
PX1
(B9)
PT0
(B8)
PX0
x00x0000B
IP0H
Interrupt high priority
B7H
-
PADCH
PBOH
-
PT1H
PX1H
PT0H
PX0H
x00x0000B
- 15 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
P2M2
Port 2 output mode 2
B6H
-
-
-
-
-
-
P2M2.1
P2M2.0
P2M1
Port 2 output mode 1
B5H
P2S
P1S
P0S
ENCLK
T1OE
T0OE
P2M2.1
P2M2.0
Xx000000B
00000000B
P1M2
Port 1 output mode 2
B4H
P1M2.7
P1M2.6
-
P1M2.4
P1M2.3
P1M2.2
P1M2.1
P1M2.0
00x00000B
P1M1
Port 1 output mode 1
B3H
P1M1.7
P1M1.6
-
P1M1.4
P1M1.3
P1M1.2
P1M1.1
P1M1.0
00x00000B
P0M2
Port 0 output mode 2
B2H
P0M2.7
P0M2.6
P0M2.5
P0M2.4
P0M2.3
P0M2.2
P0M2.1
P0M2.0
00000000B
P0M1
Port 0 output mode 1
B1H
P0M1.7
P0M1.6
P0M1.5
P0M1.4
P0M1.3
P0M1.2
P0M1.1
P0M1.0
00000000B
IE
Interrupt enable
A8H
(AF)
EA
(AE)
EADC
(AD)
EBO
(AC)
-
(AB)
ET1
(AA)
EX1
(A9)
ET0
(A8)
EX0
000x0000B
EDIC
Edge detect control register
A3H
EDFLT.1
EDFLT.0
ED2TRG ED2EN
ED1TRG ED1EN
ED0TRG ED0EN
AUXR1
AUX function register
A2H
EDF
BOD
BOI
LPBOV
SRST
ADCEN
BUZE
-
P2
Port 2
A0H
(A7)
-
(A6)
-
(A5)
-
(A4)
-
(A3)
-
(A2)
-
(A1)
P2.1
XTAL1
(A0)
xxxx11xxB
P2.0
XTAL2
CLKOUT
P1
Port 1
90H
(97)
P1.7
PWM2
(96)
P1.6
PWM1
(95)
P1.5
/RST
(94)
P1.4
/INT1
STADC
(93)
P1.3
/INT0
(92)
P1.2
ED2
T0
(91)
P1.1
ED1
(90)
P1.0
ED0
BUZ
CKCON
Clock control
8EH
-
-
-
T1M
T0M
-
-
-
TH1
Timer high 1
8DH
00000000B
TH0
Timer high 0
8CH
00000000B
TL1
Timer low 1
8BH
00000000B
TL0
Timer low 0
8AH
TMOD
Timer mode
89H
GATE
C/T
M1
M0
GATE
C/T
M1
M0
00000000B
TCON
Timer control
88H
(8F)
TF1
(8E)
TR1
(8D)
TF0
(8C)
TR0
(8B)
IE1
(8A)
IT1
(89)
IE0
(88)
IT0
00000000B
PCON
Power control
87H
-
-
BOF
POR
GF1
GF0
PD
IDL
DPH
Data pointer high
83H
00000000B
000X000xB
11111111B
xxx00xxxB
00000000B
xxxx0000B
00000000B
DPL
Data pointer low
82H
00000000B
SP
Stack pointer
81H
00000111B
P0
Port 0
80H
(87)
P0.7
AD7
T1
Ã
(86)
P0.6
AD3
8-2:
(85)
P0.5
AD2
(84)
P0.4
AD1
DE
&R ‚xƒ o
- 16 -
(83)
P0.3
AD0
(82)
P0.2
AD4
BRAKE
(81)
P0.1
AD5
PWM0
(80)
P0.0
AD6
PWM3
11111111B
W79E8213
PORT 0
Bit:
¬
7
6
5
4
3
2
1
0
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
€ ¡
: P0
P0.7-0:
{
ÿ •  &RUe,fg ù
o 1.
AD7 ‰ çË
I/O .
7
P0.7
6
P0.6
AD3.
5
P0.5
AD2.
4
P0.4
AD1.
3
P0.3
AD0.
2
P0.2
AD4
1
P0.1
AD5
0
P0.0
AD6
‰
‰
:
zÎ
: 80h
BRAKE.
‰
PWM0.
PWM3.
ÓÔÕÖ
Bit:
¬
{
3
2
1
0
SP.7
SP.6
SP.5
SP.4
SP.3
SP.2
SP.1
SP.0
zÎ
SP.[7:0]
×ؓ٠ƒƒ
RAM
Ž"×ØM¡1‘’zÎM‡€„,s“¥ÚÛØÜ
: 81h
.
7
6
5
4
3
2
1
0
DPL.7
DPL.6
DPL.5
DPL.4
DPL.3
DPL.2
DPL.1
DPL.0
: DPL
7-0
¬
4
Õ֞
¬
{
Bit:
5
Bit:
6
: SP
7-0
7
DPL.[7:0]
16
ÕÖ
ž
†{̓١5¾¿
zÎ
: 82h
.
7
6
5
4
3
2
1
0
DPH.7
DPH.6
DPH.5
DPH.4
DPH.3
DPH.2
DPH.1
DPH.0
: DPH
- 17 -
zÎ
: 83h
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
{
7-0
DPH.[7:0]
16
†{̓ÙG¡¾¿
.
POWER CONTROL
Bit:
¬
{
7
6
5
4
3
2
1
0
-
-
BOF
POR
GF1
GF0
PD
IDL
: PCON
7
-
6
-
5
BOF
4
POR
3
GF1
2
GF0
1
PD
0
IDL
34
Bit:

56
zÎ
: 87h
.
.
!" ì
x• †ª
(*)&•†ª(*)GŽ]Ë+
,†
1: ‹$#&%$'
" |ì
0: !
x• †Ë+
,†| .
1: ‹$#&%$'
0:
.
€ ¡#Ÿ † .
€  ¡#Ÿ † .
ìC÷ø ¨@ ÷øù ‡]½Ëtúûü®—M‡"ÅÆ6.ÇÈ
1 »-©»ö
» -©»ôõ ÷ø ¨]@ ÷øù ‡ CPU ¡Ë"úûü®—M‡tÅÆûüŒÈG¨#ý¥þÿtª
1 çË o ªŽ]¡Ë"ú“½ûüM‡5./
&R ÷
/
0
1
2 ŒÈ
7
6
5
4
3
2
1
0
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
¬
: TCON
zÎ : 88h
{
çË o 1²G³"Ÿ M¨#ˆçË o 1²G³Ë@†&, 1 |,‹_Åƹ¾çË o 1 ŽUxÇÈò¾M¡Ž
7
TF1
87&o9ÅÆMË°‡± @ † „Æ…! 0 |:6•;@†
,†‰&•x†
6
TR1
çË o 1 <,…
@†Ââ=>o
,†‰!
" <,…‰
?@#çË o o
çË 0²G³"Ÿ M¨#ˆçË 1²G³Ë@†&, 1 |,‹_Åƹ¾çË 0 ŽUxÇÈò¾M¡Ž
5
TF0
87&o9ÅÆMË°‡± @ † „Æ
… ! 0 |:6•;@†
,†‰&•x†
4
TR0
çË 0 <,…
@†Â=â > ,†
‰ !
" <,…
‰ ?@#çË o
3
IE1
Q ä ŽU 1Ÿ ¨,‹ int 1 '³*A Cì B ŒžËâC+
&, 1 ¨*D y ",˜ ùEF #Ž‡"©
»F Ž87&ø 9°Å± Æ IE1 „È=ì … B!G
ŠE˜ F 0 | . Hì BF
2
IT1
¨ 1 #M¨ 0 #
1 #T
ì
=
B
ù E
F #Ž‡
ä
1
IE0
Q Ž 0Ÿ ¨,‹ INT 0 'G*³ A
ŒžË=â +
&, 1 *¨ D y " ,˜ ©»Ž87&9ÅÆ IE0 „Æ… !Š˜ 0
- 18 -
W79E8213
0
IT0
34 
IJ5
6
Bit:
ø
ì=BG
EF #M¨ 0 ì=BF #
Q ä Ž 0F # T °± ¨ 1 .
7
6
5
4
3
2
1
0
GATE
C/T
M1
M0
GATE
C/T
M1
M0
TIMER1
TIMER0
¬
: TMOD
zÎ : 89h
{
K ° †˜ 1 Ë , çË o / ¢{ o ¡#ŒÈŠ$L TRx°± Qˆ&L int n °± ‡‹ TRx´ int n M
GATE
7
o /¢{ o&N ’ŒÈG|5@†˜ 0 ˇxçË o ¡#ŒÈSL TRx ¡ °±
1 Ë_çË
o /¢{ o ®—T ø °± ˜ 0 ˖#çË o ¡1T ø ŒÈM¨_˜ 1 Ë*; TXO'G¡,
ç
Ë
B
6
C/ T
ž P©È¢{
÷
ø °±†
M1
5
÷ø °±†
M0
4
K ° †˜ 1 Ë , çË o / ¢{ o ¡#ŒÈ$
Š L TRx°± o Qˆ&L int n °± ‡°‹ ± TRx´ int n M
GATE
3
o
o
&
N
’ŒÈG|5@†˜ 0 ˇxçË ¡#ŒÈSL TRx ¡
1 Ë_çË
/ ¢{
ø °± ˜ 0 ˖#çË o ¡1T ø ŒÈM¨_˜ 1 *Ë ; TXO'G¡,
o
o
ç
Ë
®
—
T
/ ¢{
B
2
C/ T
ž P©È¢{
÷
ø °±†
M1
1
÷ø °±†
M0
0
M1, M0: I&JQR{ :
M1 M0
I
J
÷
ø
å
T
o
0
0
‡t½ 5†G¡:S å | T
0: 8- †çË
÷
ø
o
0
1
‡]“½ 5†:¡ S
|
1: 16- †çË
÷
ø
o
1
0
… UVçË
2: 8 †- THx Ž„È&
÷
ø

o °±
o
o
1
1
oË 3:1°± W V¡ W 8†PçT0
oË X /¢TL0{ „o L|"ççË Ë o 01ˆßT ¡ ø8†ù çË ®—/¢| { | TH0 „>Lç
34 
0 LSB
Bit:
¬
{
7
6
5
4
3
2
1
0
TL0.7
TL0.6
TL0.5
TL0.4
TL0.3
TL0.2
TL0.1
TL0.0
: TL0
- 19 -
zÎ
˜
ì
ì
˜
: 8Ah
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
7-0
34

Bit:
¬
{

¬
{
6
5
4
3
2
1
0
TL1.7
TL1.6
TL1.5
TL1.4
TL1.3
TL1.2
TL1.1
TL1.0
TL1.[7:0]
çË o

¬
{
: 8Bh
1 LSB.
7
6
5
4
3
2
1
0
TH0.7
TH0.6
TH0.5
TH0.4
TH0.3
TH0.2
TH0.1
TH0.0
TH0.[7:0]
çË o
zÎ
: 8Ch
0 MSB.
1 MSB
7
6
5
4
3
2
1
0
TH1.7
TH1.6
TH1.5
TH1.4
TH1.3
TH1.2
TH1.1
TH1.0
: TH1
7-0
zÎ
0 MSB
Bit:
Bit:
7
: TH0
7-0
4$Y
0 LSB.
1 LSB
Bit:
34
çË o
: TL1
7-0
34
TL0.[7:0]
TH1.[7:0]
5
6
5
6
çË o
zÎ
: 8Dh
1 MSB.
7
6
5
4
3
2
1
0
-
-
-
T1M
T0M
-
-
-
¬
: CKCON
{
7-5
-
4
T1M
3
T0M
2-0
-
Z
çË o 1o #Ë ú°± 0: çË
1 ¡Ë"ú°±˜
o
1: çË
1 ¡Ë"ú°±˜
o
çË o 0 Ë"ú°± :
0: çË
0 ¡Ë"ú°±˜
o
1: çË
0 ¡Ë"ú°±˜
Z
»-Ëtú|
1/4 »-Ë"úG|
1/12
»-Ë"ú|
1/4 »-Ë"ú|
1/12
- 20 -
zÎ
: 8Eh
W79E8213
PORT 1
Bit:
7
6
5
4
3
2
1
0
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
¬
: P1
z Î : 90h
€

{¾[» /[³"ÝÉÿ_|à\x{“”•G–H;.…ÝÉÿã©È?]—‡#ˆ? -&
µ  - F#¡ “”Ž"•9–B?
P1.7-0:
³#ÝÉÿ_^`‡ î O&•  &R,g ù :
{
7
P1.7
PWM2.
6
P1.6
PWM1.
5
P1.5
/RST
4
P1.4
3
P1.3
/INT0.
2
P1.2
Timer 0
1
P1.1
ED1.
0
P1.0
BUZ ED0.
´[»baO .
STADC ´ /INT1.
´
ED2.
´
PORT 2
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
-
-
P2.1
P2.0
Mnemonic: P2
{
7-2
-
1
P2.1
0
P2.0
cd
}~
Bit:
¬
{
7
zÎ
: A0h
Ë#ú[»ZaO
³ a$O&• 
XTAL2 ´ CLK [8
XTAL1
1
7
6
5
4
3
2
1
0
EDF
BOD
BOI
LPBOV
SRST
ADCEN
BUZE
-
: AUXR1
EDF
F
#MŽ]Ÿ † : G E>F
1:
™&R
P1.0-1.2 t
#
&R
- 21 -
(
zÎ
: A2h
•G–=e
,˜>'
f E / ù ( EF # ). g h¥âC!"
..
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
6
BOD
5
BOI
4
LPBOV
i )j³
i :
0: ™R
i )j³ .
k ü )j³ .
1: i
)
j ³G
i Ž :
k ü i )j³Ž
&R
0: )
j ³
&RŽ .
1: l8m
ìCí i )
j ³ °± :
y m ‡ G&n ˆ 1
2÷ø ˆ„ˆöo ÷ø ‡ i ) j³
&R>pÑqP
r N
0: ‹ BOD lM
wxG|
¡ i ì)
v j³›,`G¡ ì )ìt˜ ÷64/f
› 960/f , , Þ#ߕ
1: ‹ BOD=0 ‡stM
øù , ìt‡í ?i 1@ V
i
- ˆMö
–t¿Zu 15/16 )
) <  Á ä RC OSC
. ‹»
BRC
BRC
(500KHz)
3
SRST
ADCEN
2
1
BUZE
0
-
|&}~&
Bit:
¬
{
&•_† :
1: +&•x†
wÀ .
ìHx
k ü ADC ìHx .
0: 1: l8m ADC
.
T
y ™Rx† :
[ ³Hz
{ BUZ (P1.0).
1: Ty
.
5
6}x~
7
6
5
4
3
2
1
0
EDFILT.1
EDFILT.0
ED2TRG
ED2EN
ED1TRG
ED1EN
ED0TRG
ED0EN
: EDIC
7-6
EDFILT.10
5
ED2TRG
4
ED2EN
3
ED1TRG
Ë"ú = Fosc.
01 – Filte r Ë"ú = Fosc/2.
10 – Filter Ë"ú = Fosc/4.
11 – Filter Ë"ú = Fosc/8.
ù ( E a]‘ EDF,† (ED2EN™&R ).
0 –ED2 a$O¡
¡ '&f /ù ( E a5‘ EDF,† (ED2EN™MR
1 –ED2 a$OH
0 – kü .
GEF
#MŽU .
1 – ™&R ED2 (P1.2) a‘
ù
E
( a]‘ EDF,† (ED1EN™&R ).
0 –ED1 a$O¡
¡ '&f /ù ( E a5‘ EDF,† (ED1EN™MR
1 –ED1 a$OH
00 – Filter
- 22 -
)
)
zÎ
: A3h
W79E8213
2
ED1EN
0–
ED0TRG
0
ED0EN
€8‚ƒ
Bit:
¬
{
†ˆ‡
4
3
2
1
0
EA
EADC
EBO
-
ET1
EX1
ET0
EX0
: IE
EADC
5
EBO
4
-
3
ET1
2
EX1
1
ET0
0
EX0
7-0
†ˆ‡
0
Bit:
¬
{
)
5
6
¬
{
ED1 (P1.1)
6
EA
Bit:
™&R
7
7
0
.
GEF
a‘
#MŽU .
ù
E
( ù a]‘ E EDF,† (ED0EN™&R ).
0 –ED0 a$O¡
5a ‘ EDF,† (ED0EN™MR
1 –ED0 a$O¡H'&f / (
k ü .
0–
GEF
a ‘
# ŽU .
M
1 – ™&R ED0 (P1.0) 1–
1
kü
‰
ŠI
J
„… ]
Ž l>m . >l m /
k ü½¡Ž
™&R
]Ž .
l>m )GŽ .
.
l>mçË o 1 Ž
ä
l>mQ Ž 1.
l>mçË o 0 Ž
ä
l>mQ Ž 0.
i
zÎ
: A8h
.
ADC
.
.
1
7
6
5
4
3
2
1
0
P0M1.7
P0M1.6
P0M1.5
P0M1.4
P0M1.3
P0M1.2
P0M1.1
P0M1.0
: P0M1
°±
P0M1.[7:0]
‰
ŠI
J
P0
[³:e,†
zÎ
: B1h
[7:0]
2
7
6
5
4
3
2
1
0
P0M2.7
P0M2.6
P0M2.5
P0M2.4
P0M2.3
P0M2.2
P0M2.1
P0M2.0
: P0M2
- 23 -
zÎ
: B2h
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
7-0
†ˆ‡
1
‰
ŠI
J
Bit:
¬
{
¬
{
6
5
4
3
2
1
0
P1M1.7
P1M1.6
-
P1M1.4
P1M1.3
P1M1.2
P1M1.1
P1M1.0
‰
ŠIJ
P1
[³:e
,†
¬
{
[7:0]
6
5
4
3
2
1
0
P1M2.7
P1M2.6
-
P1M2.4
P1M2.3
P1M2.2
P1M2.1
P1M2.0
‰
ŠI&J
P1
[³:e
,†
zÎ
: B4h
[7:0]
1
7
6
5
4
3
2
1
0
P2S
P1S
P0S
ENCLK
T1OE
T0OE
P2M1.1
P2M1.0
: P2M1
7
P2S
6
P1S
5
P0S
4
ENCLK
3
T1OE
2
T0OE
1
P2M1.1
0
P2M1.0
2
: B3h
7
P1M2.[7:0]
2
zÎ
2
Bit:
¬
{
: P1M2
7-0
Bit:
[7:0]
7
P1M1.[7:0]
Bit:
†ˆ‡
[³:e,†
1
1
†ˆ‡
P0
: P1M1
7-0
†ˆ‡
°±
P0M2.[7:0]
‰
ŠI&J
zÎ
: B5h
—˜‹>Œ
,D F # o ¡H[»G|
˜ ‹>Œ
,D FF # o ¡*[»|
P1 ÿã—
˜ ‹>Œ
,D # o ¡*[»|
P0 ÿã—
XTAL2 O (P2.0) [³Ë"ú .
T  T  :
o 1²³Ë P0.7O
ŽG| P0.7O¡:[³ „ çË o 1
² ³ &
¡ p
|
=1: ‹xçË
T

T
&

o
o
„ çË 0
² ³
¡ p
|
:
=1: ‹xçË
0 ²³Ë P1.2O
ŽG| P1.2 O¡:[³
°
±
¡ [*³ e,
|
P2.1 :
°
±
|
P2.0 ¡:[³*e,
l>m
=1: l>m
=1: l>m
1: l>m
=1:
P2
2
7
6
5
4
3
2
1
0
-
-
-
-
-
-
P2M2.1
P2M2.0
: P2M2
- 24 -
zÎ
: B6h
W79E8213
7-2
-
1-0
P2M2.[1:0]
°±
.
P2
[³:e,†
PxM1.y
(see
note)
PxM2.y
0
0
0
1
1
0
[1:0]
ÝÉÿ ÷ø e , ˆ
† : ‡ I&J‰Š
[» ( ”
)
÷ ø
ñ‘9Ú ’“ ÷ø
÷ø
P2M1.PxS=0, TTL
[»
P2M1.PxS=1, Schmitt
1
€8
1
÷ø
[»
–8—˜
Bit:
¬
{
€8
N>•
7
6
5
4
3
2
1
0
-
PADCH
PBOH
-
PT1H
PX1H
PT0H
PX0H
: IP0H
7
-
6
PADCH
5
PBOH
4
-
3
PT1H
2
PX1H
1
PT0H
0
PX0H
Bit:
—˜>œ
¬
†‡g¤,?’£¤„M|
1: ", ADC ŽU˜™š&›|
i ) ²³ o Ž˜™š›M|
1: ",
.
, çË o 1 Ž˜™š
M
› |
1: "
ä
, Q ŽU 1 Ž˜™š›
1: "
, çË o 0 Ž˜™š
›
1: "
, Q ä ŽU 0 Ž˜™š›
1: "
zÎ
: B7h
0
7
6
5
4
3
2
1
0
-
PADC
PBO
-
PT1
PX1
PT0
PX0
: IP
- 25 -
zÎ
: B8h
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
{
†ˆ‡
7
-
6
PADC
5
PBO
4
-
3
PT1
2
PX1
1
PT0
0
PX0
2
Bit:
¬
{
7-0
žŸ*I&J
@†„,“½™  ‡5?¡x£¤„ ‘1’.
" ,MŽ ADC ¡:š
›„Y
>š
›
™ .
1: " ,MŽ i )²³ o š
›„U&
Y š
›™
1: .
1: ",MŽçË
, ŽUQ ä
1: "M
, ŽçË
1: "M
, ŽUQ ä
1: "M
o 1 :¡ š
›„UY&š
›™ .
Ž 1 ¡:š&›„,Y>š›
™
o 0 ¡:š
›„U&
Y š
›™ .
Ž 0 ¡:š&›„,
Y >š›
™
.
.
.
1
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
-
: P2M1E
-
zÎ
: BBh
.
NVM
,{ }
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
NVMADD
R.8
¬
{
zÎ
: NVMADDRH
,@†˜
7-1
-
0
NVMADDR.[8]
: C5h
0.
Î :
‚xƒ o z Ÿ n˜À9Á× Á ƒ ô&NzÎ
NVM
NVM
{Ì ƒ o
NVM
{ }
Bit:
7
6
5
4
3
2
1
0
NVMADD
R.7
NVMADD
R.6
NVMADD
R.5
NVMADD
R.4
NVMADD
R.3
NVMADD
R.2
NVMADD
R.1
NVMADD
R.0
¬
{
7~0
zÎ
: NVMADDRL
NVMADDR.[7:0]
†zÎ : ƒ
‚xƒ o Ÿ n˜À9Á× Á ô&NzÎ
NVM
- 26 -
NVM
{Ì ƒ o
.
: C6h
W79E8213
¡£¢ 4
5 }~
Bit:
¬
{
7-0
7
6
5
4
3
2
1
0
TA.7
TA.6
TA.5
TA.4
TA.3
TA.2
TA.1
TA.0
: TA
TA.[7:0]
zÎ
: C7h
‚xƒ o :
7 88 Ë °
° ‚ƒ o  P °± ; &¤ †G¡]7 8 |5`7 8 y &¤ #¡ †G‡ ­¥ ›`ÉÚ TA
7‚ƒ o Ë ‡]¤&–¦8.F» 55H ‡§&–»-
z&{ 3&
… ¨ o&©
ª ¡ËN–H{
­ 7 F,8 y» AAH
¤ ¡#†M|
NVM CONTROL
Bit:
¬
{
7
6
5
4
3
2
1
0
EER
EWR
-
-
-
-
-
-
: NVMCON
6
EWR
Bit:
¬
{
7~0
%>« _Š †
Š NVM%
‡¬ NVM€C {Ì % Ž¡Á1A ‚x«&ƒ ­ o ’FFH’% | NVM{Ì ƒ o ½ 8… %% ‡]l
1: @†
% à" ᘘ ’1’
¾¿G| NVMADDR
°± –‡tˆ"ç@†–‡@ y !MŠ‡t16
ÅƓÙ% &®¯@“ù ”G% ¡_£>°|#ˆ±“”£>°§–ÅƓÙÇÈ ù
p²“”G| NVM z ÎçÀg
NVM {Ì F †
0: F NVM {Ì .
 †
" ,˜ ’1’ Ú NVM F p…¾ù¿¡"{Ì|ÅƓÙ
®
¯
@ “”¡t£>°G|#ˆ
1: ¬&_
±“”£>°§
– ÅƓÙ
ÇÈ p
²“”G|
«
EER
NVM
: CEh
NVM
0:
7
5-0
zÎ
-
7
6
5
4
3
2
1
0
NVMDAT.
7
NVMDAT.
6
NVMDAT.
5
NVMDAT.
4
NVMDAT
3
NVMDAT.
2
NVMDAT.
1
NVMDAT.
0
: NVMDATA
NVMDAT.[7:0]
š›œž
F
NVM
{Ì ‚xƒ o ‡5?
- 27 -
NVM
{̙ 
MOVC
“”
zÎ
: CFh
.
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
Bit:
¬
{
6
5
4
3
2
1
0
CY
AC
F0
RS1
RS0
OV
F1
P
: PSW
5
4~3
2
1
0
PWMP
¼
Bit:
0
0
0
00-07h
0
1
1
08-0Fh
1
0
2
10-17h
1
1
3
18-1Fh
,{}~
7
6
5
4
3
2
1
0
-
-
-
-
-
-
PWMP.9
PWMP.8
: PWMPH
7-2
-
1-0
PWMP.[9:8]
PWM
PWM 0
¬
{
: D0h
CY
6
Bit:
zÎ
©†Ÿ ‹ ALU©È&³Œ´%©†‰µ†MË,†
AC
«¬©†Ÿ >¾¿Œ´%x©†‰µ†MË*,†
­ Ÿ 0 ­ •G–™  ¡ € Ÿ †
F0
‚xƒ o Ï_°±†
RS1~RS0
‚xƒ o Ï_°±†
OV
F1
²³#Ÿ : —8˜ p… S&›]—‡‹ ¶
·†·8„ ¶&¸
† ´%_©†Ë]@Ÿ y "
,
­ Ÿ 1: ­ •G–™  ¡ € Ÿ †
P
‚xƒ o å ¯°±† :
RS.1-0:
RS1
RS0
}x~&
 ¹º&»
}
7
¬
{
7
,{}x~
¢{ o ‚xƒ o ¡
9~8
†
zÎ
: D1h
.
7
6
5
4
3
2
1
0
-
-
-
-
-
-
PWM0.9
PWM0.8
: PWM0H
7~2
-
1~0
PWM0.[9:8] PWM 0
‚_ƒ o
9~8
†
.
- 28 -
zÎ
: D2h
W79E8213
PWM 1
Bit:
¬
{
,{}~
7
6
5
4
3
2
1
0
-
-
-
-
-
-
PWM1.9
PWM1.8
: PWM1H
Z
7~2
-
1~0
PWM1.[9:8] PWM1
PWM 2
Bit:
¬
{
,{}~
4
3
2
1
0
-
-
-
-
-
-
PWM2.9
PWM2.8
: PWM2H
Z
PWM2.[9:8] PWM2
PWM 3
†
9~8
zÎ
: D5h
.
7
6
5
4
3
2
1
0
-
-
-
-
-
-
PWM3.9
PWM3.8
: PWM3H
Z
-
1~0
PWM3.[9:8] PWM3
¬
{
‚xƒ o
,{}~
7~2
Bit:
.
5
1~0
PWM
†
6
-
¬
{
9~8
: D3h
7
7~2
Bit:
‚xƒ o
zÎ
5
6}x~
‚xƒ o
9~8
†
6
-
-
.
5
4
-
-
3
2
1
0
FP1
FP0
-
BKF
: PWMCON3
7-4
-
3-2
FP[1:0]
: D6h
3
7
zÎ
.
PWM
T

°±† . ‹
PWMRUN=1,
FP[1:0]
Fpwm
00
FOSC
- 29 -
™&R¾½=¿À
zÎ
: D7h
.
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
1
-
0
BKF
¾Ã:Ä
Bit:
¬
{
7
01
FOSC/2
10
FOSC/4
11
FOSC/16
.
küÁ ±± .
@ †ÂâC>!"
1: ™&R PWM Á
.
0: PWM
56
.
7
6
5
4
3
2
1
0
WDRUN
-POR
WD1
WD0
WDIF
WTRF
EWRST
WDCLR
zÎ
: WDCON
WDRUN
0:
1:
6
-
5
WD1
4
WD0
S K Æ
Å H
K Æ
Å H
Å K=Æ
ûü
Œ È
.
çË o °±
WD1
0
0
1
WDIF
2
WTRF
1
EWRST
0
WDCLR
.
WD0
Interrupt time-out
17
0
2
20
1
2
23
0
2
26
Reset time-out
17
+ 512
20
+ 512
23
+ 512
26
+ 512
2
2
2
K Æ çË o ŽxŸ Å =
g¤>Æ Å :K Æ o Ž™MR‡+@†&, 1 ÃÃ
Ç Ç Å K*K:Æ Æ çË oˆo É*ŽÊ >´%M|5g¤Å K
çMË ŽU
?¾@‡] bÈ@†¥¡8,†
Å
çË
aGË|@†gh
âK=CÆ > o !"
Å K:¢
Ë Uo çŸ Æ
‹$Å
çË •†–, ì †G|@†• 
Ë r •†G¡HÌÍM|*•9–1?0@†K:Ƈ
ý
goh
Î …M
! Š|#ö •x†ß†
! Š|5g¤ EWT Ï 0 ‡]@†
LÅ
çË KH¡]Æ ¸M¹ o
Ë o •_† .
0: küÅ
KHÆ ç
ç
Ë •_† .
1: l>mÅ
Æ çË o ! ’0’
KHÆ çË o •x†G|@†  PM
! ŠÅ K:Æ çË oÐ ’&
•x†9|5@o
WDCON.0 – Å
H
K
Æ
† „Æ…!
"M‡"ˆ&¥Úê@†FK:» Æ 1–M‡xo »-„È…’
, 0©&|1ª g¤Å K:Æ¢MË
U ç™R‡ È
g
h ˆ&Å
çMË ²G³– 512 …Ë_ú
Á1&Å
çË
o
!M
" ‡$Ñ
,
Ò ´%
p …
Å KHÆ çË o •†
1
3
: D8h
1
2
- 30 -
2
W79E8213
‚ ƒ o WDCONˆ&•x†–M¡*Ó¡„ 0x0000x0B | WTRF (WDCON.2) y ", ’1’ „>Å K:Æ çË o
DE
&y R x
•x†M‡ ", ’0’ „>' ì •xy †G| WDIF (WDCON.3)Q ä •x†,ž|:' ‚ìƒ •xo †MË PORy ", ’1’ |H' ì •_†
Ë EWRST (WDCON.1) ‚"ƒ , o ’0’°‡± ‘’ •†bL&°¸± ¹M|]DEd
dR
WDCON ¡ EWRST, WDIF ´
¨#‘’†L
‡uv?]—
L °± |*ÔÕ>Ö
×bØ TA ‚xƒ o ¡
WDCLR †¡]F>]—
L TA
ef .
PWMP
Bit:
¬
{
7~0
PWM0
Bit:
¬
{
7~0
PWM1
Bit:
¬
{
7~0
¼
TA
WDCON
MOV
MOV
SETB
ORL
MOV
MOV
ORL
REG
C7H
REG
D8H
TA, #AAH
TA, #55H
WDCON.0
WDCON, #00110000B
TA, #AAH
TA, #55H
WDCON, #00000010B

{}x~
; To access protected bits
; Reset watchdog timer
; Select 26 bits watchdog timer
; Enable watchdog reset
7
6
5
4
3
2
1
0
PWMP.7
PWMP.6
PWMP.5
PWP.4
PWMP.3
PWMP.2
PWMP.1
PWMP.1
: PWMPL
¢{ o ¡† ‚xƒ o
PWMP.[7:0]
{}x~
zÎ
: D9h
.
7
6
5
4
3
2
1
0
PWM0.7
PWM0.6
PWM0.5
PWM0.4
PWM0.3
PWM0.2
PWM0.1
PWM0.1
: PWM0L
PWM0.[7:0]
PWM 0
{}~
† ‚xƒ o
zÎ
: DAh
.
7
6
5
4
3
2
1
0
PWM1.7
PWM1.6
PWM1.5
PWM1.4
PWM1.3
PWM1.2
PWM1.1
PWM1.0
: PWM1L
PWM1.[7:0]
PWM 1
† ‚_ƒ o
zÎ
: DBh
.
- 31 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
PWM
5
6}~
Bit:
¬
{
7
1
7
6
5
4
3
2
1
0
PWMRUN
Load
PWMF
CLRPWM
PWM3I
PWM2I
PWM1I
PWM0I
: PWMCON1
PWMRUN
0: PWM
“½Œo È
zÎ
: DCh
.
¢{ Œ È
‚xƒ o ¡5¡ÚÙêY o , y V
Ûx¢{ o ´ÜÙêY o ‚xƒ o Ž¨
0: PWMP
o Ú ù ²G³]–‡ PWMP ‚ƒ o ¡5¡
V»¢{ o ‚ƒ o ‡ ù p… ©
1: ˆ¢{
ª +! ’0’ |
ù ²³#Ÿñ† .
PWM Ú
0: “½²³ .
o Ú ù ²G³ (´&% PWM Ž8֜‡‹ PWM Ž™&R ).
1: PWM 10 †¢{
! PWM ¢{ o
o ˜ 000H.
1: ! PWM 10 †¢{
,†–¥C
â +1 ¬„Æ… !Š .
ò [³ .
0: PWM3 ò [³ .
1: PWM3 Ýx
1
ò [³ .
0: PWM2 ò [³ .
1: PWM2 Ýx
1
ò [³ .
0: PWM1 ò [³ .
1: PWM1 Ýx
1
ò [³ .
0: PWM0 ò [³ .
1: PWM0 Ýx
1: PWM
6
Load
5
PWMF
4
CLRPWM
3
PWM3I
2
PWM2I
1
PWM1I
0
PWM0I
PWM2
{}x~
Bit:
¬
{
7~0
PWM3
Bit:
¬
7
6
5
4
3
2
1
0
PWM2.7
PWM2.6
PWM2.5
PWM2.4
PWM2.3
PWM2.2
PWM2.1
PWM2.0
: PWM2L
PWM2.[7:0]
PWM 2
{}x~
† ‚xƒ o
zÎ
: DDh
.
7
6
5
4
3
2
1
0
PWM3.7
PWM3.6
PWM3.5
PWM3.4
PWM3.3
PWM3.2
PWM3.1
PWM3.0
: PWM3L
- 32 -
zÎ
: DEh
W79E8213
{
7~0
PWM
PWM3.[7:0]
5
6}~
Bit:
¬
{
PWM 3
† ‚_ƒ o
.
2
7
6
5
4
3
2
1
0
BKCH
BKPS
BPEN
BKEN
PWM3B
PWM2B
PWM1B
PWM0B
: PWMCON2
7
BKCH
6
BKPS
5
BPEN
4
BKEN
3
PWM3B
2
PWM2B
1
PWM1B
0
PWM0B
Þ ùÃ
‡*Á ±± PWM
1: P0.2=1 ‡*Á
PWM
ùÞ Ã
± kü .
0: Á
± l>mM:‡ ß Þ ùà .
1: Á
± ½
à PWM3[³_˜U
0: ‹*Á
‹ Á ± ½ à PWM3[³_˜ 1: *
±
‹ Á ± ½ à PWM2[³_˜U
0: *
½
à PWM2[³_˜
1: ‹*Á
±
‹ Á ± ½ à PWM1[³_˜U
0: *
‹ Á ½ à PWM1[³_˜ 1: *
±
½
à PWM0[³_˜U
0: ‹*Á
‹ Á ± ½ à PWM0[³_˜ 1: *
0: P0.2=0
ç>è
Bit:
0
0
0
1
1
0
1
Á ± r
r N ?Z@
Á ± r
N ‡ >
Á ±

6
½
6&âãä
BKEN
:
°±
ŒÈ (PWMRUN=0) ˇâ PWMnB"ç PWM ¡H[³*²
‹ PWM ˜xŒÈ (PWMRUN=1) ˇ
N ‡‹*Á ± O“ç–‡]“½ PWM[³‡ PWMRUN† y !MŠ Ð ¬ BKF
‹
PWM
Ÿ S˜, ’0’ |
PWM ©ÈŒÈ
1
7
v: DFh
.
á
{
zÎ
5
.
. PWM
[³“½‚å
4
- 33 -
3
PWMnB,
2
©È 12æ å T [ ³
1
.
0
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
¬
{
7-0
ADC
Bit:
¬
{
ACC.7
ACC.6
ACC.5
ACC.4
ACC.3
ACC.2
ACC.1
: ACC
ACC.[7:0]
ACC
5
6}~
‚xƒ o „Ÿñ
zÎ
ACC.0
: E0h
¡8éU£ o
8052
7
6
5
4
3
2
1
0
ADC.1
ADC.0
ADCEX
ADCI
ADCS
RCCLK
AADR1
AADR0
: ADCCON
7-6
ADC.1-0
10
5
ADCEX
=‘0’
†
ADC
£¤¡
2
†
.
zÎ
: E1h
†
, ‘1’êä N ’ ADC
ëG| ù E N
(
’ ADC
ëG|
=‘1’ ‡¬ ADCS †
, ‘1’ ‰Q
STADC W 1.4 XC'G¡
4
ADCI
 ë8
£ °M‡
룤•9–ê?ˇ ADCIŸ †, ‘1’ | D
ADC Ž]xŸ †|,‹ ADC †&! ‘0’ ‡U6•¥–:&!
ADC Ž,™R‡U€•9–©» ADC Ž,‡t©»9
G ŽU‹ –N ’@½Ÿ¡ ADC

ë .
‘0’ ýR>
, ‘1’ |HD@Ÿ †˜ ‘1’ ˇ]€
N
N
3
ADCS
’´wxŸ †*| ¬ ADCS , ‘1’ &
’ p
ì ADC &
 ëM‡_•9–=⠉Q ä ¡
ADC
m , ‘1’ ‡‹ ADC íË ADCS=‘1’ |5&
 ë>
£ °‡ ADCI ,†– ADCS=‘0’ |5g
STADC ^
¤ ADCS=‘1’‰ ADCI =‘1’ Ë G ‹ N ’½M¡ ADC
 ë . €&î
g
¤ ˆ&" ADCI=0 ¡ËU\‡ ADCS=1 ‡
Ȉ *2 p
'9¡U½G¡ A/D &
 ëbï'
N ’G
|Cý ’ð › ADCI=0 ‡ . ADCS=1
2
RCCLK
0: CPU Ë"ú—˜ ADC Ëtú .
ä RC Ë"ú—˜ ADC Ëtú .
1: Á
Þ ùÃ .
1
AADR1
Þ ùÃ .
0
AADR0
ADC œ :
ADCI
ADCS
ADC œ
N
0
0
’ p…½M¡1
 ë
ADC ôõ‡"•9–
0
1
 ëŽ
ADC íM‡
1
0
 ë8
£ °M‡ N ’½¡5&
 ëˇ5`œ ADCI=0
N
1
1
 ë8
£ °M‡ ’½¡5&
 ëˇ5`œ ADCI=0
AADR1, AADR0: ž
ñ
òóQ
R{ :
ü .
ADC ôHõZö*÷ø
ùúûübýHþÜÿ ADCI=0 ADCS=0 ò
ó
AADR2
AADR1
AADR0
0
0
‡]S½
¬
ADCS
AD0 (P0.3)
0
- 34 -
W79E8213
ADC
Bit:
!"#
7-0
ADC
Bit:
!"#
7-6
0
0
1
AD1 (P0.4)
0
1
0
AD2 (P0.5)
0
1
1
AD3 (P0.6)
1
0
0
AD4 (P0.2)
1
0
1
AD5 (P0.1)
1
1
0
AD6 (P0.0)
1
1
1
AD7 (P0.7)
7
6
5
4
3
2
1
0
ADC.9
ADC.8
ADC.7
ADC.6
ADC.5
ADC.4
ADC.3
ADC.2
: ADCH
&'
(*)
ADC.[9:2]
01*
ADC
+-,-./
$%
: E2h
.
1
7
6
5
4
3
2
1
0
ADCLK.1
ADCLK.0
-
-
-
AADR2
-
-
: ADCCON1
&'
ADCLK.1~0
(*)
24356 :
10 7 ADC 24389:
: E3h
ADC
200KHz ~ 5MHz. .
243;<
ADCLK.1
ADCLK.0
ADC
0
0
ADCCLK/1
0
1
ADCCLK/2
1
0
ADCCLK/4 (
1
1
ADCCLK/8
Note:
5-3
-
HJI
2
AADR2
ADC
1-0
-
MNOP $%
HJI
.
?-@*A
KL56
ADCEN (ADCEN = 0)
B*CDE
ADC
=>
)
GF
.
.
.
1
- 35 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
Bit:
!"#
6
5
4
3
2
1
0
EED
EPWMUF
EPWM
EWDI
-
-
-
-
: EIE
&'
7
6
5
4
3
2
1
0
B.7
B.6
B.5
B.4
B.3
B.2
B.1
B.0
6
EPWMUF
5
EPWM
EWDI
Bit:
!"#
:B
0:
()
klm-nop
7-0 B.[7:0]
uwv ADC xy z{
Bit:
!"#
7
: E8h
-
EED
3-0
(*)
$%
QRSTUVGWX
1: Y-ZSTUVGWX .
0: QR PWM [\JWX .
1: Y-Z PWM [\JWX .
0: QR PWM [\JWX^]`_abced
1: Y-Z PWM [\JWX^]`_abced
0: QRfhgjiWX .
1: Y-ZfhgjiWX .
HJI .
7
4
B
7
&'
8052
Wq4r !*st m
.
.
$%
: F0h
.
7
6
5
4
3
2
1
0
PADIDS.7
PADIDS.6
PADIDS.5
PADIDS.4
PADIDS.3
PADIDS.2
PADIDS.1
PADIDS.0
: PADIDS
&'
PADIDS.7
(*)
P0.7
=>
QR
0:
PADIDS.6
5
PADIDS.5
.
.
~  7 |}KL .
P0.6 |}KLQR7 .
0: => .
1: QR ADC ~ 3 |}KL .
P0.5 |}KLQR7 .
0: => .
1: QR ADC ~ 2 |}KL .
1:
6
|}KLQR7
ADC
- 36 -
$%
: F6h
W79E8213
4
PADIDS.4
P0.4
= >
1: QR
0:
3
PADIDS.3
2
PADIDS.2
1
PADIDS.1
0
PADIDS.0
MN€‚
Bit:
!"#
|}KLQR7
.
.
~  1 |}KL .
P0.3 |}KLQR7 .
0: => .
1: QR ADC ~ 0 |}KL .
P0.2 |}KLQR7 .
0: => .
1: QR ADC ~ 4 |}KL .
P0.1 |}KLQR7 .
0: => .
1: QR ADC ~ 5 |}KL .
P0.0 |}KLQR7 .
0: => .
1: QR ADC ~ 6 |}KL .
ADC
1
7
6
5
4
3
2
1
0
PEDH
PPWMH
PBKH
PWDIH
-
-
-
-
: IP1H
&'
(*)
$%
: F7h
3-0
-
ƒ„STUVGWX…-† .
1: ƒ„ PWM WX…-† .
1: ƒ‡ PWM bcJWXˆ‰Šˆ…-†
1: ƒ‡fhgjiWXŠˆ…† .
HJI .
Bit:
7
6
5
4
3
2
1
0
PED
PPWM
PBK
PWDI
-
-
-
-
7
PEDH
6
PPWMH
5
PBKH
4
PWDIH
MN€‹
!"#
7
: IP1
&-'
PED
1:
(*)
1:
ƒ„STUVGWXŒ-†
.
$%
: F8h
.
- 37 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
3-0
-
ƒ„ PWM WXŒ-† .
1: ƒ‡ PWM bcJWXˆ‰ŠˆŒ-†
1: ƒ‡fhgjiWXŠˆŒ† .
HJI .
Bit:
7
6
5
4
3
2
1
0
!"#
-
-
BUZDIV.5
BUZDIV.4
BUZDIV.3
BUZDIV.2
BUZDIV.1
BUZDIV.0
6
PPWM
5
PBK
4
PWDI
*Ž 01*
: BUZCON
&'
7-6
-
5-0
BUZDIV
1:
*
( )
HJI .
m 567
.
:
Fbuz = Fcpu x 1/[(256)x(BUZDIV + 1)]
- 38 -
$%
: F9h
W79E8213
9
‘“’
”•–— 8032 ˜”™-š› m WqœžeqŸ J¡jŸ eq4¢-Z-£4¤ o¥ 7¦§¨7eq4©*ª«¬
­ o p
š› m qŸ ®e¯¡j° n Ÿ eq24± l²-³´Gµ¶·-n ž 2¸-¹Gº£4»¼ W79E8213 ”•½
¸G243¾¿-À¼¸Á m ¾¿*£4 op 8032½ 12¸J243¾¿-À¼¸Ãľ¿G¡Å_ W79E8213 ”• ½¸
Á m ¾¿Æž¼¸ÇÈ-É*£Â op 8032 ½¸Á m ¾¿ž 2¸ÇÈÉG¡
”• qj‰Ê ²-ËhÌÍË ½¸Á m ¾¿Æž¼t ¸ÇÈÉG£ºÎ¤ÏÐ|Ÿ ÑÒÄÁ m ¾¿|Ó
W79E8213
Ô q4ÕÉ||“
Ö×®h¯¡Â-¤ ËØ +-ÓÙÚ-Ÿ J£ÛÜ ¼¸Ÿ- ¾¿ÚÞÝjßà-áeq4â±$-%J¡4ãä-˜å
ÑÒ£ W79E8213 ”• æçJèéÇÓêëGq¾¿£-ºÂì†è”íq4î< .
W79E8213
8032
4
Op-code
HEX Code
Bytes
W79E8213
Machine
Cycle
W79E8213
Clock
cycles
8032
Clock
cycles
W79E8213 vs.
8032 Speed
Ratio
NOP
00
1
1
4
12
3
ADD A, R0
28
1
1
4
12
3
ADD A, R1
29
1
1
4
12
3
ADD A, R2
2A
1
1
4
12
3
ADD A, R3
2B
1
1
4
12
3
ADD A, R4
2C
1
1
4
12
3
ADD A, R5
2D
1
1
4
12
3
ADD A, R6
2E
1
1
4
12
3
ADD A, R7
2F
1
1
4
12
3
ADD A, @R0
26
1
1
4
12
3
ADD A, @R1
27
1
1
4
12
3
ADD A, direct
25
2
2
8
12
1.5
ADD A, #data
24
2
2
8
12
1.5
ADDC A, R0
38
1
1
4
12
3
ADDC A, R1
39
1
1
4
12
3
ADDC A, R2
3A
1
1
4
12
3
ADDC A, R3
3B
1
1
4
12
3
ADDC A, R4
3C
1
1
4
12
3
ADDC A, R5
3D
1
1
4
12
3
ADDC A, R6
3E
1
1
4
12
3
ADDC A, R7
3F
1
1
4
12
3
ADDC A, @R0
36
1
1
4
12
3
ADDC A, @R1
37
1
1
4
12
3
ADDC A, direct
35
2
2
8
12
1.5
- 39 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ADDC A, #data
34
2
2
8
12
1.5
SUBB A, R0
98
1
1
4
12
3
SUBB A, R1
99
1
1
4
12
3
SUBB A, R2
9A
1
1
4
12
3
SUBB A, R3
9B
1
1
4
12
3
SUBB A, R4
9C
1
1
4
12
3
SUBB A, R5
9D
1
1
4
12
3
SUBB A, R6
9E
1
1
4
12
3
SUBB A, R7
9F
1
1
4
12
3
SUBB A, @R0
96
1
1
4
12
3
SUBB A, @R1
97
1
1
4
12
3
SUBB A, direct
95
2
2
8
12
1.5
SUBB A, #data
94
2
2
8
12
1.5
INC A
04
1
1
4
12
3
INC R0
08
1
1
4
12
3
INC R1
09
1
1
4
12
3
INC R2
0A
1
1
4
12
3
INC R3
0B
1
1
4
12
3
INC R4
0C
1
1
4
12
3
INC R5
0D
1
1
4
12
3
INC R6
0E
1
1
4
12
3
INC R7
0F
1
1
4
12
3
INC @R0
06
1
1
4
12
3
INC @R1
07
1
1
4
12
3
INC direct
05
2
2
8
12
1.5
INC DPTR
A3
1
2
8
24
3
DEC A
14
1
1
4
12
3
DEC R0
18
1
1
4
12
3
DEC R1
19
1
1
4
12
3
DEC R2
1A
1
1
4
12
3
DEC R3
1B
1
1
4
12
3
DEC R4
1C
1
1
4
12
3
DEC R5
1D
1
1
4
12
3
DEC R6
1E
1
1
4
12
3
DEC R7
1F
1
1
4
12
3
DEC @R0
16
1
1
4
12
3
DEC @R1
17
1
1
4
12
3
- 40 -
W79E8213
DEC direct
15
2
2
8
12
1.5
DEC DPTR
A5
1
2
8
24
3
MUL AB
A4
1
5
20
48
2.4
DIV AB
84
1
5
20
48
2.4
DA A
D4
1
1
4
12
3
ANL A, R0
58
1
1
4
12
3
ANL A, R1
59
1
1
4
12
3
ANL A, R2
5A
1
1
4
12
3
ANL A, R3
5B
1
1
4
12
3
ANL A, R4
5C
1
1
4
12
3
ANL A, R5
5D
1
1
4
12
3
ANL A, R6
5E
1
1
4
12
3
ANL A, R7
5F
1
1
4
12
3
ANL A, @R0
56
1
1
4
12
3
ANL A, @R1
57
1
1
4
12
3
ANL A, direct
55
2
2
8
12
1.5
ANL A, #data
54
2
2
8
12
1.5
ANL direct, A
52
2
2
8
12
1.5
ANL direct, #data
53
3
3
12
24
2
ORL A, R0
48
1
1
4
12
3
ORL A, R1
49
1
1
4
12
3
ORL A, R2
4A
1
1
4
12
3
ORL A, R3
4B
1
1
4
12
3
ORL A, R4
4C
1
1
4
12
3
ORL A, R5
4D
1
1
4
12
3
ORL A, R6
4E
1
1
4
12
3
ORL A, R7
4F
1
1
4
12
3
ORL A, @R0
46
1
1
4
12
3
ORL A, @R1
47
1
1
4
12
3
ORL A, direct
45
2
2
8
12
1.5
ORL A, #data
44
2
2
8
12
1.5
ORL direct, A
42
2
2
8
12
1.5
ORL direct, #data
43
3
3
12
24
2
XRL A, R0
68
1
1
4
12
3
XRL A, R1
69
1
1
4
12
3
- 41 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
XRL A, R2
6A
1
1
4
12
3
XRL A, R3
6B
1
1
4
12
3
XRL A, R4
6C
1
1
4
12
3
XRL A, R5
6D
1
1
4
12
3
XRL A, R6
6E
1
1
4
12
3
XRL A, R7
6F
1
1
4
12
3
XRL A, @R0
66
1
1
4
12
3
XRL A, @R1
67
1
1
4
12
3
XRL A, direct
65
2
2
8
12
1.5
XRL A, #data
64
2
2
8
12
1.5
XRL direct, A
62
2
2
8
12
1.5
XRL direct, #data
63
3
3
12
24
2
CLR A
E4
1
1
4
12
3
CPL A
F4
1
1
4
12
3
RL A
23
1
1
4
12
3
RLC A
33
1
1
4
12
3
RR A
03
1
1
4
12
3
RRC A
13
1
1
4
12
3
SWAP A
C4
1
1
4
12
3
MOV A, R0
E8
1
1
4
12
3
MOV A, R1
E9
1
1
4
12
3
MOV A, R2
EA
1
1
4
12
3
MOV A, R3
EB
1
1
4
12
3
MOV A, R4
EC
1
1
4
12
3
MOV A, R5
ED
1
1
4
12
3
MOV A, R6
EE
1
1
4
12
3
MOV A, R7
EF
1
1
4
12
3
MOV A, @R0
E6
1
1
4
12
3
MOV A, @R1
E7
1
1
4
12
3
MOV A, direct
E5
2
2
8
12
1.5
MOV A, #data
74
2
2
8
12
1.5
MOV R0, A
F8
1
1
4
12
3
MOV R1, A
F9
1
1
4
12
3
MOV R2, A
FA
1
1
4
12
3
MOV R3, A
FB
1
1
4
12
3
MOV R4, A
FC
1
1
4
12
3
MOV R5, A
FD
1
1
4
12
3
- 42 -
W79E8213
MOV R6, A
FE
1
1
4
12
3
MOV R7, A
FF
1
1
4
12
3
MOV R0, direct
A8
2
2
8
12
1.5
MOV R1, direct
A9
2
2
8
12
1.5
MOV R2, direct
AA
2
2
8
12
1.5
MOV R3, direct
AB
2
2
8
12
1.5
MOV R4, direct
AC
2
2
8
12
1.5
MOV R5, direct
AD
2
2
8
12
1.5
MOV R6, direct
AE
2
2
8
12
1.5
MOV R7, direct
AF
2
2
8
12
1.5
MOV R0, #data
78
2
2
8
12
1.5
MOV R1, #data
79
2
2
8
12
1.5
MOV R2, #data
7A
2
2
8
12
1.5
MOV R3, #data
7B
2
2
8
12
1.5
MOV R4, #data
7C
2
2
8
12
1.5
MOV R5, #data
7D
2
2
8
12
1.5
MOV R6, #data
7E
2
2
8
12
1.5
MOV R7, #data
7F
2
2
8
12
1.5
MOV @R0, A
F6
1
1
4
12
3
MOV @R1, A
F7
1
1
4
12
3
MOV @R0, direct
A6
2
2
8
12
1.5
MOV @R1, direct
A7
2
2
8
12
1.5
MOV @R0, #data
76
2
2
8
12
1.5
MOV @R1, #data
77
2
2
8
12
1.5
MOV direct, A
F5
2
2
8
12
1.5
MOV direct, R0
88
2
2
8
12
1.5
MOV direct, R1
89
2
2
8
12
1.5
MOV direct, R2
8A
2
2
8
12
1.5
MOV direct, R3
8B
2
2
8
12
1.5
MOV direct, R4
8C
2
2
8
12
1.5
MOV direct, R5
8D
2
2
8
12
1.5
MOV direct, R6
8E
2
2
8
12
1.5
MOV direct, R7
8F
2
2
8
12
1.5
MOV direct, @R0
86
2
2
8
12
1.5
MOV direct, @R1
87
2
2
8
12
1.5
- 43 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
MOV direct, direct
85
3
3
12
24
2
MOV direct, #data
75
3
3
12
24
2
MOV DPTR, #data 16
90
3
3
12
24
2
MOVC A, @A+DPTR
93
1
2
8
24
3
MOVC A, @A+PC
83
1
2
8
24
3
MOVX A, @R0
E2
1
2-9
8 - 36
24
3 - 0.66
MOVX A, @R1
E3
1
2-9
8 - 36
24
3 - 0.66
MOVX A, @DPTR
E0
1
2-9
8 - 36
24
3 - 0.66
MOVX @R0, A
F2
1
2-9
8 - 36
24
3 - 0.66
MOVX @R1, A
F3
1
2-9
8 - 36
24
3 - 0.66
MOVX @DPTR, A
F0
1
2-9
8 - 36
24
3 - 0.66
PUSH direct
C0
2
2
8
24
3
POP direct
D0
2
2
8
24
3
XCH A, R0
C8
1
1
4
12
3
XCH A, R1
C9
1
1
4
12
3
XCH A, R2
CA
1
1
4
12
3
XCH A, R3
CB
1
1
4
12
3
XCH A, R4
CC
1
1
4
12
3
XCH A, R5
CD
1
1
4
12
3
XCH A, R6
CE
1
1
4
12
3
XCH A, R7
CF
1
1
4
12
3
XCH A, @R0
C6
1
1
4
12
3
XCH A, @R1
C7
1
1
4
12
3
XCHD A, @R0
D6
1
1
4
12
3
XCHD A, @R1
D7
1
1
4
12
3
XCH A, direct
C5
2
2
8
12
1.5
CLR C
C3
1
1
4
12
3
CLR bit
C2
2
2
8
12
1.5
SETB C
D3
1
1
4
12
3
SETB bit
D2
2
2
8
12
1.5
CPL C
B3
1
1
4
12
3
CPL bit
B2
2
2
8
12
1.5
ANL C, bit
82
2
2
8
24
3
ANL C, /bit
B0
2
2
6
24
3
ORL C, bit
72
2
2
8
24
3
ORL C, /bit
A0
2
2
6
24
3
MOV C, bit
A2
2
2
8
12
1.5
- 44 -
W79E8213
MOV bit, C
92
2
2
8
24
3
ACALL addr11
71, 91, B1,
11, 31, 51,
D1, F1
2
3
12
24
2
LCALL addr16
12
3
4
16
24
1.5
RET
22
1
2
8
24
3
RETI
32
1
2
8
24
3
AJMP ADDR11
01, 21, 41,
61, 81, A1,
C1, E1
2
3
12
24
2
LJMP addr16
02
3
4
16
24
1.5
JMP @A+DPTR
73
1
2
6
24
3
SJMP rel
80
2
3
12
24
2
JZ rel
60
2
3
12
24
2
JNZ rel
70
2
3
12
24
2
JC rel
40
2
3
12
24
2
JNC rel
50
2
3
12
24
2
JB bit, rel
20
3
4
16
24
1.5
JNB bit, rel
30
3
4
16
24
1.5
JBC bit, rel
10
3
4
16
24
1.5
CJNE A, direct, rel
B5
3
4
16
24
1.5
CJNE A, #data, rel
B4
3
4
16
24
1.5
CJNE @R0, #data, rel
B6
3
4
16
24
1.5
CJNE @R1, #data, rel
B7
3
4
16
24
1.5
CJNE R0, #data, rel
B8
3
4
16
24
1.5
CJNE R1, #data, rel
B9
3
4
16
24
1.5
CJNE R2, #data, rel
BA
3
4
16
24
1.5
CJNE R3, #data, rel
BB
3
4
16
24
1.5
CJNE R4, #data, rel
BC
3
4
16
24
1.5
CJNE R5, #data, rel
BD
3
4
16
24
1.5
CJNE R6, #data, rel
BE
3
4
16
24
1.5
CJNE R7, #data, rel
BF
3
4
16
24
1.5
DJNZ R0, rel
D8
2
3
12
24
2
DJNZ R1, rel
D9
2
3
12
24
2
DJNZ R5, rel
DD
2
3
12
24
2
DJNZ R2, rel
DA
2
3
12
24
2
- 45 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
DJNZ R3, rel
DB
2
3
12
24
2
DJNZ R4, rel
DC
2
3
12
24
2
DJNZ R6, rel
DE
2
3
12
24
2
DJNZ R7, rel
DF
2
3
12
24
2
DJNZ direct, rel
D5
3
4
16
24
1.5
TABLE 9-1: INSTRUCTION SET FOR W79E8213
- 46 -
W79E8213
h
ï ðwñò
Ÿ
¤ W79A8213 ”•ÑÒ n ¼¸ôõ · qö÷J£4¤ Ë Ú-øùJq4úûÑüý„*2qÚþÿ-Àõ · ¡
Ô G
24ó
ÚþÒ W79A8213 ”• ­ op 8032² 24±åeq ³´ ¡ ² W79A8213 ”•GW4½¸Á m ¾¿ n 4¸
243¾¿ n ¼¸t„ qj§¨e¡ºÎ¼¸Á m ¾¿ Ì 4¸-„Gq§¨ C1 C2 C3 C4
243 ¾¡ ¿ÌÍË £4½½¸J
Ë 50% £ÝŸ e*q2–—åVý J¡ 補eÝ23Jq 2¸ Ø STÚ Ë a2±J¡ºÎJ243Gqjé
!#"%$ Ò& W79A8213 ”•½¼¸Á m ¾¿'—¼(*)+,ÇÕ-ÉG£º4ΤÏÐ|Ÿ ÑÒG£–—Ÿ
hqÁ m ¾-¿ ­ Õ-É+hWq4}-|®Þ¯¡”í/.10-ž 256 ¸ÕÉ+e£4ÄhWž 128 ¸ n2 ¾-¿Ÿ- Þ¡º4Î
² W79A8213 ”•eW4ž-¼3Jq4Ÿ -Û ² 4 ¸e23-¾¿ –—-«54J¡¤GÐ|16-}--Ÿ -Ñ-ÒJ£Ÿ hq–—
¾¿ n 2¸Á m ¾¿e¡° žŸ *À¼¸}--°¾¿ n 2¸J23¾¿Jq8759 µ ¼¸/: · ö ´;< q4Ÿ- n
MOVX Ÿ £ ²op 8032 W>=JqŸ ¾¿@?„À 2 ¸Á m ¾¿ . ° ² W79A8213 ”•GW>=Jq4Ÿ ¾¿A À 2-9 ¸Á m ¾¿J¡ RD Ó WR BC ž®Deq E ¡>F*ÀÚþGIH 5J1KƒLMNÑJè4úOG£8P
:YÚQ-_eq_R5S8TJ£ æçeèøùU1Ve¡8W[eq4Ÿ- hq4Á m ¾-¿|“ÖXAÞÝ n 3 ¸J£ 4 ¸e£ 5 ¸Þ¡ ;<
² W79A8213 ”•hWY Ë Ÿ* *}5-G| Öq*P ¯-£*0ž 5 Z5[\hqŸ h£Â o*p 8032 WÆ*ž 3 ZŸ* [
\J¡° n W79E8213 ”•JW4½ 4¸J23¾¿À¼¸Á m ¾¿*£ÂP nop 8032 W4½ 12¸J23¾¿À¼¸
Á m ¾-¿e¡ºÎ]/^Ÿ- Z[ÜGÐ-£ W79A8213 ”•eWqŸ- -–—5 · o-p 8032 1.5-3 _Þ¡ ] Ý
243¾¿ßàhd .
9.1
Single Cycle
C1
C2
C3
C4
CPU CLK
ALE
PSEN
A7-0
AD<7:0>
Data_ in D7-0
Address A15-8
Address <15:0>
`
9-1:
- 47 -
2 ¾¿Ÿ Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
Operand Fetch
Instruction Fetch
C1
C2
C3
C4
C1
C2
C3
C4
CPU CLK
ALE
PSEN
PC
AD<7:0>
Address<15:0>
OP-CODE
Address A15-8
`
9-2:
Instruction Fetch
C1
PC+1
C2
Address A15-8
6¾¿Ÿ G24±
Operand Fetch
C3
C4
C1
OPERAND
C2
C3
Operand Fetch
C4
C1
C2
C3
C4
CPU CLK
ALE
PSEN
AD<7:0>
Address<15:0>
A7-0
OP-CODE
A7-0
Address A15-8
`
OPERAND
Address A15-8
9-3: 3
¾¿Ÿ Ÿ G24±
- 48 -
A7-0
OPERAND
Address A15-8
W79E8213
Instruction Fetch
C1
C2
C3
Operand Fetch
C4
C1
C2
C3
Operand Fetch
C4
C1
C2
C3
Operand Fetch
C4
C1
C2
C3
C4
CPU CLK
ALE
PSEN
AD<7:0>
A7-0
Address<15:0>
A7-0
OP-CODE
Address A15-8
Address A15-8
`
Instruction Fetch
C1
C2
C3
C4
9-4: 4
C2
C3
A7-0
OPERAND
Address A15-8
OPERAND
Address A15-8
¾¿Ÿ Ÿ G24±
Operand Fetch
C1
A7-0
OPERAND
Operand Fetch
C4
C1
C2
C3
C4
Operand Fetch
C1
C2
C3
C4
Operand Fetch
C1
C2
C3
C4
CPU CLK
ALE
PSEN
AD<7:0>
A7-0 OP-CODE
A7-0 OPERAND
A7-0 OPERAND
A7-0 OPERAND
A7-0 OPERAND
Address<15:0>
Address A15-8
Address A15-8
Address A15-8
Address A15-8
Address A15-8
`
9-5: 5
¾¿Ÿ Ÿ G24±
- 49 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
abdcfe
! ÚþæçSj85k*l£8-S%mû-À1nSmûé5o>mû .
W79E8213 ”•žgh-Sj5iÑj
10.1 prqsIt
Úþ~uv 1 wL PCON.0 £4Y”í'L-é/o8mûJ¡%x”í1yL*é5o8mûGqŸ n ”í ² 'Lé5ozmû
–
q…{¼Ÿ J¡ ² é/o>mû[£4ì1|} CPU q23~1X*£4° n WsX5t „2 m Ô PWM q243€
‚ —J
M*'L„-.§¨ µ â±ß| m >…†Ÿ‡@â±§¨}@ m ¦Ä ¼1ˆ klm q J
É
‰ HŠ ¡FP ƒ CPU
¡ ALEÓ PSEN ² é5o8mû[š Ë †S%‹§¨h¡%Œ¸1Ž‘ Š 'L*é5o8mû q>’“§¨J¡
ž 2Zú-û1AeÝ>””íã-é/o8mûGW8•–¡ ÌÍË WX—c m˜™j² ‚ É£ºÎš›YZ qWX*AhÝ%””
í1•–é/o>mûe¡œ8FƒJqWXV-ý*2£”í1vž È7@Ÿé5o7J£8•–éo8m-û + ®DeqWX*¡¢
â±e¡ ² WX¡5¢â±-« {*£”ív ² Y-”í1'Lé/o8mûq8£Ÿ ¤{¥¦â±Jq>§—J¡
¨
¨
¨
7h¨¯8ƒAÞݝY-”¨ 핖é/ozm-ûe¡8©ª 7eq4úûž ² RST «åK-L¬IS%‹e£åIS 7 Ý ¦-fÞ¨ gi-„
2 m ¨ 7h¡_a 7h2-£*¬S8‹5­ç ·  Š 2 ¸Á m ¾-¿ ] 8 ¸h23*¾-¿ d£ÝzO”í5‚ ® ´ _-a 7B
CJ¶¡ 7{â±-Ÿ‡|¯À 0000H £œ-ž SFR
°&±²§-¨h¡ ÌjË 23 ³ž´R ÉJº4Î-â±-Û~
µ
–-—e¡ ² é/ozm-û[J£fÞgi„*2 m5˜™ ‚ ÉG¨ £-º4η-/fhgi„2 m WX¸¹£f gji-„G2 $m \
–{-ÛüGýJWXY*”í•#¨ –éomûÞ¡ø-ù/º5» 7-¨ f gi*„J2 m £ÝzO ² f gi*„J2 m \–* u
7e¡*œ W79E8213 ”•hÝ 7eqú-ûã*é/o¼mûeW8•–8{£”í1vã½5¹*²
512 ¸G23¾¿{v”í
–—Ÿ e¡
10.2 ¾À¿*sIt
Úþ~uv 1 wL PCON.1 £4Y”í'LnSmûJ¡%x”í1yL‚ nSmûGqŸ n ”í ² 'LnS%m‚ û
…{–—eq¼Ÿ J¡ ² nSÁmû[G£”휞Jq2431´R ɃL1'L´R§¨e¡4”휞Jq É
1¨ ´RG£8FƒSj8Jqzk*lM@Â8­…¬h¡ ² FZ79[*£zŽ åK
¨ –Ä®D SFR klmI q>¯e¡
7hÝ ¦ISÁ‹ Ø –VJqWX*AJÝjY-”í*•–8nS%mûJ¡_a 7A”-”í1•–WX£ RST«åJq‚ †S
¨ 23e¡ â±vã 0000Hš¹*²–—G£ Ì Ë² nSmûGW231´R
‹vÃRnSm-û£>Ä{õá¹Å*
m
É£ºÎfegji-„*2 PZì| 7-¢Z¼”-”í1•–>nSmû¡
·/ EA=1 £_aGWX¼~-ƒ‡-À@S‹UVúûÂÆ®1Deq4_a! WX1¹1yG£8£Ç_aGWXKL«åeq>¬ISÁ‹
J_aeWX5È«eq[@ÂTvÉY-”í1•–¼nS%m-ûe¡8·-/å œÊeq¼ù9:J£œ_aJWXKL«åž
¬#S>‹B5CG2-£ËB/Cv-õá5ÅÈJ23Þ¡ƒL+ ®DÞq-WX1¡/¢â±e£ ² ISR ¡/¢« {G£”ív-ã
Y”í1'LnS%mûq8£Ÿ 1¤{¥¦â±Jq>§— .
10
- 50 -
W79E8213
r
Ì ÍfÎf­*Ï Ð
¨
¨
Úþžô*Ð ¨ ù®ÑJq5iÑ1v W79E8213 ”• 7e¡¨ ¼*ÒÑÒó*Ð klm² 7{1v@°¼&ı1²
¨ £Â5P^ 7eq>[/\·›e¡°ž5ˆ o-¥ 7eq4§¨ÇÓ Ë 7hq%[/\J¡ÚþAhÝ>ÔÕFˆ o¥ 7-ÑÖ*X
¯J
7Jq%[/\*¡
11.1 ×@Ø#ÙÚ
11.1.1 ÛÜ5Ý
”í ² ½¸Á m ¾¿q C4¨¤ RST^1«'—Þ¦G¨ q8߃e¡ºÎ RST^*¨ «åJqS%‹­ç ¨ ·  Š 2¸Á m ¾
¿£Ý Hà ”íáâ&žîJq RST¬IS‹J¡>Ä{¨ 7S>T1ve¯%ãV@– 7BC£ºÎ 7 n ¼¸e¯8ãGq
ÈÉ£ ·ä ¨ 243 ² ο@¼å1§—Ñ5©*ª_a 7e¡
¨
¨
¨ B5C1æ
”í'-L 7§-¨hÝ8{£Æ · RST «å#S%‹-¼å*À1¬J£z£5ǔíM-¼å*š Ë 7§¨eW¡ ² RST
¨
Ÿ¼{£”íç1vÛ ² 2¸Á m ¾¿ HŠ 7§¨£8Ä{1èã 0000H š¹²–—â±e¡j¤-_a 7ÑÒ*£
³ëž ­ ¤éêeq o-¨¥ 7e¡° nÞÌ Ë Å¨ _Jq 2Z 7§¨5ž®Deq o-¥ 7 l² £z£/Ç5œÄ Ô 2¸ o-¥ 7À
2£zAeÝv_a 7>À n =>Jq 7179J¡
11.1.2 ìIízÝ (POR)
¨
¨
¨
ñ
²
ø-ù ,-Ç POR 7 Ý8{5º/»v-Ä57Ÿ£*î/ïv-Û*©eª1&vÑ-¤ 7§-¨Þq¼ÖGXe¡¼·/-Vý¨ nISq¼759
*£”íÛò'—-¼(åIS 7óô5 ƒ
] VDD¬ Ë Vrst d ,£5ǔí1vÛ°¼& 7§¨h¡*œS 85ð
‡ PORo-¥ 7e¡
11.1.3 õIö>÷øù/Ý
fÞÔ gi„*2 m*n ¼¸5NAúâ\–2-q# Ì §—eq„2 m ¡4ÚþAÞÝ ² š›G2¼û7@Ÿf gji-„G2 m £
¨ g
Y õ-á¹1²-ß-¨ |e¡*œf gi-„2 m \–¼{G£zvÛë üý¼$ ¸eWX ]ü·/ËJWX1¸5¹ed>·-/Úþ5ýófÞ
¨
¨
m
²
m
i„G2 üý 7B/CG£z£Ç Ä\– ]ÿþ~7 d>Æ u 512 ¸J235{fÞg4i„G2 Û-ü*ý¼¸ 7
B/Ce¡8Fƒ-Û*Y”í'L 7-§-¨h¡8F-¸-§-¨ Ì Ð ù5 Š 2¸-Á m ¾¿h¡¼•– 7-§-¨G£”-ív-ã
0000H š–—)+ ..
11.2 ×@ب ¨
¨
ÏÐ| SFR² 7{/°&ı1²§¨e¡jâ±ß| m ~ƒÀ 0000H £ÂÆÆ · ¨ 7§¨¼1å HŠ £ Ô v
 Š 0000H q4|1¯P ¡° n 7P©*ªå RAM q4§¨J¡ RAM Wq
² 7-¿z Š P ¡j° n …
†Ÿ‡ À 07H £º4΅†Jq4|1ÕÛ*¡8¨ ·/ VDD¬ Ë 2V ]  Š RAM W|՜5:qj…SJd£8£Ç
7{ RAM Wq4|1ÕP-„*£4œ/Sj8S­ 2V ݝ[{*£
RAM Wq4|ÕMÛ¡º4λ¼(åS
RAM W
¡
¨
WDCON Wq71€Pe
¨ ¯q 71[5\*'—‡7 /7 0 ¨
¨
_a 7
fhgji„2 m 7
åS 7
WDCON
0x0x0xx0b
0x0x01x0b
01000000b
¨
¨
7{‡7e¨ ¡*œ/SÍ8J2¨ £ PFI7 WDCON.4~‡ ’1’ £4åS 7{1~ ’0’ ¨µ
POR ] WDCON.6 d ² åS
7{‡ ’1’, åS 7{~ ¨ ’0’ ¡ EWT ] WDCON.1 d ² åS
WTRF ] WDCON.2 d ² fÞg i„*2 ¨ m
m
7G287Ÿ£8FƒM1vfÞgji-„2
7Ñ£4fhgi„2 m J_a 7PÛ©ª¼Ë7 .
11
- 51 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
W79E8213
¦YZ7J”¡• Å_q”WíXAe Ý>4¸Ñ ‰%ŠJˆ ¸¹10œ¸JžeWWXX8 ¡ . ½¸JWX8ž®DJq‰-Šˆƒ‡7 £ o¥ 7JWX
12.1 !#"/Ú
_aGWX INT0 Ó INT1 1€ IT0Ó IT1 q4ƒ‡AeÝ n STUVJ n S%‹UVG¡ TCON Wq IE0Ó IE1 7 n _
aGWX*q o¥ 7G£8á1âF 27Jqj§9AeÝ%$ n îü-ýè4_aWX¡ ² STU-V1mûGW£”í ² ½¸Á m
¾¿ · ß1ƒ INTx«e¡>·/ ² ¼¸¾¿&߃&†S‹ ² [¼¸- ¾¿&߃&1¬S%‹£8£Ç”íMá1â
&è4¼¸†@S‹5&*¬S%‹Jq Ø £4ÎJ24®1Deq IEx7‡7G£-¯2 ”í'(GWX¡5¢*¡ ÌÍË ”í ² ½¸Á
m ¾¿ · ¤_aGWX*'—߃£º4Î_aJWXKL1«åJq†@S%‹J1¬ISÁ‹­ç ·  Š ¼¸Á m ¾¿J¡
œ”í*ª¼DGWX–—GWX¡5¢â±G2£ Iex71~ž È7@Ÿ-¡>·/56S%‹UVÐúûG£8£ë ÇWX
ä 8Jq>¬
S‹BCº1» HŠ &”í*ª¼DËWX¡ ² 'LJWX*¡¢â±G2£ Iex7PÛ~ ù7 ¡>·-/_aGWXK
L«åJq5SÁ‹ ² WX¼¡5¢â±« { ˜ Ä HŠ £”íÛ µ@¶ ® ´ ËGWX*ò(*'Le¯%ƒJqWX¡¢â±J¡
œ TF0 TF1 o¥ 7‡7J2Ûüý„2 m 0 Ó-„2 m 1 WX¡¼œ„*2 m \–2zFˆ o¥ 7ۇ7e¡*œ–—
„*2 m WX¼¡¢â±2£8Fˆ o¥ 7Û~ Ð ùž È7 ë ¡
fhgji„2 m AhÝ ÚÉ-”í)— m J n ¼¸* 2 q„2 m ¡%+,hÝ%›1Zúû ‚ É£1œ„*2 m- 2z{e¡jf
gji„*2 m WX o¥ WDIF
] WDCON.3 d ۇ7G£z·-/ EIE.4=1 £8£Ç1FG2Ûü*ý¼¸JWX¡
2
œ/.5Žq10¸JWX8 JV3£Vý*WX*2ö4-¢-Z klm SCON q RIÓ TI~¯ ’1’ µ Ë7P*Z È
7 ’0’ £4Úþº»øù17 ’0’ ¡
PWM ¢Z¼AeÝ üý*WX*£ o¥ 7 n BKF £ ² _abc«V-ýbc24ÛüýWX
ä ¡%Ë7PZ#×È
7 ’0’ £4Úþº»øù17 ’0’ ¡‰Šˆ-.5
ADC ž¼¸JWX8£œ ADC +,-.
6{Ûü*ý ADC WX£ o¥ 7 n ö4-¢Z klm ADCCON Wq ADCI
7 µ Ë7P-Z×È7 ’0’ £4Úþº1»øù7 ’0’ ¡
Z P1.0-P1.2 Èz«åJqS-TUVGWX . Ë o¥ 7 Ì øù7Ÿ .
7YJ
WX .
¨
Ð
œžJWXü-ý o-¥8 A Ì ù‡7 / 7G£¯%ƒ1g-øùvFˆ7‡7 AhݼÈVJWX¡%Œ¸JWX*AeÝ Ì IE
klm Wqj®D7Ѹ¹1JÑ ¡ IE Wž-¼¸JWX.¼—c7G£zAeÐÝ%¸¹J1Ñ œžJqWX¡
½¸Á m ¾¿áâJWX o-¥ ÓJWX‰-Š9h¡>·-/9:ö„*ù ùv–— aü*ý*q LCALL Ÿ G£hÖ
o $% n WX $%h¡jü*ý LCALL q8ù n/:
1. Œ¬
ñ ‰ŠˆGqWX1PÛ¸-X¯ê‰-ŠˆGqWXӌ-†‰ŠˆGqWX¼¡5¢â±
² –—Ÿ Gq4…{¼¸¾¿1áâGWX o¥
2. ²ñ
3. ² –—JqŸ P;<w IE, EIE, IP0, IP0H, IP1 or IPH1 klm q4Ÿ 5 1Æ1P n RETI.
·/åÊeq%š›¼¸ùP9:*£ LCALL M1PÛVýG¡ ² ½¼¸Ÿ -¾¿ÛáâJWX o-¥ ¡>·/åÊ
ùž¼¸P9:£>=1Ä o-¥ 7‡ ’1’ £ P*ZªzDJWXG¡œœžeq8ù9:eè£WX o¥ "Á$ k£
ËGWX P-Zò~@°>De¡
š› m ªzD¼¸žîGqWX n ~u–—-¼¸ LCALL Ÿ vâ±+?&WXLŽ $%J¡È>@eÐ WX*qWX o
¥ AZ¼~7/Ÿ žA-Z*P1~Ô7A Ÿ-¡œ¼'LGWX¡¢âA ±„*2£ m WX*q TF0 TF1o¥ Û~ ù7@Ÿ-¡j_
aJWX INT0Ó INT1
ƞ ²
qU-VùVý*2z= q o¥ ~7@Ÿ*¡jfhgi-„2 m WX o¥ WDIFº»
ž*ø-ù57ŸG¡ Ð ù–*—¼¸BÙ-Ÿ* ¡¼Ë-Ÿ H l â-±ß*| m q ‰ &…/†J£° n P H l â-±§*¨-}
12
- 52 -
W79E8213
PSW
¡œ-WXV-ý2
MN
H
_aGWX
_aGWX
-
0
1
PC
~CLJWX $ %e¡WX8eq $ %*é·[ :
MN D%EFG
D%EFG
M N
H
0003h
Timer 0 \–
0013h
Timer 1 \–
7 JWX
0023h
0033h
STUVJWX
DEFG
000Bh
001Bh
002Bh
003Bh
-
0043h
-
004Bh
WDT
0053h
ADC
005Bh
-
0063h
WX
PWM bcJWX
0073h
006Bh
007Bh
WX
$%
12-1: WX
WX I P n Þ¦qé5£ HJI qWX AÚ ËJ {ü Kq1LM2YÚe¡
â±-ã $%Þ¦–—& RETI Ÿ e‰ ¡j–— RETIŸ š› m vã†NO@–|‰IÕ"> $/CR P5& PCŸ‡e¡jÚþ
<² "Á
CPUPÛ$…
º» ;‰I
'RLhWX1{…5† l ñ yeq £¼·/–—eWXQ°Õ-É£z†Nhq $
n*£Â n S91v†NJq4|1ÕCL PCŸ‡£8FƒvÛ@È1@TUV-ý .
†Gq I
PWM
!#"VWX
W79E8213 ”•ž 4¸‰eWXŠˆ-.5J¡FƒY W79E8213 ”•1—cÿÐ*qWX8žÃÏq>YZ÷G£
W79E8213 ”•[ Š Ð
\ 10 ¸ ]^
_ .. ]>^*P`¸^#acbdefg]
^
hijdefg]
^
klmn ]
^/ocpjdeq]^
r`stu#]^v^o>wxaycz 2{ ]>^|}#~1ijdefg]^e€klm
n
x‚za1bdef]>^ay>|}#]^/~#ƒ„%…z†{‡ˆ‰nŠ/‹Œ€ ]^klmn gc‰n 
Ž

‘ Ž’
12.2
IPxH
IPxH
IPx
0
0
0
0
1
0
1
0
1
- 53 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
“
1
1
1
”cf]^def
12-2:
•– “—˜
¯
° CPU gcg±„%²™³š/´ › ]. ^_#œ1žŸœ ¡¢£œ¤¥ŸœcdeqŸœ1¦§n¨#~©ª«¬ c­ ®†{

µ·¶(¸
·
µ
Â
¶
>
Á
Ã
·
µ
(
¶
c
Ä
c
Å
Æ
¾
¼
%
½
%
¿
À
»
ÇÈÉ
ÊËÌÍ Î Ñ ÏÐ
»¹1º
External
Interrupt 0
Hardware,
0003H
EX0 (IE0.0)
IP0H.0, IP0.0 Follow the
Brownout Detect BOF
002BH
EBO (IE.5)
Watchdog Timer WDIF
0053H
Timer 0 Interrupt TF0
ADC Converter
IE0
1(highest)
Yes
IP0H.5, IP0.5 Software
2
Yes
EWDI (EIE.4)
IP1H.4, IP1.4 Software
3
Yes
000BH
ET0 (IE.1)
IP0H.1, IP0.1
Hardware,
software
4
No
ADCI
005BH
EAD (IE.6)
IP0H.6, IP0.6 Hardware
5
Yes
External
Interrupt 1
IE1
0013H
EX1 (IE.2)
IP0H.2, IP0.2 Follow the
6
Yes
Edge Detect
Interrupt
EDF
003BH
EED (EIE.7)
IP1H.7, IP1.7 Software
7
No
Timer 1 Interrupt TF1
001BH
ET1 (IE.3)
IP0H.3, IP0.3
8
No
PWM Period
Interrupt
PWMF 006BH
EPWMUF
(EIE.6)
IP1H.6, IP1.6 Software
9
No
PWM Brake
Interrupt
BKF
EPWM (EIE.5) IP1H.5, IP1.5 Software
10 (lowest)
No
Hardware,
inverse of pin
Hardware,
software
(1)
(1)
åçæéèݓ êÝëçìîíðïò¯
ñôóá° õßö
±²³´g]
^ ·¡¢£
12-3:
12.3 ÷#øúùûýüúþ
ÿ †{_ g#y
/‹{ #~ • h gc€ … INT0 h RI+TI
!"# g C3
– $%©!ª"&#'2 ( g ž 4
• Iex3 *)g +Ÿ ,-/./1Œ/y ! 0h 1011ž !"# g C3
|} 56 3{ 78~98:;*)<>=?@#~
A+Ÿ4~BC 4†{{ !"#  Dˆ %E

ž  ž +4Ÿ z F1{G
€ klmn4p HIBC 5{ !"# .
J
>• 3P
• 3
A
M
K
L
>
N
O
?g y4 JSRT
g
>{ 78z†{r 56 ~ zij • ,3 a1bdef 4g Q€
k#lmn
4b Uy Q4• €ú3 >g k#lm/ng ?V 2 >ˆ !"># Q/4€ ~BbU4€ W4X#~>4p Y g y ( r 4Z[#g>klmn )\>= !4W79E4051/2051
]2 ¨
"
#
>
€ ^ IE, IP, IP1 , IPHh MUL œ DIV  /
_g1p ?/ y š 12
~ Z_` ˆ
1 !"# ~ Wa IE, EIE, IP0, IP0H, IP1 or IP1HbMc 2 !"# ~ Wa MUL, DIV 5 !"# h
Note: 1.
ÒÔÓÖÕØ×ÚÙ ÛÝÜßÞáàãâÖä
0073H
inverse of pin
RC
ADC
..
- 54 -
W79E8213
Wa98 LCALL ¡Ÿ4+ 4 !4"# 
d4e
šf!4†"4{>#g4k h]iG"# y4jšY4 5 !>"# © ª4! r"4Y4# k 12 !"4# "41# p>Y g b4M
U y
š 12 "# š 48 yl
m n 8051po b4Uyp 8
š 96 yl
 D K Lrq H

50% yl
÷#øsSt
W79E8213 ]¨z 10 {Guhv{wx g•
{ W79E8213]¨|+4p±²r,}>~>³´#~ 3 u…/yz . p¤¥~<4=: ¯
°
n
12.4

12-1:
CPU
~
©€€m
KGL1¯
° ±²%³´
- 55 -
Publication Release Date: 3. 31. 2008
Revision .SC1

W79E8213
12-2:
r>‚ ¯ ° ± ²³´
- 56 -
W79E8213
…
ƒ „‡†‰ˆ‹ŠSŒ /;
 Ž;K Œ 
m Œ#y ! />
 ‘ ! h†{ K  m ’”“•Œ#y ! ’”“r•Œy ! g–€´
W79E8213 ]¨z 2 { 16 Ÿ
!
r—Z[ 3{Œ/y 
13
˜ 4ü ™ /šM›G™ 0&1 !
!
y ! z 2{ 8ŸžŸ ! !MLr£ a 16Ÿ ! gd ‘4žŸ ! 
W79E8213
¡ Œ/y ! 0][¨'z š 2{TH016Ÿ¢ j Œ8y Ÿ g/‘ ‘4ž~Ÿ D!Mœ£ Œ/h TL0
¢¥¤ 8Ÿg‘>žŸ >Œ/y 1 z¦§ g
‘4žŸ ! TH1h TL1! ª KML :[! '|¡ +pŒ#"y # ! ¢ ¡ !"#K¨ L €‘ £ h…©8‘ ! 
:['|+p !Œ#y – ~ÿŒ#­y 2 : yl ‘ ylu š]i#yl g ¡ 12«¬! ,š]i#¡ ylg ! 4
«£ ¬ r‘ ! ³´ ~ e¶· ˆ4F …4‘yz®¯ÿ g°²²!±"@# ³´¢ T0µ Œ/y 0•~ 3 T1µ Œ#y !"
g²r± {e¶»¼ g C4¸s$%~ †{ !
1 ~‘4žŸ
# $%4F ·j²¹± ~g „%– ™ †{ !†" # T0$h %»T1F¼4¯ ½
¤ ²¹± ~1®>º
†{²¹± ƒ%jF¤ g@³~‘ ž
Ÿ ! µ †/ƒ²BC 2!{Ç !"# ! Š
®¯! g²¹±>°!@"³# ~¾¿· …yzÀ4Á#gcpY! ¬Âš– ì
g C3¸ † !"¾# ¿ Œ/y ! ³· ´ ~
g 24«Ä † Å2 Æ šŒ/y š‘ ¶ ~4‘4ž2 Ÿ A ª
T0 h T1 ®¯ ˆ4F#g²r±>°» @³ 4ÈÉÊ ˆF ²¹±@³ g1®{
ː4‘ 1 
L
ÿ
!
!
!
!
ƒ TMOD žŸ g C / T ŸŠ ŒŒ/!y /4‘! uÌ
´Í
Î  {Œy ! / ‘ ! !  z[…Ï g1³ÿ
Ñ Œ#y / ‘ 0 gԂ œÓ 6ŸŠÐÑ Œ#y / 4‘ 1 gÔ>#‚ ¿4
´ÐÑ Ÿo TMOD ÒÓ 2 ŸÐ
{Œ#y ! / ‘ !  KML /
Ð Œ 4Ì4– €4 ´Gg†Ì Š4– €#ƒ TMOD g M0 h M1ŸŠÐ4Ñ Œy ! gÍ
Î ³´ 
13.1.1 ÕÖ×Ø
] ¨p Œy !4Ù4Ú 2
Ì yl>
u ~
†/Ì šn 8051d yl4u ~>Û]i>Í4Î4¬4¼  g 1/12 p>‘ yl
W79E8213 u rDd ÌK– L € ´Ü
Ý ­L ·yåÞß4à n g 8051†á ~D š W79E8213 ] ¨â g>Œ/y ! e yl Šu å 
Òæ ·ã ç ÐÑä yl
g ´Š– €#~D yg·4å #
‘ ylu š]iͪ ά g 1/4 ~D% :! 4‘
·
å
•3 g T0Mh T1M
­ 3
è /– ƒ CKCON
Ÿ
Š
Ð
Ñ
‘ ³´
é Ÿ D4œ4p³>p 0 ~>Œ/y ÍÎ
!
n 8051³´  ÒãC:‘ |4p ³´ ..
13.1.2– ê4ë 0
¶
!
!
·
³´ 0 ~š 13ŸgŒ/y / ‘ ~ƒ 8Ÿg THxh TLx g¤ 5Ÿ4ì#
a ~ TLx g>j 3Ÿsí4î L TLx
yl
u g°@³ï †/~ ¶ ­ TLx gÓ𠟃 1³ 0ª ~ THx ñò‘  ­ THx g‘
ó ƒ FF³>p 00 ª ~ TCON
g011 žŸ TFx + Ÿ
­ TRx +Ÿª GATE p 0 , INTx p 1 y~>‘yzôz4õ C / T =0 y~
Œ#y ! /4‘ ! ¡ yl "#¨ €
‘ª ~ – C / T =1 y ¡ ¶ P1.2(T0) L¹ö P0.7 ¢ T1 £ ¯ g 1 F 0@³ ¨ €4
‘ •4 3 ­ 13ŸgŒ#y ! >Ç ‘¶ ó³p 1FFFH
¿ y(>øKGgL 0G1>žŸ>+"Ÿ # v>ñ#~¿ y <=†{Œ#y
! ~ #†4rm÷ù>•4‘ 3 :ËZZÒ³/Î p Œ0000H
y ! ®>/
º ylu š]#i yl g 1/12, 1/4.
13.1
- 57 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213

13-1:
Œy ! / ‘ ! ³´
0
4ê ë 1
e
–
³´ 1 à³´ 0 ú4­ û(§ ~Iš³´ 1 Œy ! / ª ‘ ! p 16Ÿg~ü>ú 13Ÿú šfšÒ THx
h TLx gý
g0M1>ž4+ 1 ~
©</=/  ¡ yl4ugÐ
… 16 ŸŠ4>– ‘ >‘ó ƒ FFFFH d 0000Hþ4ÿ ~(4
Ñ4à ³´ 0 g ´†á#~“´ —%³´ 0 (G— .
13.1.3

Œ/y ! / ‘ ! ³´ 1
13.1.4– ê4ë 2
–
³´ 2 Œ/y ! /‘ ª ! p )³´r¿³´ TLx š†{ 8Ÿ g4‘ ! ~ THxܟ‘ó ­ TLx
ƒ FFH 00H0M1 ­ ~ TCON g TFxž4+Ÿ THx „c™ ! TLx ~4€>‘mú
mM THx
„gó>Ü/r>³ KMTRx
+Ÿ#ª GATE
p 0 , INTx p 1d y#K ~ ¡ /‘ ôQ>ñ4òÍ>Î —Z[ 2 Ì/#´†
L
"
#
%~1³´ 2 gylu š]i#yl g 1/12, 1/4 
Tn ®¯gyz‘ .
13-2:
- 58 -
W79E8213
HGIFJ
- 21 14 33 "55 6 EFE 2 1,1, 77 .0.0AA 55 B<
=?=?>> //1,1,9:9:.0.0;; 55 @ ## AA- 2 141433 ""55 B)@ -)901 7Q7RPCP7 7 .0A 5 @
K,LON 901 .07A 8 5 B)1, 9:.0; 5 6
78 1,9:.0; 5 <,
,K L K-M
!"
! 
13-3:
Œ/y ! / ‘ ! ³´
2
13-4:
Œ/y ! / ‘ ! ³´
3
D)D # $&% ')( ( *,+&%
- , .0.0// 33C "55 6 4ê ë 3
¶
–
¡
¡
!
!
!
!
–
–
–
³´ 3 zÊr—gÍδ  Œ/y ! /‘  1“Š˜ f³´ 3 :ZSTo Œ#y /‘ 0Šf³! ´ 3

D̳´ gUVø4]%³´ 3 TL0Ҍ/y 0 g
TL0 h • TH0 š 2 {wx g 8 Ÿ4‘4žŸ
W Ÿ› C / T , GATE, TR0, INT0 h TF0  TL0KGL Ҋ ¡ yl "# Š4‘ ¢ ylug 1/12 , 1/4 £ L¹ö
¡ T0 ®>ú
¡ „1…yl>u>>‘~©Ë4Ò#Œ y ! / >‘ ! 1 gX W Ÿ ¢ TR1h
¯
g
F
4
@
>
³

‘

I
‚
1
0
TH0
£ ­ B– C Y g 8ŸŒ/y ! y KGL ËÒ ³´ 3  ­ Œ/y ! 0ï³´ 3 y~
Œy ! 1Z[ KGL ÍÎ
TF1 
[ g
]^_ö `4bF a W 
cd[KMef4Ln Ô>‚hg Li #~j\lk%r>‚ ¡ TF1h TR1¨ € W r¿
³´ 0 œ ! 1 œ 2 KG~
\L y
Œ#y 1 Z[ ËÒ GATE INT1! ®úXm
:Zoz4,p>ñ³´ 3 g´Šv4ñ,ørq[
[G—r% KML Òr
Î s€ltgu4Â\4=  .
13.1.5

- 59 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
- 60 -
W79E8213
Ž
…Œ
14 NVM wvyx{z
•– ]  ¨z 128 |}úg NVM ‘~Ÿ ! D 128|} NVM ‘~4Ÿ ! «p 8 {€~ ÿ €Yoš
} KLƒ 
‚ ã|m
n
^ NVM‘~Ÿ !  ƒ NVM ‘d~Ò MOVC A,@A+DPTR ~^‘~ ƒ „Ô‚žŸ
! NVMADDR
~ NVMDATh NVMCONbMcr NVM „ Ÿ4^‘~ą ~
†‡eˆ.( gX€|+€
¢£ KGL‰Š 1
# ‹„ Œ Š ! „¹Ÿ>}>¤|W} ¢£©¤¥ NVMADDR
gX€/~
|+ NVMCON.7 g EER ~

€ €dˆ.jŽÎ ï :; ) gj (‘S )
mnŒ Š h PC’U€dˆ.d“h”~€ˆ.d“d” ª D
†Ÿ ƒ 98Ÿ -. ˆ.y Y•4p 5ms.
NVM ²„ Ÿ4^‘d~X~ †‡–|+¢£ —‘~4F NVMADDRª — A NVMDAT ~ |+ EWR(NVMCON.6)
^‘
~ ‘~4s ^F˜X™¢£ ~ ŽÎWa Ÿ²ƒ 98-.j~ [ ª €€mn ^‘
~ ~ uC:’UŽ4΁“d”
~›š
y Y•š 50us  .
W79E8213
16

14-1: W79E8213
- 61 -
Ÿ€
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ˆ‰ŠSŒ
Kn 
!
!
!
!
’S
! “ ••>A Œ/3Œy y ! še>†{…†¾ì4€4«>–¬ €! Œ#~ y ¡ ]4~iÒ4yã l>¬Â ¨ €>m«: úZ4|4«+4¬ p! ]yMi1 ‡K Ð~~©/y
‹e4Œ\>0S= 1y4,#©80MŒ#y1
y~ K ’S“•z4õ´¢ ª’S“•y ! Œv4ñ £ ~:¡
¢]! i4éŸú’S“•0M1L¹ö Lö ’S“•>!¦éŸ
Ô>‚ ƒ£8|+/~: £ 2¤›šÔ4‚X¥©,«p ¢ ےM“•Œ/y 01>©Ë]i>é
Ÿ ’M“r•Œ/y 0
1ü r¡\]i>
é Ÿ .
15
œžbŸ
 15-1: WDT
»
!
!
¶
e
’M“r•Œ#y –!Ò WDCLR
Š§¨)~DÜݒM“•A Œy E†ª { Œd©¶ ¸ñò{–A €  WDCLRŸÒ
A
Š>é
Ÿ’S“¹•ª Œ#y  Ÿ ! *¶ )¡ - 0 ~ "š#f¨ £8 Ÿ^z 1 ~]i *) Ÿ->p 0 r:
yl
€
‘ «ªyy/ª ƒ WD1— WD0! ŸŠ‹Œ ¢ WDCON.5
RWT Ÿ|4p 1 ~’M“•Œ#y L
"
¶
•3 £ «ªyyF ª ~ WDIF(WDCON.3)
—# WDCON.4
Ÿ
+
Ÿ
o
Ä
S
’
r
“
•
#
Œ
y
:
’
U
l
512 { y
L
¶ ª’U # !
"¬# z ¡ WDCLR ¨ €Ž/Î ~1®4º 512{yl "# KL ª <
~ EWRST
(WDCON.1) =1
!
=’M“r•Œy é
Ÿ D{éŸ € 2{
—y WTRF(WDCON.2)žŸ+Ÿ#~
£8 Ò¿
ŸŠ­®šd¯š’M“¹• Œ/y ! é Ÿ
¶
M
K
L
ÿ
L
!
!
ª
’M“r• KGŒ#yL ¡ ÒÎ ¨ †{4gbh š>2 Œ#y ~¿ y! h—
é ŸÔ4
‚ s›ø q ÷ ªyyF WDIF
! rŸ ’
–
+ Ÿ ! d WDIF
Ÿ
€
°
±
Š
ˆ
G
’
“
•
/
Œ
y
š
0
1
à
d
¯
~
©
Ò
Ÿ
>
Š
é
Ÿ
G
’
r
“
•
/
Œ
y
RWT
“r• Œ/y ¶ K ÒÎ †{h‚ ! ª? yš>Œy ! ~DÌ ³´ ’S“r• Œ/y ! z#õ ~ ÿ ÷01 ª ©
<! =’M“•Œ/y # !
EA=1 y
•3
W
’M“r• Œ#y ! öCÒÎ †{»>]i ‡Š •~3 ²/ö yj 2 ¸ šÒ³>dp K
C ¶  º» 1 ´²¹uKGL µ¶
, ²·
µ¶~ï ! : –€r ŒšŒ 
r y ­~j¹{]i ‚
rÒ! ã £8
ËÒ
’M“r• Œ#y Š! ¼
Tmn– €›e š«½¾oÒã! £8¿ šc¢ Àd!Á’M“r• y •Œ3 mn~ ÿ/­ – €
F’M“r•#y Œ
mney K :’M¶ “•Œy é
Ÿ¼j!T’M“r•Œ#Š y 韚<e=#¶  ]i`Fd!µ¶~
mn– €4\d= Â4/
û ~]i ‚ r – €’S“r• Œ/y š
é ŸŒ ~¿ y]i s’M“r• Œy é
Ÿ

å
¡¶ r— šyl / ~’M“• Œ/y ! : ¶ <= r— š0G1 y  ­ Ë>‚’M“r• Œ/y ! é Ÿ ª ~D {
é Ÿ
Z0G11 !©Ã 512{yl "#ª “X”
’M“r• Œ#y 0G1ó .
ÄÆÅ«Ç
WD1 WD0
WD1
NUMBER
Õ È
- 62 -
W79E8213
INTERV
AL
0
0
1
0
1
0
2
17
2
20
2
23
ÕXÉ
OF
@ 10 MHZ
2
17
+ 512
131072
13.11 mS
2
20
+ 512
1048576
104.86 mS
2
23
+ 512
8388608
838.86 mS
67108864
6710.89 mS
!
0 1ó
15-1: ’M“r•Œ/y
¶
¶
’ “•/Œ y ! 4¯²,±²éŸ ! ª { Åõ~’ “•/» Œy ! é Ÿ#r øÆq’ ! “•/Œ W y ! ~h\ •– 4: [§¨
)~
£8§¨)’S“r•Œ/y [oz†{ Œšj©¸ . ’M“r• Œy šj Ÿ«¬ 
1
1
2
26
“
2
26
+ 512
•43
­
A
!
!
e
¶
•
3
ž  ’M“•Œy Œ/y0G1~ Ÿ4p+ ’1’  ’M“•/
WDIF › WDCON.3 – ’M“r• Œ/y
¤¥A (IE1.4)=’1’ ~ <= ( ýѤ¥Ÿ+ ’1’ªÒ¥Z[›šB} ) £8>é
Ÿ,Z[4é
ŸË Ÿ- ’0’ 
­
!
! ª  A Ÿ K Ҋ­®4é
Ÿ›¶ šr¦
WDRF
A Ÿr `’
Ô £8 › WDCON.2
KLƒ A ӟ ’M~j“r\•† ‡dy Õ)-/Œ.1ž ± ²é’MŸ “¶ •:Œ/¿y Ÿ-é
.Ÿ  •4+ 3 ’1’EWDRST
= 0~
“r• Œ/y ! šjÖ/ 
• Œ/y ! é ŸË>‚ Ÿ p 1 yË>‚’M“r•Œ#y ! éŸÔ‚p 0 ø›q A Ô4‚~¿
EWRST: WDCON.1 Ór’M“
!
y’M“r
• Œy > ƒ – €
¶
A
A
!
!
¶
4
•
3
› WDCON.0
• Œ#y é Ÿ ŸÒ4-/.’M“r• Œ#y ©:[>
é Ÿ Ÿ )WDCLR
– :’M“¹
× ~
! £ú
8 ª A Ÿ4^z 1ª "~# ]i *):[+ ! 0  × ’M“¹•¶  y ! ŒË‚ ~1®4º ! £8 †‡’M“¹•
Œ/y 0G1 512{ yl
„²:’S“¹• Œ#y - ~
¯Ø: <>= †{’M“• Œ#y é Ÿ .
15.1
ÊÌËÍÏÎÏÐ
ÊÌËÍÏÎÏÐ üÙ
’“r"• #Œ/ª y ! ³´ÐџrD 2ŸÒŠÐђM“r•Œ#y ! š0
!
1¼ yé
ŸŒ/y 01©dà { yl
\>=#
⠚’S“¹•0G1y
š W 217 {#yl~šW>pKGVL š01y WDRUN,
WD0, WD1, EWRST, WDIF —
ƒ
yjbSdc a šcŸ rDÌ!
¼XT£8ù ^Dœ>žŸ ! Ÿ jÚ4pdCϚ>š/~[:
WDCLR š`#
Š
¼
TÅøŒ Ï
ø q~
¨)’S“¹•Œ/y 
15.2
WD1, WD0:
WDCON.5, WDCON.4 –
512
- 63 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ŠÆÛyÜÞÝbßyà
•
] ¨z¡ ¥ád§›šÔ4‚~ ’G“•Œ/y ! ~h‹•¯ 3 ROM· LY4ohâ¹~
’UŠ©K ¸ ¶W ä À4Á/~¯² / ±
W79E8213 ²é
Ÿž/~D4œ ]išQû–€Šfú4ûbšjC  r Üã~ÅøŒ ÙÚ ‚ ^’M“W •Œ
y ! W š(¡ Ÿ~üË]iÍÎ rQû, nåX/
p ­Ü ãDœŸ#~ W7E8213 ]¨ ­1†ÌÜã ~
Š D–œ ŸÏ¡ šh^ Ž4Î DÌÜ ãš yjbWSc·Š²d¡´›š¨ 
DÌ ´ ~ ­ sÜ ã›š1Ÿ›šrbM1c š`/y a š!4"C # & €4^dŽ!Î#"~1# ®>º/ª yjært熇vñ#~
¯
¹ 3{
~yjær– t*)4ø›q
Ød
^ ŽÎÅõ  7856 y~yjæ! rt ñ o 3{
C v!/
ñ ¨ y
ært>~
†‡–Š TA žŸ ^z AAH ~
4^z 55H  TAžŸ ! š1¢£š C7H ~ ¨/1 ¡ yj
žŸ €bMc šèéŒ ›
ï šj§>žŸ ! TA
TA
REG
0C7h
; ŒêŸ C7H b
16
MOV
MOV
TA, #0Aah
TA, #055h
­ £8ú TA^z Aahª ~4‘ ! ñò‘/~‘ ! ¶ ’U 3{ !"# Šë` 55h ; •3 3{ 4! "# „
ëì#
F ­ 55h,®4º#yæÆtÂsvñ#yjært²ñdo 3{ !"# ~ # Òã KML ¡ sÜ㛚1Ÿ ¨ € ƒ #^ 
†í/yjæÏt øÏq~c®>ºC鯬mŠbMcsÜãϚcŸ
yjbMc š«îï ›
î 1 ›czõbMc
m : M/C = !"#
MOV TA, #0Aah
3 M/C
MOV TA, #055h
MOV WDCON, #00h
î 2c
› zõbMc
MOV TA, #0Aah
MOV TA, #055h
NOP
SETB EWT
3 M/C
3 M/C
3 M/C
3 M/C
1M/C
2 M/C
î ›czõbMc
3
MOV TA, #0Aah
3 M/C
MOV TA, #055h
3 M/C
ORL WDCON, #00000010B 3M/C
- 64 -
W79E8213
î 4c
› zõbMc
MOV TA, #0Aah
MOV TA, #055h
NOP
1 M/C
NOP
1 M/C
CLR
POR
î 5
› ÅõbMc
MOV TA, #0Aah
NOP
MOV TA, #055h
SETB EWT
3 M/C
3 M/C
2 M/C
3 M/C
1 M/C
3 M/C
2 M/C
… ª2{¨ îïG~ ¡ s4ܶ ã¡ Ÿrš^š 3{ !>3 "# L „ WaϚjî 3 !¡ "Ü# ã¡ Ÿrš^Ž>Ψ šyXbæÆt
ø›q €š~¿y>r sÜ㛚1Ÿ<4=õ  î 4 >šÓ 4{
sÜ㟠€^dŽ4Î#~¾
¿4^dŽÎðfÅ4õ .
- 65 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ñ{òyóÌôöõl÷
–
­
2
•
–
]/L ¨#zÒ ˆ øbùb©/¸úšdù û A ÔG‚ ~ { tubøù›ø ,bùbûüëF
The W79E8213 ]#¨ ‚zGKG
]
›
¨
r
š
Œ
®
hw<=†{ ~
 ûÒ CPUE±²%³´,4}~1³´
W79E8213
¯
° 
½ KGL
n –ED0EN
!M£ ˂ .
‚
~
®
>
<
=
/

~ ED2EN ¢ EDIC žŸ
P1.0-1.2. ýdùûÔ>
þÿ \ n EDxTRGŸ (EDIC)
| Œ .ý¯ ÿ ÿ \ . 4‘ |uÔ>‚ . 17
(for Clk = Fosc filter type), 2
(for Clk = Fosc/2 filter type), 4
— 8 (for Fosc/8 filter type). !+*,-.
( !
#/0)1 +2,-345
5 .EDF 798:; 15 "!#<&!7> =) #:?@ .$&A%
B'!C(*DF) EHGI P1.0-1.2. %
J .
1
filter type)
K
17-1:
L
M +!,<-
- 66 -
(for Fosc/4
(EDF)
/!6
K
W79E8213
17-2:
L
M +
N
- 67 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
Q
O PRTS
W
n FX I/OYZJ9[
6
\
D&E>]
^=:[6
_ 4`abdce@ P1.5&f # P1.5!g [6_
W79E8213
hi 5 ) FUj V #lMCU
m
k
#lo6p
q h<[m
6 n 1 r s RPD=0 t<$
uvwxzy W79E8213 UV MCU{|
"
}
t
$
u
&
~

y
€
P1.5[6
# W79E8213 UV MCUDFE>{| 18" I/O  I/OY2J9o6
15
I/O
RC
‚ƒ„… .
18 I/O
PxM1.y
PxM2.y
0
0
0
1
1
0
†Z‡9ˆ
‰Š‹
Œ&Ž
‘
’
mn ( “” )
mn
P2M1.PxS=0, TTL
P2M1.PxS=1, Schmitt
1
•l–
1
„
mn
Y0J ‘
’ [
6
5 [6
_
— i 5˜ m&™ “
š # i 5˜
›œ ) W
Jz) D&E}]^ CONFIG1
rŸ s+& X PRHI

ž
m
n
Œ&*XzYZ
Ž>‘’ mF#z™ Y2mF
k
% j
b
 j P2M1 rl™ls
¨ !X ENT0 ENT15 DE¢¡£¤ j J P1.5
j
j
}
™
¥
¦
1 #
7>¤ 0 š
¤ 1 Xz¤ § 5
¤!«
 ¬
0 ¤
m
n š žŸ
m
n # n ¯
EH]
¬ ^ hlP2M1
rl+
s FX m
P(n)S
W79E8213g UVX¢©
ª
" I/O YZJ9D&«
TTL ­}®

ž
Ÿ
n
'
± °FmX}™YZJ j¢± mF™H¥
¦ j¢¢± $u~F RCš
vwy€ h jz±
²j #
0# 1# 2
P(n)S 6 1 #zjz
#
~& RC švwy€X 1/4 
P2.0(XTAL2) DEH[
6_
18-1: I/O
Note: During power-on-reset, all port pins will be tri-stated. However, PWM pins will be tr-stated
longer until cpu clock is stable.
³&´¶µ·¹
¸z˜ º&»F¼&½
5
i
› ` ‘’ # m™zÀ 3 Œ X 8051ªÁ# › ` ‘
’ DFE>ÂÃu
Ä mn
*
¾
H
­
š
¢
#
W
F
}
X
2
Y
¿
J
\
MCU
l
g
l
mF™<h Ê
Ë!X}ÌÍ%lÎD&E>ÏÐÊËXzÑF­HÒ# › " . %<ªÓ
šÔ m™ mF
#zÅ
™ ÆÇÈlÉ[
6

–
}ÅFÕX ×
Ø — Œ
*Ž J¿ 3"¾ ­l”#Ÿ EHÖ°
Å!ÕX}° uF
› "•‘
’ 3"
¾ g
¾ ™}”á
# â“Ùã ¾ ” “ Ù¾ ”  “Ë¾ä ”$Ú “0”ÛÜj¢Ý ±
“1”˜ ÛÜ
ÊÞ!#z Ö°
“ Ë
Þg mß
à °h u& YZmJ})™ ¾
ßå • 2mF
" CPU
¾ 
“0” Ý “1” X¢ÛÜ!#<˾
n YZ
™ “1” šê
|(Y0æ¢J Ë“0”’.
J
F
“
>
­
®
š
“
ç
­
®
“ Ù¾
” å • #¢è Œ
*Ž J¿ÏÐ&­HÒ
é|
mn Y2J9ê| “1” j # “Ÿ Ù¾ ” å • t mn Y2J¿ê| “0” j # “Ÿ Ù¾ ” (æ Ÿ Ù¾ ÏÐë
ì
íX
­HÒê
|) ŗîïðñ& Œ*Ž Y2J¢X¢[
6 ‚ƒ„ 
18.1
g
- 68 -
W79E8213
K
18-1:
Œ*Ž [
6
·ô¸¢º*» ¼*½ ‚ö hlâ
ãm!™
õ [
6ò!(Fó&
æ>WFX}¾  Ä
v÷¾ ­l”# •l– Y2J¿[
6 ‚ƒ
18.2
K
18-2:
.
•– m™
ø*™ ùF·ô¸¢º*»¼* ½
m
m ™  ‚ ö — Œ0Ž m ™ þ
‘ ’ 7 2"
Ÿ ˾ ‘ ’ ,
ª" ƒ ú !
_ #zg DFEHÏÐû h Ž j ü Ž X­} Ò ý
  2
ê ÿ “ Ë ¾ # 2
Y J9ê
| “ # “ Ë ¾ ”
ª Â
å • ÏÐ&­Hҁ Y J [
“ Ù¾
” “ Ù¾
”
6 ‚ƒ K …
18.3
- 69 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
K
18-3:
 m™
¼*½
›
h m
n
mF™ 
YZJç[«
6
¬ _ mn` ‘’ ž#lŸ k+% Ä rls
š TTL ­>® mn .
18.4
- 70 -
W79E8213
UV
D*E}]
^
PxM1.y
PxM2.y
W79E8213
, o6# … ~& RCy€
UjzV± Ï
m
Ð n 3"
«y € m
n « m
} — n CONFIG
rs
(CONFIG0)
«
«
m
n
¥
¦
DFEH{|
Ú 4MHz Ý 20MHz #
#zv
w
Fx¢y
y€
 x¢yy€
Å
ÆÇ&­”¢šF­ .
19
W79E8213
19-1:
y€l
$ "¥!¦ #
5 [
6 ) # g FOSC1 # FOSC0 =
~F j RCy€l
¤ 10MHz/20MHz
+/- 2% ( ]^ mCONFIG1.FS1
¢
j
±
™
DE}Ú P2.0 (XTAL2)  .
01H ~F RC y€¡£#
!# j j¢±²
19.2 %'&)(+*
g FOSC1, FOSC0 = 11b
mn j}± # ¥
¦,.-z 4Hz Ý 20MHz  jz±
#
(XTAL1) D&EHÚ
vw
F
m
™
DFEHÚ P2.0 (XTAL2)

j± m ™ . %*# g«F¬ ~  RC y*€Fš&vw j± mn «" j # h0/ $
W79E8213 UV MCU {*|
5
mF™ ¾ m&™ jz± #
W79E8213
ENCLK j<$ ± XTAL2/CLK
34 kÇ
y€U
V
y € v
‘w’ o ƒ 1X.Õ 526 #<‘]
’ ^ j<P2M1
± m&™¢r¥s¦h X 1/4
‚
ö
h
8
/
7+9 ­}җ5.6 ‘
’
=
CPU
z
j
±
¢
j
±
z
j
±
8
j
j¢±
m
™
n
m
™
m
n
m
™
Å
ÆÇ
#zDEH
— : 5+6 ‘
’ ; ( <
}vw
D&E
19.1
K
RC
- 71 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
>@?ACB m!™
m™ pN . u D
{
E |. p
N . p N m™ ]^ P1.0 (BUZ)
J . ]^
$m% ™}BUZE
W79E8213
(SFR AUXR1.1)
5
Ÿ
¥
¦
DFE>]^
%r<s
BUZCON # BUZDIV X¢o
¤GFH;
.
20
K
20-1:
pN m™
I+J mF™H¥
¦+K ’
:
Fbuz = Fcpu x 1/[256x(BUZDIV+1)]
ƒ„ ]
^o
¤ BUZDIVLM
c —NPO>X CPU ¥
¦ƒ f
1953Hz
3906Hz
X IJ m™¢¥
¦
- 72 -
W79E8213
Frequency, Fcpu (Hz)
Division
/256
4000000
6000000
8000000
10000000
11000000
12000000
15625
23437.5
31250
39062.5
42968.75
46875
20000000
78125
1
.
4
3906.25
5
6
3906.25
7
8
1953.125
3906.25
9
10
3906.25
11
12
3906.25
1953.125
3906.25
BUZDIV + 1
13
14
15
16
1953.125
17
18
19
20
1953.125
3906.25
21
22
1953.125
23
24
1953.125
25
.
40
1953.125
.
64
- 73 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
h { | IJ # › " I+J m™Qá ( ñ ƒ Xz“!
E ƒ
RS
TUV / ABW
ė“ I+J À I+Jj
( X
¤ PRHI=1):
j , P1.0/BUZ h “ ;
1) — power on
+
I
J
<u
Ÿ “E . %r<>s
P1.0
? u DYZ
[ m!™lh ;
;.
I+J >
<u
2)
\ ]^ .
• I+J ; +
I J >
<u
“
5
6 BUZE
6 ŸE . %rs
5
; to push out the buzout.
5
;
P1.0
<For active low buzzer>
BUZE
6
3)
5
( I+J ; I+J
“ >
<u
? Ÿ E . 5 %rs
? BUZE
I+J >
<u
6 BUZE 5
P1.0
uDYZ
[ m!™lh - 74 -
.
;
W79E8213
_.`Pabcd
21.1 egfGhi
¾²&­>GI . %Ä3u4 —GI&­ ² ­kj¾l
ÝGmjG
I
DEWÄ!Xon
pF POF (PCON.4)o6 “1”„V
pq ­
¾
l  POF 7ç=:
?@ .
21.2 r'sthi
mj G
I . % G
I*­ ² ­oj ƒtu «Ý
¬ mj*‚­ö jv#w xyhz Ě
Ï
‚
Ð*ö ­ ²{|  W79E8213
U
Vg } 2
"mu j G
«
I
¬ v #7 BOV ([
6 1.4)  BOV =0m
jv 3.8V # BOV = 1mjv K h ‚2.5V
 ­
j Ý Xv #8m
j~ I
/GI ê|ÂÝ VDD lÝGm
jG
I&­kj*E>¾8m
j
GI€ ƒ .
21
K
m3j4 GI
5 € K .+ ‚ i 5 , m+j‚
Gö I 
Í BOD (AUXR.6) # BOF (PCON.5)
D2 E
+m j 5 š h# / BOF
+‚!,z- EA6 (IE.7)
ƒ ê / û ƒ¢7 =¢X :G?I
@
#
6
8
#
m
j
G
I
6
BOI
(AUXR1.5)
“1”
EBO
(IE.5)
’1’.
mj!# VDDƒ u j
„ …
50mV/us #¢¾l j„ … 2mV/us.
21-1:
- 75 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
†ˆ‡)‰gŠ (PWM)
, } 4" PWMm™ ]‹# , PWM×Ø 7 PWM0(P0.1) Œ PWM1(P1.6) ,m™ PWM2 (P1.7)
W79E8213 UV
Žg  PRHI 6 “1” # i 5˜ PWM" m™ ]‹ h ’1’ t gŽ PRHI 6 “0” # i 5˜ PWM©"
and PWM3
(P0.0).
F
m
™
h
‚ö
]™ ‹2Hw
# K ‚
Xzƒ ð
ñ/Å% „
áF™ }w mF™ [ ‚ö Ç PWM ) m
’1’ 8YZ “ PRHI=0
ú
€

“1” #‘’ Ž N PWM )
“1” #Ž”
5 ƒ PWM• !#–X jz±² h H
; jz±  . PWM• jz± = F × ¥ .
W79E8213 UV{| 10- Ž
g • Ž ƒ § ™ ˜ • *X8/O Íڕ !rs—˜&
]^o¤ ¥ FP[1:0]
PWMCON3[3:2].
5
T
¦
T
h
…
PWM X
f
= F
/ (PWMP+1), PWMP X 10- rZs 7 PWMPH.1 Œ PWMPH.0 ™ _F
PWMPL.7~PWMPL.0 rs
“ n X š g—›O ÍFX˜
œ Ý PWMRUN # CF34 h 10-5 5 Ž ƒ • ƒ Ž ƒ § ™ # CF 3
‚4
PWMP
ƒ
—öž ª"
m&O ͙ ?!@# PWMP rs
˜
œ Ý
• rs
!#˜œ /
— "
O Í
?˜ @
ª PWM 5 Z7 PWMP o¤!# CLRPWM  10- 5 • o h 000H # CF = ›
 ?@tŽŸ o
6
F Í PWM 
PWMRUN ˜œ
¨ ¤X# g PWM ¤§¦
©
ª" PWMm™8 5¡ XŽ¢G0
¨ PWM3L
m!PWM0H
¨ PWM3H
£ 7¥¤§¦ rlj s PWM0L
m
™
‚
ö
™
X8
v 10• rlƒ s ™ j8#  PWM  Ç DÜX PWM ¢ #H— m“ ™ PWMn
˜rls#
5
¡ rl¢¥s£ Ž
‘
’
˜
œ
6
#
§
l
r
s
o
X
v
˜
œ
Ý
§
¤
¦
l
r
s

“
“1”
PWMn
PWM
© …
22
OSC
PWM
CPU
tHI = (PWMP – PWMn+1)
Period
Duty
= (pwmp +1) * ioclock period * 1/prescaler
= duty * ioclock period
‚
ö  ¤o¦r<s
o6
_ 000H # PWMnm™ “t ‚ ö ¤o¦rls6_ 3FFH #
— ICP ‘’ ƒ , PWM
/ ª . ICP ”Ž« ˜ , PWM ) / ¬
­ SFR Xv m™ .
Note:
1.
2.
- 76 -
PWMn
m™ W79E8213
K
K
€
(P0.2) ®; . %#®;
U V
{|
=
:
š
v
!
w
)
H ;]^ PWMCON2 rs,lo- ¤z=
:®
,<;W79E8213
„
+
]
¯
°
;±: ƒ ¢v
w®;
) (P0.2)
® ; PWMD&EoLMG®; #zD&EH—
²´v
³ wAZ) B š)®
µ0;¶0o
¤®Z; 3 4 ®
(BKF)
¤2v2wT) ©0· Z
® ; PWM ¸ ‚Zö P0.2 0¹ º# ˜ BKPS = m0 ™#
ÉFt¢—®;
# PWM
BKF(PWMCON3.0) /›6 “1” PWNRUN /›?!@
# PWM ª
22-1: PWM
- 77 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
m™ 7
o ¤5 ®; ƒ ¤ j #
o¤ƒ #<=:®;!#  BKEN 6 “1” /¡£®
;m!. ™
#8®; ¤t (BPEN,
BKCH) = (0,1) g # PWM
5 ªÁt g o¤# Å ¸ É jŽ=» ©¼
À%#7
mF™ 7 PWMnB
#
o¤t PWM û—
PWM
¸ É j #
ê
|
m™ 
34 /›O Í6 ’1’ ¢—
u+DABCF#D&E
®;) ƒ ¤ ˜ # ¸ É 5 / ›gO Í
?@# BKF(PWMCON3.0)
l
,
©
©
]^© G
I PWMCON1.7š
¡£ PWM X®; ,l- F½ Å ˜ 7¾®
;© ) ‚)zö 1FX8®; ‚ ‚ M!á ¢Èv!X¢GjI„ p
qÀÁ ]^®
;Zk7 ®
;!) ®
;!) j Xzv\w Ä ) ¿ Xzpq # m™ G
IA
B
®;FX Å
#›z—
z
)
1
®
;
X
8
®
;
±
:
+
Â
Ã
#
Å
Æ
+
Ç
ð
ñ
#
—
È
&
H

Å
›ÉtÊ8ËÂ¥¸®
PWM
PWM
Ì
˜
n
+
+
Î
Ï
h
/
;Ft ¯
w Ô ƒ ®K
; Í@ # PWM›:
ð
ñ* ®+ÐFX8Í!@vw
®;) X8®;F# PWM ÑÒ
ÉF2
Ó

±:27
PWMnB
PWM
PWMnB
BPEN BKCH
(BPEN, BKCH) = (0,0)
PWMRUN
PWM
PWMRUN=0
PWMRUN = 1
PWM
Start
1. Clear 10-bit PWM counter
CLRPWM=1
2. Reload PWMP & PWM registers
3. Enable brake function
(BKEN,BPEN,BKCH)=(1,1,0)
Initialize PWM function
1. Set PWM Control Regs
2. Set PWM brake output pattern(PWMnB)
3. Enable brake function
(BKEN,BPEN,BKCH)=(1,1,0)
PWM starts running
Brake occurs?
Brake pin is
asserted?
Yes
No
No
1. Clear BKF
PWM output=PWM comparator output
2. Re-start PWM Running by setting
PWMRUN=1; load bit=1
Yes
1. PWMn output=PWMnB
2. H/W set BKF=1 & PWMRUN=0
3. S/W switch to S/W Brake
(BKEN,BPEN,BKCH)=(1,0,0)
4. Set PWMn comparator output =
PWMnB or a given pattern
K
End
22-2: PWM
- 78 -
®; . %
W79E8213
ÕÖ×gØPÙPÚg
Ýt ¤o¦rmsn Ü+Ý ¤§¦H;X ADC  DAC©  ÜÝt¤§¦
W79E8213 UV
}Û} DAC Œ+¤§¦ ŒÜ
©
rs
&XÞ+
ß _*­oj (V, ) t+¤§5 ¦
h ‘» à q'/ ­oj (Vin) (V )'¤¦ ü
áÝ
5+Ü+=Ý'¤o¦H
;*  ADCCON
ªÝÞ+ß& ADCS D*E¢k}=
:6
D*E7
5 rs X ADCS o ‘1’ # •
23
DAC
DAC
8:
š=:6 .
j # © =: • q ‘
—
$u ADC5 ­â ; #Ž‘’  ADCCEX6 ’1’å • ADC
­§âF g ADCCON.5
(ADCEX)
=0
g
j
q
©
’ # H
; ADCCON.3 (ADCS)6 ‘1’ Ê<DE • ADCÞ߁ ADCCON.5
=:
š8: • q
=1 g #
q
‘
’ # ADCCON.3q (ADCS) 6 ‘1’j¢š STADC (P2.0)¾X}ã¾l
M • ADCÞ߁ $u STADC (P2.0)
¾X }ã
¾ lM • ADCÞß
­H
® äåê
| 2 "!
­H®Ý“F­ç
® Þß © 3
—
4 5 G æç Ì X8# Þß • ö q© — ƒ 5 ª"º Ÿp E • . q X
STADC 7
5
H, ; ƒ ADCCON.4
X ”¥«&o Þߔ X¢,“ 8 s —
%rls , ADCH
(ADCI) 6 ‘1’
10- Þߥ
5
º
8# è oX é s — ADCCON.7 (ADC.1) ADCCON.6
8X ¿
, ) }— 34
(ADC.0)
ìí ƒ ¥# Hîu X D
ÞD&ß §E jê„ë ï ADCCON
é 5 #¢8j Ä  h 8-5 X ADC3$4 u (“ 85 s º — jzADCH
}
"
!
50
6 ‘1’ # — 50 ± ˜ ? ‘0’ 
ADC
ADCS ðñ
H; 5 ADCCON.0 Œ ADCCON.1
u
Ä 4« 1 ð¥ââ 㠑 à • ( H;F ADCÞ, ß2
Ó
Å ñvwn š=: • q Þß
=
ö
ŽX ò ó! Þߔ
«&GX ” Å ›+ò ó ADCI = 1 t ADC— Þß
^A U ô/ÅG% : 5.6lš <*­ ‘
’ o Þß+”Ž«+” ö (ADCI = âã 1) õ
Ÿ
Å òóG56 ‘’ .
K
23.1 ADC
øù'ú"û"ü&º"ýfGþ
23-1:
ÜÝGö÷ ’
ADC
:
- 79 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
² m
n
¯° ­§j m
n (Vref+) ÃÝ DAC XNPO}­l”
and AVSS ) ª" ž
}Põ Ooÿ X
­ 7l­” × (AVDD
_ 1023"'!Xõ t ú ƒ ª" © AVss¾X 0.5XR
# ¿ ˜ ª" ©
ï
ƒ
y
} 1024XR ­”„ & 5 ” ¤ ö DAC© X
Ü
 mn
Vref+ X 0.5XR î
mn ­§j
— AVss [(Vref+)
# 10- ADC ” › 00 0000 0000 b = 000H t
­§j—
+ „½ LSB] 5
#„ 10- ADC ” õ ö © › © 11 1111 51111B = 3FFH

DFEH—
[(Vref+) – 3/2 LSB] Vref+
AVref+
AVSS
„ AVSS – 0.2 V  Avref+°
¤ AVSS X
­ “# mn ­§j (Vin)° õ — AVref+
AVDD + 0.2V
AVSS 
ADC
ƒ© •” ö pA ’
Result = 1024 ×
Vin
Vref +
::
Vin
or Result = 1024 ×
K
VDD
23-2: ADC
- 80 -
€ K
W79E8213
_! , ) FLASH „ ©
™#" j W79E8213
5X#z—
$u ; ‘’]^%]& “' š
)  AB “ n s$ ' U..V X¢ABs$+5
24 ICP (
Note:
1.
2.
3.
4.
ICP(
—&­oâ(A )W
*,+,-,.0/21 P1.5, P0.43 P0.54652798932:9;2<>=@?BA9C .
D ICPE,F2G9H,IJ19K9L6MJNO:9;JPRQ6S6T ICPU6V019W,I9D,C6XPYQ
K9L2Z,[9\6]9^6_,`baO32E9c,d6egf2h9i6j9k@19l,mbng7
ICP o2p,q , PWM rJsBt,u .
- 81 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
25
RTSwv
The W79E8213 has two CONFIG bits (CONFIG0 located at FB00h, CONFIG1 located at FB01h) that
must be defined at power up and can not be set the program after start of execution. Those features
are configured through the use of two flash EPROM bytes, and the flash EPROM can be programmed
and verified repeatedly. Until the code inside the Flash EPROM is confirmed OK, the code can be
protected. The protection of flash EPROM (CONFIG1) and those operations on it are described below.
The data of these bytes may be read by the MOVX instruction at the addresses.
25.1 CONFIG0
K
x
yz
7
WDTCK
6
RPD
5
PRHI
4
BOV
3
-
25-1: Config0 register bits
~€ ¤ j#'!j¢±«¬
5 ':
u
~€
 j¢±
0: çw 500KHz RC y€
¢
j
±
}
j
±
1: UGô
i 5 5 u: ~€
 .
i 5
. % .
0: ¡l£ P1.5 X
P1.5 X i 5
. %#<Ä hlmn )
1:
Y2J i 5i j5!“ j 5 ­>® :
— ð
ñ .
0: Y0J
!
5
j
i
—“ð
ñ .
1: Y0J
«
¬
5
mj&k­ j
:
­ j hh 3.8V.
0: m
jGI&k
­ j 2.5V.
1: m
jGI&k
êÿ .
- 82 -
{}|
.
W79E8213
2
BPFR
1
Fosc1
0
Fosc0
y€ ' [6 5
j¢±‚ N .
¢j ±‚ N .
0:
j¢±‚ N .
1: $%
' ab « ¬
5
CPU y€
' ab « ¬
5
CPU y€
1.
0.
:
Fosc1
Fosc0
0
0
0
1
1
0
1
1
y
€ '
>w RCy€ '
4MHz ~ 20MHz
5
(FS1
xHy
CONFIG1.5
20MHZ)
«¬
10MHz
š
ê!ÿ
vwy€ '!j¢± mn
- 83 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
25.2
¼*½
1
Figure 25-2: Config1 register bits
ƒ
„@…
5
©
[ uFê†
uD—
uDFš XHAŸB E ST >—‡' _(A ˆ‰ z Ä ˜ #zo
6G[ 5 } ªŠ õ5 o
6 h 0 # » \
o6rs :
ɍ€Ž .
q‹Œ Flash EPROM X C6: ‘@’ Flash EPROM “”@•
[ 5 “© u F
) »ê\†
u D 1287 X šST }š —‡
Ÿ_E (A ˆ‰ ' z Ä ˜ #<o6[ 5 ¢ ªŠ õ5 o6 h 0 ¢# $
u& W
q‹Œ Flash EPROM X o6rls :ɍ–Ž .
C7: 4K Flash EPROM
Bit 7
Bit 6
1
1
0
1
1
0
0
0
{|—˜
7 AB ST 1287Gš™š› Å÷œž Ÿ}¡b& “' Œ ICP¢ “ £ .
7¥}¦ST}§ ¨œ €¡J& “' Œ ICP = ›© ž–Ÿ 128 ¤ 7ª+š¨™š©§ œ}ž«Ÿ
¢
4KB
“ £ .¤
¬
4KB
©­® .
¥¦°±²
4KB ¤¯
¹»ºJ¼ 10MHz/20MHz ½¾@¿
ÀÁ·,à ¸@10MHz
Ä 20MHz Å@ÆÇÈÉ
128
¤¯ ª³™š›§ œ&´ ' µ
FS1:
.
FS1
Å@ÆÇÈÉÊ Ë
0
10MHz
1
20MHz (
Ì Í )
ÅJÆÇÈÉ ÂÃÎ
- 84 -
ICP
›© ž¶´ £
.
W79E8213
¿
ÀÁÑÏ0ÒÐ ÂFlash
ÃÓ½
Ô ¾@Flash
.
HS1:
HS1
ÓÔ
0
Flash macro running with power saving 160ns window
1
Flash macro running with power saving 80ns window (
Flash
ÂÃ
ÓÔ
- 85 -
ÂÃÎ
Flash
ÌÍ
)
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
ÕÖ×ÙØ
26.1 ÚÛ܀Ý
Þß
àá
âãä
-0.3
VDD−VSS
DC è@é
VIN
VSS-0.3
Êê€è@ë
ìíîï
TA
-40
ðñ îï
Tst
-55
ò èó
ISK
??
ôJõBö6÷,ø9ù9ú2û9ü9ý6þ,ÿ
9ù
26
Note:
- 86 -
âåä
.
æç
+7.0
V
VDD+0.3
V
+85
°C
+150
°C
90
mA
W79E8213
26.2 DC "!
#%$
(TA = -40~85°C, unless otherwise specified.)
Þß
àá
ìí è@ë
.
VDD1
VDD2
ìí èó
âãä
2.4
&%'ä
6
IDD2
5
IIDLE2
Êê€èó
Êê€èó
[1]
P1.5(RST pin)
2 3 ) Êê3€èó
4
Logic 1 ~0 5*6 1 7 0 809¨èó
P0, P1, P2 (
Êê*:€èë
input)
Êê Ó èë
input)
P0, P1, P2 (TTL
P0, P1, P2 (TTL
Êê*:€èë XTAL1
Êê Ó èë XTAL1
;4< %
™ = (>œ@?Êê
A <CB = (>0D@?Êê
E*F è@ë
[*2]
8
mA
6.5
VDD=4.5V ~ 5.5V @ 20MHz
VDD=2.4V ~ 5.5V @ 4MHz
NVM program and erase
operation.
No load, /RST = VSS, VDD= 5.0V
@ 20MHz
No load, /RST = VSS, VDD= 3.0V
@ 12MHz
mA
No load, VDD = 5.0V
@ 20MHz
No load, VDD = 3.0V
@ 20MHz
1
10
µA
No load, VDD = 5.5V
@ Disable BOV function
1
10
uA
No load, VDD = 3.0V
@ Disable BOV function
IIN1
-50
-
+10
µA
VDD = 5.5V, VIN = 0V or VIN=VDD
IIN2
-55
-45
-30
µA
VDD = 5.5V, VIN = 0.45V
ILK
-10
-
+10
µA
VDD = 5.5V, 0<VIN<VDD
-500
-
-200
µA
VDD = 5.5V, VIN<2.0V
-93
-
-56
0
-
1.0
0
-
0.6
1.0
2.0
-
VDD +0.2
1.5
-
VDD +0.2
0
-
0.8
ITL
[*3]
VIL1
VIH1
VIL3
[*2]
V
TBD
IPWDN
P0, P1, P2
æç
TBD
IIDLE1
1 èèó
5.5
3.0
IDD1
.0/ èó
âåä
(*),+*-
VIH3
0
-
0.4
3.5
-
VDD +0.2
2.4
-
VDD +0.2
Vdd=2.4 Vin = 1.3v
VDD = 4.5V
V
V
V
V
)
VILS
-0.5
-
0.3VDD
V
)
VIHS
0.7VDD
-
VDD+0.5
V
VHY
0.2VDD
- 87 -
VDD = 2.4V
VDD = 5.5V
VDD = 2.4V
VDD = 4.5V
VDD = 3.0V
VDD = 5.5V
VDD = 3.0V
V
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
é¨èó
P0, P1, P2
é¨èó
P0, P1, P2
ISR1
(PUSH-PULL Mode)
(Quasi-bidirectional Mode)
ISR2
GHI
P0, P2
(Quasi-bidirectional, Open drain
[*4]
and PUSH-PULL Mode)
ISK1
P1
(Quasi-bidirectional, Open drain
[*4]
and PUSH-PULL Mode)
ISK2
GHI
J@KL*MN
P0, P2 (Quasibidirectional, Open drain and
PUSH-PULL Mode)
VOL1
P1 (Quasibidirectional, Open drain and
PUSH-PULL Mode)
VOL2
J@KL*MN
J@KPO@MN
P0, P1, P2 (Quasibidirectional Mode)
VOH1
P0, P1, P2 (PUSHPULL Mode)
VOH2
J@KPO@MN
QR T
S R
Q R T
S R
-16
-26
-36
mA
VDD = 4.5V, VS = 2.4V
-5
-7.9
-11
mA
VDD = 2.4V, VS = 2.0V
-150
-210
-360
µA
VDD = 4.5V, VS = 2.4V
-39
-53
-69
µA
VDD = 2.4V, VS = 2.0V
13
18.5
24
9
15
21
VDD = 4.5V, VS = 0.45V
mA
TBD
VDD = 2.4V, VS = 0.45V
mA
VDD = 4.5V, VS = 0.45V
TBD
VDD = 2.4V, VS = 0.45V
-
0.5
0.9
V
VDD = 4.5V, IOL = 20 mA
-
0.1
0.4
V
VDD = 2.4V, IOL = 3.2 mA
TBD
-
0.9
-
0.4
VDD = 4.5V, IOL = 50 mA
V
VDD = 4.5V, IOL = 20 mA
VDD = 2.4V, IOL = 3.2 mA
2.4
3.7
-
1.9
2.4
-
V
2.4
3.4
-
V
VDD = 4.5V, IOH = -16mA
1.9
2.4
-
V
VDD = 2.4V, IOH = -3.2mA
VDD = 2.4V, IOH = -30µA
BOV=1
VBO2.5
2.4
-
2.7
V
BOV=0
VBO3.8
3.5
-
4
V
UVWXYZ\[]^_`U
VWX CMOS_`U .
*3. P0, P1 and P2 abdcUefghijh\kmlnopqrsutvxwzy{\|
*4. „z…‡†dˆ 8‰dŠŒ‹\Ž‡u‘“’ .
VDD = 4.5V, IOH = -100µA
Notes: *1. /RST RST
*2. XTAL1
}
VIN 2V
lndtv~wzy€‚ƒ
26.3 ADC ”–• DC —˜š™œ›
(VDD−VSS = 3.0~5V, TA = -40~85°C, Fosc = 4MHz, unless otherwise specified.)
Ÿ* ¯°*±*²
ADC
³µ´
¶*· ³*¸
¹ º*»*¼*½¾%¿
*
À º*»*¼*½¾%¿
¡%¢
£C¤@¥
.
AVin
VSS-0.2
ADCCLK
200KHz
¥ %ž
¦%§
£0¨*¥
.
©ª
VDD+0.2
V
5MHz
Hz
.
-
52tADC1
tC
«¬,­*®
us
DNL
-1
-
+1
LSB
INL
-2
-
+2
LSB
- 88 -
ADC block circuit
input clock
W79E8213
ÁÂ ¾%¿
à Ä*¾%¿
Å@Æ STR%¾*¿
Ofe
-1
-
+1
LSB
Ge
-1
-
+1
%
Ae
-3
-
+3
LSB
Notes:
1. tADC: The period time of ADC input clock.
- 89 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
26.4 AC —@˜–™"›
tCLCL
tCLCH
tCLCX
tCHCL
tCHCX
Note: Duty cycle is 50%.
26.5
Ç ÈÊÉ,˚™œ›
Ì*Í
³µ´0ÙC³*¸
³µ´*ÚÛ³*¸
³µ´ Rise ³¸
³µ´ Fall ³¸
Î%Ï
Ð,Ñ4Ò
Ó*Ô4Ò
.
Ð%Õ@Ò
Ö×
tCHCX
12.5
-
-
nS
tCLCX
12.5
-
-
nS
tCLCH
-
-
10
nS
tCHCL
-
-
10
nS
- 90 -
Ø
W79E8213
26.6 AC
Þ0ß@à*á%â
26.7
ܚÝ
Ì*Í
Î%Ï
³µ´Ð,Ñ@Ò
1/ tCLCL
ã äÛå æç—*è
0
é Þ
Ö×
20
C1
ê
4MHz ~ 20 MHz
ë*ì*í%î0ï é Þ%ð*ñ*Ì*ò
Ò
³µ´Ð%Õ*Ò
C2
ê
ê
MHz
R
..
- 91 -
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
27
óçôöõø÷
27.1 20-pin SOP-300mil
ûýü
þýþ
c
E
H
ù
L
þü
ú
D
0.25
O
A
Y
SEATING PLANE
e
GAUGE PLANE
A1
b
ÿ
SYMBOL
A
A1
b
c
E
D
e
H
Y
L
θ
ù
DIMENSION IN MM
MIN.
MAX.
2.35
2.65
0.10
0.30
0.33
0.51
0.23
0.32
7.40
7.60
13.00
12.60
1.27 BSC
10.65
10.00
0.10
0.40
1.27
0
8
DIMENSION IN INCH
MIN.
MAX.
0.093
0.104
0.012
0.004
0.013
0.020
0.009
0.013
0.291
0.299
0.512
0.496
0.050 BSC
0.394
0.016
0
- 92 -
0.419
0.004
0.050
8
W79E8213
27.2 20-pin PDIP
D
20
11
1
10
1
E
E
S
1
2
AA
A
L
c
Base Plane
Seating Plane
B
e1
B1
Symbol
A
A1
A2
B
B1
c
D
E
E1
e1
L
eA
Dimension in inch
Min
Nom
Max
Dimension in mm
Min
Nom
Max
4.45
0.175
0.010
0.25
0.125
0.130
0.135
3.18
3.30
3.43
0.016
0.018
0.022
0.41
0.46
0.56
0.058
0.060
0.064
1.47
1.52
1.63
0.008
0.010
0.014
0.20
0.25
0.36
1.026
1.040
20.06
26.42
7.87
0.290
0.300
0.310
7.37
7.62
0.245
0.250
0.255
6.22
6.35
6.48
0.090
0.100
0.110
2.29
2.54
2.79
0.120
0.130
0.140
3.05
3.30
3.56
15
0
0.375
8.51
9.02
9.53
0
0.335
eA
0.355
S
0.075
- 93 -
15
1.91
Publication Release Date: 3. 31. 2008
Revision .SC1
W79E8213
!"
#%$
SC1
&('
March .31.2008
)+*
-
,+.0/2123
Important Notice
Winbond products are not designed, intended, authorized or warranted for use as components
in systems or equipment intended for surgical implantation, atomic energy control instruments,
airplane or spaceship instruments, transportation instruments, traffic signal instruments,
combustion control instruments, or for other applications intended to support or sustain life.
Further more, Winbond products are not intended for applications wherein failure of Winbond
products could result or lead to a situation wherein personal injury, death or severe property or
environmental damage could occur.
Winbond customers using or selling these products for use in such applications do so at their
own risk and agree to fully indemnify Winbond for any damages resulting from such improper
use or sales.
46587:9<;>=@?BADCFE6GIH+JBK
7
=
M Z\
O0P [%]BuC
QBE RBSBTBUIV2W
8LN
9<;N
XBYN
^6_6
CcbDd
e6f
- 94 -
d
2299 ` 27a
021-62365999
021-62365998