Home

宏晶 technology STC12C5A60AD/STC12C5201AD series microcontroller Selection Guide

image

Contents

1.
2. 2 5201 90 0000000000000 15 00 0 15 000000000000000 5 5 1 5 5 15 1 5 1 5
3. 80510000 D000000000000000 100 UM eL 2 00 0000 Capture Pun 8 161 Gongar e SS GCPY ADI P A 5 PO 3 AB MA AD5 P1 5 6 PO 4 AD4 PVM M PL6 7 8 g P4 7 RST 9 PO 7 AD7 ar 5 ROPO 3 d 12 88 NT1 P3 3 13 2 7 15 EPEPEEBETETTE D DAINA QG KOUTY TY P3 5 15 P2 5 A13 S g S S XIA 2 P2 2 NO P5 3 1 PO 4 peer 25 due Tiner O MOBI ADCS P1 5 2 5 i 1 M SQ ADCS P1 6 3 PO 6 AD6 n SAK ADC7 PL 7 E 4 PO 7 AD7 2D PAD D PA RST E 5 32 EX LVI P4 6 RST2 AUD t H HU Pa PSH is d 10 27 4 P2 6 l4 889 2 26 P2 5 A13
4. 1000 Byte Read MY AP ENABLE ISP 00 Flash D DU U MY AP 3 SP I AP BYTE READ J J AP I SP EEPROM EH E U J UI MY AP ARH PH 8 MY IAP ARL OPL 8 MY IAP TRG 00 54h 00O 5 MY 4045H 5 15 A AP DNA SETB EA Dseble f RET Byte Program MY IAP ONIR ZENABLE SP Ing dg Heshrnud dul MY BYTE PRORAM 1 D FL AP ISP EEPROM 0000000 MV 1 _ 8000 MY IA AR OPL MY ISP DATA A
5. MV H 0 1 0 0 1 0000 0000 1 MY M 1 0 0 1000 1 100000 0000000000000 000600 SEIB CR I nterrupt PUSH AC PUSH PSW 1000o LED PCA INTO PA OI IU UU QR Not PCAO0 El se PCAL JS GQGTFA POAInterrut Eit 10 1000000 CPL LED PCA INTL 1 5 p PADO IDUUD PCAInterrupt Exit
6. 0000 QR EA 00000 MY A TLx ADD A 4LOW MY TLx A MY 4 GH ADDC A THx MY THx A SETB EA 0000 2000000000000
7. 3 01 3 1 748d e4 u B U U U U B U U 74 64 74 64 30 131 7491640 00000000 5 MY R70 02H MY RO 30H MY SCON 00H 0 MY A GRO MY SBUF A JNB TI WI T RO DN R7 SEND RET ww MIUMenery com Srci202040jp 8 192 HB UB pww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 8051 0 O0 00 1 0000 L O 6666 997 NOU RST 2900050 UBUNHUO
8. 5 2 5201 0 0 000 20 00000000000 2 5 6052 0 000 6000000000000 0 00 050 00 0000000000 1 324 7 5 s0000000000000 1 30 4 39 2 2 0 0 0 1 12 5 0 1 0 0000000 00000000000600 00000 210 00000000 0 00 12 50 00000 000000000 00 1 1
9. D 1 2 D 3 D 8 5 12 5201 0 0 1 805000000 108 0 Mobile 13922805190 0755 82948411 0755 82944243 5 50 0 0 0 O0 0 000000000000000 SIC2C5201ADI EEPCMIAPI I UJ II STC Internati onal
10. 90 AX FLAG 1 01 6 5 5 12 5560 521 00 2 MO ADC ONR NCP NCP NCP NCP M A ACONR 7 4 POER 0
11. 00 HHHHHHHBHHHU 2 MOV ADC QGONTR 4DATA 4 POR 00000 U 87 01 256 x
12. 4 4 6 20 1 STC12C5201AD 0000 7 7 0 0 10 00 5 12 5 60520 0 00 00 00 00 2 500 16 1 1 4 2 5 2 1 3 4 5 12 5 60520 00 P1 20000000000 00 5 52 51 5 7 5 12 5201 1 12 5 6052 Court er 5 2 5201 0 P1 4 CEXI 2 5 6052 Progranmabl e Counter Array Fosc 12
13. Hmn 0 MO THO QR EO I NTO D LOdE P3 20 LO1 LOP2 P3 20 LO2 SETB TRO LOP3 JB P3 20 LOP3 QR TRO TOI MY A TLO MY B THO 004 0000 000 0000 000 10 10 1 01000000 ORG 0000H AJM MIN 00000 001 LJ INTER 0100 5 460H 000000 MY TMI 60H jO 000 100000 2 My TL10 0FFHI 000000 My SETB EA 0000 0000 000 100 SETB TRL
14. 5 2 5201 0 0 0 DO D 8 8000 420000 300 30 8 8 5 12 5202 7 6 514 3 211 0 3 2 1 Res er oo ron or m 1 enu 7 3 PlAd LACE
15. 50 000000 Aon 0000 0000 o 10 2 2 mm E l J N S AR 00 0000000000000 10000 AX RES7 0 ADC RESL T 0 1024 x Vin Vec eU DU ADC REX 7 0 256 x Vin Vec AR 1 0 0000000000000 10000 ADC RES 1 0 ADC RES 7 0 1024 x Vin Vcc
16. Fosc 12 256 BRT 0 BRTx12 00 0 00000000000 Fosc 256 BRT 0 BRTX12 00100 20 100000 100000 00000000000 000 0 80000 0 JII 9090000000 1000000 900000000000 00 5 0 00 000 90000000000 56030 000000000000 000 320 0 64000 20 0000 2000 10 0000 200000 001000000 2 2P 64 5 5 0 2 5 64 5 1 2 5 32 00100 30 2 1100000 100000 00000000000000 90 80 000 000 900000000 12000000 9090000000000 00 5 0 0000 90000000000 58030 8 0 001000000 3 2M 32 x er000000000000 0 SMD 00000 1000 BROOO0OOOOO0OCOOO 320 0 SMD 10000 1000 BROOO0OOOOOOOOOO 160 12 256 2 00 0 256 BR BRXI2
17. 1000000 120 0 00 0000 00 TB E AD AJ Rn 1 12 2 6 ALD A di rect 2 12 3 4 ALD 1 12 3 4 ALD u uultu 2 12 2 6 1 12 2 6 0 __ 2 12 3 4 AC E RANT C EH U D UO U D D 1 12 3 4 2 12 2 6 3188 A R 1 12 2 6 SUBB A direct 2 12 3 SUB A G 1 12 3 41 SBB 2 12 2 6 1 12 2 6 NC Rn 1 12 3 di rect 2 12 4 3 NC LH E RAM D E 1 1 12 4 3 1 12 2 6 1 12 3 di rect 2 12 4 3 LEC 1 1 12 4 3 NC 1 1 24 1 24 ML AB 1 48 4 1 48 5 9 6 1 12 8 30 12 1 1 12 2 6 di rect 2 12 3 4
18. E Ul Q 6BFFh
19. 1 1 00000 300000000000000 0 3000000000 100000000 000 00000000 10000000 10000 2 5 2 MD
20. 8 5 5 Ej Ep NUES AA i HEX 1 22 2 54 76 58 3 5a bc 4 E C ABE T dx 7 E r V fBIE Debug SFR hosp edes BIER S md BE 0000 0000 0 80510000000 ww Mv Mnoy com 5 2 5201401 1T 80510000000 185 0 Mobile 13922805190 0755 82948411 0755 82944243 1 3 00000000 0000000 STC Internati onal 0000 100 1 0 SIC12C5201AD Mhble 13922805190 _ 0755 829442
21. HU LL www MCU Menary com Mobile 13922805190 0 0 0755 82948411 0755 82944243 12 1 ANL 2 24 6 4 LCAL 54416 3 24 6 4 RET 1 24 4 6 FETI 1 24 4 6 AM addr11 2 24 3 8 LJ MP addr 16 3 24 4 6 SM rel 2 24 3 8 JM GMEPTR 1 24 3 8 17 rel 2 24 3 8 JN rel 2 24 3 8 A drect rel 3 24 5 4 8 1 3 24 4 6 RO ata rel 3 24 4 6 i amp kbta rel 3 24 5 4 8 DN Ri rel 1 3 24 4 6 DN 1 1 3 24 5 4 8 NP 1 12 1 12 1200 00 000 0000 000 BB 1 1 12 QR bt 2 4 3 SEIB C 1 1 120 bit 2 4 3t CPL C 1 1 120 bit 2 4 3 AN 2 3 8 ql bit 2 3 80 815 q bit 2 3 8 ql bit 2 3 80 MV q bit 2 3 MV bti c 2 3 80 JC rel 2 3 8 JNC rel 2 4 3 80 bi t rel 3 24 4 60 JN bit re1 3 24 4 60 J bit re1 3 24 5 4 80 8 ww Mu Mmry com 5 12 5201 0 O 1T 80510 000000 40
22. RDIM MOV A J THX My ROQ TLx Q AQ THO RDTM 00 TOO RIO 0000 0000 0 80510000000 ww Mv Mmry com 5 2 5201 0 0 1T 80510 000000 121 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 65 1100060600 STC International 20 0 1 6 1 0 l l MUJ IJ II 1 LLB LB H TD as asa a Mobile 13922805190 0755 82944243 Tel 0755 82948409 5161 3 30
23. 0 000 1 30030 00000 3 100000 900 20 0000000000000 00 1 AKO 2 1 P1 Anal og Speci al Functi on Lew reg ster omn mum 1 n 1 1 1 20 0 1 805111 5 12 5201 0 1 80511 000000 48 0 Mobile 13922805190 0 O0
24. 0 8VJ I D UUDUUUDUUUuD 00000 1 0 Ka 000000 36 00 80510 000000000 1 9 000000000 00000000000000 1 9600 1000 00000000 000 00000 0 514200 0000000000000000000 0000000000800 20 0000 1 90 00000000 262630 0 000000 00000000 1 9
25. 000 1000 00000 MV IPH 701000000B MY 301000000 U Uu SEIB END wwMIUMenery com STIC12C52201An 8 163 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 89 D Fd 0 10000000 160000 STC Internati onal Li n ted EET 100 2006 1 6 10 5711265201
26. 0B H CH 0000 800 a EQU OxE9 8 0000 00000 000000 ej QF1 EU QGXN1 CR GXN6 CF QXN7 01 ww MU Menery com 5 2 5201 0 0 1 805000000 160 cup EQU CMD 7 0000 000600 CMn2 51 10 1 50 CPS1 CPSO 0 0 1000 12 0 1 1000 fosc 20 1 0 1 1 4000000000 XD 0
27. 000 6 1 2 0000 0000 27 00 0000000000000000000 0000000000 00 0000000 13 000000000 000000000000 000 000000000 1 2 001 000 9 1 2 5 100000 4 2 1 00 0 851 10 00 2000000000000 000000000000 1 00 0 OO
28. 5 10000 V t ch Dog Ti ner Functi on WDI FLAG When VT this bit is set It can be cl eared by softvare EN VT Enabl e WOT bit Vien set WDT is started 0000 1 00000000 aR Vor WD clear bit Wien set WT wll recount Fardvare wl autonati cally cl ear this bit 9msmpmgg pg p m gd gmgsg duss uBg LE VW Vhen set VDT is enabled in I DLE node Wien clear WT is disabled in I DLE 000 0000 1 00000100 0000 00 000 0000000 0000 0000 52 51 PSO Pre scal e val ue of V tchdog ti ner is shown as the bel owed tabl e HHEHHHHHHEIHBEHBEBH PS2 PS1 PSO Peri od G20MHz 2 3935 d msnm 8 se i6 345 r a im 629 1 m T
29. V ke Up I di e and V ke Up Power Down CG 0000H AM MN CRG 0003H i ntO i nterrupt QR P17 ACALL del ay QR EA RETI 7 intO 1f 0000 0000 0 LC LI EJ CRG 0013H i ntl interrupt QR P1 6 ACALL del ay QR EA RETI 6 CRG 0100H del ay QR A MY MY RI MV R2 del ay DNZ R DNZ R2 RET nai n MY R nai n oop A A 02 del ay del ay del ay 30 MV A CL A MY P1 A ACALL del ay ww MU Mery com 5 12 5201 0 0 17 8051 000000 176 000 Mbi l e 13922805190 0
30. 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 00000 2400 0 10 00000 200 0 120 96 0 10 800 0 200 00000 600 0 380 00000 4800 0 40 00000 400 0 210 00000 300 140 uggagagguuuuuuusraangn 17 80510 000000 80510 0000000000 OD000000 1110000000 1000000000000 2000000000000 20 3 39 AD D gd B B B 7 7 U CO DI DI 0 330 5 0 50 6000000000000 0 20 00000 8051010 00000 Menery com 5 2 5201 0 0 1 80510 000000 41 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 29 000000000 SFR Nn Bt Addressab e ggagaga aamggggagagainuaggaugamuut FOh 0000 0000 0000 0000 0000 0000 0000 lena 0000 0000 4 00 0000 000 0000700000000 0000 0000 0000
31. UDDD DDDDD85I D D DDUDDD wwMLUMnry com 5 12 5201 0 1 8050000000 54 2 EA ELVO EADG PPC PLVD PADG PS PT1 PXL PXO IPH PLVH PADCH PSH PON SMD SMD LVF 10 PlASF EQU 9LH CRG 0000H AM CRG 0100H MA N MY SP OEOH MY P1 40FOH 1 1 LCAL Day MY P1 20FH 2 LCAL MY P1 MN NI OEOH JUL 00001008 A POON 5 7 5 4 P1 2 JUL PO ER CN 1 ERRCR LED SJ P ERROR POVER CN 1 SEIB P3 7 QR P3 5 SEIB P3 4 SEIB P3 3 LCAL Dalay Conti nue Read MY A 1011111 APON 5 H gh Vol tage SEIB P3 7 SEIB P3 5 QR P3 4 SEIB P3 3 SJMP Conti nue Read Low Vol t age P3 7 5 4 P3 3 Low Vol tage LED Conti nue Read POIKR CN LED Low Vol t age H gh Vol tage LED A RO A RL A Del ay Loop Del ay Loop Del ay Loop 80510 000
32. MY ONR 0 MV GD 9 MY TRG 70 MV AP ALFH 90 0 00 MV OFF RET Del ay QR A MV PO A MV RI A MY 20H Del ay Loop RO Del ay Loop DNZ Ri Delay Loop DNZ R2 Del ay Loop END 98 wwMUMnry com 5 2 201 1T 8050000000 12 0 00 00ww MU Mmory com Mobile 13922805190 0755 82948411 Fax 0755 82944243 1 ni oi 5 12 4 160 0000000 80510000000 8 2 2 1 011
33. 5 12 55 3 3 1 8 7441650 000000 74521650000 80 000000000000 7441650 808 0000000000000 000 50 5 1 5 TXO P3 1 7491650 0000000 000 7492650 00000 90 00 0 0 7491650 0000000 900 00 749165 DO000000150000000000000000000 80000000000000 0 S0
34. 8051 5 12 5201 0 1 805108 0000060 67 0 00 0O0ww MU Mnory com Mbi le 13922805190 0 0 O0 0755 82948411 Fax 0755 82944243 00 100 00 100000 00 0 10 0000000000000 00000 0 000 00 0000 12 0 12 UH LH 1 100 0 000 Txo P3 10 0000 RxoP3 000000000000000 0080000 0 5 1 2 52 5 2 32 5 2 16
35. 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 LCAL MV SP FH UDDDDD 7HDD MN NI MY DLPTR FLASH START ALLRESS EEPROM 1000 EPTRE D D U LCAL Byte Read 40H A 40H 1 L1 LI U EEBUG DNA DATA NJ EQUEDERG DNA DATA S DEBUG DATA 7 MY P1 370111111B DATA FLASH START ALLRESS O0 BUG PI 7 LCAL Dalay A 40H ljuuu 40H EEPROM L D 4090 00000 CL A MV PLA VW TI gv wir DATA NOI EQU DEBUG DATA 1 3 1 5 MY P1 1110111B DATA FLASH START ALLFESS L L 0 BUG DAT 0 P1 3 LCAL De ay A 40H 40 4 P A
36. reverse the di spl ay data p EEEE Kk KKK KKK KKK k KK Kk Kk kkk kkk kkk a PO 0 get the first data address 9 Ret Com 0 MY A G0 INC RO DJ NZ R7 Ret ComO RET wwMUMnry com STIC12C52201An 8051000000 196 Menary com Mobi e 13922805190 get the di spl ay Data and send to Oxtput regi ster oleteleeeetoeeee eoe b ok ok ok oe eoo P Out Dat a INC Ti neS MY ATineS MY P3 4110101018 G NE A 701H Ost Data 1 M PO ConODat a0 MY P1 GonODatal MY P2 Con Dat a2 JNB OXFI ag Ot Data 00 MO P3 741010111B RET Out Data 00 4110101008 Out Data 1 929 2 PO CoriDataO MY Pl ConiDatal My P2 CoriDet a2 JNB OXFlag Ot Data 10 My 4110111018 RET Out nta 10 MOV P3 11010001B RET Out nta 2 PO Con2Dat a0 MY Pl Con2Dast al MOV P2 Cora Det a2 JNB OXFl ag Ot Data 20 M 3 4111101018 SJ M Or Peta 21 20 MOV 3 4110001018 Out D
37. Write to CCAPnL Write to CCAPnH pepe egens PCA nt errupt Tom 0 0 1 0 0 PCA Softvare Ti ner PCAD DOLO ww MU 5 12 5201 0 0 1 8051000000 12 ww MU Menory com Mobile 13922805190 1 Tel 0755 82948411 Fax 0755 82944243 CCAM SFRO TOG MATO ECOM PCAQ O O CEXn 10000 gh Speed Qiput Mxde PAL 80511 www MIJ Menary com STCI2C5201AH 1T 80510 0 00 143 Mobile 13922805190 0 O0 0755 82948411 0755 82044243
38. 2 gt 0 8 5 100000 2 85 900000000 10000 wawMLUMnry com SIC12C59201AD 1T 80510000000 10 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 5 2 SICDC01AD O0 EEPROM SICDC0LAD D BO D D Data Flash EEPROV J I UU UU UU D 5 5 12 5
39. 5 M SP 460H MV TMO 10H 1 1 MX THI 40D8H M TL10 0FOH 0000000000 SETB EA TEEN SETB TRI 020000000 PUSH A PUSH ooog PUSH DPH 1 MV 00000 000000000 IPL 0000 PP A RETI 852 8 0030 0O000000000000 000 200000000000000000 000 00 IO 000 10000000000000 000 00T00000000000 10 No0000 INO 1 NTTO MV TMD 09H 1 wwMUMnry com 5 12 5201 0 0 80501000000 118 MU Mobile 13922805190 0 O0 0755 82948411 0755 82944243 MY TLO 400H
40. 6 0000 15 00000000000 00000000 1000 100 12700 000000 9600100 00 2 5 0000000000000000000 100000600 2 59 00000000000000 11520010000 12 ww MU Meery com STC2C5201A0D O0 1T 80510 000000 12 1 1392280519008 08 50 0755 82948411 0755 82944243 00 sta2xx 00 Mmumnnauna APR 8EH 22 1184 8 5 RELOD CANT Baud 1 382 400 bps RELOND CANT Baud 691 200 bps RELOD CANT Baud 460 800 bps RELOD CANT EQU Baud 345 600 bps RELOD CANT EQU OFBH Baud 276 480 bps RELOD CANT Baud 230 400 bps RELOD CANT Baud 115 200 bps RELOD CANT EQU Baud 57 600 bps RELOD CANT EQU Baud 8 400 bps RELOD CANT EQU OBBH Baud 19 200 bps RELOD CANT EQU 70H Baud 9 600 bps
41. AUXR 43000000108 1 EXIRAMI I J 1 000 RAMO 1024 SRAM 5 052 256 562256 016264 2 52 00 000 00 3FFH O 10240 0 000 EXTRAM 00000000 000 C0000 sfr AKR 8 uy 0x00 0000000 EXIRMILUO 3 unsi gned char xdata sum loop counter test array 128 10000 xdta 000000000000 EXTRAM 0000 0000 0 80510000000 ww MY Mmry com 5 2 5201 0 1T 80510 000000 57 DO0000000 EXIRAM sum 0 loop counter 128
42. ncl udeq eg52 h gt ncl ude4 ntri ns h gt sbit Begin Led P172 000000000 unsi gned char 1s Pover Dow 0 j Power owm DO 00000 100000 sbit s Power Down Led 1 7 sbit Not Pover Down Led NTO 1 6 sbit Is Power Down Led I NT1 P15 0000000000000 10 sbit Not Power Down Led sbit Power_Down V keup Pin I NTO P3 2 OD0 000000000 0 sbit Power Down V keup Pin INT1 2P3 3 00000000000 1 sbit Nornal V rk Flashing Led voi d Nornal V rk Fl ashi no voi d voi d INT Systemi ni t voi d voi d I NTO Routi ne voi voi d I NT1 Routi ne voi voi d nai n voi d 1 unsigned char 0 unsigned char wakeup counter 00000000000 0 Begin Led 0 000000000 I NT Systemi ni t IT uu utu rtlu 1 1 P2 akeup counter vwekeup counter wakeup count er 44 00000000 for j j 2 j Norral _V rk FI ashi ng 000000000 Is_Po
43. STC Internati onal Li n ted Fe sss 000 2006 1 6 10 5 201 0 5 12 5 6052 000 Mbile 13922805190 Fax 0755 82944243 0755 82948409 0 SICISP ver 3 0 1 3 P3 5 PCA 00 3 1 00000 00000000000000000000 00000000 2 77 000 0000000000000000 0000 16 3 5 000000 3 2 5 5 5 2 201
44. ADC u 5 4 3 2 1 0 ewe 1 ki Fe wr ro ee om mes cupi S ie e nere eme m mo mr amp m m o e en mene moiy m m m mo mam Lim icity nol Paon Peoi e me as m mos mam 1 1 200 EAD 3 1 1 2 Svo 000 1320000000 9 5
45. 20041 55 000 00000 0 0 10 0800 100 EEPROM STCI2C546252 AD PW MAX810 EEPROM 0 12M0 0 1 IU 1 320 0 g g 4 596 3 3V0 0 0 0 1 300 0 9 3 4 54 4 10411 5 SMez j 12Mc 15 5 0 40 160000 80510 0000 00 0 160000 T00 Tin uu 1 0000000000 2 16
46. 2 A 0000 90000 B 00000 G 3 00 00000 PO 00O RS2320000000000 UBL D FI LI U U JUL UEB 10000000 SICISP 3 B10 0O 0 0O RS 2320 00 4 51 5 45V Pover DI3 UBB T D DL E 41 1 1 P1 0 1 0 1 0 0 3 8 r3 0 5 0 0 1 1 6 Ul Socket JII IBU li 20 Pin 28 Pin U1 Socket 00 40 000000000 2 00000 8 lU SIII D 00 15 VG Power 0 0 DA 5 2 15
47. Dann 1 1 1 851 1 2 en 100000 0 00000000000 000 1 0 000000 00000 4700000
48. ww MOU Menary com 5 12 5201 0 8051 J fosc 12 3 11 30100 0010 000 5 9 gt 0100 0010 0 0000 PA 5 5 LEDI J 256 100 158 MU Mrory com Mobil e 13922805190 0755 82948411 Fax 0755 82944243 PVW a MY A amp 0 0000000060600 MY pulse width A 5 5 PW oop2 MY A pulse wath QR C SUBB A pulse wdth MN PMb 12 PVM b
49. 5 5 7 5 5 SIC ISP exe http www NCU Wemory com F 5 1 MCU Type MCU Memorv STC12C5A3252 X 0000 2 4 2 Open File CIEPETS A00 fu oo M ARRE 3 1 4 TO con conr v REX 1115200 20000000 1200 Step4 2F3E4 Double Speed RENSE TE BSAN PEA C ARRS des5sRRIA HT 2MHzbl PR NE Low High Low 0 1 v EpBERLOR CGETEAHPRORH SERHIISEMEFlasHE 3ffBES C YES HD G YES C ID RESET pin C FHfEP4 T 3DFRPJBBRC
50. RAM 20H0 0 00 MY R7 405H MY ROJ 20H START QR PLO 10000000 5 1 0 1 0 0000000 5 My R10 402H 74 15165 RXDATA MY SOONI 00010000B RID MAT QR R 0000000600 MV SBUF MY RAMO OD INC RO DNZ R70 START 5 T ww MU Menery com 5 12 5201 0 0 1 8051000000 11 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 000 741640 000000 7441640 8000000000000000 0 7441640 000 80000000000
51. 00 00 register 1 On S PCA Modul e 0 Modu el 1 MAT 000 0000 Mode Regi st er L3 3 3 9 Tee ssree i c ccro 00xx xx00 CPSO EE ECOMD CAPPO CAPNO MN TOGO ECCFO x000 0000 ECOML ECCF1 x000 0000 0000 0000 0000 0000 PCA Control Register PCA Mode Regi ster 0000 0000 0000 0000 0000 0000 PCA PVM Mode EPCOH EPCOL xxxx xx00 Auxi I i ar y Regi ster O PCA PVM Mbde EPC1L xxxx xx00 Auxi l i ary Regi ster 1 5 2 PCA Modul e 1 Capt ure Regi ster Hi gh Oo STCI2C52014D PW 1 1 0O 00 0 0000 80501000000 5 12 5201 0 1 8051 000000 47 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 2102 000000000100 1
52. 98 wwMUMnry com 5 2 220 1T 8050000000 141 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 00000 10000000 xn0 0 0 ST amp 26201A00 0 O0 70 X1 P3 5 STC12C5A60S2 3 41 CCAPnL O CCAPnHTI eja m em eom PCA interrupt L En cpn cm mrn Ton Pun en 0 0 0 0 PCA Capture Mbde CON SFR GcFn CAPM 5 1600000000 000 Camo 0 O0 Ecovg Maro oooO PCADLD D 0000000000 5 D
53. 2 851 1 2 0000 00 000 00 8050 000000 5 12 5201 0 1T 80510000000 9 0 00 00ww MU Mmory com Mobile 13922805190 0755 82948411 Fax 0755 82944243 33 00000000000 RI 10K 3 3K 10K 1 00 R2 15K 3 3K 15K R10 3 3KO 10KO 0 0 3 3 1 15 4 470 1k w 00 0000000000000000 5 5 1 STC12C5201AD0 O0 5 5 1 1 00 3 52 3 5
54. 15 2 2 51 12 5201 5 0B H CH EQU OF9H 0000 800 CL EQU OE9H 8 EQ GXNO EU GXN1 PA 0010000 00000 000000 0 2 EQ GXN2 00 2 0000 00000 000000 0 EQ GXN3 00 00000 000000 9 EU PA 0040000 00000 000000 0 5 EU 5 CR GXN6 CF GXN7 0000811 CMD 7 2 006000 CMn2 1 1 cso 00000000000 01 1 CPSO 0 0 100000 120 0 1 000000 20 1 0 1 1 400000000 5 7 12 5 6052 1 2 CMD 0 2 00
55. 2 7 4 TO T1 3 5 Power INTO P3 2 INTI P3 3 TO P3 4 TI P3 5 RxD P3 O apyPL 3mna gnnnu 20 0 000000 00000 20 DADO 0000000 20000 2 1 4 08 000000600 200 4 3 2 D D 200000 00000 000000000 1000 10000 8000 0000 250 5 0 00 2500 5 12 5 6052 1 0 0 000 5 12 000000 80510 00000 s20 0 0000000 RxD P1 2 0 00000000 PA 2 T P1 3000000 P4 40 P P 40 LCFP 44 LCFP 48 2 3 IDU 45CO0 00 0 759c nuu 7 164 165 595 IDU 00 00
56. MY AP GONIR 00000000 0 5 MY APOM 0000000 5 MY IAP TR G 1 0FFh 90 0 0 0 00000 MY AP ALDRL 0FFh HHHHHEBHBHHHHEBHHBHHHBSHEBE MO sSECTCR FI RST BYTE ADR H GH BL B BE 7 U LE UU 0000000 MV 5 0800000006060 M IP ONR ONR mox 000000000000 U Hut 097 SPIAP SECTCR MY I TRG 5 5 MV 0A5h JHgHHHHBHH HOHHHHBUHUH 00000000 5 MY AP CM 43000000008 0 0 5 MY IAP TR G
57. 1000 256 00 0 1 00 0D 27 23 15 13 110 O00000 0000 000000 805100 1 7000 55 7 3 0 31 8 EEPROM 9 000 10 000 0 10 20 1 11 2 5 1 320 0 00 5 3 3V0 000 1 300000 9 3 12 00000000000 00000 CO00 000 5 10 0 0
58. 25 8 13 16 100 2000000000000 0000000 13000 130 0 220000000 10 1600 160 0 2 0 0000000000000 0 2 12 12 000000 HS 2 5 1000 10 100000 Tc x Tp
59. Mbile 13922805190 21 0755 82944243 Tel 0755 82948409 5 5 1 000 Fosc 18 432M0 0 P1 5s0o000000 100000 5 2 2 EQU EQU OF9H 800 gt
60. P 11 0592 2 RELOAD CANT EQU OFFH 57 600 bps RELOAD CANT EQU Baud 28 800 bps RELOAD CANT EQU Baud 14 400 bps RELOAD CANT EQU Baud 9 600 bps RELOAD CANT EQU 0F4H Baud 4 800 bps RELOAD CANT EQU OE8H Baud 2 400 bps RELOAD CANT EQU ODOH Baudzi 200 bps 000 11 0592 9 12 0 0 5 0 0 00000000000000 Li LED MU START EQU Pl 7 MUJIID DU D CG 0023H SP FH QR LED MU START ACALL I niti al MY 2 0 Be UJ I oO 1000 0123456789 ii ww MV Mnmory com SIC12C59201AD 1T 80510 000000 125 Mobile 13922805190 0 O0 0755 82948411 0755 82044243 FO ACALL Send Qe Byte
61. ww MU Menery com 5 12 5201 0 0 1 805000000 193 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 lt 52 h gt the lCDis 13 duty and 1 3 bias 3Con 24Seg 9 di spl ay RAM Bit7 Bt6 Bt5 Bt4 Bt3 Bt2 Btl Con0 Con DataO 5 7 9806 Segb 5654 98603 39802 Segl 95990 Con DBtal Segl5 Segl4 Segl3 Segl2 956011 959010 Seg9 35808 Con DBta2 Seg23 Seg22 Seg21 990920 5 019 Segl8 Segl7 Segl6 Goni ConiData0O Seg7 9806 Segb 5654 98603 9802 Segl 5 00 ConiDBtal Segl5 Segl4 Segl3 Segl2 956011 959010 Seg9 359808 ConiDBta2 Seg23 Seg22 Seg2l 56020 956019 56018 5 017 Segl6 Gon2 QCon2Data0 5 7 9806 39805 39604 9803 39802 Segl 95990 Con2DBtal 56015 Segl4 Segl3 Segl2 Segll Segl0 9809 359808 Con2DBta2 Seg23 Seg22 Seg21 56020 956019 56018 Segl7 Segl6 3 P3 0 P3 1 when P370 P3711 1 then Con92 Qd 5V I P3 0 2 P3 41 0 6
62. CH EQU OF9H 800 8 EQU 0H 000000 EU GXNO EQ GXN1 0 10000 00000 000000 QXN6 01 C QXN 7 PCAUJII III GC ar 0000 ooo 80000000 ww Mu Mmry com 5 12 5201 0 0 1T 80510 000000 145 www MQU Menor y com Mobi e 13922805190 0 Tel 0755 82948411 Fax 0755 82944243 CMD EQU 0H CMDn 7 000600 CMn2 1 CD 1 50 CPS1 CPSO 0 0 14 0 1 000000 20 1 0 Tiner Tiner 1 1 40000000600 CMD 0 EF
63. L L IT I L o P1 P2 P3 STC12C5A60S2 AD PW 0000 P4Ps00000 0 P40 00 5 8 UU J JU l Uu l j psa f Ps o n can j con ce PASW L1 C D NY P4 4 j ALE P4 5f EX LIV P 985 0D OD OD LO xi ue 7 5 5 5 13 2 3 T9 Tere Jman NA P4 4 4 0 4 1 0 0 0 0 PASW4 1 0 Ny P4 40 000 1 00 4 ALE P4 5 000 0 5 5 0 5 10 0000 P4sw5 1 0 ALE P4 50 000 1 00 P4 5 EX LVJ P4 6 0 000 45 6 0 60 0 00000000000000000000000 1000 0 PASW6 1 EX LV P4 60 1 1 1 Q PA 6 5 4 7 5 4 7 4 4 merenie 23a ee 7 5 T5 T DEB LS Tem ui ren wx ary register 1 Pa sri pa s2 ra
64. ww MU Menary com 5 2 5201 1T 80510000000 130 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 7 2 STCQ2GA 60AD S2 0 000 A000000 5 2 5 2 7 81 10000 000 0 00000 250 25 8 8 5 12 2 2 o s s l oes Fee oe ev rer ow m or o 1 0 5 0 00000 1 1 7 0 1 0 1 0 1 5 1 1
65. 84 amp oso v B None v 42 Xd 2 M ERU s Bah rte SuSAxBELTES 1 E CXEFH P RE RHHER FR P nde Be ST SA S RERHE 2 TERESIBSE S T Ser S RERT fU HAC SE Dr SDRSETSP RFRIX ISP CONTR 380H ISP CONTRH IEXEETH 4 amp 5 5 10 EET SEEEERE RSS Bele m SEP1 0 P1 1 8 EE EHUREREISP 8323 6 3D BERT IAS BEDSPI 0 P1 1 88 EHE REISP T SESS HL a nBisE P EEASSPI 0 P1 1 0 0 Bil ESeSE ir SITSP EHERDE 77 B stis ERBfnzBDIPOFI OXO b 0 1 1 0 0 E tes Dr POF E A1 8 ww MU Menery com 5 2 5201 0 0 1 805000000 19 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 25600 STC Internati onal Li n ted 100 2006 1 6 VLO _ 51012652014 _ 13922805190 11 0755 82944243
66. 3 2 1 NTI P3 3 1 NI TO P3 4 I NT T1 P3 5 NI RXD P3 O 10000 10 0000000000000 cLa 00000000 0000000000 wwMUMnry com 5 2 gt 201 1T 80510 000000 172 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 92 STC Internati onal 0000 000 2006 8 2 VLO STA2xx 00000 0000000000 00000 000 Mbile 13922805190 0755 82944243 _ _ 0755 82948409 Veb ww O00000 STCISP Ver 3 0A P QD0 0000000000 Uu
67. 805108 000000 1T 80510000000 8 Mhile 139228051900 0 0 Tel 0755 82948411 2 1 2 STCI2C5A6052 AD PW 0O 0000 nna 1 0755 82944243 8051 000 8051 100 81200 10 0 MAX810 0 0 8 9 10 1 00000000 12 13 14 15 16 17 18 19 20 21 8051 1000 0 100000 8051 10000 12 5 6052 0 0 000 100 128000 RAM 00 1700 36 40 44 I U 5 5V STC12LE5A60S2 0 08000003 6 3 3 5 2 2 3 01 420 8051 8K 16K 20K 32K 40K 48K 52K 60K 62K 00 0000 000000 8051 20 PW 80 0 0 100 DO 0 250 Ss 0000000000000 001 000
68. 0755 82948409 000000 STCISP Ver 3 0A P QD00000000000 Ate TEST TEST RAM EQU 0000H CRG 0050H IN TI AL MV FO 47253 MY RL 48H TEST ALL RAM 2 FFH TEST CNE RAM R MV A QR A MY A 81 2H ERR D SPLAY DJNZ R2 TEST OX RAM ONZ TEST ALL RAM CK Dl SPLAY MY 11111108 Wi t 1 SM Witl ERRCR 5 MY A RI MV Pl A Wi t 2 SM Wit2 END ww MU Menery com 5 2 5201 1 8085 1 100 0 00 00ww MU Mmry com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 og 5 2 gt
69. 8 R amp 485 0000 8051 0000 0 Rxd P3 1 Txa 0 000000000000000 ww Mv Mmry com 5 O 1T 80510 000000 184 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 112 00 00000000000 5 2 0 5 1 8052 87 52 8754 8708 Phi I i ps P87C52 P87C54 P87G58 J 3 00000 00000 000 5 12 520140 00 15 00000000 000 50000000000 00 00000 28 20 00000 28 28PI N 1 1 20PI N 20PI N 000 8 022 5 2 22 5 5 6 35 1 0000000000 000 10000000 0 00 0 5 61393
70. NC A Rl l1 EPS O EPTRO I MO XA PIR l OMH INC AUXRI 00 PSO 1 PRM0 0 MO XA PIR NC IE EPSE 0 EPTROTT MO XA PIR l 2FF0 0000 000 AO O 5 12 5201 0 1 11 63 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 2 19 STCDCVeOAnD j 0 O0 0 000 600000000 meone aee ofe s 2 1 ee ms seam asses Gera avea aver aveo oao vonr Lo ennnnoonunacamunuoonano 5 5 a ja B oojaa ojo ojaa
71. 5 2 22 001 000 5 2 20 1T 80510000000 19 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243
72. Tel 0755 82948411 Fax 0755 82944243 INC RB MY A SUBB A 8H JC nainloop P1 0FFH QR ITO ITO SEIB EXO QR SEIB EXl zEDEDEBEHEE 3 SEIB EA Down MWO Povr Dow 00000 MV 700000010B PDA Pover 1 My PQN 000000018 ODO00O0O00OOO 0000 10000000000 0 10 0100 10 1101 1111 000 100000 Dw 00 0000000 0000 000 50 70 180000 C NOD E 20 08000 0000000000 2000 000 70 1805 0 1 1 50 18000 000000000 00000 Mv PGN 000001080 00000
73. 0 lt 1 SETB EA CR CA nterrupt PUSH PUSH PSW 5 0 000 000000000000 CL LED5nS Flashing 120 00000 1 0194 roa guggagagaagagug CCAPOH Channeo 5n H Channeo 5nS L 00 0000 18 432 5051 ChanneO 5n H ChanneO 5n L T Y Fosc 12 0 005 1 18432000 12 7680 10000 1 00 16000 ChanneO 5n H 1EH 0 51 ChanneO 5n H ChanneO 5n LO O GCAPOH GZZPOL 1 E D B UO D U MY A 3Khanne
74. 88 RE TRE RII IIS 89 91 tic t a e eee n e mo e 91 3 5 inet rtr PES ETDEESS ESI PERTH 91 36 91 SNAMN NIBREIPZSBNIRIMRETETC TT 91 3 9 JAPON IH FETEERCLEDELFDBDRER EDITT T e ene arret ree emnt ten 92 d trie aede ie cea 93 4 0 i te c urea ee ge ta ere e 94 4 95 41 2 4 2 2 2 95 4 Ll mnm a 95 4 1 2 unu em mne n 97 a i hl 99 4 3 puak 99 44 100 5 101 5 1 JIAP EEPROM TA ETT Po DET ET ET EE ei o n ic a em t ee ees 101 5 2 SICIACS20UATML TT FI EE TI EEPROML 1 0 emt
75. 8051 5 80 1 9 5 I SP IZAP 11 10 9000 tAPmmnag Hash 0 00000 SWISS pBupnpnuaopnuapnagangenauun sPuaunagnaimnmpg swsrmnmn swsr 0 0000 1 Qv FAL 000 0 1AP_TRI GO SAv 25hn pg pp adu 11 0D MY 00100000 5 85 00 0 5 1000 MY 00100000B 5 85 0 0 0 AD ssr 1000 MY 01100000 5 5 1 0 0 ISPO SRST 1 0 00 MY 1 401100000 5 85 1 0 0 ISPO S
76. MY MY H 8 31D 0 D 2 8 PCA PWO 00 90 03 ww MU Menary com SIC12C5201AD 1T 8051 16 MQU Menor y com Mobi e 13922805190 1 Channel 5n H Channel 5n L MY QOPI1L sXhannel 5n L 1 1 515 49 SEIB EA 0755 82948411 0755 82944243 ID FERE PCA PCA 10 CAPIL 1 160 00000 ECH 0 PCA CCAP1H CCAPIL 1000 1 10000 0000 l PA PCA nterrupt PUSH PUSH PSW CPL
77. 75 82948409 Vb ww ntu O00000 STCISP Ver 3 0A P QD 00000000000 ncl udeq eg52 h gt sfr 0x sfr 0 09 sfr a 0xE9 sfr CH OxF9 sfr CCAPOL sfr sfr CAPM 0D sfr CAPM sbit CR voi d nai n voi d 0O 0x02 Setup PCA ti ner a 0x00 CH 0x00 QOAPOL OxcO Set the initial value sane as QCAPOH OxcO 2596Duty Cycle 0 42 0100 0010 Setup PCA nodul e 0O in PWM node 1 Start PCA Ti ner vhi I e 1 0000 0000 0 80510000000 ww Mv Mnory com 5 2 5201 0 0 1 805 000000 14 0 00 00ww MU Mmory com Mobile 13922805190 0755 82948411 Fax 0755 82944243 8 amp 6 POYPU ILL DD DL D U D LU L
78. 98051 void lIntO Routine voi d interrupt 0 void TinerO Routi ne voi d i nterrupt 1 void Intl Routine voi d interrupt 2 void Routi ne voi d i nterrupt 3 voi d UART Routi ne voi d interrupt 4 void ALC Routi ne voi d i nterrupt 5 void LVD Routi ne voi d i nterrupt 6 void PCA Routi ne voi d i nterrupt 7 void URT2 Routine voi d interrupt 8 void SPI Routine voi d i nterrupt 9 ww MU Menary com 5 12 5201 0 1 8050000000 4 0 00 00ww MU Mnory com Mbi le 13922805190 0 0 0 0755 82948411 Fax 0755 82944243 5 12 5201 STC2C5A60S2 O0 1T 8051 0000000 Interrupt SFRs meone Jeee gt o ee e menge mue E n ea En Po xe ex RO Ti ner Counter 0 and Serial Control SM FE mon femer owr s sem ww r Go P E QLKO 8Fh Pover down V keup PCAMKEUP RD PINIE TI PINIE TO PINIE LVD VE BRTGLKO T1QLKO 0000 0x00 Control Regi ster 2rd Interrupt 2rd Interrupt P2H B6h Pri ori ty H gh PSPI H PS2H xxxx xx00 regi ster T m m OUR
79. POMI 7 O 70 0 8051 TO I 0 0 20mA 230 250uA 150uA 0 1 20mA 1 0 1 1 Open Drain 48401000008 44110000008 5 00 I P1 4 P1 3 P1 2 P1 1 P1 O IDU 204A0000 00000000 0 1K 56090 000000 00000 20A00000000000000000000000000000 554 0 0 M van 55 5 555 1 5 12 5201 0 0 1 80511 000000 88 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 3 2
80. 5 5 52 RST2 EX LVO PA 60 STCI2C52014D RST2 EX LVO P1 2 PI 2 RST2 DDU MU STCD2CS201ADI D D UD LVD P1 2 2 60520 8000000 EVO P4 6j 333 0 0000 000 1 33 0 0 0000000000 000000000 pj EJ 470uF 104 gt 160v0 0000 7805000000 8 5 2 1 00 Rs20 0 780000000000 8 svoogo 00000g RO R2 8 Sv 0 000000000000000 14 3300 0000000000 000000000 0000 0000 0 80510000000 ww MY Mmry com 5 2 5201 0 0 1T 80510 000000 37 Mobile 13922805190 0 O0 0755 82948411 0755 82944243
81. E 02000 000000000000 CRG 1000H NTER PUSH A PUSH OPL PUSH ww MU Menery com 5 12 5201 0 0 17 8051 000000 119 000 1392280519000 0755 82948411 0755 82944243 38H PCP RETI LI 5 1 200 5 400 5 00 000 6 2 0 000000000 9 PLTO MV TMD 403H 3 MY 9CH MY THO 438H SETB EA SETB TRO 000 SETB TRl 20000000 1
82. 5 12 5201 0 0 127 Mobile 13922805190 0 O0 0755 82948411 18 432 BaudO 57600 127 00 1 RELOMD 256 I NI 18432000 57600 32 12 0 5 256 INI 0 833 0 5 256 INI 1 333 256 1 i 255 2 18432000 256 255 32 12 48000 3 48000 57600 57600 100 16 6696 000 IOD Fosc 18 432Mz BaudO 9600 12T 1 RELOAD 256 I NI 18432000 9600 32 12 0 5 256 5 5 256 5 251 2 18432000 256 251 32 12 9600 3 0000 00000 Fosc 2 2 000Mcz Baud 4800 IT I l1 RELOND 256 INI 2000000 4800 32 0 5 256 INI 13 02 0 5 256 13 52 j 256 13 243 2 2000000 256 243 32 4808 3 error 0 16 0755 82944243 ww MV Mnory com SIC12C59201AD 1T 80510 000000 128 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 srap ouii ADI I 7 1 MSN AM
83. 0 3 00 100 0 00 10 0000000000 5 12 0 000000000 0 0 22 000000 0 0 CCAPM 4 5 6 0 26 0
84. 5 5 5 2 00000 BRIx12 J SMDI 1 50000 10000 REND 100 JO 100000000 SBUF 0 DO 01 8 ww MU Menery com 5 12 5201 0 1T 80510 000000 68 HB d npww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 000000 1000 30 00000000000000000 0000 BRO 0O O RELOD SMD 0 SD0 PON0OOC0CO0O00OOO0O0 1 0 0 RELOAD a RELOD 256 INI Fosc Baud0 32 12 0 5 RELOD 256 1NI Fosc Baud0 32 0 5 0000 REEONDI D DU BRTO I D D INK
85. 5 Oxed Oxf 5 Oxf d Oxf a 0x51 0x49 0x41 0x39 0x31 0x29 0x21 0x19 0x11 0x09 0x01 0x06 OxOe 0x16 0x1e 0x26 2 0x36 Ox3e 0x46 4 0x56 5 0 66 0 76 7 0x86 8 0 96 9 Oxb6 Oxbe 0 6 Oxf 6 Oxf e Oxf 9 Fax 0755 82944243 0x50 0x48 0x40 0x38 0x30 0x28 0x20 0x18 0x10 0x08 0x00 0x07 OxOf 0x17 Ox 0x27 0x2f 0x37 OG 0x47 0x4f 0x57 Ox5f 0x67 Ox6f 0x77 0x7f 0x87 80515 000000 5 12 5201 0 0 1 80518 08000600 61 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 Oxf 7 Oxf 6 Oxf 5 Oxf 4 Oxf 3 Oxf 2 Oxf 1 Oxef Oxee Oxed Oxec Oxeb Oxea Oxe9 5 2 1 Oxde Oxdb Oxda Oxd6 Oxa4 Oxd3 0xd2 0xd1 Oxcf Oxce Oxcd Oxcc Oxcb Oxca Oxc9 Oxc7 Oxc6 5 Oxc4 Oxc3 2 Oxc1 Oxbf Oxbe Oxbd Oxbc Oxbb Oxba Oxb9 Oxb7 Oxb6 Oxb5 Oxb4 Oxb3 Oxb2 Oxb1 Oxaf Oxa9 2 1 Ox9f 9 Ox9d Ox9c Ox9b
86. ECCFO x000 0000 Mode Regi ster Eme efis emm pem pem me enm a T T L T CCAPOL PCA Modul e 0 Capture 0000 0000 Regi ster Low PCA Modul e 0 Capture inii CcapiL Eph PCA Modul e 1 Capture 0000 0000 Regi ster Low CcAPiH Fen POA Modul e 1 Capture 0000 0000 Regi ster Hi gh CA PWMNode 00 Auxi l i ary Regi ster O F3h PCA PW Node 00 Auxi l i ary Regi ster 1 3 7 CI DL CPS2 27 U U U U U 2 51 1 50 0 000 U DDD D D ES ET DUBDDDU o f fo _ C CPS2 CPS CPS0 2 1 0 O POV PM L1 L Fosc O O Ti nerOo PAM 0 0 Fo
87. 5 15 5 3 9 13 0 40 160000 00000 8051000000 7000 160000 000 20 2 260000 14 15 6 Power I NTO P3 2 INTI P3 3 TO P3 4 TI P3 5 RxD P3 0 PCAQ P3 7 PCAI P3 5 6 2 2 m 00000 20 DADO 0000000 20000 0000000 2080000 00000 00000000000000 17 000 8000 0 800000000 3000 50 00 3000 18 0000000000 5792000000 8050 0000000 19 0000000 40 85 Q000 0 74000 20 0 0 32 50 32 28 20 16 5 280 20 18 160 1550 20000 0 6 6 502320 270 1 00 0 50 28 5 0 28 230 1 00 0 5 20 155 20 200 150 1 00 0 D P180 130 1 00 0 SO16 0 P160 110 1 00 01 700 000000 20 1700000 7 164 165 595 8 0000000 1 00
88. wwMUM nry com SIC12C5201An 1T 8051 JUD DD 43 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 E 8051000 00 00000600 Interrupt SFRs mee e used i m mm eee Courter 0 and Im 22 E sx ely aa o sias visse CLKO 8Fh es RDPINIE TI PINIE TO BNIE LVDO WKE 0000 0x00 Control Regi ster mecawm mm wennunugg crom sam ses wcruc wcswer a amp 0000 PCA Mu e 0 PCAMxlu e1 om e om om STC12C5201AD 8051 JJ POV PV LL L PW SFRs memc 0 me eee D fando PCAMxu e1 erm mpm Eh POABase Ti nar Low i nar POABase Ti nar Low _ 1 PCA Mdu e 0 Gg ure mx Sem me em me me manya jmiss ww MU Menary com 5 12 5201 0 0 8051 00000 4 0
89. Mhi le 139228051900 0 0 Tel 0755 82948411 Fax 0755 82944243 MY IAPDNA MY 000000 DDDDDD Fono M IP ONR A B HE ISP LAPD D foooo0000 000000000 MY IPAD 4SPIAP BYTE PROGRAMM 0000000 MY IAP TRG 35 1 5 3 MY IA RIG 5 15
90. Mobile 13922805190 0 O0 0755 82948411 0755 82944243 8 7 __5 1 000 2006 1 6 1 0 51012652014 1 Mobile 13922805190 4 0755 82944243 4 0755 82948409 _ 5 15 DO00000000000 00 STC12 201AD D0000 18 432 D LU pul se w dth MX 000000000 pul se w dth MX EQU OFOH 93 75 pulse Wwdth MN EQ 10H
91. Val ue P1 Anal og P17ASF P16ASF 5 4 P12ASF P11ASF P10ASF 0000 0000 Speci al Functi on eese pae ser loe om perle ur acm Q k out put WKE Gontrol PCAVAKELP RD PIN IBT1 PINTE TO PIN I donem nardi 0000 0x00 ster en mera gene en ex m eo Excmi sss eo ommo 470uF 104 470uF 104 5 2 gt 2 2 2 5 605218 8000000 60 2 gt 78050000000 1 0 160v0 0000 78050000 0 8 5 100000 8 5 0 00000000000 0000000 L 0000 00
92. 000 52 1 0 1 0 00 0 5 256 0 PCA P Wirade CL 00 Pwo 800000 PWO 00D 256 Fosc 2 Fosc 4 Fosc 6 80 12
93. D000 000 00 2006 1 6 1 0 5 2 1 1 13922805190 Fax 0755 82944243 0755 82948409 11 5 OCH AP ALLFH 03 EQU AP QD EU IAP TH G EU OCH AP GONIR OC H I SP AP BYTE READ EQ 1H n 0 15 2 SP AP SECTCR ERASE E ENABLE EQU 80H 1 4P GNRI EO D U U D U ENABLE 81H Mer np AP GONIRT D U U D U U ENABLE 8
94. 0 m O TUL P1 1 gt C O wu va o umo m A m gt 8 E 10K o000000 00000 2 CI RIIJ 1K 104 Z lt 100000 0 H um lt 47 000000 33 ww MU Menery com 5 12 5201 0 0 1 805 000000 18 QLKOJT2 ADQY P1 0 ADCV P1 1 EQ AX2 P1 2 QCPQ ADC3 P1 3 SS GCPLADOJ P1 4 MB ADCS P1 5 M SQ AD P1 6 Sa K ADC7 P1 7 RST PA 7 RxD P3 O TxD P3 1 NTO P3 2 I NTI P3 3 Q KOJTO TO P3 4 aKO TI P3 5 V P3 6 RO P3 7 XTAL2 1 0755 82944243 0 00 00ww MU Mmory com Mobile 13922805190 1 0755 82948411 Fax 0755 82944243 1 1 4 5 5 494 53 5 1 MCU Type MERE EEG MCU Type AP Memory stc12csa10a0 gt 9000 27FF Step2 2 Open File FIR Xi Buffer Start Address HEX o Unused Bytes in file range File Check Sum JX PETER QEX oD1D3CFH Open File Step3 1bUK3 Select COM Port Max 1710 cow com Max Buad 1
95. 5 1620 2832 cnong 00000000000000 0 100 20 SCP 28 SKD P 28J I D DDD 0 0 8 16 pear v P2 3 2 P2 1 ES RST 3 P2 0 FI ash 100 0 TL T RxD P3 0 C 4 PL 7 ADC7 00000 RxD P3 O 1 77 7 TD P3 1 J 5 P1 6 ADC5 1 2 4 5 eK Tapa 1 1 6 06 2 6 P1 5 ADCS xa2L13 gt dup 1 2 3 19 P1 2 ADC2 EX LM RST2 UART lt INWP3L PLADI qukouyEq TOP3 4 Pl Y AD TO P3 4 gt PLO AXD 3 5 P1 0 AD Sep UP P3 7 p m go 160 16 Gd P2 6 Tiner 0 1 2 2000000 RTE 2 1 1 7 7 2 0 TXD P3 1 P1 6 AD5 PL 7 ADC7 em XTAL2 PL S AD or or 1 1 4 4 ET TNI P3 2 C 1 3 PO 3 NT1 P3 3 Pl 2 ADC2 EX LM RST2 4 ADO pou aKO 3 5 P1 0
96. 0123456789 160000 00 3031 32 33 34 35 36 37 38 39 INC R0 R2 LOP VW T SIP MIN WT 00000 006060 UART I nterrupt JB R Is UNT Fecei ve TI RETI 15 RH PUSH ACC SBF ACALL Send Qe Byte 000000 Initial UT SON Bt 7 6 5 4 3 2 1 0 SM SM REN TB8 RB TI RI MV SGN 50 0101 0000 80 00000 00000 MV TMD 21H 0000010 800000000 TH ELOD OANT 0000 100000 MV TLl 4RELOND COUNT 480 ORL AJR 01000000B 00 1000 20 4101111118 000 1000 1200000000 805100 TRL 0000 00000 8050000000 5 12 5201 0 O0 1T 80510 000000 126
97. mos me np mam moma aoon aron sen se udas oe oa om o mejo aa emo ir e menge amp mo mr e m o eo e felene moiy ma o r s P pa Po Lim mon Pon ra Pan Pan Pi 1 11 21 ADCD D UO roma seen seeen Jac rus vc ser ase aeo oo 0000 2 51 n log Channel Select CHS2 CHS1 CHSO 1 Jj 0 0 Jj 3 0 0 1 3 0
98. 0000 0000 0 80510 00000 00 www MOU Menary com 5 12 5201 0 1T 80510 162 Mobile 13922805190 0 O0 0755 82948411 0755 82044243 CRG 0060H nai n MV SP EOH L PCAinit nai n oop CMD 700000010B 2 51 50 0 1 0000 9 000090 0 0 MV GN g R 0 0 0 80 MV 80 O00000 1000000000 0O00 P3 s0 90 00 01001101 40 0 100 0000000 000000 CAPM 7 6 5 4 3 2 1 0 EGOM CAPPn CAPNh MNn TO Ph 0 1 0 0 1 1 0 1 0 00 1000 000600
99. 8 1 PCA 00O 1000 000000 800 GCAPOL 8 PCA 0O 1000 000000 800 PCA PWO EQU PCA O PM I LI LI LI PCA PWL EQU 1 PCA PVh 7 6 5 4 3 2 1 0 5 7 2 0 0000 9 1 00 9 000 CAPM 7 6 5 4 3 2 1 0 Edah Min TORR 0000000 CAPPn 1 0Q 00000000000 exwuu rut t 00000000 0000 P n r GFn JI JU HU CAPPn CAPM MAIn TOG PVih EKTn 0 0 0 0 00 00000000 x 1 x 02 160 x 0 1 0 0 0 x 01 160 x 1 1 0 0 0 x 160 x00 0000 0000000 1 0 0 1
100. 800 1 800 2 EQ 20 0 7000000 800 EQU 8 4 800 QOAP5H EQU 800 EQU 8 CAPIL EQU PCAQO 1000 000000 800 OECH 2 800 CGAP3L EQU OEH PCA0O 3000 000000 800 CCAPAL EQU OEEH PCA 0O 4000 000000 800 QOPSL EQU PCA0O 5000 000000 800 0000 0000 0 80510000000 ww MI Menery com 5 2 5201 0 0 1 805000000 155 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 PCA PWO EQU OF2H PCA PWL EQU
101. 8051 1 5 12 5201 17 80511 19 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 7 3 P2 2 2 3 RST RxD P3 0 TXO P3 1 XTAL2 xai INQ P32 3 QLKOJTU EQ TU P3 4 P3 5 P2 4 P2 5 VSS 28 27 26 25 24 23 47pF 0 1 2 Vcc 21 20 213 82 405 0 0 0 88 AAS 3 4 Vcc 4 5 Vcc A DOODO P10 P1 0 P1 7000 wwMLUMnry com SIC12C5201AD 1T 80510 000000 133 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 7 4 0 000000000 2 5
102. Mobile 13922805190 0 O0 0755 82948411 0755 82044243 MY SBF A V i t Send Fi ni sh TI VM it Send Fi ni sh aR T SEIB ES RELOD SMD 0 1 00 RELOND 256 I NI Fosc Baua0 32 12 4 5 0 0000000 256 1 0 32 0 5 ED ET ETE 000 Baudo 0 0000 2 Baud Fosc 256 RELO D 32 12 127 00 b Baud Fosc 256 RELOD 32 3 error Baud Baud0 BaudO 10096 4 amp gt 3 r4 Fosc 22 1184Mz BaudO 57600 2T 1 1 1 RELOAD 256 INI 22118400 57600 32 12 0 5 256 15 256 1 255 2 Baud 22118400 256 255 32 12 57600 3 00000
103. CMD1 6050 01 CPS1 CPSO 0 0 14 0 1 O00000 7 20 1 0 Tiner ODD H B DB Triner 1 1 4000000000 Cn 0 1 C GTN7 eut 1 8 GCAP2H 800 PCA 00O 3000 000000 800 PCA 0O 4000 000000 800 QCAP5H EQU 0 0 5000 000000 800 GCAPOL EQU 800 OEBH 800 1 2 800 800 GCAPAL 0 0 4000 7000000 800 EQU OEFH 800 PCA PWO EQU OF2H PCA PWL EQU gt 1 PCA PWR EQU 2 PCA PWB EQU 2 OF6H PCA PWS EQU PCA E 7 6 5 4 3 2 1 0 E i B7 EZ 900 BO EPCnL PV JJ UI O0 9000
104. PCA PWR EQU gt 2 PCA PWB EQU OF5H EQU PCA 4 PTTTITI L PCA PWS EQU OF7H 5 PW I CI LI C 7 6 5 4 3 2 1 0 i 5 B7 EZ 9000 BO EPCnL PM JI U JI CCAPnL 00 9000 M 00 10 00000000 GAP PCA 00O 2000000000 GAP PCA 1 B 3000000000 4 OLEH PCA 1 D a CAPM 7 6 5 4 3 2 1 0 Min Ph 1 0000000 1 000000000000 CPM 0 00000000000 Mm 100000000 00 GrTn 100000000 000 00 EKFn 1 00 00000 Eh 0 0 0 0 0 0 0 x 1 0 0 0 0 x 2 16 CEXn D H DB BL BL B HE HI DT x 0 1 0 0 0 x 1 1 6 x0 000000000 x 1 1 0 0 0 x 160 1 0 0 1 0 0 x 1 0 0 1 1 0 1 0 0 0 0 1 42H8 PM wwMUMnry com 5 12 5201 0 0 80501000000 1
105. QR IAP TRIG 0 0 5 5 15 MY 4045H 1 SEIB EA Sector Erase MY IAP QNIR ZENABLE SP MY IAP OD U B MV IAP AOMH 8000 8000 QR EA MV IAP TRIG 5 5 MY 0A5H 1 SEIB EA 1 _ lt 98 STCO2C5201AD O0 1T 80510 000000 11 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 AP
106. 2 Fosc 2 BRT 000 12r00 000000 AKAN 2 0 000 1 0 0000 bl 1 5 2 Fosc 2 256 TH T10 00 12700000000 qakoUun a Fosc 2 12 256 THI ogg ngpu TAP3 5 0000 1 02 2 256 TH TOD 00 12100000000 AKONO 4 Fosc 2 12 256 TH 4 0000 256 BRT 121 256 BRT TMD 0x22 N0 0000 0800000000 AUXR AUXR 0x80 T00 0 0 100 AUXR AUXR 0x40 0x04 1 256 74 8 124 540 TH 256 74 0 TOD00000 8000 0 0 0 18432000 2 74 124540 540 0 O 125K THL 256 240 0 O00000 800000 0 000 0 0 18432000 2 240 38400 WKE AKO WE 0 TRO 1 TRI 1 040 1 8 ww MI Menery com 5
107. lt 2 256 BRT BRTx12 0 00000000000 1270 0 2 Fosc 2 12 256 800000 BRT eload data 2 3 AXRO0000 BRRO I 1400000000000000 0 ww MI Menery com 5 2 5201 0 0 1 80511 000000 51 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 0 0000 AKONO I 4 5 2 0000000 Fosc 18 432 000000000000 LTU ncl ude r eg51 h sfr WKE 8 sfr AUR 0x8E sfr BRT 0x9G nai n 1 SFR WKE AKO 0 0 O 0x8F b7 poverdowr b6 1 3 6 poverdowr b5 1 5 poverdowt b4 TOPINIE 1 00 poverdowt b3 NA 02 1 12
108. 1 go Gn AGOGO GOG GA go gao ao Ea i oo ojoo 01 8 1 7 2 x AE Bus_Speed RWBus Speed ALE Bus Speed BUS SPEEDO O O 0000 ALESI ALESOQ 5 5 664 5 82 1 o o 80510 0 0 1 5 12 5201 0 O0 1T 80510000000 64 Mobile 13922805190 0755 82948411 0755 82944243 2 20 SICI2C5A60S2 I PW PS STCI2C5A6092 AD PW 0 J I EL D PAPSD OD UD O U D UO 7 5 5 2 L3 L5 ee wee a onje 1 pae 1 eoam aw fanas uoPee aE Pas pa X9 bum fra
109. 1 0 D 0 o0 P1 0 o0 1 0 P1 0 A D0 D 0 D 0000 0000 0 8050000000 5 12 5201 0 0 1T 80510000000 129 0 1 2 3 1 4 5 6 7 HB dd npww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 01 01 5 SPEED1 SPEEDO 21 300KHz ADC START DH D D D CADO AD FLAG 0000000
110. 4 16 11 10 I 149 ss as a a gato t 154 8 6 2 155 8 7 AMINT MMEA 157 125 FIL TET Elascaca ach ch hcc iic oen 160 8 9 164 acc 171 nen 172 9 1 iuum mmn 172 IN CPREUPTCST edet n dt 173 93 b pe Bae ad e er 176 101 178 180 11 1 mnnmnnmnnmtrmsemnmmmmmmmmmmmmrm 180 ILL pg AESP A R d a t 180 11 3 2 STCL2CS201ADELTEFL BARCHE TETUTIEESPRURCTETEEEBREIUTI untra ane 181 IL t3 S CPC AB0S2TT TE ET TER DET TETTE ESSERE TI EVE FETU ET 182 LADT MA ESPAT EA AA AA TI dedico ud 183 15 ed ics ah acce eo acc d 184 11 1 6 2322
111. E L3 L3 EJ E E E I L3 L3 EJ EJ I E L3 L3 E E L3 L3 E E L3 L3 E E V i t AD Fi ni she MV A 3400010000 JZ wWit_AD Fi ni she 381100118 1 0 AX FLG AX 00 000 MV A ADRES MY 2 00 0000 02 PUSH 03 PUSH 04 000000 MY Del ay Loop MY R3 4200 2Q0Q0K ay_Loop1 R2 249 DOE eine Del ay Loop 1002 00 200406 Q CK DNZ R2 Delay Loop Delay Loopl 4 JNZ R4 Delay LoopO 4 04 02 8050000000 ww MU Memry com 5 12 5201 0 0 17 80510000000 137 0 00 00ww MU Mnory com Mbi e 13922805190 0755 82948411 Fax 0755 82944243 SKICBDUDDODDD PON PUT 81 PCOYPVW U 12 5201 0 0 1 801 POY PVM 5 5 meroni mum crue rmm ume aco m maweemsste 0990 CCAPMD POA Module O
112. TA 12 H2 NUP32 12 L5 INTVP3 3 STCL2C5A60S2 RST2 EX LM P4 61 C KCJTQ TO P3 4 5 2 5201 RST2 EX LV P1 20 5 lt 47 Wy P3 6 7 USB45V T1OJ RII N GD XIA2 ET prm 1681 1 lt 7 n 000000000 3M 000 000000000000 000000 Q0000 00000 5 0 00 0 11M 15 5Me 3V0 0 00 8MeD 22Mz XTALY XTAD2C D D 3 ww MU Menery com 5 12 5201 0 1 8050 0800000 36 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 2 7 EN BENTE rsr nemcl Kossoesesescsasoos 4 6091 gt ve o BAD BJART MERLE H 8 C 6 OE BD ATE 138 YES ND STC12C5A60S2 l 6 1 2 5 12 5201 e YES C HO
113. n 00000 8 wwMUMnry com 5 12 5201 0 0 80501000000 150 Menary com Mobi e 13922805190 1 0 EGM PV Tel 0755 82948411 Fax 0755 82944243 0 0 0 0 0 0 00000000 0 0 0 0 0 42H 8 PM 1 1 0 0 0 1 1 63 8 1 0 1 0 0 1 1 55H 8 1 1 1 0 0 1 1 73 8 x 1 0 0 0 0 x 21 160 x 0 1 0 0 0 11H 160 x 1 1 0 0 0 31H 160 1 0 0 1 0 0 x 49H 16000000 1 0 0 1 1 0 160000000 LED MIU START EQU PL 7 LED 5n FI ashi ng EQU P1 6 LED 1S FI ashi ng EQU P1 5 0 5
114. 0 000 0 0 0 010 1K00 0 020 2K000 030 3K00 0 040 4K00 0 050 5K0 0 0 060 6K00 0 RAM 2561 0 5 5V 3 3V LE 2 2V j 3 6V 5 12 5201 0 0 1T 8050000000 31 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 2 5 2 2 521 0 0000000 5 2 37 40 44 48 LQFP 100000 40 85 1000 70 0000 370 000000 37 1 520 00 D ADJID u POTE EEPRMDO 0 0 0 08 8 160 1 200 20K0 0 0 320 32K 00 400 40k0 00 480 48 521 5 60 1 6 620 62K 0 0 RAM 1280 qj 5 5V 3 3V LE 2 2V 3 6V 5 1 8051 Sog 8j Dj ww MI Menery com 5 12
115. 100 2000 0000 40 0000000 00 20 00 70000600 901 2 3 TMD 89 000 00000 00H 7 6 5 4 3 2 1 0 1 0 U 7 7
116. 2 8 ugoni 07 Poverdowr 3 poverdow 5 00 5 0000 1 00000000 1 000 b4 poverdow 03 11 2 CPUCSTCI2C2014DIT 0 46 5 12 6546052 b2 BRTAKO 11 2 Foc 2 256 BRT BRT 0001200000000 KONR Fosc 2 12 256 ERT 000 P1 000000 bl TAKO 10 00 71000 5 00000000000 02 1000 a Foc 2 26 TH Fosc 2 12 256 TH 3 5 0 TOKO 1 00 34 1 2 0 1 4 Fosc 2 256 TH 0 0 120 0000000 akaro 4 Fosc 2 12 256 4 0000 0000 2 1 12 6052 2 1 00000000 12 1 00000000000 100 11
117. voi d INT1 Routi ne voi d i nterrupt 2 i f l 0000 5 1115 0 0 15 Power Down 15 Down Led I NTL 0 fll 10 000000 00000 8050000000 5 2 5201 0 0 1T 80510000000 Menary com Mobi e 13922805190 1 0 Tel 0755 82948411 whi e Power Down V keup Pi n I NT1 9 t 0000 Is_Powr_Down Led INI 1 D00000 10000000 el se Nt_Power_Down Led INTL OD00000 1000000000 whi e Power Down V keup Pi n I NT1 9 t Nx Power Dwn led IN1 L O000000 1000000000 voi d del ay voi d unsi gned i nt j 0x00 unsi gned i nt k 000 for k29 k2 Hk 1 for j 20 j 30000 Hj _nop _nop _nop _nop _nop _nop _nop _nop voi d Nornal V rk Fl ashi ng voi d ww MU Menary com 5 2 5201 11 80511 Nornal V rk Fl ashi ng Led 0 Nornal V rk Fl ashi ng Led 1 0755 82944243 15 MOU Menary com Mbi le 13922805190 0 O0 0 0755 82948411 Fax 0755 82944243 93 0000000000000
118. 0000 12 525 0 1 PS2H ES2 EA 50000 20000 S2REN 1 1000 2 52 00000 1000000 52 0 000 0 5271 0 0000 01 00000 80510000000 ww MY Mmry com 5 2 5201 0 1T 80510 000000 75 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 2 ude r eg52 h gt ncl ude4 ntri ns h gt sfr SGN 9 1525 S2S5M S2SM S2REN S2TB8 SRB8 S2TI S2RI sfr IE2 X X X X X X ESPI E22 s r S2BF 0x9B sfr AUXR 0x8e sfr Ox9c sfr AP QONIR OxC7 sfr sfr CMD 0OxD9 sfr a sfr OxF9 sfr QOMPOL OxEA sfr APOH OFA sfr CAPM sfr APM_ 0xDB sbit CR sbit MI Start Led P177 sbit S2 Interrupt Recei ve Led P1 4 unsi gned char sel f conmand array 4 0x22 0x33 0x44 0x55 zdefine Self Defi ne SP Downl oad Conmand 0x22 defi ne RELOAD CANT Oxfb 18
119. 348438 m T g 8 g gi gi gi gi 6 00000 40 5 6 0001 00 5 s i BEXSEPPPEPREPIE 6 2 6052 1 805100000000 80510 80 120 e 1 115 5 3 3M 2 2 3 6M STCI2LE5A60S2 1 1 1 uad 1 4 6 L P480 00 000 440 1 00 40 35 2 00000 8051 or 420 en0U0UUDUDD CHO ODDO SPODODODDHDUU 5 361 1 00 8 16 20 32 40 48 52 56 60 620 0 0 0 000000000 200000 12C5 60S2 e000 ERM 0 0000 100000 imma Ass HON OST D 20 PE HO 2 o HE 0000000 200000 200000000000 000000 e 4D 16000000000 8510 0 00 TyTL20 POD D 200 D D 34 35 B e0000 00 von 851
120. 5 Fosc 0 000 Baudo 2 Baud Fosc 256 RELOAD 32 12 127 00 b Baud Fosc 256 RELOD 32 17065 3 error Baud BaudO0 BaudO 10096 4 3 1 4 Fosc 22 1184Mz Baud0 57600 12T RELOAD 256 INI 22118400 57600 32 12 0 5 256 IN 15 256 1 255 2 Baud 22118400 256 255 32 12 57600 3 ww MU Menery com 5 12 5201 0 1T 80510 000000 69 Menary com Mhi le 139228051900 0 0 Fosc 18 432 0 57600 l RELOND 256 INI 18432000 57600 32 12 0 5 256 INI 0 833 05 256 1333 256 1 255 2 Baud 18432000 256 255 32 12 49000 3 48000 57600 57600 100 16 66 Tel 0755 82948411 000 10000 30 18 432 9600 127 1 RELOAD 256 I NI 18432000 9600 32 12 0 5 256 5 5 256 5 251 OFBH 2 Baud 18432000 256 251 32 12 9600 3 0000 00000 2 0
121. 903 5 5 5 3 1 11 24 1 P1 6 Po 0o C 2 23 3 P1 5 A5 2 13 Q 22 1 P0 3 1 4 0 21 2 47 2 5 20 1 P1 3 Po 1 C 6 19 E3 Po 2 7 18 1 P1 2 ALC2 EX LV RST2 8 917 PL yaa E 88 9 5 12 5201 0 E A DE PM 1 1 D I EEPROM 32 Pi n STCI2LE52014D 0 0 A DE LH PRI 0O D 0O O0 EEPROM 32 Pi n 805 ww MI Menery com 5 12 5201 0 0 1 805000000 16 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 2 3 2 SICDC3 60S2 LI 1 STQ2CGA600 0000000 0 0 0 0 000 2 1 0 11 PO 0 ADD EG PL 2 PO 1 ADL QCPQ P1 3 PO 2 AP SS CPYPL 4 3 1 5 4 48 36 1 PO 4 35 1 5 34 6 33 PO 7 AD7 32 31 EX LV PA 6 RST2 3l 1 30 ALE P4 5 29 3 Ny P4 4 28 1 P2 7 A15 00 0U P3 3 10 27 C P2 6 A14 Q KOUTO TQ P3 4 11 26 1 2 5 13 Q KOUT TV P3 5 253 P1 T
122. 0755 82944243 0 0 0 0 0 0 0 aX 1 0 0 0 0 21 16 CeXn D d D Og gt 0 1 0 0 0 1 6 CEXn D D B D U 1 1 0 0 0 31 16 SC 0 0 1 0 0 49 1600000060 isl 0 0 1 1 0 40 1680000000 EE 0 0 0 0 1 0 42H8 PW U utut LED MIU START EQU P1 7 LED EQU P1 6 LED PCA I NT1 EQU P1 5 CRG 0000H interrupt 7 0 1 2 3 4 5 6 7 Interrupt 0050H MA N MY SP QR LED U MUJ START 1 LEDMUSTART LED LCALL Initiate VA T SM WT ww Mv Mmry com 5 1T 80510000000 147 0 Mobile 13922805190 0755 82948411 0755 82944243 I ni ti ate MV 7800000008 PCA LC HL LL D 0 PO D E UI D PCA 0 0 00O 12 FFFFH OO 01 R 0
123. www MOL Menory com Mbi 1392280519000 0 www MI 5 12 5201 0 0 1 8051 0755 82948411 0755 82944243 00 0 55 HB d npww MI Menary com Mobile 13922805190 0755 82948411 Fax 0755 82944243 2 17 2 5 60521 000000 12410 1 0 1280 0 000 RAMI 0 O 0O 009 7 0 0000000000 2 0 12800000 0 0 0 809 000000000 89510 0 LII i datar 3 0000000 SFRO 0 O0 D 80H FFHT 000 00 TH datan 1000000 5800 1280 0000 000000000000 00 80510 000000 128 2560 5 2 5 6052 00000000 10240 0 0 RAMI O 12801 PO P2 P3 6 P3 7 ALE 5 2 5 6052 8051 boe m nsrisy ise pan az veros em ssa s mn sspomom Synbol EXTRAM Functi on Internal Eternal
124. up EET 42 a w pa en oo tete 46 PAR LONEEBTDRERNT rm 46 22102 48 2 11 050 49 50 2 13 VTL DEDE RUDETE ETE 50 2 14 TUTRELPLEEELET CENCUHTO CLNCOTI CEKCUTZ eeeeet tete there meet ese 51 aiecxeecucs duke 53 2 16 III dica 54 2 17 5 56 2 18 63 2 49 ph eA DEED De et coa a ace qp e reta he cce etes 64 2 20 PAM 65 2 21 5 66 T s 2 s hb Ue uc d d nuspa 67 eint e RR RR TRU RR RR RU Re es 74 2 24 tkt ttem e 87 2 25 EE TP URL 87 88
125. ww MU Venary cont L DD O DD U 5 00 5 2 5201 0 0 1 805000000 190 HB B upww MI Menary com Mobi e 13922805190 1 I Tel 0755 82948411 11 1 2 5 2 5201 0 0000015230 0000600 T 232 232 5 232 5 3232 I Gna PC RxD COM Pin2 STC I SP l 1 RST 2 30 1751 3 TXD P3 1 Pl 6 50 4 2 P1 5 ME ADS lA EETS A 5 baa 1 4 55 pF in 6 2 P1 3 ADG3 _ 7 INT1 P3 3 P1 2 AXC2 8 3 4 Pl ADI 9 PW POXI T1 P3 5 P1 0 ADCO DD 5vi B D 31Mz 15 5Me 3v 10 Gd P3 7 8 12 10 2 0755 82944243 5 12 5205 5206 STCI2LE5205 52061 Uu PL O PL 1 dl 33
126. wwMUMnry com 5 12 5201 0 0 80501000000 165 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 PCA 00 10 00000000 OLXH 00 20 00000000 PCA 1 D 3000000000 PCA 1 D 4D ELO U CE UI UI UI U QCAPMb EQU PCA EH 5D ELE U CE 7I UI UI U CAPM 7 6 5 4 3 2 1 0 I EGM CPPn CAPNh MNIn TO EOM 1 CAPPn 1 0 00000000000 100000000 00 00000000 x 0000 r r jg exNpgu ernuuuul Min PW 0 0 0 0 0 0 x 1 0 0
127. 050 000 00 80510 000000 5 12 5201 0 0 1T 80510000000 34 HB UBupww MI Menary com Mobi e 13922805190 0 0 Tel 0755 82948411 Fax 0755 82944243 263 STA2CA60S2 0 0 0 0 4000000000 STC12C5205 5206 STCI2LE5205 5206 T MAX3232 MX232 SP3232 SP232 1 0 1 10000 5 35 lt 0000 gt 9n 5 Power o USB45V T1OUT Gd Oo OOO Ores s O ur P1 0 0000000 olupi 000000 O 1 MJ WC 00000000000 6 12 5201 0 O RST2 P1 20 otaa A wc K J 52 11 1 P22 uem 9 AAA 2 P2 3 P2 1 10u F PRST P2 0 pm 1K SII e E AN 4 1 7 ADC7 229 5 TXDP3 1 6 P1 5 ADG AAA EN 7 NA2 PO 3 4 iH E XAL P1 4 ADCA 9 INO P3 2 PL 3 AX2 10K 10 PO1 PO 2 10K 10K 10K 10K
128. 205 37 10 1 805111 ww MUMenery com 5 12 5201 1T 80510000000 91 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 38 2 1 0 PL1 1 2 PL3 PL 4 PL5 RxD I NT P1 6 TxD P1 7 RST PA 7 RxD 3 0 1 I NI0 P3 2 INT1 P3 3 AKONO TO P3 4 Q KOUTY TY P3 5 W P3 6 RO P3 7 2 1 Gd R1 R80 0 47000 40 22 11 2 P2 3 2 31 P21 0 2 0 8 RxD P3 0 4 29 11 7 7 sup rs P0 0 6 2 5 5 XTAL2 7 26 Po3 40 2 XTAL1 8 8 25 PL4 A4 INTO P3 2 9 bi 24 MC PO 1 10 N 23 I NTI P3 3 11 22 PL2 AD EX LND QLKOJTQ EQ T P3 4 12 2 Q KOUT1 GCP TU P3 5 13 20 PL0 ADD P2 4 14 19 P3 7 GPO 2 5 15 1 27 Gd 16 y P6 I O 1 0 1 0 1 0 0 0 8 170 9 70 50 170 5 I O R5 R
129. EQU OC4h AP QD DATA 05 1 OCbh DATA Och 4AP TRG OC6h AP GCNIR DATA OC OC h gg se IAPr HE HEB UE SP AP BYTE READ EU 1 ISP_IAP_ BYTE PRORAM EQ 2 ISPIAPSECICRERSE 0000 000000000000 0 2 1 1 20 2 12 11 3 6 1 4 3 1 5 2 1 6 1 7 u gu MV AWH BYTE ACER H GH 000000 8 ATR LON 000000 MV IAP ONR 000000 1AP ONR 100000008 0 0 15 1 0 MY AP GD 5 1 000000 0000000 0000000 MY I TRG 5 h 1 5 0 0 5 MY 0A5h SP DATA gHHHBBHHT HHHBEBHHHHHBHH M IAP ONR 00000000B MY 1 400000000 MY 1 4000000008 5 MY IAP AOH 0FFh 0 MY FFh 0000 00000 8050000000 5 12 5201 0 0 17 8051 000000 106
130. di spl ay MJ Start Led send U RT 0x34 send U RT Oxa7 send PW 6kHz PW 50 duty 1 8 ww MI Menery com 5 2 5201 0 0 1 8051 000000 1 M Menary com Mbi e 13922805190 0755 82948411 Fax 0755 82944243 voi d serial port initial SON 0500 0101 0000 8 TMD 0x21 0011 0001 p 0000 10 800000000 THL O00000 100000 1 RELOD OANT 1 TIT DE ELE 1 L D00 EA 41 0 000 E m I voi d send UARI unsi gned char i 000 Oo o 0 0 i while Tl 0 0 1 onan 0 onan 0 voi d UART I nterrupt Recei ve voi d interrupt 4 unsi gned char 0 if R I t R O k SBU if k Self Define I SP Downl oad Conmand t delay 00 100000 delay 00 100000 soft_reset_to SP_Mbni tor 15 000 else voi d soft reset to I SP Mnitor vo
131. ww MU Mnery com 5 12 5201 0 0 1 8051 000000 25 Mobile 13922805190 0755 82948411 0755 82944243 5 32 32 PI N SMAL CGUILI Nz P XKAXE SCP 32 0 020 0 508 0 014 0 350 10 29907 60 0 42010 7 0 2917 39 0 393 9 98 0 112 2 844 0 100 2 540 Y 06140350 0 0040 102 0 013 0 330 S LT 0 0484 1 228 0 0276 0 700 ww MU Mery com SIC12C52201AD 1T 80510000000 26 0 00 00ww MU Mnory com Mobile 13922805190 0 O0 Tel 0755 82948411 Fax 0755 82944243 LCFP 32r D D D LLI LLI e 4 b A COMMON DI MENSI ONS UNI TS OF MEASURE MI LLI METER SYMBOL r A RI 995 9 15 ES LA 9 59 9 64 0 69 j 70848 FIT e 9 9 127 0 134 C o see 0o 20 j soc 7 09 710 50 900 9 20 Er 6 90 7 00 7 10 e 0 80BSC t 4s 0 60 0 75 oce 1 OOREF 0 25BSC 90511 ww Mv Mmry com 5 2 5201 0 0 1 805000000
132. 4 2 10000 4 100 00 20 10 0 00000000000 000600 80510000000 ww Mv Mmry com 5 2 5201 0 1T 80510 000000 18 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 STCI2C5A6022 1 D D D DL D Capture Gonpare QLKOUT2 ADQ J P1 0 1 ADCV PL 1 2 PO 0 ADD RxE2 EG ADC2 P1 2 3 TxL2 GCPO ADC3 P1 3 4 PO 2 AP SS GCPY ADOA P1 4 5 3 MCBI ADCS P1 5 6 4 M SQ ADCS P1 6 7 maL 7 SQLK ADC P1 7 8 PO 6 AD6 7 9 PO 7 AD R D P3 0 EX LV P4 6 RST2 TXD P3 1 ALE P4 5 INTO P3 2 NY P4 4 3 3 P2 7 A15 QLKOUTO TU P3 4 P2 6 A14 AKONI TY P3 5 P2 5 A13 VW P3 6 P2 4 A12 ROP3 7 P2 3 A11 P2 2 A10 P2 1 9 P2 0 A8 P5 3 PO 4 AD4 5 5 5 M SQ ADOS P1 6 6 06 M SD AR P SQ K ADC7 P1 7 PO 7 AD7 7 1 7 P4 7 PST EX LVO P4 6 RST2 RxD P3 0 5 1 4 3 ALE P4 5 TxD P3 1 Ny P4 4 TNTU P3 2 INIO P3 2 P2 7 A15 3 P2 6 A14 4 P2 5 A03 CUKEUTEETI P3 5 Q KOUTV TV P3 5 P
133. 44 L P E 5 PD P40 LCFP44 L PD P40 LCFP44 LQFP48 DI P40 LCFP44 LGFPA8 DI P40 LGFP44 L P PDI P40 LCFP44 LCFPA8 PDI P40 LCFP44 LCFPA8 PDI P40 LCFP44 PDI P40 LCFP44 LCFPA8 PDI P40 LCFP44 LCFPA8 40 44 40 44 4 PDI P40 LCFP44 LCFPA8 q q z o Lc 79 1 1 Fl ash 5 E D DD 35 22 9 wu 2 3 o 2 u 2 222 vm o sp o o 3 6 2 2 STCI2LE5A08S2 5 12 STCI2LESA16AD 5 2 1652 5 2 2 5 2 2 STCI2LE5A20S2 5 2 2 5 2 2 5 121 5 3252 5 2 STCI2LE5MOAD STCI2LE5A40S2 5 2 STC12LE5A48AD STCI2LE5A48S2 STCI2LE5A52PWM STCI2LE5A52AD 5 121 5 5252 5 2 56 STCI2LE5A56AD STCI2LE5A62PWM STCI2LE5A62AD STCI2LE5A62S2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 3 6 2 2 5 121 5 5652 3 6 2 2 STCI2LESA60PW 3 6 2 2 1280 STCIZ2LESA60AD 3 6 2 2 1280 121 5
134. VIDI GONTR EW OC1H 1 LJ L 1 1 WI TIM LED 5 WX FLAGLED EQ P1 7 0 PL70000000000 Last_WDI_Ti ne LED tatus VDL J U J L cillator frequency 2 18 432Mz Pre scal e VW rd EQU 001111008 52 0 68S Pre scale V rd EQU 00111101B uougmuuluumuu 4 1 36S Pre scale 00111108 28 275 Pre scale Wrd EQU 00111111B 556 5 44S CG 0000H AM CRG 0100H MA N MV A VD_CNIR 440000000 Reset 7 1 D0000 O000000000 SETB Last VII Ti ne LED Status 1 QR WX TI M LED W W ONR Pre scale VW TI VATI 7 100000 000 000000 WI Reset 00000
135. 40 Li L L 40 44 4 40 44 4 44 40 44 4 40 44 4 36 40 40 44 4 CFP48 40 44 4 44 44 4 40 44 4 40 44 4 40 44 4 40 44 4 36 40 40 44 4 P P P LQFP48 40 44 4 40 44 4 44 4 40 44 4 44 4 10 ww MuU Mmry com 5 12 5201 0 8051 00 12 Mobi e 13922805190 1 0 2 3 5 12 5201 0 O 0000000000 L Tel 0755 82948411 Fax 0755 82944243 23 10 00 00000000000 R0 0 0 L P 320 0 000 S 10 20924320000 00000 0P000OC0NOD STC2C 2010 0000 RxD P3 0 TxD P3 1 XTAL2 1 I NIQ P3 2 3 3 P3 4 G KOJn1 T1 P3 5 P2 2 P2 3 RST RxD P3 O TxD P3 1 PO 0 XTAL2 1 NIO P3 2 1 INT1 P3 3 QLKOUTO TQ P3 4 5 2 4 2 5 Gd RR QQ N P o
136. D SK ns 2 45V 5 v TIIN s s miN OH Reset O O U PI 0 1 1 HBTEBB BB 6 elu STCI2C5A60S2 0 RST2 EX LV 4 6 12 5201 0 0 0 5 2 1 9 1 20 C 1K UJ EN 1 P2 2 28 gt s Z A a d p P2 0 26 xxL Ew 4 3 0 PL 7 AD 25 Z 5 1 PLG AXb 24 2 aA PEEL xa PL5 axs 23 sd ama il U 1 22 Z lt 8 INTO P3 2 PL3ADX3 21 Z Z pt 9 3 Pl 2 AD2 EX LVD 20 L 10 EQ TJQKOJIJP34 1 19 L 11 PWA POMJ TMP35 Pl O ADD 18 Z 121 P2 4 P3 7 POMyPWO 17 211 B P2 5 P27 16 14 Gd Pel Horse 5V0 0 0 11M 15 5M SB D LO 5 6 10 15 0
137. ww 2 5 5 0 0000000 2 5 5 31 10 1 16 000 0 0000 00000000000 0 5 15 0 3 2 15 3 3 0 1 4 RS 485 0 1 0 7 000 805010 00000 ww MU Memry com 5 12 5201 0 0 1T 80510000000 181 Menary com Mobi e 13922805190 1 0 Tel 0755 82948411 11 1 3 5 12 5 6052 1 5 sc 0000000000 STC RS 232 000 STC ISP 2 STC3232 STC232 232 5 232 I gt 2 0 luF E PC_RxD COM Pin2 TIOUT o PC TxD COM Pin3 02 RIIN C2 RIOUT v 200 s RIN 100 500
138. 0 overfl ow PCA I nterrupt External input 53 4 PCA Ti ner Counter 8 5 12 5201 01 O 1T 80510000000 140 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 CMD SFR 2 SPRO OOD 5 6
139. 22 1184 IT j fj 1842 1 SMPa LLL LO LU U U U U CE C CIO 7 U RELOND CANT EQU OFFH Baud 115 200 bps RELOAD CANT EQU 57 600 bps RELOND CANT EQU OFDH Baud 38 400 bps RELOAD CANT EQU OFCH Baud 28 800 bps RELOAD CANT Baud 19 200 bps RELOAD CANT EQU 0F4H Baud 9 600 bps RELOAD CANT EQU Baud 4 800 bps RELOAD CANT EQU ODOH Baud 2 400 bps RELOND CANT EQU 0A0H Baud l 200 bps 000 Fec 2184 Me oletelereteetoebeee lebe eee ek Li oleteleeleeteeeee loe pb eoo ok 000 18 432
140. 5 5 RAMI O O FH FOH ww MUMenery com 5 12 5201 0 1T 80510 000000 87 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 sma20 00000 10000 31 Q00000000000000
141. 000000000 1 00 957 00000 0000 00000 8050000000 5 12 5201 0 O0 1T 80510000000 149 MI Menary com Mobile 13922805190 0755 82948411 Fax 0755 82944243 8 1 EQU 8 PCA 0O OC00 000000 800 CAPIL EQU OEBH 1000 000000 800 PCA PW EQJ OF2H PCA 0o 0O PM I L LI L PCA PWL EQU OF3H 7 6 5 4 3 2 1 0 B7 EZ 9 BXEPQL 9 000 GAPM EQJ OLEH CAPM 7 6 5 4 3 2 1 0 Min EGCn CAPPn 1 0Q 00000000000 CAPM 1 0 00000000000 1 a II uu 1 cxnnuu
142. LCAL Delay Di MO 3DATA FLASH START ALEFESS EEPROM I E D D D EPTRE I L ACAL 0 080000 MY LPTR DATA FLASH START ALERESS EEPROM LH HH HH HH E D EPTRT D D MV ACAL Byte Program MY P1 4310111118 3 5 VW T2 SM 2 wwMUMnry com STO2C5201AD O 1T 80510000000 110 Mobile 13922805190 0 O0 0755 82948411 0755 82944243
143. sraxsewo ss as e ze njz n zr mumzz n n n soe ne 121 5201 0 PV 1 LL D D ED D Saem paez x ap p wes o rr 2 mm T Seas 16 22 x loeo alo a wes fo or s mago 3e 22 x aslo foala 022 o frr ar ssor 36 22 x ze n zo w u x umso o o smoe oe umsroe awsor sonar smaempo 3e 22 x se n zo 1 o m s wes o n u smae ae smssroe sysor sonar mamme sez2p se n xp pwewaz u n o smur o smssrov swsor mar Excamem 3e 22 ze n zo 1 u x umso o o smoe oe smsoroe awsor sonam Scao 3e 22 ze n zo 1 o x a aasa o forr ar ssr sarl sam 3622 x fa o mmsz n n o smssroe swsor saam 26 22 or smssrov swsor mar 22 2 1 a a aasa o o foror or ssor ssar seas sezip pwewez o s o wmer e uuoouncauscuo Seam 36 22 ze n zo 1 m wmowaz u n o foe ae 0000000000000 16 22 ze n zo 1 a aleasa o o for o ononon ww Mu Mmry com STCO2C5201AD O 1T 80510 000000 Fl ash 5 L www MCU Menar y com Mbbi 1392280519000 0 Tel 0755 82
144. 22 184 1112 0 sac acta den bete tidie san 185 115 cioe cust ica FRU Rc Fox a Rb RC RD bes 186 2561 190 MH B 88 8m RR 191 H C TH Smp mpg p 9 YXDXT T cuc aon nc 193 inD nmn Voalnmnmmmmmmnmrfissessseseeseoseneeoecooeosoooooesessseci 199 a E O 200 CR Eae b 201 MU Mobil e 13922805190 0755 82948411 Fax 0755 82944243 5 2 00000000 211 51 12 5201 0 1700000 2 5201 40 000000000000 0000 1900000000 7000 0600 000000 8051000 0000000000 0 8054 0 000 812000000 M8100 0 000 0 20 PW 8000 80 4 D000 300Ks 0000000000000 1 8051 8051 2 00000 2 5201 00 00000 5 5 3 5 121 5201 00 00 00003 67 2 21 3VU DT D 3 O0O0000000 35M0 00000 80510 0 420 4 4 1K 2K 4K 5 5 6
145. 5 2 5201 00 000000 000000 000000 5232 SICISPI J ww 1 Menar y coni 6 13922805190 Tel 0755 82948411 2 6 2 2 520 0 0 200000000 Vcc T 2321 232 5 32321 5 232 10u F I Gna PC RxD COM Pin2 0 C2 ilH His v 0 luF 8 R2iN 12 1 NVCC 10u F T20UT PC TxD COM Pin3 ooooooo 2 22 FER 5 1 5 1 50 5 0 5 1 0 5 Lar Lar Lar 33 N 9 gt RST RxD P3 O TxD P3 1 XTAL2 l xa C JOOD STC I SP 0755 82944243 5 12 5205 5206 STCI2LE5205 52061 HA D Hg PI Q PT 1f E EE E USB 45V lt Su Pover Q lt B ut STCI2C5201AH RST2 EX LV P1 20 1K
146. 0 00 00ww MU Mmry com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 do 52680 tenp tenp amp 0x02 wi e tenp 9 T 00000000000000 2 S2Q amp 0xFD B 11111101 0 000 20000000000 5 L 2 1 I2 OxOL 2 24 voi d UART one I nterrupt Recei ve voi d i nterrupt 4 unsigned char k 0 i f R 0 SBU if k Self _Defi ne SP Dpunl oad ormand delay 00 100000 delay 00 100000 soft reset to I SP Mni tor send UART one k41 el se 0 voi d UART tvo I nterrupt Recei ve voi d i nterrupt 8 1 sfr 504 098 11 5 M 5 8 8 115 5204 0 94 11 525 525 S2SM S2REN 52788 2988 521 52 0000 00000 80500 00000 5 7 12 5201 0 1 8050 0000060 81 sfr 9528 0x9B 51 2 X X X X X X ESPI ES2 unsigned char k 5200 k k amp 001 Li f S2R i f k O 52003 5200 amp 1111 1110 S2 I nterrupt Recei ve Led 0 k 52 if k Sel f Define I SP Dowil oad Comand 00 100000 soft reset to I SP Mni tor 5 send UART tvo
147. 0x80 000000000000 000 1 5 L EA l voi d send UART unsi gned char i X ES 0 SBUF id wilen 0 0 ES 1 ww Mv Mmry com 5 2 5201401 1T 80510 000000 72 Mobile 13922805190 0 O0 0755 82948411 voi d UART I nterrupt Recei ve voi d i nterrupt 4 unsigned char 0 i f R R O k SBF send UART k41 voi d del ay voi d unsi gned int j unsi gned int g for j j lt j e e 9 0 9 lt 50000 9 59 _ _ _ voi d di spl ay MU Start Led voi d unsigned char 0 0 1 lt i 11 0 led 12 MJ Sart_Led 0 0 000 00 805000 0755 82944243 100 www MI 5 12 5201 0 0 1 8051 73 0 00 00ww MU Mnory com Mbi e 13922805190 0755 82948411 Fax 0755 82944243 2 23 000 2000 ms emnes jeje ux enm enr
148. gm xxx xxO IE IE 2 lt TEST VII Nh 1111 1111 10 011 0000 0000 don t use 1 6 000 00 0000 ns diu 0000 0000 0000 Pl 1111 nt 000 9 TLO Ti To ES G 0000 0000 0000 0x00 P aera EC 8 800000000000 B EE ND Id SD ELIO REC b EQ OCH coo 00 PHI IU I sfr P4 oxo shit P40 0x 0 shit P41 OxCL shit P42 0 2 80510000000 ww MU Menary com 5 2 5201 O 1T 80510 4 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 8051 C41 Gre SFRs emscperpem 1 acc Eo accumulator f T f B BRegister I f PSW DOh Programstatus V rd CY AC FO RS1 RS0 a 0 Reset value 0000 0000 0000 0000 0000 0000 0000 0111 0000 0000
149. 0000 0000 P 81h Stack Pointer DPL 82h DataPointer LowByte en pap ne nae STC12C5201AD pg ik 5 HM Managenent SFRs mor mme Gui sese we s Gi En en susu ma STCI2C52014D L Port SFRs HM 3 T9 sese vare mw px 1 me e 900 0000 LL LL LE LL oo 2 95 0000 0000 es feon eeit Port 3 P 7 P P5 42 P3 3 p em 7 9000 0000 P n T T T T L T L oooo STC12C5201AD 8051000 000 0000000 Ti ner SFRs we GTH E EE mo fen merane oe ee a s m fe 1 5 12 5201 8051 Serial 1 O Port SFRs mr jm mawesne e 7 C 3 1 um aae wess Jo 1 1 E 8051000 00 E V t ch E Ti ner SFRs E V t ch Dog Ti ner WI FLAG EN WT GR VEI DLE VT PSI xx00 0000 Control regi ster
150. O Q N 91 41 9 06 02 4 02 06 P2 1 P2 0 PL7 PL6 PL5 PO 3 PL4 PL3 PO 2 P1 2 EX_LVO RST2 PL1 PLO P3 7 P2 7 P2 6 RST 1 0 2 1 7 3 1 13 P1 6 2 14 HM 1 5 XA1 5 P1 4 3 3 16 5 47 7 P1 1 3 5 8 1 0 Gd 19 7 Z7 2 2 1 2 PA3 2 8 21 2 1 RST 3 1 26 P2 0 3 4 N 25 7 31 5 24 PL6 XTAL2 6 23 1 5 XTAL1 7 2 PL4 INUP32 8 21 3 9 79 20 10 gt PL1 5 11 ig 10 P2 4 12 17 P3 7 PA25 13 1 P27 15 2 6 2 MAN 8 8 8 8 STC1205202 0 0 0 STCI2LES202 1 4 D00 0 PWO 00000 EEPROM P2 25 Gd P2 6 2 7 P3 7 PLO P1 2 EX LM RST2 P1 2 EX LM RST2 PL1 ww MU Menery com 5 2 5201 0 1T 80510 000000 13 Menary com Mobi e 13922805190 1 0 STCI2C5201PW 1 1 LI LU C RST 1 RxD P3 OL 2 8 PL7 TO P3 10 3 1 6 2 14 PL5 1 15 m INTY P3
151. Oxda Oxd9 0xd8 Oxd7 0xd4 0xd3 Oxd2 1 Oxcf Oxce Oxcd Oxcc Oxcb Oxca Oxc9 Oxc8 Oxc7 Oxc6 Oxc5 Oxc4 Oxc3 Oxc2 Oxc1 OxcO Oxbf Oxbe Oxbd Oxbc Oxbb Oxba Oxb9 Oxb8 Oxb7 Oxb6 Oxb5 Oxb4 Oxb3 Oxb2 Oxb1 OxbO Oxa9 Oxa5 Oxa4 2 1 0 Ox9f 9 Ox9d Ox9c Ox9b 0x9a 0x99 0x98 0x97 0x96 0x95 0x94 0x93 0x92 0x91 0x90 Oxef 8 Ox8d Ox8b 0x8a 0x89 0x88 0x87 0x96 0x85 0x84 0x83 0x82 0x81 0x80 0x7f Ox7e 7 0x7c Ox7b 7 0x79 0x78 0x77 0x76 0x75 0x74 0x73 0x72 0x71 0x70 Ox6f Ox6c Ox6b 0x69 0x68 0x67 0x66 0x65 0x64 0x63 0x62 0x61 0x60 0x5f 0x5e 0x5d 0x5c 0x5b 0x5a 0x59 0x58 0x57 0x56 0x55 0x54 0x53 0x52 0x51 0x50 Ox4f Ox4e Ox4d Ox4c Ox4b 4 0 49 0x48 0x47 0x46 0x45 0x44 0x43 0x42 0x41 0x40 0x3f 0x3e 3 Ox3b 0 39 0x38 0x37 0x36 0x35 0x34 0x33 0x32 0x31 0x30 Of 2 2 0x2c 0x2b 0x2a 0x29 0x28 0x27 0x26 0x25 0x24 0x23 0x22 0x21 0x20 1 0x1d 0x1c 0x1b 0x1a 0x19 0x18 0x17 0x16 0x15 0x14 0x13 0x12 0x11 0x10 OxOe OxOd OxOc OxOb OxOa 0x09 0x08 0x07 0x06 0x05 0x04 0x03 0x02 0x01 0x00 unsi gned char i 0
152. 5 00000 ChanneO 5n H ChanneO 5n L 10 0 50 01000060 0000 Count er EQU 30H CRG 0000H CG interrupt 7 1 2 3 4 5 6 7 LJ MP PCA interrupt CRG 0050H MN N QR LED MJ START 10 MY Counter 40 GCourter ACALL PCA I niti ate SM I ni ti ate MY 0000000 PCA f osc 12 00008 00 14 01 1 0 CGT1 KF0 MY H 0000 0000 0 80510 0 00 5 1T 80510000000 151 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 0 51 5761 MO CCAPOL 5 5 0 515 GOwOHD DD MY 9 0 16 lt 1
153. 0755 82948411 0755 82944243 211 jii onu Xj UTD T T C U STC12C5201 12C5201PMWM 12C52014DI D D C D AUXRT T D Mesic ae 7 6 5 4 3 21 1 0 vez mez verno coms am amm 1 5 12 5201 00 0 0 17 805108 000000000 8051000 00000 1000000 8051 1000 1200000000000 80510 000000 1200000000 17 2 000 9000 8051000 120001 000 00000 80510 1200000 11 12 0 000 1000 8051000 120001 000 1000000 80510 120 0000 O 0 10 0000000 1 120 00000 12 1 9 5 2 220 17 0 8051000000000 0 8051 UNT Mxc 12 805 1 1 2 1 170 80510 600200 1 100000 805100 lt 2 12 5 60 0 12
154. 1 gt ID 6 I NTO P3 2 15 7 NT P3 3 14 8 EA TO P3 4 B EL 9 PUWM PCA TI P3 5 D AAA E Heres T 8 12 8 000 000000000 27 000 00000000000000 000000000 000000000 000000000 013000000 0105 5 2 52 5 3 0 3 1 2322 5 232 B gr 10 0 0 5 232 Gd P3 1 P3 0 3 1 3 0 1 P1 O P1 1 1 Vcc P1 1 P1 0 Reset DL D Bg I SP 5 5232 0000 00000 5 0000
155. C 6 C YES G ND STC12C5A60S2 6 PL 2 STCI2C5201ADI Panimon TERHES C s 12 00000000000 57 12 5460520 0 RST2 EX LVO P4 6 STC12C5201AD0 O O RST2 EX LVO PL 2 1 ADO P120 2 5 60521 6000000 0 60 5 7805000000000 40 000000000 0 4 08 0800000000000 00000 1 330 0 0000000000 60200 00 780508 00000000 0100 000000 010 000000000 00000 1 33 0 0 0000000000 000000000 470uF 104 P4 6 RST2 DDD MU 2 gt 160v0 0000 7805000000 8 5 2 85 3 6720 0 0000 78050 0000000 8 5 000 000000 8 5 08 000000000000 000 1 3300 0000000000 0000006000 L3 Lr 805 ww MU Menery com 5 12 5201 0 0 1 805000000 100 0
156. mic pae 5279 o 000000000000 1 525 0 0 1 00 2 20000 2 12 527 12 1 00000000 10000000 o 000000000 10240 0 00 RAM 1 000000000 10240 0 00 RAM S1BRS 0 00000 10 0000000000 10 51886000 10 00000000 1 0 0 10 000000000000 100000 00 100 209000000 209 000000000000 200000000 00 20000060 100000000 10000000 10 00000000000000000000 200000000 0000 000 00 8050000000 5 12 5201 0 0 1T 80510000000 49 Mobile 13922805190 O0 0755 82948411 0755 82944243 212 srazi 0 00000 000000 5 12 5201 1T 80510 000000000060 8051 5 15 5 3 ugmgamgsve 12
157. w ath MY DERE pu 100 EE 3 EE C3 C3 n A MY PLA 000 pul se w dth 256 100 MY A pusewdth QR C SUBB MY pulse wdth A ACALL del ay SM PWMI oop2 b 000 1000 1 del ay del ay del ay 80510000000 ww M STIC12C52201An 159 0 Mobile 13922805190 0755 82948411 0755 82944243 88 STC Internati onal 000 2006 1 6 10 O00 Mobile 13922805190
158. 0755 829442 43 0755 829048409 2 5 15 7 125 06 00 0000 33 000ME 0000 00 00 5 0 90 00 125 0K JI UD D 0 f Fosc 4 Val ue CCAPnL Value Fosc 4 f INI Fosc 4 0 5 IN 000000 00000600 5 2 2011
159. 103 5 3 lt 2 104 5 4 a e ect e 106 59 paru 109 113 di oit cn e t 113 6 2 ETE BIG GEEEBDEEE BUT sedit uro re tome c ere een metere cen tere tes 117 63 122 7 129 Zl SICLXS202ADI 129 7 2 SICI2CAGOADY S2 I II II III ADI III na c P c 131 1 35 ITL ADITI I 133 tae nde icta estate metes 134 7 5 134 I SI STO THTTILELET POMPMMU cus drin inci Ris OR 138 9 1 POVPMITTITEI IL iuh scare nacio mt nra dr aal diac aate 138 140 8 2 145 8 4
160. 5 0 00000 RAM 000 5 2 5 6052 O OOHO 10241 000000000000 400900 amp 0000 00 1 External data nenory access DO00000000 00000000 RM O0 OX amp PTR MXX 8052000 ww MU Menery com 5 12 5201 0 0 1 8050 0800000 5 AUXRDATASEH MY AUXR 400000000 0 00000000000 0 MX RDHd D D 00H 3FFH O 10240 RCO O O 00H 2560 0 MOX 00000 ROO 000000000 EXTRAMOOH FFHO 25600 00000000 EXIRAM MY DPTR addr ess MV T alue MO XGPIR 1 MV DPTR addr ess PIR RDH O 4address 400H EXTRAM 0 EXTRAM gt 1 00 0 O 400H FFFFH
161. 520030 s2TB80 0 0000 900 1000000 520030 528880 000000000 0 S2SsM4D 00 000 200 0 S2SMD 10 000 200 Fosc 64000 200000 2000 100000 200000 64 5 64 5 32 525 0 0 S25MD 2 200 20 2 11 3 4 3 2 4 2 8 00 0 526030 s2Te80 0 0000 90000000000 520030 S2RB80 0 20000003 25250 32 x BTO00000000000 34 10 000 200 16 2 00 0 520039000000 525 0 525 0 000000 20 40 Fosc 12 256 BRT BRX12 00 0 Fosc 256 BRT BRTIX12 1
162. 52788 52888 521 529 sfr S2BF 0x9B sfr E2 X X X X X X ESPI E22 8 ww Mu Mmry com STC2C5201AD O 8 79 1 1392280519008 08 50 0755 82948411 0755 82944243 gt 20 050 7 0101 0000 88 000000000000 0000 BRT RELOD CANT 21 SIBRS 1 EXIRAM 0 ENABLE EXTRAM QxlL TOx12 Tlx12 UART Mx6 BRTR S2SMID 12 51 85 l ES 1 0000 100 E amp 2 1 I2 0xOL 0000 2 ES2 EA 1 0 000 voi d send UART one unsi gned char i 1 ES 00000 TI H0000000000000 SBF i wile Tl 9 000000 TI 0 ES i 000000 voi d send UART tvo unsi gned char i 1 115 5094 0 98 11 5 5 SM 8 8 5 52094 0 94 11 525 525 525 2 52788 52888 521 529 5 S2BF 0x9B sfr E2 X X X X X X ESPI ES2 unsi gned char tenp O 0 000 100 2 000 2 52 0 m 0000 10000000000 2 S2 N amp 0 FD B 111111010 000 20000000000 SMF i S2BF i wilen 0 5 2 5201 0 1T 80510000000 80
163. 0x99 0x97 0x96 0x95 0x94 0x93 0x92 0x91 Oxef 0x8e 0x8d 0x8c 0x8b 0x8a 0x89 0x87 0x86 0x85 0x84 0x83 0x82 0x81 0x7f 0x7e 0x7d 0x7c Ox7b 7 0 79 0 77 0 76 0 75 0x74 0x73 0x72 0x71 Ox6f Ox6c Ox6b 0x69 0x67 0x66 0x65 0x64 0x63 0x62 0x61 5 0x5e Ox5d Ox5c 5 5 0x59 0x57 0x56 0x55 0x54 0x53 0x52 0x51 Ox4f Ox4e Ox4d Ox4b 0x4a 0x49 0x47 0x46 0x45 0x44 0x43 0x42 0x41 3 Ox3c Ox3b 0x39 0x37 0x36 0x35 0x34 0x33 0x32 0x31 Ox2f 2 2 0 2 Ox2b 2 0x29 0x27 0x26 0x25 0x24 0x23 0x22 0x21 Oxf 1 1 1 Ox1b 1 0x19 0x17 0x16 0x15 0x14 0x13 0x12 0x11 OxOf OxOe OxOd OxOc OxOb OxOa 0x09 0 07 0x06 0x05 0x04 0x03 0x02 0x01 h ERRCR LED 1 CK LED 1 for array_poi nt 0 array poi nt 512 array_poi nt if Test array one array poi nt Test array tvo array poi nt ERRCR LED 0 CK LED 1 break el se CK LED 0 ERRCR LED 1 1 ww MU Menary com 5 2 5201 11 80511 Oxf 0 0xd8 Oxc8 OxcO Oxb8 OxbO 0 0 98 0 90 0x88 0x80 0x78 0x70 0x68 0x60 0x58 0x50 0x48 0x40 0x38 0x30 0x28 0x20 0x18 0x10 0x08 0x
164. 1 1 100 1 TMD 3 CATE TMD 6 qT 600000 10 00000000000000000000 3 5 2 5 404 0 0 o 1 1 6 1 Li 1 1000 7000 10000000000 000 0000 0 0 13 0 THO 80000 0 1 1 8 8 000010000000 11010 130000000 5 800000 500 10 0 10 00 0 0 101000 0 000000000 1 100000 01 000000000
165. 6 25 step EQU 38H PW DEDE UU ACALL PCA init nai n oop ACALL PVM S MP 1 ww MU Menery com 5 12 5201 0 0 1T 80510 000000 157 Mhi le 139228051900 0 0 Tel 0755 82948411 MV 80 iD op 8 2 MO PCA PWO OOH MO 303 MV 303 SETB LVD SEIB EA 0000 MY MV pulse w dth A 1 MV A pulse wcadth 2822 JNC MV My A pulse w dth CL A MY PLA MV A pulse Wadth ADD A tep MY pulse wadth A ACALL del ay 5 1 0000 0 UD A dth M N A pbulse dth MX 0755 82944243
166. HM 000 1 m o ja El E 70 79 Ll ajoja 70 z 2 0000 U U U 7 1 U 0 O0 CEXn D CCON I D 1 O oa O 1 8 00000000000 1 000 1 180 n 0000 x 160000000 0000 0 80510000000 5 12 5201 0 0 80501000000 139 0 1 1392280519008 08 50 0755 82948411 0755 82944243 8 2 PONPVWW 2 0 srccsasos2 0 0000000 R C
167. Mobile 13922805190 0 O0 0755 82948411 0755 82944243 000 2 000 pta Fash EPRMIDI D UU 100 U LU D 51 50000 37000 ERM 000000 37000 ERM 000 Mu000000 000 0000000 33V0000 24000 ERM 0 0 000 0 24000 EPROM L D D MUT 20 2 1 8 5 I SP I AP SFRs Mewcpa we 7 e s DI ese ess cn ime nsn ares ue res um eae c smue nan amas Rss uem on sue nan ommi rio Ie omj ene ora egsa uem ses ner aera I AP DATA 5 5 1 5 I AP I SP IAP TUO EL U U HE U D UI U 0000000000000 ul 00 0000 o Standoy 000000 1s
168. RELOAD CANT EQU OFFH 1 152 000 bps RELOAD CONT EQU Baud 576 000 bps RELOAD CANT EQU OFOH Baud 288 000 bps RELOAD CANT EQU OFCH Baud 144 000 bps RELOAD CANT EQU OF6H Baud 115 200 bps RELOAD CANT EQU OECH 57 600 bps RELOAD CANT EQU 0E2H Baud 38 400 bps RELOAD CANT EQU Baud 28 800 bps RELOAD CANT EQU Baud 19 200 bps RELOAD CANT EQU 088H Baud 9 600 bps 18 4322 P ww MV Mnory com SIC12C59201AD 1T 80510 000000 123 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 oleteleeeeeeeeb loe eoo ok 18 432 5 RELOAD CANT EQU OFFH Baud 576 000 bps RELOAD CANT EQU Baud 288 000 bps RELOAD CANT EQU Baud 144 000 bps RELOAD CANT EQU Baud 115 200 bps RELOAD CANT EQU 0F6H 57 600 bps RELOAD CANT EQU OEH Baud 38 400 bps
169. 1 RS232 IU RXXGMPort Pi n2 4 00000 0 1000 5 485 80000 000000 0000000 1 0 1 1 0 0000000000 000000 1 0 1 0000 0000000000 000000 Re485D D DL U 7 0 0000000000000 0 10 000 1 0 1 1 0 5 RS 2320 0 0 0 0 0 M937 SP232 4 5 5 5 3232 5 3232 5 5 0000 0000 0 80510000000 ww MI Menery com 5 2 5201 0 0 1 805000000 183 y y M16525 DIII 10552 1500000 190 000000000600 RS 2320 0 0 D D DU STCISP Ver 30 SICISP Ver 3 OAPCB 0 0 SIC12 16Pin 20Pin 28Pin 32Pin UUDDUUDUDDDBDUDBDBDDBDDDUDUDUD 16Pin 20Pin 28 12 1 s 5V Bg 3v0 0D 5 15 Ver
170. 3 5 5 5 EDI 1 no lt lt H 000000 0000 0000 0 808510000000 ww MUI 5 12 5201 0 1 80510000000 89 Mobile 13922805190 0 O0 0755 82948411 0755 82044243 3 20 1 000000 4 1000000 000000000 VDD 00000 0000000 20400000
171. 9001 LED MU START 7 OBH EQ H 8 P1ASF EU eH 1 ADC Power Cn Speed Channel O EQU 111000008 P1 00 0 ADC Power Cn Speed Channel 1 11100001B 1 100 000 ADC Power Cn Speed Channel 2 EQU 111000108 PL2 A DII ADC Power Cn Speed Channel _3 EQU 11100011B P1 30 0 4 DO 0 ADC Power Cn Speed Channel _4 EQU 11100100B P1 40 0 4 D00 ADC Power C Speed Channel 5 EQU 111001018 P1 50 0 ADI Power Cn Speed Channel 6 EQU 111001108 P1 60 0 ADI ADC Power Speed Channel _7 EQU 11100111B P1 70 0 A DII D LU ADC Channel 0 Result EQJ 30H ADC Channel 1 Result EQU3IH ADC Channel 2 Result EQU ZH 2 ll ADI DU tlU ADC Channel 3 Result 4 33 13 ADC Channel 4 Result 14 ADC Channel 5 Result EQu35H 152 ADC Channel 6 Result EQu 36H 6 ADC Channel 7 Result 37 7 ww MIU Menery com 5 2 5201
172. Dimensions in Inches and Millimeters COMMON DO MINI ONS UN TS CF MEASURE M LLI METER ww MU 5 12 5201 0 0 1 8051 2 Menary com Mobi e 13922805190 1 I Tel 0755 82948411 Fax 0755 82944243 90 20008000 PO P 200 0000 Plastic Gull WIng Small Outline SOIC 20 SOP 20 Plastic Dual Inline Package PDIP 20 Dimensions in Inches and Millimeters Dimensions in Inches and Millimeters 0 020 0 508 0 013 0 330 1 060 26 9 0 980 29 gi 0 299 7 60 0 420 10 7 too 1 0 291 7 39 0 393 9 98 0 240 6 10 M x hw 0 513 15 9 0 105 2 67 0 497 12 6 QUE 34 1 ren 20 150 3 81 0 070 1 78 0 210 5 e 015 29 2 92 ar 022 0 022 0 559 559 0 014 0 356 0 356 1 0 003 0 076 0 100 2 54 70 045 1 13 0 Wamak 1 26 0 3007 62 62 0 013 0 330 e 8S 0 0140 356 _ S REF L 70 00800 203 0 035 0 889 0 015 0 381 0 430 10 92 ww MU Menery com 5 12 5201 0 1T 80510 000000 23 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 LSSCP 20D E D D 1550 2010 6 6 0
173. OO0000000000 000000000000000 000 OO0000000000 000000000000000 000 ncl ude lt 52 gt ncl ude lt 4 ntri ns h gt use _nop functi on sfr AUXR 0x8e sbi t ERRCR LED 1 5 sbi t CK LED P177 voi d nai n 1 unsi gned i nt array point 0 5121 array tvo 512 unsi gned char xdata Test array one 512 0x00 0 01 0x02 0x03 0x04 0x08 0x09 OxOb 0x0c 0x10 0x11 0x12 0x13 0x14 0x18 0x19 0x1a 0x1b 0x1c 0x20 0x21 0x22 0x23 0x24 0000 0000 0 80510000000 ww MY Mmry com 5 2 5201 0 1T 80510 000000 59 0x05 OxOd 0x15 0x1d 0 25 0x06 0x16 0x1e 0x26 Fax 0755 82944243 0x07 OxOf 0x17 0 27 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 0 28 0 29 2 2 2 2 2 Ox2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3a Ox3b 3 3 Ox 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 4 Ox4b Ox4c Ox4d 4 Ox4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a Ox5b 0x5c Ox5d 5 Ox5f Ox60 Ox61 0 62 0 63 0x64 0x65 0x66 0x67 0x68 0x69 Ox6b Ox6c Ox6d Ox6e
174. STCI2LE5202AD UH ww MY Mmry com 5 12 5201 0 1T 80510 000000 15 HB dd npww MI Menary com Mobile 13922805190 0755 82948411 Fax 0755 82944243 ETE RIT UE x 2 9omnx 9mm L6nm Capture Gonpare B PPM 1 D D D TPPEPEE 5 8 1 1 8 TxD P3 1 1 24 C P1 6 Po o C 2 2 0 PL5 XTA2 13 Q 22 4 21 CI PL 4 2 5 20 C P1 3 Po 1 C 6 19 Po 2 3 7 18 C PL 2 EX LVO RST2 4 8a 07 1 1 B 5 SICI2C201 0 0 4 DO 0 0 PWO 0 0 C L EEPROM 32 Pi n STC12LE5201 O0 0 4 D0 0 0 PWO 0D 0O 0O L EEPROM 32 Pi n 8 CENNSA moB ICL i PANNAN PO 0 2 r 23 CJ P1 5 XTA2 13 Q 22 1 P0 3 1 4 UU 21 C PL 4 INTO P3 2 C 5 20 1 1 3 Po 1 C 6 19 3 P0 2 I NT P3 3 7 18 1 P1 2 EX LV RST2 4 8 9 517 1 1 T 8 s 8 9 5 12 5201 0 0 0 0 0 0 00 0 32 5 121 5201 0D 0 4 DO 0 0 PWO O 0 0 0 EEPROM 32 Pi n 3 g
175. 1 00 00047 00000 800 EQU gt 800 gt 800 OEBH PCA0D0O 1000 000000 800 PCA PWO EQU OF2H PCA O PM I LI LI L PCA PWL EQU gt 1 7 6 5 4 3 2 1 0 i B7 EZ CGAPnH 9 J BO EPnL PW J I I r CCAPnL DO 9 000 wwMUMnry com STIC12C52201AnD 146 Menary com Mobi e 13922805190 1 0 Tel 0755 82948411 POCA 1 EQU OH 100000000 CAPM 7 6 5 4 3 2 1 0 EGOM CAPPn CAPNh MNXn TO PW E 1 0000000 OPP 10 0800000000600 0 00000000000 Min 100000000 00 100000000 x 0000 1 Min
176. 1 00 0 0 5 4 8051 2 5 80510 1 0000 0 2 0 00000000 8 0 0000000 1 0 10 D UD U P30 00 3 7 5 4 3 2 1 0 gt 7 0 P3MD 7 O 8051 TO 5 0 0 20mA 23044A 250uA 150uA 0 1 20mA 1 0 1 1 Open Drain P20 0 0 P2 7 P2 6 P2 5 P2 4 P2 3 P2 2 P2 1 P2 0 gt 2 7 2 71 000 0 0 0 1 1 0 1 1 2501 1504 20 Open Drain 0 VOD D D H A DD D D DU UU 7 D lt x PO 3 PO 2 PO1 PO 7 PO 6 P0 5 P0 4 gt
177. 10 2 2 1 10 2 2 2 SICIZ2CSA6082 1 rcm t tem 11 2 3 2 uk ch reb reb 13 25 1 13 2 3 2 2 enne he tem bre 17 2 4 SICEZTIADUBUPEPEBIBUE DEDI e aser Rr RE X TS T re 20 2 4 1 20 2 4 2 2 28 2 5 5 Id 31 2 5 1 SICI2C520 PAD lU FEED DICTA ar rac mt etae ee tete een s 31 2 5 2 STCI2C5A60S2 1 TT EET BER EL TEE nter tmm em rere 32 2 6 JSTCIZBEB OECEPR BEEEEFEBREE uudesec aces or es RO E VO REGE nc deri der accents 33 2 5 1 SICICS2OVADE FETETEEEZSTERTETIODEDETE I usus atm ero dup Ed he 33 2 6 2 STCLACS201DI1 F1 TT TT TT 2071 FE FETTE TT TET eeu nnnm nmm 34 2 6 3 STC2 201AD NN AN S20 PE TEET TETT FU Flecken rr rr kh Rr 35 2 6 4 SICLACSABOSATT TET A A 400 0N TIRE TT TT IET cai ink kn ctim ch Rear ach 36 2 2 8 uns 38
178. 12 5 3252 CCP EEPROM STC12LE5A3252 AD PVM CCP 3FFh 400h 00 nono fonon nonn fonon 5 ooon 0001 ononon 00001 nnmnnn 0000 000000 0000 000000 10100 1008 6C00h 0 0000 80510000000 ww MI 5 12 5201 0 0 17 80510 00 104
179. 5 5 1 0 12000 1 1 uu PCA 119 00000 GCAP1H GOAP1LT 10 0000000800 0010 g T Channel 5n H Channel 5n L Fosc 218 432Mcz 5151 Channel 5n H Channel 5n L T Y Fosc 12 0 005 7680 10 1 18432000 12 ID 1 16 Channel 5n H Channel 5n 10 0 UD 0 805100 00000 5 12 5201 0 1T 8051 000 Channel 5n H IEH Channel 5n L 00H 1000 00 1e 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 NC MY SUBB A 4100 JC MY Counter 40 10 000 00000000 LED 1S FI ashi ng LED 1S Fl ashi ng CPL A 3Khannel 5n L O EGOAPIH GAZPIL JUL A CAPIL 1 515 A GT1 Count er 1
180. 800 EU GXN1 GT2 EU GXN2 EU GXN3 EU C N4 4 5 EU GXN5 5 00000 000000 0 GXN6 og CF FFFFH 0 0 0000H0 O i 85 ww Mv Mnoy com STC2C5201AQO O0 1T 80510000000 164 U DD ww Mobile 13922805190 0 O0 0755 82948411 0755 82044243 cp EQU OD8H MD 7 O00000 CD 2 51
181. PSW wwMUMnry com 5 2 201 1T 80510000000 148 0 Mbi le 13922805190 0 O0 O 0755 82948411 0755 82944243 8 amp 4 STC Internati onal Li n ted zr mosse 000 2006 1 6 10 4 125201 5 O00 5712652014 31 2 201 8 5 2 5202 0 5 2 5203 STCI2CO2044D 5 2 20 5 2 5206 1 13922805190 J 21 Fax 0755 82944243 0755 82948409 5 1
182. ww M Menory com Mhi e 13922805190 0 0 0 Tel 0755 82948411 Fax 0755 82944243 STC12C5A60S2 AD CP 21 5 6052 EEPROMI 1 L 12 5 0852 STCI2C5A1652 AD PW STCI2C5 2052 AD PW STCI2C5A3252 AD PW 2 5 4852 12 5 5252 1 STCI2C5A56S2 AD PW lt 5 12 56052 PWM K 21 5 0852 1FFFh Saam 46 xm 4m cues rr 2 STC12C5A408S2 AD PW 2 1 4 K K K K K K K K K K 80511 10 2 STCI2C5201AH 1T 80510 0 00 105 Menary com Mobi e 13922805190 1 I Tel 0755 82948411 Fax 0755 82944243 5 4 I AP EEPROM 1 1 OCh AP DATA EQU OC2h I AP DATA OC3h AP ALERH OC3h AP ACERL DATA OCA
183. 0 Mobile 13922805190 L1 0755 82948411 0755 82944243 2001 00 100000 T0 Teng 0O 1600000000 0 TH i 0 12 000 00 91201200000 0 0 12 10000 90170 0 00 000 90000 000 10001 0 6000 0600 2 8 2 1 0 12 O T0x12 10 000 90170 0 1000 2 8000000 0000 0000 0 80510000000 ww MV Mnmoy com 5 2 20 1T 80510 000000 115 Mobil e 13922805190 0755 82948411 Fax 0755 82944243 4003 0000 1
184. 28 89511 00000600 8051 24 12 81 12 00000000 5 12 5 6052 5 2 2 1 00000000 2 00000000 3 00000000 8051 STC12C5A60S2 4 00000000 50000000000 1 1 2 2 2 6g 60 60 2 2 4 60 2 2 2 3 4 2 3 S di rect 3 4 6 di rect 2 4
185. Pes 000 00 PCA P4 0 000 6 0 PON PW P1 LDHUDDAURL6 1L POV PW Plin DD D PAL 5 4 5 0 5 10000 5 100 510 1 0000 52 4 0 0 00 ARL 4 0 UART20 P10 00000000000 10000 4 10 0 95 2 DO000 0 0000 80510000000 ww Mu Mmry com 5 12 5201 0 1T 80510000000 65 HB d npww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 2 21 5 12 55 6052 SPI POY PVA UART2 P10 1 PAL STCI2C5A60PW 12 5 12 5 605211 7 6 5 4 3 2 1 0 som stia sei RAm Sm gm 2 5 PCA P4 0 10 POY Pvg P10 000 P40 Ea p P1 20 00 P410 PCA PWOD P1 30 0 0 P420 PCA PWL P1 40 0 0 SPI _P4 0 5 1 1 11 SPAKE P1 7000 P430 900 6000 20 5 0 5000 10 ssp S2 P4 0 00 1 20 1 0 1 R P1 20 00 P420 G2 uu 0 101 0 2000 ADC RESLO O 0 11101 2 2 0 8000 ADC
186. UD 000 80510 000000 ww 5 2 5201 17 80510000000 9 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 22 SA200000000U0 L 2 2 1 5 I 00 o0 D 16 18 20 28 32 12 5201 0 0000000 as 155 33 26 01 wes ofofo nr or sis asm 55 33 20 0 4 ofofo nr or siso asov 55 33 x jojojoji o afa wes ofo o jor or sison as 55 33 x ze n j jnmmizwz n o n owne ue sosswue swsae sw srzcoXmw 55 33 x ze n zn n z jummiuzwz n o n swne ue sorsswue ssar sel Sr s5 3s x ze n zo 1 o a auriez o o o swoe oe sossovae syrsae 55 33 01 jmmiuez n o o swoe ue sossve s so sw srzcooew 55 33 ze n zn n z jummiuzwz n o n swne ue sosswue swsae swa srzGzowo 55 33 1260 120 1100 2 uyi2y n n n woe ue sotsswue swa sw Sr ss ss s 1250 gis 1 munszyz o o o swoe ue ssssvoe 55 33 s ze n zp o jummuzyz n o o smoe ue soissovoe ssa sou ESCCCNEUEHSNESEIEHEEBEREIEZEZEIERERPRETUIRLIBETESTEDEZESDESTCU 5100506 155 33 250 01 jmmiuzwz n ou ewne ue srzceew 55 33 e ze n zo 1 z Jumuieyz o o n swoe ue
187. 00 4800 17 0 1 RELOAD 256 I NI 2000000 4800 32 0 5 256 13 02 0 5 256 INI 13 52 256 13 5 243 0F3H 2 Baud 2000000 256 243 32 4808 3 error 0 16 Fax 0755 82944243 ww Mu Mmry com STCO2C5201AD 1 8051000000 7 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 STC Internati onal Li n ted Q000 O00 200706 0 STAY10xx O0 Mbile 13922805190 0755 82944243 Tel 0755 82948409 ui Wb ww ntu ude r eg51 h ncl udeai ntri ns h sfr x86 sfr AURI 2 sfr BRT 0 9 shit MU Start Led P1 unsi gned char array 9 0 2 4 6 8 10 12 14 16 unsi gned char ar
188. 00000 sra2xx 000000000 10 RS232 00 5 12 0000 0000 0 805100000 0000 0000 1 0800000000600 12 0000 120000 100000 805108 00000000 1700000000 10000 80510000 12 00 ST 9G1RG R 0 00 2000 0000 0 8051000 0000 8051 SIC1l2xx 00000 000 0000 1000000 000000 6 7 0000 0 12 00 0 12 11 170006016 0000 5 12 5201 0 000000 0 1 0000 0000000000000 100000 1700 1270 0 2 0000 0000000000 3 000000000000000 0000000 00000000000 5 STCISP exe 00 3 2 000000000000 4
189. 0O Of LH 0 0 EG P3 Af Fosch O 0 0 0O O 39000 2 Fosc 256 000000 00 38000 256 x 1 59 728 000 ECCAPnL 10 1 00 10 0000 00 00000 10K 1K 00 0000 0 80510 000000 ww Mu Mmory com 5 12 5201 0 1 8051000000 144 Menary com Mobi e 13922805190 1 I Tel 0755 82948411 Fax 0755 82944243 83 0000 00
190. 1 A Counter C PCA Interrupt Exit 00 100000 100 0100 500 Counter 1000 0 0 05 00000 I nterrupt_Exi t POP POP PSW gt 1 8222558 R1 delay 1 R2 delay 1 R3 del ay loop 0 80510 00000 00 www MOU Menary com 5 12 5201 0 8051 0000 Uu Uu 170 HB UBupww MI Menary com Mobi e 13922805190 1 I 8 10 Tel 0755 82948411 Fax 0755 82944243 P2 2 1 P2 3 2 P2 1 RST 3 P2 0 3 0 4 P1 7 ADC7 TayP3 1 5 1 6 006 PO O 6 P1 5 ADS 2 7 P0 3 18 8 P1 4 ACA NTO P3 2 9 1 AD3 PO 1 10 N PO 2 11 P1 2 ADC2 LVD QKOJIyEQ TyP34 12 P1 1 AD DA AKONI PWA TI P3 5 13 P1 0 DOO 10K 10K P2 4 14 P3 7 PV 2 5 15 P2 7 5 16 P2 6 RT 104 ww M 5 2 20 1T 80510 000000 171 HB dd npww MI Menary com Mobile 13922805190 0755 82948411 Fax 0755 82944243 LU UL SICD 1 OO D LU
191. 2 5201 0 0 1T 80510 000000 52 0 Mobile 13922805190 0755 82948411 0755 82944243 2 15 2 11 STC Internati onal Li nhted 0000 000 00 2006 1 6 10 5 1 12652014 Mile 13922805190 s i 20756 522 Y V ke Up I di e and V ke Up Power Down 2 22 ncl ude STCI2C5201AD H 000000000 VAKE AKO EQ 8FH 000 5 WAKE AKO 000 0x8 b7 b6 b5 104 103 b2 bl PCAVAKEUP 1 00 PCADoOO 00000 00 poverdowp ROPINIE
192. 20 000 1K 805111 5 12 5201 0 0 1T 80510000000 2 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 3 9 1 0 0000 L 0 0 0 U s l ls 1000 0000 0000 102 00000000 00000 02 00000000 5 Seen Segnent 1 1 0 0000 nmn 1 000 20 100K0 000000 nmmmn 0 1 00 000 00 000 nmnp 0 wO 17 0000 0000 10 000 1 2 1000 E 1000 I PE 1000 1000 11 1000 4 1000 Down U Gonmon L3 Lc e L3 r3 ww MIUMenery com 5 12 5201 0 1 805101 000000 93 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 40 P2 2
193. 432Mz 12T SMD 9 9600bps Hdefi ne RELOD CANT Oxf6 18 432M 12T SMD 4800bps defi ne RELOAD CANT 18 432Mz 12T SWD 9 2400bps defi ne RELOAD CANT Oxd8 18 432M 12T SMD 1200bps voi d seri al_port_one initial voi d send UART one unsi gned char voi d UART one I nterrupt Recei ve voi voi d serial port tvo initial voi d send UART tvo unsi gned char voi d UART tvo I nterrupt Recei ve voi voi d soft reset to l SP Ini t or voi d voi d del ay voi d voi d di spl ay MU Start Led voi d voi d send PWM voi d ww Mv Mmry com 5 2 gt 201 8 76 000 voi d nai n voi d unsi gned i nt array poi nt 0 unsi gned char xdata Test array one 512 0x02 OxOa 0x12 1 0x22 2 0x32 0x42 4 0x52 5 0x62 0x72 0x82 0x00 0x01 0x08 0x09 0x10 0x11 0x18 0x19 0x20 0x21 028 0x29 0x30 0x31 0x38 0x39 0 40 Ox41 0x48 0x49 0x50 0x51 0x58 0x59 0x60 0x61 0x68 0x69 0x70 0x71 0x78 0x79 0x80 0x81 0x88 0x89 0x90 0x91 0x98 0x99 80 Oxal Oxa9 0 Oxb1 Oxb8 Oxb9 OxcO Oxc1 Oxc8 Oxc9 1 8 0xd9 0xe0 1 Oxe9 Oxf O Oxf 1 Oxf 8 Oxf 9 Oxf 7 Oxf 6 0000 0000 0 80
194. 5 8 ww Mu Mmry com 5 2 201 45 Mobile 13922805190 1 0755 82948411 Fax 0755 82944243 210 2101 STCI2C52014D STC12C5A60S2 i rterrux Eneb e n 0001 0002 Grtrol Ht uuu Sa eere mmo qmm a mum oo for o i mm p mue 40 o ji ja mi ms 5 mim foo for po m uw um p em oo i Bo i hoa mr um s m oo for no om oo for fao a Jay ma jum p wowma o o 10 ii c arosarizrearoeara e 120520240 12C5202PVMM 125202 12C546082 AD PWT I I LI U jos 8 joo jor o i U RTZ 12C2 6082 L1 E D LI E UO LI E UI D D CL2C5 6040 1 0 1252020 0 0 0 AR joo o fro i mn SPI 12C546082 1236040 12C5460PWTI 1 D LO D RI
195. 5 2 5201 17 0 8051000000 UART_MOx6 0 UARTO0O00O0O 0000 1270 805100012000 1 1270 80510 600200 8051 UARTO O0 000 8051 ww MU Menery com 5 12 5201 0 0 17 80510 000000 116 0 00 00ww MU Mmory com Mhile 13922805190 0 0 O0 0755 82948411 Fax 0755 82944243 62 000010000 0010 100000000 2 0000 2 0 000000000 RCAP2LI 4 D UD TRxD DB D U lU 0000 000 00 1000000000 80510 000 000000 000 00 100000 1000000000 1000000000
196. 5 LED J7HHHHHHHHHHHHHHHEF MO 1 1 TO I LI MY TLO 1 1 34PW PU SE WDITH ACALL RL A ACALL RL A ACAL RLA RL A tEbuumuauuu tu P LEDI I UU UU MV TID flinerO Rel oad 2 TO MY TLO 0 Reload 2 ACALL del ay JMP MN Loop Ti nerO I niti ate MV TMD MY THO 1 Rel oad 1 0 1 1 RET I ni ti ate MY CMD 00000008 12 FFFFH 0 0 0000H CMD 48400001008 gt FFFFH I 0000 0 0
197. 5201 1T 80510000000 32 Mobile 13922805190 0755 82948411 0755 82944243 26 ST 2CG21A N 00000000L 0 0 2320 0000000000000 12 10 20 00 1 3 oo xaigoo xa200000 5 22 15 3 0 3 1 23208 00 0000000000000 5 2320 52325 31 3 P3 1 1 P3 1 P3 0 Vcc P1 1 P1 0 Rese 00 261 5 280 000000 STC12C5205 5206 Vcc STC12LE5205 5206 2 232 232 5 3232 5 232 Bg m pg mu Cl VCC 1 0 1 10 org f 0000 Gnd PC RxD COM 2
198. 7 A5 TNH P33 25 E3 P2 7 A5 10 27 3 P2 6 4 Q KOJTO TO P3 4 24 2 6 14 4 26 31 P2 5 A13 3 5 23 H P2 5 A3 5 12 5 1 STCL2CS5A60AD ADI U PVWPCAI O0 0 00 0 EEPROM PASW 1 C D NV P4 4 ALE P4 5j sw enfase 1 1 Penxes NV P4 4 0 45 4 0 48 8000000000 1000 0 PASw4 1 0 Ny PA 40 0 00 1 00 4 ALE P4 5 000 0 5 5 0 5 1 0000 49 5 1 0 50000 1 00 5 EX LV P4 6 0 000 6 1000 0 45 6 10 60 0 00 1 90 6 150000000 70 0000 70 15 000000000000 4 70 00000 700000000000 AUXRI D HL D D PG PW SPL UART2 P3 C1 C D PAC Dmemnic a L3 L2 D Eo ssec vere moxi ach Auxiliary reaister 1 Pca pa sri 52 4 82 Ap pes x000 00x0 PCA P4 0 D AUXRI 6 0 PO PW P1 1 0 000 ARL 6 1 0 POy Pwo P10 000 P40 SPI 0 0 00 ARI 5 0 SPI P1 J 10000 5 P0000 P40 S2 P4
199. 8051000 00000 0000 00 5 15 1 e00 1 000 36 40440 000000 0000 000000 805100 1 000 000000000 RESETO 0 1K00 000 170 00000000 2040 00000000000 55 ww MU Mnory com 13922805190 S 000 C E3 2 0755 82948411 82948412 0755 82944243 82905966 Z HH T ix 020 87501705 85518657 1 020 85517881 0 0 0 0Tel 0 02153560136 53560138 Fax 021 53080587 E i K Tel 010 62538687 62634001 F 010 62538683 e 000 19000 0000 805010000060 ww MU Menory com 5 12 5201 0 1T 80510000000 4 cac RR RR a a aa e RR ja a ri an m n eee 3 1 1 SIC12C5201ADI TCRE TERR RR Et 3 1 2 SICLACOAO0S2 LT EDD EDGE ED BIBEE mug arte ha ea cauta kl ete na nays o uU os 4 STCBDI mpm qp p EEDEIL 8 2 1 SICI2II DEBRDEDEEL EDU seni Ein E ETE E REPE Rep edic eer ene deas 8 22121 SICI2CS20TADUG FI PDPWTED e etra choc cit t c med cet mer Rent d ce eR s 8 2 1 2 SICI2C5A60S2TT ELE EIE ET eir attt etre t Eterno Een 9 2 2 ER ER EIE
200. 82948411 Fax 0755 82944243 20 00000000000000 52 9 525 525 525 52 52 8 5 52 52 E2 EQU OAFH X X X X X X ESPI ES2 S2BLF EQU 9BH AUXR EQU 8EH BRT EQU H IAP GNR OC H RELOAD CANT EQU OFBH 18 432M 12T SMD 9600bps CANT EQJ OF6H 18 432Mz 12T SMD 9 4800bps RELA CANT EQJ OEH 18 432M 12T SMD 2400bps RELOAD CANT EQU OBH 18 432M 12T SMD 1200bps 0000H LJ MP MXN CRG 0043H LJ MP UART tvo I nterrupt_Recei ve CRG 0100H MN N SP LCALL UART2 I ni ti al 11H 455 LCALL tvo 11H 0AAH LCALL send UART tvo sP JUDDD DDDDD85D D 00000 5 12 5201 0 1 8050000000 84 000 1L www MCU Menor y com Mobile 13922805190 1 Tel 0755 82948411 Fax 0755 82944243 UART2 Ini ti al PUSH ACC MY 5200 50 0101 0000 880000000000 00 00600 My BRT RELO D OANT MY 11 TOx12 T1x12 UART Mx6 BRTR S29MCD BRTX12 EXTRAM S1BRS BRIR 21 SIBRS 1 EXTRAM 0 ENABLE EXTRAM MY 2 525 SETB EA send U RT two PUSH ACC 5 5204 0 11 525 525 525 2 52788 52888 521 529 sfr S2BF Ox9B sfr E2 X X X X X X ESPI E22 IE2 400H D 20 1 es2 0 M A 52004 11111018
201. 9V P3 0 21 P3 1 0 then Con03i 2 V Goni P372 P3 3 the sane as the Gonz P3 4 P3 5 the sane as the sbit SEG P0 0 sbit SEG PO l sbit SE P072 sbit SECB PO 3 sbit SEG 0 sbit SECb 30 5 50 566 P0 6 sbit SEG 307 sbit SE 1 0 sbit SED 9411 sbit SEGIO P172 sbit SEGI1 P1 3 sbit SEGI2 1 sbit SEGI3 P1 5 sbit SEGI4 P1 6 sbit SEGI5 P177 sbit SEGI6 270 sbit SEGI7 2 1 sbit SEGI8 P272 sbit 5 9 P2 3 8 wwMUMnry com STIC12C52201An 194 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 sbit SEG20 2 sbit SEG21 P2 5 sbit SEG22 P2 6 sbit SEG23 P2 7 CSEG AT 0000H LJ M start CSEG AT O00BH LM int tO T6gi ster cdd bit SEGVENT BIT RSEG I cdd bit DBT 1 the output di spl ay reverse flag cdd data SEGVENT DATA RSEG cdd data ConGDat a0 1 Cnt al 1 ConGDat a2 1 Cori Dat a0 1 ConiDst a1 1 Coni Dat a2 1 Con2Dat a0 1 2 1 1 2 2 1 Ti neS 5 1 Interrupt Code tO int SEGVENT CIE RSEG tOint USI NG 1 p EKK KK KK KK KK
202. Ox6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x7b 0x7c 0x7d 0x7e 0x7f 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 Ox8a Ox8b Ox8d Ox8e Ox8f 0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 0x98 0x99 Ox9b Ox9c Ox9d Ox9f 0 1 2 9 Oxad Oxae Oxaf OxbO Oxb1 Oxb2 Oxb3 Oxb4 Oxb5 Oxb6 Oxb7 Oxb8 Oxb9 Oxba Oxbb Oxbc Oxbd Oxbe Oxbf OxcO Oxc1 2 3 Oxc4 5 0 6 Oxc7 Oxc8 Oxc9 Oxca Oxcb Oxcc Oxcd Oxce Oxcf Oxd1 2 0xd4 7 Oxda Oxdb Oxdc Oxde Oxel 2 5 Oxe9 Oxea Oxeb Oxec Oxed Oxee Oxef Oxf 0 Oxf 1 Oxf 2 Oxf 3 Oxf 4 Oxf 5 Oxf 6 Oxf 7 Oxf 8 Oxf 9 Oxf a Oxf b Oxf c Oxf d Oxf e Oxff Oxf e Oxf d Oxf c Oxf b Oxf a Oxf 9 Oxf 8 Oxf 7 Oxf 6 Oxf 5 Oxf 4 Oxf 3 Oxf 2 Oxf 1 Oxf 0 Oxef Oxee Oxed Oxec Oxeb Oxea Oxe9 2 1 Oxde Oxac Oxdb Oxda Oxd7 Oxd6 Oxd3 0xd2 1 Oxcb Oxca Oxc9 Oxc8 Oxc7 Oxc6 5
203. Oxc8 0xd8 0xe0 0xe8 0xf 0 0xf 8 0000 0000 0x01 0x09 0x11 0x19 0x21 0x29 0x31 0x39 0x41 0x49 0x51 0x59 0x61 0x69 0x71 0x79 0x81 0x89 0x91 0x99 1 Oxa9 Oxb1 Oxb9 Oxc1 Oxc9 Oxd1 0xe1 Oxf 1 Oxf 9 Oxf e 0x02 0x0a 0x12 0x1a 0x22 2 0x32 38 42 0x4a 0x52 0x5a 0 62 0x72 7 0x82 0x8a 0x92 0x9a 2 Oxb2 Oxba 2 0xd2 Oxda 2 Oxf 2 Oxf a Oxf d 0x03 OxOb 0x13 0 0x23 Ox2b 0x33 Ox3b 0x43 Ox4b 0x53 Ox5b 0x63 Ox6b 0x73 Ox7b 0x83 Ox8b 0x93 Ox9b Oxb3 Oxbb Oxc3 Oxcb Oxdb Oxf 3 Oxf b Oxf c 0x53 Ox4b 0x43 Ox3b 0x33 Ox2b 0x23 0x1b 0x13 0x0b 0x03 0x04 OxOc 0 14 0 24 2 0x34 3 0x44 Ox4c 0x54 Ox5c 0x64 Ox6c 0x74 0x7c 0x84 0x8c 0x94 0x9c 0xa4 Oxb4 Oxbc Oxcc 0xd4 Oxdc Oxed Oxec Oxf 4 Oxf c Oxf b Tel 0755 82948411 0x52 0x4a 0x42 0x32 2 22 1 0 12 0x0a 0x02 0x05 0x0d 0x15 0x1d 0x25 2 0x35 Ox3d 0x45 Ox4d 0x55 Ox5d Ox65 Ox6d 0x75 0x7d 0x85 Ox8d 0x95 Ox9d 5 Oxb5 Oxbd 5
204. P1 2 AIC2 EX LV RST2 Port2 PortO Gd 7 1 00 QKOUT1 GCPY TJ P3 5 13 P1 0 ADCO A 7 2 7 2 6 k00 32 5 32 32 5 2 5201 2 0001010 0010000 0 805110000000 80510 80120 00 74 164 165 5958010000000 e0 0 0 0 5 50 3 3V0 2 20 3 6v0 LE5201AD0 0 0 ALD I O 2 0 10 2 5 2 LV e000 00 00 35 8051 0 420 5 1 5 2 2 1 2 4 2560 000 P0000 0 DBBBDDDODDDD 000 0 0000 100000 4000000 40 0 85 1000 0000000000000000 EM e s00 8000 A0000 3000 0 20 000 20 DADO 000000000 e20000 000 00 PW Payam 0000 0000000 200000 200000000000 000000 100
205. P2 3 RST RxD P3 0 TXO P3 1 XTAL2 1 3 2 NT1 P3 3 QLKOJTU EQ TU P3 4 Q KOJT GP TV P3 5 P2 4 P2 5 Gnd LA 0 005 051 115 1520 2025 LU 5 82 5 82 405 10 av O 0 25 gl 805 5 12 5201 0 0 1 805000000 94 Mobile 13922805190 0755 82948411 0755 82944243 sra2c2o0r10 O 0000000000 L 41 411 0000000 516120201401
206. RAM 1 12 3 4 AJ dat a 7 2 12 2 6 di rect A 2 12 4 3 ANL di rect dat a 3 24 4 6 ORL Rn 1 12 2 6 ORL AJ di rect 2 12 3 4 ORL A ci RAM 1 12 3 4 ORL 2 12 2 6 ORL di rect A 2 12 4 3 ORL di rect 4data 3 24 4 6 XRL A Rn 1 12 2 6 XRL AJ di r ect 2 12 3 4 XRL RAM 1 12 3 4 2 12 2 6 XRL di rect A 2 12 4 3 di rect data 3 24 4 6 CLR A 0 1 12 1 12 CPL A 1 12 2 RL A 1 12 1 12 RLC A 1 12 1 12 RR A 1 12 1 I RRC A 1 12 1 12 SVAP A 1 12 1 12 ww Mu Mmry com 5 12 5201 0 1T 80510 000000 39
207. anlara 20ans ded ced Baud Reti ner 000000 gn awiiay Rgse mE ENSE TS 2rdirterrut Fri ori ty Low ue TL T PFE rterrut PriarityHgh Lom jAn Awliayrejsel Les sx ss sr ojos sw eje cui em w jm pe e n po A anli arta oana 75 prm E A a L L L L L L ss kw mme cns Sm sas sr m m Go m foe foe farea en selee eee mon mimm nnnm m mere mie vs wa vu 0000 0000 s o s Fosc 12 256 BRT 0 BRTx12 00 Fosc 256 0 12 10 8051 00 5 12 5201 0 0 1T 80510000000 74 E 100000 1 1392280519008 08 0 0755 82948411 0755 82944243 00 200 00 1 2 2 TXD P1 3 TXE PA 3 8r uu uu 2 0
208. 0 0 1 805 000000 134 CRG 0000H MN CRG 0050H MA N QR LED MJ START LED MU START EW P3 7 MY SP ACALL I nitiate RS232 ACALL ADC Power ACALL Set P12 ASF O00 P12 000000 ACAL Set_ADC Channel 2 2 ACALL Get AD Result ACALL Send AD Resul t ACALL Set P12 Nornal PL200010 MY AX Gmel 2 Resut O CL A MV PLA V i t Loop SM V it Loop niti ate RS232 QR ES MV TMD 20H MY SQN 50 0101 0000 80 000 00000 MV THI OFBH 18 42 9600 MV TL1 0FBH MV SBF A Send Byte V it Fi ni sh TI Send Byte Finish RET 80000 0D D UU ww MU Memry com 5 12 5201 0 0 1T 80510000000 135 0 00 00ww MU Mmory com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 ADC Pover PUSH AD QONIR 80 E ADI D UO D
209. 0 0 5 57 0000 5 AP CNIR 401100000 5 85 1 0 0 ISPO SST 1 000 GONIR 700100000B SVES O APO MST 1 0 ISPHH BHH IH JI D DU MO 1 01100000B SV S 15 SWST 1 D lD DUDD UDDDUD SIII DI DUDU waMUMemry com SIC12C5201ATI 17 80500000000 101 0 00 00w MU Mnory com Mobile 1392280519 1 Tel 0755 82948411 Fax 0755 82944243 l uu To 24 2 30 2 2 2 2 uuu NJ 470uF 104 470uF 104
210. 0 0 21 6 x0 000000000 0 1 0 0 0 x 11H160 x0 000000000 x 1 1 0 0 0 160 0 0000 0000000 0 0 1 0 0 1 0 0 1 1 0 1 0 0 0 0 1 42H8 PW LED MUJ START EQU P1 7 LED 5n Fl ashi ng EQU P1 6 LED 1S Fl ashi ng EQU P1 5 Channel 5n H Chamel PA JII HC UJU l Channel 5n H EQU 03H 1 505 100000 18 432 Channel 5n H EQU 01H 1 Fesc 18 432 Channel 5n L EQ 00H PA00 15000000 18 432 Channel 5n H EQU 03H 5 Fosc 222 1184 Channel 5n L EQU 099H 15 Fosc 222 1184 5 12 Channel 5n H 1EH 5 Channel 5n L EQ 00H PA00 15000000 i nerO Rel oad 1 10 Ti nerO Rel oad 2 20 wwMUMnry com 5 12 5201 0 0 8051000000 166 MY MV urter 0 ACALL PCA I nitiate ACALL Ti nerO l ni ti ate MN N Loop P3 5 0 LED MV TI 0 Reload 1 003BH LED MU START MY TLO 1 1 M
211. 0 0 x 04 1600000808 1 0 1 1 O x Odd 160000060600 1 0 1 8 0000 000008510000000 wwMUMmry com 2 5201 0 0 17 80510 000000 19 0 00 00ww MU Mmory com Mobile 13922805190 0755 82948411 Fax 0755 82944243 DBBBH GOnL value CAPnL Value OO 00010000000 fO f Fosc 4 APnL Val ue Fosc 2 I H j INI Fosc 4 0 5 0000000 O fosc 20M 0 00 GCAPnL Val ue I NI 20000000 4 125000 0 5 NI 40 0 5 40 5 40 28H 20000000 4 40 I 125000 125 OKHz CAPnL Value EQU 25H 25H 2 37 fosc 218 A2Mz 000000 124 540Krz GCAPnL Val ue EQU 28H 28H 40 fosc 20M0 000000 125K EQU 42H 42H 66 fosc 33M0 000000 125K ORG 0000H AM nain interrupt 7 PCA i nterrupt PUSH ACC 4 A ock PUSH PSW 4 qA ock 1 MV A CAnL Value 2 d ock AD 3 dock MY 3 dock QR A 1 dock 3 d ock 3 dock PSW 3 dock PP 3 dock RETI 4 dock 34
212. 00 00ww MU Mnory com Mbi e 13922805190 0755 82948411 Fax 0755 82944243 8051000 5 SP I AP SFRs meic pae 7 s 5 3L2 L3 eom c smenssam mse K E I a enfiei Aash adress a onise Aash ares tow EJ Q 5 11 1111 JE Iean lione nen oase o Dw emc ansnenehome mee eawm om smue Grera 8 8 8 5 12 5201 8051000 000000000000 WMKE CLKO 8Fh Power down V keup PCAMMKEUP RXD PINIE TI PINIE TO PINIE LVD VAKE BRTCLKO T1C KO TOCLKO 0000 0x00 Control regi ster o 5 2 5 6052 0 0000000000000 meic pae Jr e S 2 1 o we 7 02 fai vao mum m emamerumi Pe em mareraimo eoo T i 8 P5 Gonf i gurati on 1 C h P5 Conf i gurati on O ADC Resul t ow S Saus reg star PDAT j S otra reise SS 5 513 9 8 8 5 4 8 8 SPI DBta regi ster Auxiliary regi ster 1 Interrupt Enabl e2 2rd Interrupt Pri ori ty Low regi ster 2rd Interrupt Pri ori ty H gh regi ster B5 h m mr SPEED
213. 27 P2 1 RST 1 d 20 C mr 13 Q 26 P2 0 RxD P3 OL 2 19 P1 7 ADC7 moPio 4 N P va 1 3 58 18 31 5 24 6 ADB XTAL2 4 KJ 17 PL 5 ADS 2 6 23 P1 5 ADGS XAI 5 16 P1 4 AD XA1 7 u 22 P1 4 AXA INUP32L 6 1 JPL3ADO 8 6 3 7 a l4 1 2 LM RST2 V 20 P1 2 ADC2 EX LM RST2 Q KOJTQ EQ TU P3 4 1 8 V 13 1 10 19 PL AD CLKOUT1 GCPY TY P3 5 9 P1 0 ADCD QLKOUTI CCP T P3 5 11 59 18 PL 0 ADCD Gd 10 P3 7 GPO P2 4 12 17 7 2 5 13 16 2 7 214 15 2 6 220 8 8 P2 3 2 P2 1 Es 0 4 1 7 7 TXD P3 1 5 PL 6 TxD P3 1 P1 6 0 6 P1 5 ADCS P0 0L 3 2 23 3 P1 5 AS 2 7 PO 3 2 3 G 22 3 P0 3 o xa 8 PL 4 AA XIA1E 4 5 21 1 4 NIU P3 2 9 1 INO P3 2 C 5 i 20 1 P1 y AD PO 1 P0 2 P0 1 J 6 19 3 P0 2 INTY P3 3 P1 2 ADC2 EX LV RST2 INTY P3 3 C 7 18 1 P1 2 ADC2 EX LV FST2 4 1 1 1 QLKOUTO EG TO P3 4 8 8 17 1 QLKOUTI CCP T P3 5 P1 0 ADD P2 4 P3 7 GCPO mox nupt M P2 5 P2 7 88 2 Gd P2 6 E B g B 3 5 12 5202 0 0 0 0 0 0 0000 0
214. 3 11 Po 1 C 6 i 19 3 P0 2 AKONO EA TO P3 4 12 INTY P3 3 C 7 18 1 P1 2 EX LV RST2 QLKOUTI GCP TI P3 5 13 akay Ea TO P3 4 C8 07 0 1 P2 4 pais Gd ARARE E B j STC125202PWM 0 0 4 DO 0 0 PWO 00000 EEPROM STC12LE5202PW 0 0 0 0 00 0 0 EEPROM 00000 80510000000 ww MY Mmry com 5 12 5201 0 0 1 805000000 HB UB Menary com Mobi e 13922805190 1 I Tel 0755 82948411 Fax 0755 82944243 STC12C5201AD 0000 5 11 RST 11 16 RxD P3 OC 2 PL 7 7 RxD P3 O 2 8 15 PL 7 TxD P3 11 3 PL 6 5 TX P3 1L 13 14 1 1 6 06 2 4 0 Pl 5 ADCS 2 14 o 13 5 15 P PL 4 1 5 12 PL 2 ADQ EX LW RST2 iN P3 3 6 5 P1 2 AUC2 EX LM RST2 1 6 5 LL PLUAX qkoyEq TOP3 4D 7 Pl y AD Q KOUTQ EG TQ P3 4 17 zu 10 PLOAXD 5 8 PL Q ADO 18 9 7 19 7 P 2 1 28 P2 3 2
215. 3 C 6 g PL1 467 E PLO 18 7 P1 2 EX LM FST2 Tel 0755 82948411 Fax 0755 82944243 0 0 0 000 RxD P3 O TxO P3 1 XTA 2 1 3 3 QLKOJTU EG TO P3 4 QLKOUT GCPY TJ P3 5 RST Gd 17 7 1 7 16 P16 15 5 14 P1 4 13 P1 2 EX LM RGT2 12 1 11 0 10 P3 7 I QN P 8T d O P2 2 1 P2 3 2 le 27 P2 1 BST 1 Iu RST 3 26 P20 RxD P3 0C 2 PL7 RxD P3 0 4 25 PL7 TD P3 1 3 8 PL6 S L XTAL2 6 23 PL5 Hs E 5 1 XTAL1 7 z P 4 INR P3 2L 6 P13 NI0 P3 2 8 6 z e3 3 17 o P1 2 EX LV RST2 Q KOJT EQ TU P3 AE 8 T PLI AKONO EA TO P3 4 10 Q KOJT1 GCPY TY P3 5 9 PLO AKANI QPY TY P3 5 11 is PL0 Gd 10 e 7 P2 4 12 17 2 5 13 16 2 7 Gd 14 i P6 P2 2 1 P2 3 2 8 RST 3 m 0 4 moPi s eio go o PX o in P0 0 6 6 XIA2 7 Po 0 C 2 23 7 1 5 XIAL1 8 XTAL2 3 22 3 P0 3 I NTO P3 2 9 1 4 v 21 CO PL 4 PO 1 10 2 5 20 1 1
216. 49CH HB U 7 D D CL PLO RETI 000 2 MY THO 38H HB LU 7LO D 1 1 000 000 00 8051000000 5 7 12 5201 0 1 805106060 000 12 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 1 3
217. 6052 3 6 2 2 1280 3 6 2 2 8K 3 6 2 2 40K 3 6 2 2 3 6 2 2 80510 0 16K 16K 16K N 20K 20K 32K K 32K 40K 40K 48K 48K 48K 52K 52K 56K waw 2 1392280519000 0 0 m m m m m N N N N N 0 co 8 Tel 0755 82948411 PCA 160 T ROM Pw 80 8 5 2 cC P P 36 40 44 L c r 36 40 N 36 40 N 36 40 36 40 N 36 40 N 1 L E 5 36 40 N 36 40 36 40 36 40 L c PB 36 40 N 1 36 40 N 36 40 36 40 36 40 N N Bi Li 0755 82944243 40 44 48 40 44 4 40 44 48 D PD P40 D 4 CFP48 40 44 4 36 40 44 40 36 40 40 40 Li 40 44 4 PO P40 Li 36 40 40 PD P40 P40 PO P40 1 PDI P40 1 4 LCFPA8
218. 7 vec 10 1 3 3 P1 2 ADC2 LM RT2 gt u sa 12 4 n x SDA 13 PM TI QKOUTUP3 5 PL 0 ADD 2 24002 L 14 P2 4 P3 7 PCAO PVO 240027 12 0 0 po000000000 15 25 P2 7 DA AMJ DAD 16 2 6 1 6 U WB UU LU 23 o b t 3 47 0 1 2 vcc io L 3 3K 2 3 Vcc ii o 3 3 4 Vcc 1 2 3 3K 4 5 Vcc i o o 00 000 00 8050 000000 5 12 5201 0 1 80510000000 35 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 264 SICDOVeO 00000000600 STC RS 232 0 0 0 T STC3232 STC232 Mv 232 SP232 T o Vec 16 gt Vcc 2129 0 E t 2 15 I Gna lt PC RxD COM Pin2 o USB 45V 5 5 51 15 Pover Q c 7 50 8 R2IN R20UT Vcc m G CLKOUT2 P1 O i D P1 2 mm pice mri n 1 4 10uF P1 5 RxD I NT P1 6 TXD PL 7 RST PA 7 V V MCU RxD P3 0 A z TxD 1
219. 9 00000 000 00000 ID 1116 232 2321 STCISP Ver 3 0A P 0 O RS 2320 10 UL Socket 20 0 3 00000000 4 Pi Q PI 10 5 9 1 0 1 1 1 0 01 Downl oad 15 6
220. EEDEEREEEEEEE I IOIIIIIOIOIIHIIAIIIII 1 484234 2 5 0 0 00 00 0 0 0 000 0 2 0 0 0 00 0 0 0 0 0000 0 EEPROM PASW 000 0 4 5 1 6000000000 ew 1 beoe NA P4 4 0 0 0 0 4 44 4 1 1 1 01 2 ALE PA 5 5 5 10 0 00 P4ASw5 1 0 ALE P4 50000 1 00 P4 5 EX LVJ P4 6 000 P4Sw6 0 Ex LW P4 1 0 000 P4sw6 10 EX LVW P4 60 O O 0O 1 00 6 5 7 4 7 5 7 0 AXR 0 0 00O DO POY PvM SPI UART2 0O O P10 000 P4D moxa an ani iary register 1 Pca Pa sri ra sz va rz sow PCA P4 0 0 0 0 ALRI 6 0 PO PW P1 1 0 000 AKRIL 6 1 0 PCy Pw P10 0 00 P40 SPI _P4 0 0 00 ARI 5 0 SPI g P10 10000 5 010 0 10000 S2 P4 0 000 4 0 00 20 0 000 10000 4 00 2 00 20 00
221. LED 5n Flashing 0 0 0 5150 0 Channel 5n H Channel 5n L I 12 0 100000 1000 00 120 KF0 l CCAP1H CCAP1L 10000 POCAD OD 0H QJ 00 1000000000 CH Q 1 1 JUD n Fosc 2 18 433947 5n H Channel 5n L 504 Channel 5n H Channel 5n L T 1 Fosc 120 0 005 1 18432000 120 768 10 300H 16 Channel 5n 03H Channel 5n L 00H Channel 5n H Channel 5n I D GCAP1H GC2P1L 1 U l 10 00 0 0 12 PA H Q 0 1 GCAP1H CCAPIL
222. RELOAD CANT EQU 0E2H Baud 28 800 bps RELOAD CANT EQU Baud 19 200 bps RELOAD CANT EQU OCAH Baud 9 600 bps RELOAD CANT EQU 088H Baud 4 800 bps 200 18 432 17 0 5 Li oleteleeeetoebeekeloeeeoek e EEEE EEEE EEEE KEEKEKE KKK KKK KK kkk Fosc 18 432M 12r0 0 SMDS 000000000000000 RELOAD CANT EQU OFBH Baud 9 600 bps RELOAD CANT EQU 0F6H Baud 4 800 bps RELOND CANT EQU 0ECH Baud 2 400 bps RELOAD CANT EQU OBH Baud 200 bps 18 42 oleteleeteetoebeeke loe eoe ok 18 432 1270 0 5 9 RELOAD CANT EQU OFBH Baud 19 200 bps RELOAD CANT EQU OF6H Baud 9 600 bps RELOAD CANT EQU OEH Baud 4 800 bps RELOAD CA
223. egg xg 1 12 2 000 JD 12 1 3 3 2 4 2 0 8 1 52 S2RB8 00000 00200000 5255 0 2 225MD 10 000 200 BRTO O O0 1 2 222MD 32 x BRT 0 BRTO 000 BRIDDD 16 BRTO O O0 0200 20 110 000 001 8 1 3 TxD2 P4 3 L L HL RXE2 P1 2 RXC2 P4 2 BH B BL B HI U U DE DE 34 Fosc 12 256 BRT O0 BRTx12 00 J Fosc 256 BRT BRTX12 1 09000000000 ES E LE E 0 20000 32 2 2 2525
224. k41 el se t 0 S2QN S2QNN amp OXFD 1111 1101 voi d soft reset to I SP Mni tor voi d IAP GNR 0x60 0110 0000 000000 15 0060 voi d del ay voi d unsi gned int j 0 unsigned int g 0 50 82 ww MI Menery com 5 2 5201 0 0 1 8051000 000 00ww MU Mmnory com 1392280519000 0 0 0755 82948411 0755 82944243 f or g29 g 60000 g i nop nop nop nop nop voi d di spl ay MU Start Led voi d sbit MI Start Led unsi gned char i 0 for i i lt i MU Start Led del ay MIJ Start Led del ay Start Led voi d send PV voi d CMD GCAPOL 0x00 0x00 0x00 0x80 0x80 0x42 P1 7 UD Mui D td t t tL lU 1 GL S1 PSO E Setup POA Ti ner 51 50 00 Fosc 12 is POY PVM cl ock 18432000 12 256 6000 Set the initial value sane as 5096 Duty 0100 0010 Setup PCA nadul e O in 8B T PW P3 7 0 0 POY Pwo OOO J 8051100 ww 5 12 5201 0 0 80510000000 8 0 00 00ww MU Mmry com Mobile 13922805190 0755
225. o a byv nput owvol t age PO P1 P2 P3 nput H gh vol t age 0 PO P1 P2 P3 nput H gh vol t age 2 RESET I Si nki ng Current for Out put Low 20 PO P1 P2 P3 Push Pul St r ong out put Sour ci ng Current for Out put H gh 2 PO P1 P2 P3 2 Logi c O i nput current PO P1 P2 P3 Logic 1to Otransiti on current PO P1 P2 P3 Sour ci ng Current f or Out put H gh 40 70 PO P1 P2 P3 90511 5 2 5201 0 0 1 80500100 179 HB d npww MI Menary com Mobile 13922805190 0755 82948411 11 1000000018 0000000000000 1 110 000000 15 0000600 0755 82944243 5 12 5205 5206 STCI2LE5205 5206 PL Q P1 1 IU U 5 0 0 5 1 0 P1 19 0 00000 1 0 1 1 unum 5ousn n n 1 0 P1 10 000 0 5
226. 0 000 90 80 0 PACKAGE PLASTI C SHRINK SMILL CUTLI NE LSSCP 20 6 4nmx 6 4 4 0 05nm 1 502 0 10 a dos N 16 e 6 40 0 20nm 1 85 0 10 0 05nm B 0 15 0 50 0 200 0 99 lt 00000 24 ww MU Menary com 5 2 5201 O 1T 80510 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 SCP 28 0 000 5 288 0000 28 PI N SMAL 50 28 28 Pl N PLASTI C DUAL I N LI NE PACKACE SKO P 28 1 445 36 70 1 455 36 96 T tem 0 299 7 60 0 420 10 7 0 240 6 10 0 291 7 39 0 393 9 98 0 0 2 2 300 33 02 REF 0 210 5 T Emm n 0 005 0 i 0 020 N oou 0 359 0 014 a SEATI PLANE 0 703 17 856 Enna gt I 0 112 2 844 0 693 17 602 70115 2 92 115 2 92 Ls 022 0 022 0 559 559 0 014 0 356 0 070 1 78 0 100 2 0 045 1 13 0 014 0 350 0 004 0 102 0 325 8 26 4 0 300 7 62 0 013 0 330 0 009 0 229 0 014 0 356 2 REF 0 008 0 203 0 430 10 92 MX 0 0484 1 228 0 0276 0 700
227. 0 27 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 2 4 2 SICDCSAGOAD SO J I JI uu Po P 40 0 0 000 P40 plastic dual in line package 40 I eads 600 seati ng pl ane 0 5 10nm scale DI MENBI ONS i nch di nensi ons are deri ved fromthe ori gi nal nmdi nensi ons 1 70 0 53 0 36 52 5 14 1 3 60 15 8 17 42 0 067 0 021 0 014 2 067 0 56 0 14 0 62 0 69 Note LPlastic or netal protrusi on of 25 nmnaxi numper si de are not i ncl uded 8051 00 5 12 5201 0 1 805108 0000060 28 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 LCFP 44 N E PACKACE L P 440 0 0 00 S D DL 2 COMMON DI MENSI ONS UNI TS OF MEASURE MI LLI METER SYMBOL MN 0 127 12 00 0 80BSC E I OOREF 0 2585 WTH PLATI NG BASE METAL 8 ww Mu Mmry com STCO2C5201AD O 1T 80510 000
228. 00 ww M 95 2 20 1T 80510 000000 11 0 Mobile 13922805190 0 O0 0755 82948411 0 12 0000 0 9 12 120 0000 0 10 12 10 000 90170 0755 82944243 TH TFn nnsao as n 00 0 1 0 3000 000 TGN HU 88H 0000 716151417121 41 m m To TR amp rm g 8 D D 0007000 10000000 1000000011000000 10000 7 1 0 0 7 TR1 1 6 7 1 1 10007000 00000000 0000000 100000 1 0 0 3 00 10
229. 00 000000 218 12 5 52 0 8051 00 00000 0000000 7 5 5 4 2 1 om An AliayRgsel am am m G2 AN _ 5 Functi on LPS LPIR regi sters select bit O EPIRO is selected EPTRO Ll Ll 1 EPTRlis selected EPTRI I 16bit 00 0 EPST 5000 00 DATA0A2H MY AURI 40 PSH 0 EPTRO T My DPTR O MV A 55H MX PIR A 1 55 MY DPTR 32FFH EPTRO 2FFH MY A MO XGPIR 2 000 NC AURI 00 PSO 1 PTR1 DPIR1 1FFH MO XA
230. 00 NP PGN 000001080 0000000 NP NP PGN 000001080 0000000 NP MAI T10 SM END wwMUMnry com 5 12 5201 0 0 80501000000 177 ww MU Menory com Mobile 13922805190 0755 82948411 Fax 0755 82944243 SICDCSOO1AD 0 0000000 Hu ELECTRi CAL CHARACTERI STI CS Absol ute Maxi num Rati ngs Par anet er DC Speci fi cati on 5V MJ omare foa 5 V haearn o ds j ie aeaim rex jim pm m w owvol t age nput Hi gh vol t age I nput H gh vol t age RESET i V 5V Si nki ng Current for Out put Low 20 5V PO P1 P2 P3 Vpi n 0 45V Push Pul I Str ong out put Sourci ng Current for Out put H gh PO P1 P2 P3 Logi c O i nput current PO P1 P2 P3 Quasi out put Sour ci ng Current for Out put hi gh PO P1 P2 P3 Logi c 1to Otransiti on current 90511 5 2 5201 0 0 1 8050000 178 0 00 00ww MU Mnory com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 DC Speci fi cati on 3 3V MJ e E Hem Pover marre o a ps J
231. 000 QR VW FLAG LED JB Last VDI Ti ne LED Status Povwer VIDI 100 0000006000 Ez 000 0 00000 0000 0000 0 8050 000000 5 12 5201 0 1 80510000000 97 QR VI TI M LED 55 5 3 6 WW T2 SM 2 0000000 00 0 0000000600 Power Cff WI TI ME LED SEIB VI TI ME LED CPL Last_VDL_Ti ne LED Status 3 SM 30000000 00 0 0000000600 END ww MU Menary com 5 12 5201 0 0 8051 9 Mobile 13922805190 0755 82948411 0755 82944243 4 2 Q000000000 L
232. 000 29 0 Mhile 13922805190 0 0 O0 0755 82948411 0755 82944243 LCFP 48 OUTLI NE PACKACE EHHH AH EHH h 2 HHHH d O Cymw MN Max Ai 905 9 15 H B mag 80510 0 0 5 12 5201 0 1 80511000 30 0 2 5 2 5 1 5 12 5201 0 Mbi 1392280519000 0 0 0755 82948411 0755 82944243 5 2 3 00000000 uuu STC12xx 52 xx xx 37 x xxxx xx STC 1T 805410 000000000000 80510 amp 120 0000 0000 0 80510 0 0 En 16 18 5 1 1 5 000000 100000 40 85 9000 cH 7 20 28 32 37 0 A000 EEPROM PVW 0
233. 0000 0000 414A e4 1600 0000000 80510000 70 1 20 20000 2000000 0000 18A P3400000 T0 P3 50000 300000000 0000 27A 7m 80510 0 0 0000075000 00 5 19 0000 0 100 0 0 e00 1 000 27 23150 000000 0000 000000 805100 1 000 0000 Mxs100 0000000000000000 000000000 RESETO 0 1K00 0 0 0 oo1 0000000000 200000000000 55r TM 0 0 0 ww MU Mnory com 13922805190 S TC micro y 0755 82948411 8294842 0755 82944243 82905966 HR fl jx rel 020 87501705 85518657 020 85517881 MS 0000 021 53560136 53560138 021 53080587 i p qu Tel 010 62538687 62634001 F 010 62538683 _ 020090 0 2 ax 8 000 19000 0000 000 00000 80500 00000 5 12 5201 0 0 1T 80510000000 3 Mhi le 139228051900 0 0 Tel 0755 82948411 Fax 0755 82944243 00000 89510100 8051 0 0 5 12 5 6052 0 8051000 10 00 7000000000000 20 8000 DOD
234. 0000 20000000000 MV 20 S2BLF 11H ww MUMenery com 2 220 1T 80510000000 8 E U D LL www MOU Menary com Mobile 13922805190 0 0 0755 82948411 Fax 0755 82944243 UART2 SEND WW T A SXXN AN 0000 0010 34H UR SN WT A SXXN 111 1101 0 000 20000000000 5204 2 1 0000 200 52 1 UART tvo I nterrupt Recei ve PUSH ACC 5 401 01H CLEAR S2TI RETI M 5 1111 1110 504 11H S2BLF NC 11H LCALL tvo RETI 52 M 5 30FDH 1111 1101 M SN A END 0 000 00 805000 100 5 12 5201 0 0 1T 80510000 000 86 Mobile 13922805190 0755 82948411 0755 82944243 2 24 5 2 520 sra26A0s20 00 000000000000000 FiH F HDT 70 2 25
235. 0000 3000 00 1000000000 TRi000 0000 0000 0 1 1 1000 3 8 3 3 0 12 00000 9120120 0000 O T0x12 1 4 1 10 80000 50 00000 0000 1000 m00 5 12 5201 00 0 0 17 0 8051000000000 80510000 00000 1000000 8051 120 00 000000600 80511 0000 0 1208 0000000000000000 0 10 00 17000 1110 0000000000 30 240000000 0 12 0 000 0000 80510 00 120001 000 0000000 80510 1200000 71 12 0 000 1000 80510 00 120001 000 1000000 80510 1200000 0 10 00000 00 2 000000 ARTO ODO 12700 m00 UNTDIDDUUU O
236. 000000000 0000 00000 8050 000000 5 12 5201 0 17 80510000000 17 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 2 6 0000000 0 0 0 0 000 QLKOJT2 ADQY P1 0 1 ADO PL 1 12 PO ADO EGQ ADXZ PL2 3 1 ADL PY AD P1 34 2 95 PL A4 5 5 0 5 1 56 PO 4 AD4 M SQ aD PL 6 7 5 SQ K ADCI P1 7 8 U PO 6 AD6 PA 7 RST 9 0 7 7 10 UU EX LM P4 6 RST2 3 1 1 ALE P4 5 2 12 NY P4 4 3 3 13 P2 7 A15 AKNO TO P3 4 14 P2 6 A14 QKOJT TVP3 5 15 P2 5 A13 W P3 6 16 P2 4 A12 3 7 17 P2 3 A11 2 18 P2 2 NO XTA1 19 2 1 49 Gd 20 P2 0 A8 Su S 2 x 52 P5 3 7 36 3 PO 4 ADI MCBI ADCS P1 5 2 35 4 P0 5 Ab uum a muni SERIE SAK ADC7 P1 7 4 33 PO 7 AD7 SLE DOO AB P4 7 RST 5 32 L1 EX LV P4 6 RST2 7I ST 7 7 RxD P3 O 6 31 P4 V EG MBI RxD P3 0 29 pA EX LV P4 6 RST2 SAK OPY PA 3 7 ALE P4 5 SAK 28 pa PAY EQ MB 3 1 8 29 4 4 x TNI P3 2 9 28 31 P2
237. 0O0O IAD00O 000000000 10000 00000000 000000000 1 0 0000 000000000 470 000000000 000 00000000 STCI2C5205 5206 21 5205 52060 00000000 11000 00000 805010 00000 5 12 5201 0 0 1 805000000 20 0 Mobile 13922805190 0755 82948411 0755 82944243 3 TEL 0755 82948411 82948412 0755 82944243 00000 80510000000 ww MY Mmry com 5 2 5201 0 0 1T 80510 000000 20
238. 0x00 2 x 0DO000000 Te Sss0 0000 TP 2u 53 5ns 5 25000 6 25 65536 2500 63036 8 8 3 8 0000 001020000000000 81920 655360 2560 00 20 00 0000000000000000000 000 1000000000 Te 10m0 0 0 0 00 12M0 0 10s 00000000000000 10000000000 80000 8 11000000 00000 805010 00000 5 12 5201 0 0 1 805000000 117 Menary com Mobi e 13922805190 1 I Tel 0755 82948411 Fax 0755 82944243
239. 1 P3 0PXD 0000 RO000 poverdowr TLPINIE 1 00 T4P3 5 00000 00000000 T000 powerdowg 1 34 1 1 1 2 5 12 65201 4 60 0000000 5 2 5 6052 0 0 00000000 1 20 0000000 5 12 5201 01 0 4 60 000000 0 2 5 6052 BRIGKO 1 272 BT LU a Fosc 2 256 BRT BRT 000 1200000000 AKON lt 2 12 256 BRT 0 0 00 0000 1 5 1 02 1 1000 5 0000 1 4 2 1 0 000 000 4 0000 00000 80510000000 ww MY Mmry com 5 2 5201 0 1 805101 000000 53 0 Mobile 13922805190 0755 82948411 0755 82944243 216
240. 15200 115200 57600 3840055 54 4 7 4 5 0 1 1 ik FF Flash 3fi amp 0 57600 8840011 19200 P30 P31 RS 485 RS 232 Step5 1bUN5 Download T 8k PERTERHESMCU LES Bab Download T Re Download z S T 5 5 Step1 00 1000000000000000 STC12C5201 Step2 0 0 20 00 00000000000000000000000 5 08 0 0000000000000000000 1 60 000 2 090 5 2320 00 0000 852320 000000 500000 58 2320 0 00000000000000000000000 Step4 00 400000000000000 00 RCO0O00 00 0000000 0 St ep5 50 0 0 Downl oad 00 000000000000000 000000 Step5 0 0 50 0000 0000 00 000000 JH BUH HD 1 RXAP3 0 RS 232000 TXXGMPort Pi n3 2
241. 1T 80510 000000 19 000 www Menory com 1392280519000 0 0755 82948411 24 00000006060 24 1 2 5202 0 0 00000000 0755 82944243 5 1600000 16 PI N SMUL OUTLI NE PACKAGE SCP 16 4 114 WTH PLATI NG Q ll BASE METAL 0 0 0 80510 0 0 COMMON DI MENSI ONS UNI TS OF MEASURE MI LLI METER MIN MAX 1 75 0 25 1 65 0 75 0 45 0 25 0 25 10 00 6 20 ww 5 12 5201 0 1 8051 08000600 20 0 00 00ww MU Mnory com Mbi le 13922805190 0 0 0 0755 82948411 Fax 0755 82944243 PLI P 16 1 1 1 1 Plastic Dual Inline Package PDIP 16 Dimensions in Inches and Millimeters COMMON DO MENSI ONS UN TS CF MEASURE M LLI METER b rre 1 e 2 2 MN MM 050 1 os 95 039 946 o5 19 15 8 25 6 45 2 54BSC wje u O Ol BM o e amp 76 amp 80 169 80510 0 0 ww MU Mmry com STC2C5201AD 0 1T 80510 21 www MOJ Menory com Mobile 13922805190 L1 Tel 0755 82948411 Fax 0755 82944243 PLI P 18 1 1 1 1 Plastic Dual Inline Package PDIP 18
242. 201 40 0000000000000000 0000000000000 00 7805 0 0 0 0 5 00000000 4 88 0 49 0 0000000000000000000000 5 3 4 2 25 1 7 5 000008400000 STC Internati onal 4 pog 000 00 200601 6 VLO 00 STQ2G201AD 0 0 MVO XDODDODLQ Mobile 13922805190 1 0755 82944243 Tel 0755 82948409 16 18 432Mz
243. 206 12 5206 121 5206 121 5206 0000 0000 0000 O1FFh 0200h O3FFh STC12C5201 STCI2C5201AD STCI2C5201PVM STCI2LE5201 STCI2LE5201AD STCI2LE5201PVMM 5 12 5202 STCI2C5202AD STCI2C5202PVM STCI2LE5202 STCI2LE5202AD STCI2LE5202PMM STC12C5204 STCI2C5204AD STCI2C5204PVW STCI2LE5204 STCI2LE5204AD STCI2LE5204PMM STC12C5205 STCI2C5205AD STCI2C5205PVM STCI2LE5205 STCI2LE5205AD STCI2LE5205PVMM 5 12 5206 121 2 12 5206 121 5206 pasta Flash 0000000 000000 6K bz orm ox orm ou orm em 1 1000 0000 0000 jooon ooon 2 5 6052 O0 0 O0 O0 EEPROvO O O O O 00008 n n a dg p 92d 0200 ww MU 5 12 5201 0 0 1 8050 000000 13 Menary com 139228051900 0 O Tel 0755 82948411 Fax 0755 82944243 5 3 SICDCSA609S2 EEPROM 5
244. 2H 000000 ENABLE EU 83H lt 2 ENABLE EQJ 84H ENABLE 85H ENABLE EQU 86H ENABLE 87 GNIRD D U D D U U DEBUG DATA 5 H guguuuugpuu EPROMTD C COLD DH D I UO D C OO DATA FLASH START 55 EQU 0000H 2 5201 00 00 0 0 0 00000 ORG 0000H MNN CRG 0100H MN N P1 0F0H 00000000 0 0 1 2 3 LCAL Delay MY 40 7 6 5 4 wawMLUMnry com SIC12C59201AD 1T 80510000000 109
245. 3MRESTS232RESETBH 1373 RESET 5 5 Download F R Jte FERISEDPRMCU EFE SEDIS zh unn Download F Re Download z S T ERATES SERRA DSITTEGESEHPDE BUT PE 23 8381 FH 46 213 0000000000 ase 7 s 5 T4 L3 12 L3 T Te e akov omoa 1 L dc Le ws aie aem ae ae 00790000000 o 9 98 5 12 5201 0 1 88508 JU UU UU 50 HB ud npww MI Menary com Mobile 13922805190 0755 82948411 Fax 0755 82944243 E cL m _ am amo VWE Pover dom Vdkeup ROBNIE TI PINIE TOHNIE LVOVIKE ERIGKO TIXCLKO TOOLKO 0000 0x00 ster ded cated DIT Ilii amem sfr Ox8F 0000 akw P3 40 akory P3 50 00000 aKo P3 40 aKory P3 50 0000000 WE akog 000 Toakog 0 Tako o0 0 1
246. 4000000008 15 1 M IAP APRH 0FFh 00 wwMUMnry com 5 12 5201 0 0 80510000000 107 0 Mobile 13922805190 0755 82948411 0755 82944243 0000 5700 00 EEPROM 1 0 00 000000000000000 1111 1111 D gnnu i nagapn o uugusnnuupnnu o nuaunguau 1i gunagdagnu E DpDu unugnun aupnu aupng o nu n 1i lt Data Flash EEPROM J I L1 LU LH 0 2 uS 60uS
247. 43 Wi Tel 0755 82048409 M b ww O00000 STCISP Ver 3 0A P Q 00000000000 OO0O0000000C000 0000000C0000000000000 ncl udeq eg52 h gt ncl ude4 ntri ns h gt sfr 7 sfr sfr OMD sfr a 0xE9 sfr CH OxF9 sfr QOAPOL sfr sfr 0xDN sfr sbit CR 6 7 unsi gned char sel f conmand array 4 0 22 0 33 44 0x55 def i ne Sel f _Def i ne SP Downl oad Conmand 0x22 defi ne RELOAD CANT Oxfb 18 432M 12T SMD 9600bps voi d voi d send UARI unsi gned char voi d UART I nterrupt Recei ve voi d voi d soft reset to ISP Mni tor voi d voi d del ay voi d voi d di spl ay Start voi d send PW voi d nai n voi d 1 unsi gned char i 0 serial port initial
248. 5 5 2 5 gt 201401 EQU 0B7H CH EQU OF9H EQU OE9H EQ EQ GXNO EQ GXN1 PA0O0 10000 00000 000000 0 CR GXN6 GXN7 000 01 Cup EQ CMD 7 2 006000 CMD2 PS1 1 Omi 50 01 1 50 on CPS2 51 50 0 0 0 12 0 0 1 00000072 0 1 0 0 1 1 2 1 0 0 1 0 1 4 1 1 0 6 1 1 1 8 CMD 0
249. 5 1 5 12 5 6052 N 000000 AD00 0 PM PCAN 0 0 0 0 0 EEPROM STCDLESA60S2 0 000000 4D00 0 PMA PCAD O 0 000 EEPROM 4 5 1 1 boxe NN PA 0 00 0 5 4 0 48 8000000000 1000 0 P4ASW4 1 0 Ny PA 40 000 1 00 P4 4 ALE P4 5 000 0 5 5 0 ALE P4 50 O0 AED 0 0 000 10 0 0 00O P4ASws5 1 0 50000 1 00 5 EX LVJ P4 6 0 4 6 0 4 6 1 0 0 0 0 PASWw6 10 EX LW P4 60 0 00 1 00 P4 6 5 4 7 4 7 5 5 2 Dmemwc w wme 7 5 5 T 3 z Reset vera ux aan ai Tary register 1 Pea Pa sei pa sz pa crz wow ors kooo 00x0 PCA P4 0 0 0 O ALRI 6 0 POY PWM P10 1 0 0 00 ALRI 6 1 0 Poy Pw P10 0 00 P40 SPI _P4 0D DEI AMRL 5 0 SPI P1 J 10000 5 010 sPpu S2 P4 4 0 L00000 R 4 100 ARZ 00 20 P0000 PAD O0000000000 0000 0000 0 80510000000 ww MUMenery com 5 12 5201 0 0
250. 5 5 3 3 20K 5 5 3 3 5 5 3 3 32K 5 5 3 3 5 5 3 3 5 5 3 3 40K 5 5 3 3 5 5 3 3 48K 5 5 3 3 5 5 3 3 5 5 3 3 5 5 3 3 5 5 3 3 5 5 3 3 5 5 3 3 60K 5 5 3 3 5 5 3 3 5 5 3 3 5 5 3 3 8051 20 1280 20 1280 m 32K 1280 32K 1280 m 40K 1280 40K 1280 m 48K 1280 ec om sx m 56K 1280 56K 1280 m 60K 1280 sx soo n 62K 1280 L C 1280 1280 1280 L C3 1280 D L Lc 1280 2 Bis N N N N 2 201 gt 2 B Fo m swa ESESE3EZZ uu emn oja raa ENENNEETTI Fo m sas ENENNEETTI qu pu emn C ww MU 5 12 5201 0 0 1 8051 40 LCFP44 1 8 PDI P40 LCFP44 LCFPA8 PDI P40 LCFP44 LCFPA8 PDI P40 LCFP44 LCFPA8 9 DI P40 LCFP44 LCFPA8 Di P40 LCFP44 0 Q DO P40 LCFP44 LCFP48 PDI P40 LCFP44 LCFPA8 PO P40 L PDI P40 LCFP44 LCFPA8 P44 L PD P40 LCFP44 LCFP48 P40 LCFP44 LGFP48 PD P40 LCFP44 48 40 44
251. 510 0 0 ww MU Mbi e 13922805190 0 0x03 OxOb 0x13 Oxlb 0x23 Ox2b 0x33 Ox3b 0x43 Ox4b Tel 0755 82948411 0x04 OxOc 0x14 Oxlc 0x24 Ox2c 0x34 Ox3c 0x44 0x54 Ox5c 0x64 Ox6c 0x74 7 0x84 0x94 Ox9c Oxa4 Oxac Oxb4 Oxbc Oxc4 Oxcc 0x05 OxOd 0x15 1 0x25 0x2d 0x35 0x3d 0x45 Ox4d 0x55 Ox5d 0x65 Ox6d 0x75 7 0x85 Ox8d 0x95 Ox9d 5 Oxb5 Oxbd Oxc5 Oxcd 5 0755 82944243 0 06 OxOe 0x16 1 0 26 2 0 36 0 46 4 0x56 5 0 66 0 76 7 0 86 0x96 9 Oxb6 Oxbe Oxc6 Oxce Oxde 0x07 OxOf 0x17 Ox1f 0x27 Of 0x37 Ox47 Ox4f 0x57 0x5f 0x67 Ox6f 0x77 0x7f 0x87 0x97 Ox9f Oxa7 Oxef Oxb7 Oxbf Oxc7 Oxcf Oxd7 ww STCI2C52012H 8051 D DI d Mbi le 13922805190 0 0 0 0755 82948411 0755 82944243 E Oxef Oxee Oxed Oxec Oxeb Oxe9 5 2 Oxel 0xe0 Oxde Oxdd
252. 6 di rect 3 3 80 1 3 40 direct 2 3 8 i dat a RAM 2 3 40 8 1 4 60 1 6 1 6 4 8 80 Notel Notel Notel Notel PUSH di rect 2 24 4 60 di rect 2 24 3 S 60000000000 00007 2 ALE Bus 0000 0 0 ALESY ALESOT J RWBus Speed BUS SPEEDO O O 0 L1 l RV2 RV RVO DO000 0 0000 80510000000 ww Mv Mmry com 5 12 5201 0 80510000000 38 0 00 00ww MU Mnory com Mbi e 13922805190 0755 82948411 Fax 0755 82944243
253. 948411 2 2 2 5 2 5 60 0 000000060 0 1 STCI2C5A60AL L1 L2 L2 C3 C3 C3 C3 PCA EEP 18 JD 80 80 0755 82944243 40 44 48 Do r i pnr 5 2 5 0852 STC1205A16AD 5 5 3 3 5 2 5 1652 STC12C5A20AD 5 5 3 3 5 2 5 2052 5 2 2 STCI2C5A32AD 5 12 5 3252 STCI2C9MO D 5 5 3 3 5 2 5 4052 STC12C5A48AD 5 5 3 3 5 2 5 4852 STCI2C5A52P STCI2C5A52AD 5 2 5 5252 5 2 5 5 5 3 3 5 2 5 5652 5 2 5 5 3 3 5 2 5 6052 STCI2C5A62P STCI2C5A62AD 5 2 5 6252 55 33 sca 5 35 ezcmeo s5 3s 55 33 55 33 55 33 55 33 55 53 EZE 55 33 55 33 55 33 55 33 55 33 srcucwenwi s 5 3 3 55 33 55 33 55 33 STESA 5 5 3 3 55 33 55 33 EZ 55 33 55 33 2 55 33 xac 55 33 55 33 55 33 5 5 3 3 5 5 3 3 5 5 3 3
254. CNIR OXX 0011 1100 EN VI 1 GRWI LIDLE WI 1 PS2 1 PS1 0 PS0 0 whi e 1 di spl ay keyboar d W ONR 09 00 000 VW ONR 0 10 0000 0000 0 80510000000 ww Mv Mmry com SrCI2Co201043j 1T 80510000000 96 HB d npww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 412 5 SICInternational Li nited 4059s DUDUUUu UDUUU DD 20016 VLO 5 2 5201 40 0 0 Mbile 13922805190 Fax 0755 82944243 Tel 0755 82940409 Vb ww ntu nenory COomM 516130 3 0A P D 00000000000 00000000 P0000 12 3 32768 11
255. MY ACAL Del ay gt g in r D E 10 2000 Set P12 MY A 34000001008 CL PLZSGF A 2 Set P12 Nornal 1O PUSH AC MV A 11110118 Set ADC Channel 2 ONIR 4ADC Pover Qn Speed Channel 2 ACALL Del ay 2 A DO D U U 20 5 200 5 L3 L3 L3 EJ O 10K0 0 00000 Send_AD Resul t PUSH MY A AX Qamel_2 Result AD ACALL Send Byte 200 AC PCI 0000 0000 0 80510 00000 00 www MOU Menary com 5 12 5201 0 1T 80510 0000 1 0 0 0 Diwan MU Memory com Mobi e 13922805190 0 _ 8 0755 8948411 0755 8294243 D ADC ONR 0 00 D ADC ONR 888888
256. NT EQU Baud 400 bps RELOAD CANT EQU OBOH 1 200 bps Fosc 18 432 1270 0 5 0 9 00000000000000 ww M 5 12 5201 0 8051000000 124 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 11 0592 RELOAD CANT EQU OFFH Baud 28 800 bps RELOAD CANT EQU OFEH Baud 14 400 bps RELOAD CANT EQU 0FLH Baud 9 600 bps RELOAD CANT EQU OFAH Baud 4 800 bps RELOAD CANT EQU OF4H Baud 2 400 bps RELOAD CANT EQU OE8H Baud i 200 bps 11 0592 1210 0 oleteleeleetokebeeke oe eek ek
257. O 5n L 0 AD MY o A M A hame0 5n H AUDC A QCAPOH MY FO 1 INC urter 1 MV A Counter QR SUBB A 200 200 00100 PO Interrupt_Exi t 2 wwMUMnry com 5 2 201 1T 80510 000000 152 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 MY Counter 40 OOOO LED 1S Fl ashi ng 50 1 0 15 000000 100000 I nterrupt_Exi t PSW END wwMUMnry com 5 12 5201 0 0 80501000000 15 Mobile 13922805190 0755 82948411 0755 82944243 amp 5 PMI ICGILDLULDLULU STC Internati onal f 000 2006 1 6 10 O00 1 13922805190 _ 0755 82944243
258. Oxc4 3 2 Oxc1 OxcO Oxbf Oxbe Oxbd Oxbc Oxbb Oxba Oxb9 Oxb8 Oxb7 Oxb6 Oxb5 Oxb4 Oxb3 Oxb2 Oxb1 OxbO Oxaf Oxa9 2 1 0 Ox9f 9 Ox9d Ox9c Ox9b 0x99 0x98 0x97 0x96 0x95 0x94 0x93 0x92 0x91 0x90 Oxef 0x8e 0x8d 0x8c 0x8b 0x8a 0x89 0x88 0x87 0x86 0x85 0x84 0x83 0x82 0x81 0x80 0x7f 0x7e 0x7d 0x7c 0x7b 0x7a 0x79 0x78 0x77 0x76 0x75 0x74 0x73 0x72 0x71 0x70 Ox6f Ox6d Ox6c Ox6b 0x69 0x68 0x67 0x66 0x65 0x64 0x63 0x62 0x61 0x60 Ox5f 0x5e Ox5d Ox5c 5 5 0 59 0 58 00000 805010 00000 5 12 5201 0 1T 80510000000 60 HB UB upww MX Menary com Mobi e 13922805190 0x57 Ox4f 0x47 Ox 0x37 2 0 27 Ox1f 0x17 OxOf 0x07 H 0x56 0x4e 0x46 0x36 2 0 26 0x1e 0x16 0x0e 0x06 0 55 Ox4d 0x45 Ox3d 0x35 Ox2d 0x25 0x1d 0x15 OxOd 0x05 0x54 0x44 Ox3c 0x34 2 24 14 0x04 unsi gned char xdata Test_array_tvo 512 0x00 0x08 0x10 0x18 0x20 0x28 0x30 0x38 0x40 0x48 0x50 0x58 0x60 0x68 0x70 0x78 0x80 0x88 0x90 0x98 0 OxbO Oxb8 OxcO
259. P0 0 0000000000 Data Flash EEPROM j 0000000000 Data 0000000000 Data 1 0000000 85 5 22 5 12 5206 121 5206 121 5206 5 7 10 0 1AP TR GO O O 5A D D O 5 15 0 Fe e s s s LASER 1000 Flash 5 5 5 1 5 85 SWST 0 0000 1 5 5 IAP ONR 00100000 5 85 0
260. P1 1 1 1 mur aci n3 ND Pusani PL4 ND A D P1ASF 2 1 P1 2 o o o pe 5 4 PlASF 1 Analog P17ASF P16ASF P15ASF P14ASF P13ASF P12ASF P11ASF P10ASF 0000 0000 Speci al Functi on oc rc asar oz as aso 0000000 _ L J L L LLL Lee m ma mm Po oooxo em merus mrioritytow 7m mo eac es m Pa m Po 0000000 ADHOUBHBUBEHUBBSHBHE 200 EAD 3 secrows seems seen anc zen ser ase a aso one oo 100 vovngguuggaug a m ua CH82 CF5B1 CHB0 log Channel ADC CON
261. RESLO O 0 DPS 0 00000000 DPTRO 110 00000000 050 000 00 80510 000000 5 12 5201 0 0 1T 80510000000 66 0 00 00ww MU Mnory com Mbi e 13922805190 0755 82948411 Fax 0755 82944243 2 2 E L ce epi sux jxn sa Qmra owe sa se v m ooo sar mpm ears o s 5 mr mre mjsaemreswe 10 demens mn sn Q TH pe elm anenee mo ie I a 518850 00 10 00000 0 10000 1000000000000000 00 00000 100000000000 000 70000600 12 UART 25 32 x BR UART 255 32 x BR Fosc 12 256 2 Fosc 256 BRT 0 BRTx12 1
262. RST 1 0 00 43 L3 Lr oojaa o o o Lr 000 0 0 0000H 0 00000 0 0 O 0000H oojo oa o a 610 L3 Lr L3 Lr D D 4 D 2 D DD D D DD D ood oo n ood ood oa a oojo L3 L3 C3 C3 53 E3 C3 EJ L3 L3 C3 EJ 53 C3 C3 EJ o L3 L3 C3 EJ 3 E3 C3 E3 LI L3 L3 C3 C3 E3 C3 C3 EJ mm un L3 L3 C3 C3 53 C3 C3 EJ o 8 5 12 5201 0 1 805101 000000 9 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 4 4 BELTE BUTS rp newc 22 1 P4 6R SEES i E gt 6 08 G YES C mo MERLE H
263. STCDCA60 D O O O DL U U U STCDC2014D O O 0O D U U U 8051 E Ul ww M Menor y com Update date 2008 11 22 SICDCOX60 D I II D U U D SICDCO201AD OO D U U D 1000 0000 8051 ses erp ast BL seed A sen DEBET OH SICDC01 1205201PVM 12 5201 0 5 12 5202 12 52 02 12 5202 2 2 12 52 4 12 5204 SICL2C0205 1205205PVMM 12C5205AD SICL2C5206 12C5206PVWI 12C5206 D 2 5201 12LE5201PVUW 12LE5201AD 12 5202 1241 5202 12LE5202AD 2 5204 12LE52O4AD 2 5205 5205 121 5205 0 2 5206 1 2 121 5206 0 ww MI Menor y com Update date 2008 11 22 B u npww MI Menary com Mobile 13922805190 L1 Tel 0755 82948411 Fax 0755 82944243 STCA2C5201ADi O 1T 8051 2 8 80 7 8051
264. TON 4 TRO 30 0 TROA 0 1 000000000 T0000 P3 2 3 3 1 00000000 an 1e 2002 0000000000000000000000000000000000 2 3 2 1 00000000 3 8000 5 3 0000000000000 000000000 00000 100000020000 GED 0 TD 70 To 3000000000 10000 00 0000 0000 0 80510000000 ww Mu Mnory com 5 2 5201 0 0 1 8051 000000 14
265. TR 52 1 CHS1 CHSO c3 5 c3 c3 ojojo gt 00 v v v ojo v v Bis 5215 1 0 1 2 o d c v v ainawomlmmiaIia aimims ww MU Menary com 5 2 5201 17 80511 Lr 79 pa 00000 131 HB ud npww MI Menary com Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243
266. U U U D 9 1 _ 7 5 5 L4 T3 T2 E T9 Tree cw jem mwer Gero seo sem wer wr e eo vo v oo ooo 10 00000 00 PCF 0 Pra nnn 000000 0 000000 000 10000 0 000000000000000000000000 0000 000000000000 3 2 3 4 5 I NI RXD P3 0
267. V A 4PWPU SE WDTH M ACALL del ay JUL www MOU Menary com Mobi e 13922805190 1 0 Tel 0755 82948411 Fax 0755 82944243 ID DU Count er TO JHHBBHHHHHHBHHHHHE 21 00 000 P2 5 LED LED JU O0 MO THO finerO Rel oad 2 TO MY TLO iner0 Reload 2 ACALL del ay LABHHHHHHHE P3 5 LED TH sHinerO Rel oad 1 TO MY TLO 1 1 MV A PWPUSE WDIH ACALL RL A RL A MY ACALL del ay IDU JTHUHHBHHHHHHBHHBE n D P3 5 Q LED LED 1200800800 MV TH 1 Rel oad 2 TO MV 0 Reload 2 ACALL del ay MY del ay 000 0 00O 80500 00000 5 12 5201 0 8051 JU P3 5 LED 167 Uu SHBHHHHHHE P3
268. ata 21 MY Ti nseS 400H QXFlag RET ww MU Menary com 5 2 5201 11 80511 Tel 0755 82948411 Fax 0755 82944243 clear di spl ay al Comare 1 2WX and i nval i date j udge the duty GonQ is work and is VC Gon is work and is G D work andis WC Gonis work andis Gon2is work and is Gon2is work andis 19 139280509 111 0755 82948411 0755 82944243 M i n Code uart nain SEGMENT GCTE RSEG uart nain WSI NG O start Mi n NCP MY 40 Out Fl ag Ti neS TLO 00H THO 0EEH TMD 1H 82H ACALL ni tConteta SETB TRO SJ MP Mi n END 0000 UD 80510 0 5 12 5201 0 0 1 8051 198 0 Mobile 13922805190 0 O0 0755 82948411 0755 82944243 0000000000600 10K 1K PL7 X EE 10K 1K o I 5 220
269. he WII period is by the foll ow ng equati on 1 D D D D DE E EDI 5 12 32768 Cscillator frequency 12 12 x Pre scale x 32768 12000000 Pre scale x 393216 12000000 Lo p oesns 007 1 00000 805010 00000 5 12 5201 0 1T 80510000000 95 1 0 Mobile 13922805190 0755 82948411 0755 82944243 0 00 11 0592 0 2 32768 11059200 Pre scale 393216 11059200 ro o o 2 535 o o 1 4 325 ro 1i o s 294 o 1 i 35 5585 a o o xs a o i s C 22 a i o 55 EQ u uu 0000H LJ MPI ni ti al 0060H Initial MY WD GNIR 0011110086 0000000000000 EN W 1 AR W 1 IODE W 1 52 1 51 0 50 0 M i n Loop LCAL LHisplay Loop LCAL Keyboard Loop MV WX GNR 4001111008 000 400010000 LJ MPM i n Loop ncl udeq eg52 h gt sfr VD GNIR voi d nai n Dus WI
270. i d IAP CNR 0x0 0110 0000 5 wwMUMnry com 5 12 5201 0 0 80501000000 187 MU Mnrory com Mobil e 13922805190 0755 82948411 voi d del ay voi d 1 unsigned int j 0 unsi gaed int g 0 for j 0 j lt j 9 9 0 9 lt 60000 g 9 nop nop nop nop nop voi d di spl ay MIU Start Led voi d unsi gned char i 0 for i 9 i X i 1 MUStat Led 0 00 MUIDDBEUUU del ay MUSart led 1 del ay MUSart led 0 voi d send PW voi d Ox0 CPSICPSO KE Setup PCA Ti ner 1 51 0 00 Fosc 12 is POY PWM cl ock 18432000 12 256 6000 0 00 CH 0 00 0x80 Set the initial value sane as GCAPOH 0x80 50 e6Duty Cycle 0x42 0100 0010 Setup PCA nodule O in 8B T 7 CR 1 0000 000 00 8050000000 5 12 5201 0 0 17 0755 82944243 80517 000000 188 HB d npww MI Menary com Mobile 13922805190 O0 0755 82948411 Fax 0755 82944243 5 5 25
271. kkk KKK KKK KK kk kkk kkk Ti ne0 interrupt ths systemcrystalloid is 22 1184ME the ti ne to get the TineO interrupr is 2 5n the whole duty is 2 5n 6 15n incl udi ng reverse int tO TLO 00H PUSH ACC PUSH PSW 8010000000 ww MU Menery com 5 12 5201 0 0 1 8051000000 1 5 Mobile 13922805190 0 O0 0755 82948411 Fax 0755 82944243 MV PSW OSH PSW S uart sub SEGMENT GITE RSEG uart sub UBI NG O initial the di spl ay RAM data if want to di spl ay other then you nay add other data to thi s RAM Con amp ConGDat aO ConGDst a1 ConGDat a2 Goni ConiDstaO CoriDstal ConiDBt a2 Gon2 Corna2DataO ConGDst a1 ConQDat a2 ni a it wll display 11111111 MOV ConQGDst a0 44 MO Con Dat a1 49 MOV Cnt a2 2 M ConiDst a0 92 MYV m Dtal 24H MO ConiDst a2 49H MOV CoraLst a0 00H MOV Cora Dat a1 40H MOV Cora Dat a2 40H RET
272. ray 9 0x00 0x02 0x04 0x06 0x08 Ox0 0x0OG 0x0E 0x10 defi ne REL AD CANT Oxfb 18 432 5 12T SMD 9600bps voi d serial_port_initial voi d send_UART unsi gned char voi d UART Interrupt _Recei ve voi d voi d del ay voi d voi d di spl ay MIU Start Led voi d voi d nai n voi d 1 unsi gned char i 0 serial port initial di spl ay MJ Start Led send UART 0x34 send UART 0xa7 1 0 1 lt 9 1 send 1 whi e 1 8 ww Mu Mmry com STCO2C5201AD O0 1T 80510 000000 71 void serial port initial SaN E 0x50 0101 0000 8 1 B B U H1 DU UU TMD 0 2 110011 0001 0000 10 80 0000000 TH TL1 TRI 1 0000 1 ES 2 L void serial port initial SaN 0x50 0101 0000 88 000000000000 BRT ANT AUR xl 70 12 1 12 6 5250 12 51885 Baud Fosc 256 RELOAD CANT 32 12 1270 0 11 Baud 256 32 100 11 10 000000000 11 51885 1 0 0 10 0000000000000000600 00000 10 000000000000000000000
273. sc 256 m0OOCOOCO 3000000000 5 11Mzs15 5M DD D D 14K 19K 0256000 7 000 00000 80501000000 5 2 5201 0 0 1 8050000000 138 0 00 00ww MU Mnory com Mbi le 13922805190 0 0 0 0755 82948411 Fax 0755 82944243 0000 089 7 6 5 4 3 2 1 0 CF CR CCF1 CCFO ODAH CCAPML ODBH 6 5 4 3 2 1 0 ECCFn ECOMn CAPPn CAPNn MATn TOGn PWMn 00 10 3
274. serial port one initial 00 1000 serial port tvo initial 2 display MU Start Led send UART tvo 0x55 00 2000000000000000 send UART tvo Oxaa 2 5 wwwMI Menary com 5 12 5201 0 0 1 8050000000 78 LIE www MCU Menar y com Mobile 13922805190 Tel 0755 82948411 Fax 0755 82944243 0 array poi nt 512 array poi nt p 1 send UMRT tvo Test array one array poi nt send _ 3 4 11000000000000600 send UART one 0xa7 for array poi nt 20 array poi nt 512 array poi nt p 1 send UMRT one Test array one array poi nt send PW 6kHz PW 5096duty 1 voi d serial port one initial SaN 050 0101 0000 80000000000000 TMD 0x21 0011 0001 p0 000 10 800000000 THL RELOD AN 00000 100000 TL1 RELOD OANT L 1 BRT RELOD ANT BRIR 1 51885 1 EXTRAM 1 ENABLE EXTRAM AKR OxlL 0 12 1 12 UART_MDx6 BRIR S2SMD BRTx12 EXTRAM S1BRS 1 ES EA 1 FH UU voi d serial port tvo initial sfr SON 0 9 SM 5 5 8 8 5 5204 0 94 11 525 525 525 2
275. test array 0 5 sum test array 0 FDHIU address lt 400H 0 0 EXTRAMO 0 0 0000000000000 0 address gt 400H 0 000000000000 1 00 l 400H FFFFH y EXIRAMunnn AUR 0x02 0000 0010 0 0 1 0000 RAMO 000000000 EXIRAM 1 0 Mobile 13922805190 0 O0 0755 82948411 5 12 5 60520 000000 RAMI O O D STC Internati onal Li n ted Ht OD000 000 HU 206106 VLO 5 2 Mobile 13922805190 Fax 0755 82944243 Tel 0755 82948409 _ O00000 STCISP Ver 3
276. wr_Dom 1 0 0 Dow 0000000 0 02 00000000000 Dow DU U U U U U C D D 800000 DD UU ww MU Memry com 5 12 5201 0 0 IT 80510000000 173 Mhi 13922805190 Te 0755 8948411 Fax 0755 82944243 nop STC120 0 0 nop _ nop 0 voi d INI Systemi ni t voi d ITO L5 Jg ut 2 0000 10000 s 1 gt 0000 10000 1 1 I a x Bg voi d Routi ne voi d interrupt O if Is Power Down ls Power 3 Is Power Down Is Power Down Led 0 1000 000000600 vhi e Power Down V keup Pi n NT0 9 000 Is Pover Down Led NTO L 1000 000000600 el se Not Power Down Led I NTO O whi e Power Down V keup Pi n I NTO O 0000 Not Pover Down Led I NTO 1

Download Pdf Manuals

image

Related Search

Related Contents

    BROTHER WP-230B/335B OWNER'S MANUAL                

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.