Home

8051 OCD ICE User Manual

image

Contents

1. 4 OCD VCC OCD_SDA OCD_SCL GND Keil 8051 IDE software Keil IDE dScope Debugger REKER HAR T A Keil KERE lt rm Keil Keil Elektronik Gmbh and Keil Software Inc HJF REZ gt mr Keil 8051 IDE software 728051 f A tA HY Ge BE Eek Pie FF nH I e Megawin 8051 OCD ICE RICE sisi This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved ZY MEGAWIN Megawin 8051 OCD ICE MAKE YOU WIN User Manual v2 21 zy Zo NO ICE SRBISSIS Re Tee Amtek AT Piel ICE erret USB ICE REESE ore OCD ICE Interface ICE Adapter vec O MEGAWIN less than 30cm VCC SDA GND 8051 ICE Adapter c EAE 6 5 Hf o OCD ICE This document information is the intellectual property of Megawin Technology Co Ltd 4 Megawin Technology Co Ltd 2007 All right reserved
2. ET gt ZU SAAR k test fision3 C MmpMestNMain C BEE B Eile Edit View Project Debug Flash Feripherals Tools SVCS Window Help pug t E r1 v d H 8 iO 9 PY gt 15 E iM uU EN OF RST Project Workspace x 036 void main void d Cut Register Value 037 1 Copy pum fideclare local variables unsigned char L varl L varZ L vari 10 Ox QD unsigned int L vard L var rl CQ unsigned char data Y varl y var ffim xda ele p d ch r s d RE Show Disassembly at OxFFOOO2FE ei Ox his line is to be executed Set Program Counter I 0x00 Je 046 L variz x5 rb Ox L vards x3B d Right clicking d Run to Cursor line m F b He 051 E Go To Line 052 _varl O0x3e Note this statement may Insert R eT Se sp xf 153 Lada dh Insert Remove Breakpoin dptr Ox0000 054 i e FC x Zef 055 _varl 0x l I x a E Clear complete Code Coverage Info t psw Cx OC 57 aul onset eee Me ntlining Advanced Ey pr Wr Wain E Disasse Jerem Bal ER P s Wet his Ra fe p RB at FR EXTR FUSE S85163 Enable Disable Breakpoint 9 JER te LX EEA EE EV a EBREA HETRE RA DT TS Aenean kif test ision3 C tmp test Main C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ug Gil 25 A Gg v d HM e HOPP 15 E fa A Project Workspace E m emm RIEN 5 Tm FILED blinking Copy
3. 1SP Fer ISP ISP ISP dScope Debugger fxr aaa AE Reset RRE ATE ISP ISP code Keil TBH ETH SES gt HWBS BARALA IESITE ISP es Lt EWES E LR SEES PRIHA PILA Megawin 8051 ICP Programmer 7KzrIHTE RULE 21 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved Yh MEGAWIN Megawin 8051 OCD ICE iy MAKE YOU WIN User Manual v2 21 BUE RFEIBRRERSRURSESU JU Error Target DLL has been cancelled Debugger aborted 1 ICE 2 3 HEE ICE MCU EUH EPERRA VE T P OK if test Hision3 Cz tmp test Main C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help e X Ab A Pee JJA esw amp damp wg mm Project Workspace EE Target test J E Source
4. d 0x00 d OxFF i 0x00 i 0xFF x 0x0000 x 0xFFFF c 0x0000 c 0xFFFF kz test ision3 Disassembly L efx File Edit View Project Debug Flash Peripherals Tools SVCS Window Help B X B a 03 amp de ET gm ere miu Eee 2 31 void main void Disassembly E i esr Lo varl L vers L vari s local variables Window Ine L vari L sars rra char zdata X wari vaer2 local variables in zdata memory spa Register Window LED blinking x 02EF 120357 LCALL LED blinking 2 0357 40 L varl 0z584 oi psc Es pz 75085 MOV xl 8 s0x5 A 41 L varz xb5B Ox 2F5 750955 MOV 0z09 0x5B 42 L var3 x5C Ox 2F8 750 AS5C MOV x A Z20x5C 43 L var xi1234 Ox 2FB 750B12 Moy Ox0B 0z12 Ox O02ZFE 75034 MOWY Ox0C 0z34 44 L IESUS Ej ries Regs ihe ru rte T ac B Symbols a X iLnad C tmp test test WS 1 G varl Wo 1 G varz o __ 00 DF EO 6B 71 0x000008 B5 73 Dx000010 pc Memory of Window x 00018 D2 Window 1D Ox000020 F6 EA Ox000026 CD 19 39 CF FF 1B Oz000030 DY AB D4 65 FFE DB ASM ASSIGN BreakDisable D O 000036 SF GF 18 B9 AS 7E Command 4 d i Memory 1 4 Memory 2 4 Memory Feady Mesawin On Chip Debug Driver tl O 00000000 sec RAW 2
5. 5 1 Fa dScope Debugger I FEBGE BRE RIA Sibi H Jam gt aa gee P dScope s A Keil IDE MCU AFB gt rue lee TE Ra e K test ision3 C tmp Mestimain C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help dScope Button x eus A Gg d M we arm TE PU Nm Ms e Target test di Start Step Debug Session Project Workspace n0 ARR ARR R RRR RRR ARERR RR RRR RR RRR ERE J Target test 002 main C Ebo DERE EG DRE EOUEEROEEE RET EE IEEE ICD OO I OE O IOpDOQO OOOOOGOEOOUE EE E E e n J Source Group 4 STARTUP A51 finclude REG_MPCS2h316 h xi 5 Main C n _ Delay 1T A5l d include delay h Click dScope button to start debugging J Include Files O08 009 define LED Y P12 010 define LED G P13 fureen 11 define LED R Pl4 Red 012 Zdefine LED O P15 Orange O13 014 void show MCI runivnid 015 void LED Y on void O16 void LED Y off void O17 void LED G on void 018 void LED G offivoid 019 void LED R onivoid 020 void LED R offivoid 021 void LED Q onivoid 022 void LED O affivoid 23 24 void test SFR vnid void reset SFR void Ld B 8 Ge r Br REG_MPC825516 H l Delay H status Creating binary file status Writing 3 bytes at address Ox00000000
6. Regs SAER E e eani AUT k test JEision3 File Edit View Project Debug Flash Ferpherals Tools SVCS Window Help asa E d H Qs amp e E E m ge F7 gm HOt Pe o gt EA Ed T El Project Workspace x Target test Fa C tmpitestiMain C Sele 3 Source Group 031 void main void Fi STARTUP A51 03261 c4 Mam C 33 char L varl L var2 L var3 local variables Delay 1T 451 034 int L vard L var5 kil 035 sa e 036 char xdata X varl M var2 local variables in xdata memory space Delay H 038 LED blinking The statement to be executed FF 040 L_varl 0x5 41 L_varz 0x5b IER L varse s 143 L vard x1234 44 L varo xob78 Es 145 45 L warl 0x38 Nate this statement may be optimized out 47 L varls xc O46 049 K_varl OxAl O50 4 varZ xAZz 051 052 r vari x98 053 G varz xABCD Click to return to 054 EE Register Window 4 uc ee ali Files Mns Rte Mean This document information is the intellectual property of Megawin Technology Co Ltd 13 Megawin Technology Co Ltd 2007 All right reserved 4 Y MEGAWIN Megawin 8051 OCD ICE MAKE YOU WIN User Manual v2 21 5 2 3 v Be PRIER Eg FY DATE asc PU HE Ae 8 HJ InsertRemove Breakpoint
7. 8051 CPU Keil Keil Run to Cursor H4 1 Line1 for i20 i lt 16 i Line2 G array1 i i 0x60 Line3 84 2 Line1 for i20 i lt 16 i G array1 i i 0x60 Line2 Line3 6 5 E HPR ARTE E a dScope Debugger 5E PA PAT EHC ase SA EK RK BREN PUA TEI ERINE AES ES GRA Pr ERARI gt dScope IAP fier ESA gt dScope Debugger IAP ABER IAA PDAS reer ae E
8. Nr t a4 Serial Window 2 Ox02FE 750034 MOV Ox0C 0x34 A DUE dad este dik Files 44 L_var5 0z5078 C UX C UX or code type _ m Serial Window 3 ree Symbols Toolbox Mask BE Main C E Disasse andes Load C E L varl Ox OD ql Include File Dependencies TAR TT 07000000 E LO 3 0x00 gt Ux000008 T var x 0x000010 DC E7 39 L war4 OxQ000 0x000018 D2 ED AF L varo Ox0000 0000020 Fe 4F 30 X varl Cb OC 0x000028 CD 19 39 x uus Oxi Dx000030 D7 AB D4 ASM ASSIGN BreakDisable x 00038 SF BF 18 c Locals A Watch 1 Watch 3 Memory 1 Memory 2 Memory Window Megawin On Chip Debug Driver tl O 00000000 sec RAW This document information is the intellectual property of Megawin Technology Co Ltd 18 Megawin Technology Co Ltd 2007 All right reserved Y MEGAWIN Megawin 8051 OCD ICE MAKE YOU WIN User Manual v2 21 61 HEREJE WI r2SESERSIREG MPC82G516 INC REG MPC82G516 H E3 amp Y PRA AS REPRO 28 SFRs AE aJJ EHE OOCD ICERFR bas 85 8 HIREEEHEUETTT n AE Sets 2222 p Keil 8051 IDERE H SKAN gt KE gt SEH Keil INCLUDE REG MPC82G516 INC include lt REG _MPC82G5716 H gt T 5 LATTA is RE AE Bete EH BA BEE ELE Megawin 8051 tt rel Rats XRAM eXpanded RAM gt ft ce RU SUSCI S ee EUCH ERE HG D Hr Bie MPC82G5
9. ile Edit View Project Debug Flash Peripherals Tools aves Window Help v Status Bar gm vj a ds EU Em File Toolbar RS BE Build Toolbar iE Project Debug Toolbar Regie E E Project Window g 31 void maini void Di bl sl Qutput Window Bor visio i y 32a char L warl Lb var2 lL vari lt loea variables IndoOWw TI2 p ILU ade int L ward L ovara ff 13 E r4 ie Disassembly Window 36 char xdata X warl var local variables in xdatad me I2 Fal Watch amp Call Stack Window e Memory Window 39 ai a ie CSC Ox 2EF 120357 LCALL LED blinking C 0357 i 40 L varl 0z5A84 ec Ox 02F 2 750854 Mov 0x08 40x5 i 41 L var2 x5B EJ n Symbol Window C 0x02F5 750958 MOV 0x09 4 x5B oor c 0 ore e Ox0A 0x5C PE Uz EUA UE psw 5 aac Us f 43 L vardsHdxi1234 ES Serial Window 2 Ox O2FB 750B12 MOV Ox0B 0x12 Toolbox 0g0ZFE 7o0 34 MOWY x C sz x34 L var5s x5hb7B8 lt C 0z0301 ro50056 MOWY 0z0D 0z56 Ang File Dependencies gt ES Disasse E T filo SUR sel ies TUS SEC TG lE test ision3 Disassembly EIE e x asl a fe amp d PT m ere mu Project Workspace x woid main void Disassembly Register Value E Window Ress phar L werl b ware kL were ee locas wariables inte o L vari L varg a
10. L varlz x5 rl nv L var2 x5B I2 Right clicking IE mn Ox5C select All 13 EK D 567 2 show Disassembly at UxFFOOUZPFE r4 Ox QU lc cet Program Counter I2 Ox UU L varlsUx32 Vote this statement ma L vay lex r6 0x00 A varl xAl Eun to Cursor line A var4Zs xAz i varl 0x98 Go To Line var2 xABCD 4l Insert Remove Breakpoint m OxOO00 PC ef L Var 1 6 va rl all Enable Disable Breakpoimt Fra a X varl char Yt va rar Clear complete Code Coverage Info far iz0 1 15 214 2 G arravi 1 12140x60 Wes Outlining Advanced lr P Fz GEI Main C e LDisasse This document information is the intellectual property of Megawin Technology Co Ltd 14 Megawin Technology Co Ltd 2007 All right reserved MAKE YOU WIN Y MEGAWIN Uy Megawin 8051 OCD ICE User Manual v2 21 5 2 4 EEUTV tees eA TE t Ze ey TF ae BE ae Be A ets BE es De Ee Bef Peripherals Jee Ae aoe BESS DL AT ATR eI es AI RA K test JEision3 C tmptesthMain C Eile Edit View Project Debug Flash Tools SVCS Window Help gf Reset CPU la ei dl Project Workspace x Lie Ports Register Value Timer Regs Serial Fort AD Converter P E Keypad Interrupt T 0x00 SP r4 Ox I2 O00 ib O00 Others Sys Target e Select any peripheral you fe r want to check or edit 045 4B L_varl 0x38 dptr Cox DICUICI 047 L
11. YN MEGAWIN Megawin 8051 OCD ICE TO User Manual v2 21 MAKE YOU WIN zLu 3 BA Leo OCD ICE lt Bi ZAR ERE Js AE 3 1 ZCKICE Ast ime T ICE eas E EEE USB ERDAS o AN RATA SFE TL 3 2 Megawin amp Keil 8051 IDE ICE REZZR USB i gt 2855 A fT E k Database Installen Setup exe Megawin JATE Keil 8051 IDE Keil 8051 IDE uVision2 S uVision3 Database Installer Browse 87 Keil HZH H Sk HER gt Z Keil 8051 IDE FFA RAY ZEEE C KEIL 4 ER 1 P Install SHHT Megawin m FE EUH Keil Database Installer This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved 4 Y MEGAWIN Megawin 8051 OCD ICE F User Manual v2 21 MAKE YOU WIN 4 Keil IDERE Keil IDE dScope Debugger Keil IDE fit eezvE Bic SCRE uVision Target Options for Target J NN k test JEision3 CztmpMestkmain C B File Edit View Project Debug Flash Petiphera
12. 12 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved MAKE YOU WIN User Manual v2 21 sY MEGAWIN Megawin 8051 OCD ICE CAST 5 2 1 7 Reset 477 Run Halt H24 gt Step 477 23477 Run to Cursor EE HAST gt ik BR Ree EAT ese AER E gt EA DUE GUI ht test ision3 Disassembly G File Edit View Project Debug Flash Peripherals Tools SVCS Window Help le X Egg As ao A ey mA n de F7 Em 0 i E x h void mainivoid Fesister a eResm Reset Run Halt Step declare local variables E i rr unsigned char Lowgrl L var L ur OOL 40 unsigned int LL wvard L waro E 41 unsigned char sdatH X varl varz sein zdstd space IZ 0x00 42 unsigned char i r3 0x00 43 r4 OQ 44 ff LEU hlinbkimgri I2 Ox ICH 28 4 ib OO 46 L varl uxssA r7 Oxi C 47 Ler U2 SE Ox00 C 0x02F 750955 Moy Ox09 0255 3 3 48 L var3 l xb5C b 0x00 C 0x02F5 750A5C MOV Ox0A 0x5 sp xSt 49 L vwar4 Ux1234 dptr Ox 0000 C 0x02F8 750512 Moy Ox0B 0x12 PC Ox Zef C Ox 2FB zZ50034 Moy Ox0C 0234 psw OO s L_var5i s0x5670 aL a lt gt BE 8 ar Sr Main C Disasse 5 2 2 JR gete kh Source Level Ay Rg Files
13. AUXR 1 for external RAM for i20 i lt 512 i G array2 i 0xA5 fill ext RAM with OxA5 TERESEERE ERA PASS PAISES EAS ARS EMC G array1 G array2 jES amp PRAHISIBS f HE gt ERAM HARA FR S EE ERU De He ais IH Lone epus x x WARNING Lo EDATA SPACE MEMORY OVERLAP FROM 0000H TO D1FFH 6 3_ C51 AEREE EAE L__var1 0x38 eS AES F M 3BTRABES L vari20xC7 gt SETA Ss Re ASSEN PROUD ie EEG BREBHA TS Re E NR 0014 4 A EF unsigned char L var1 L_var1 0x38 Note this statement may be optimized out by the C51 compiler L var1 0xC7 PDA ERENETIBUBESERSR SAT Bloat aay L varii er 0x38 ifj TREES DB SLE SEL E gt 338 TRAE BOA SEHR BEALS UME SES x TSHIRTS EST SARS ORAL OSU HE LEBUPHI gt CLIFF GE HEBD ERR Er HEURES GUT T AG SESE ATE EERE T MCU PURRA SERIE ABO E HIT UROL JORDI ERN RUA CRAY desk linking ERROR L107 ADDRESS SPACE OVERFLOW SPACE DATA SEGMENT DT VP DISPLAYMNODE YP LENGTH 0001H 20 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved Y MEGAWIN Megawin 8051 OCD ICE User Manual v2 21 z MAKE YOU WIN 6 4 for HRA RSA as BAH
14. Group STARTUP A51 x Main Delay IT 51 E amp x Include Files l REG MPCS2G516 H l Delay H 036 void main void 032 Ef 038 declare local variables 38 uns1zned char L varl L varZ L var 040 unsigned int L vard L var fil O41 unsigned char xdata varl K yaiz ffin xdata space 042 unsigned char i O43 144 LED blinking gt 045 046 L varlz x3 A 047 L O46 O44 050 Error Target DLL has been cancelled 051 Debugger aborted O52 053 54 055 056 057 O58 y be optimized out r varlz xaz r varz xABCTD L varias varl Output Window Merawin On Chip Debug Driver L 50 C RAW This document information is the intellectual property of Megawin Technology Co Ltd 22 Megawin Technology Co Ltd 2007 All right reserved Y MEGAWIN Megawin 8051 OCD ICE OA User Manual v2 21 MAKE YOU WIN 6 7 ICE fi FS USB ICE piara YUBHSDBDEUSOCEEE IRA ABI gt Coe HJETBESETTbRSEHJas BEAR IE ek ICE AE ete SU Fae fT gt Mle 6 7 1 WARE as El FE Whe 6 7 2 6 7 1 BAZE USB ICE Adapter Um USB Port z 7 MEGAWIN 8051 ICE Adapter E 6 7 2 A ZEREEHAT e EHE RIA USB Hg USE Port ICE Adapter 4 7 MEGAWIN 8051 ICE Adapter This document information is the intelle
15. status Writing 12 bytes at address Ox00000006 otal 3 dress DOzx000002c9 status Writing 16 bytes at address x nmg2ps3 status Writing 16 bytes at addre S Status HEX ta BIN conversion was successful test 0 Error s 0 wWarning s J E Build 4 Command FindinFiles 1 d hlegawin On Chip Debug Driver L 8 C40 RAW This document information is the intellectual property of Megawin Technology Co Ltd 11 Megawin Technology Co Ltd 2007 All right reserved fy Megawin 8051 OCD ICE DO MEGA WIN j User Manual v2 21 MAKE YOU WIN 5 2 IAEA ERRIRE MA Bl VUA gt f seSTrz Register mif amp SctHas Disassembly mi amp Ez set Watch nies keachaia Memory iin a gt amp ERHam JA M ET CE dsl Ba A amp UP ER ON H BUBSET TESI ROTRT gt UH ACEITE SR AB SP DTPR PC PSW Peas ai ES JES V TULIE H BUBJTE OO BEL o Uses MESI AE ISP Ba EE A ER S ea ETT TEE TED EL BUB TES D AHSEE ETUR ET B ES ELK e TUE LER A HHBPSEECE Locals JAR gt 3s liable Er El yet un NR xe I n Ael REB LS EEL main Watch 1 Watch 2 gt Aiia P F22 688 VERA Ae BU list Hill Et x amp iinet LUN data idata xdata code
16. 16 jp ge ccm ES 1024 0x0000 OxO3FF gt ripis AIA Stace eke BRA RO bene PCE EE ee PAULL AR PE I TUA ln 7738 RISE EE SCRE ACHE FERE gt afl ERAM ET teas AUXR bit 1 7651918 Sia HFA PES C51 AEE ET Be Se fl ege EA ee XRAM RAZR RSS EREA gt ee Fa Mea R RAMA FERRE Ec a Eo BE T BK Reset HI ARIEF 0 C51 Bst BERS REHE T PREIS R ERU CE Jick xdata pdata xdata 64K fic ss RSS Ee gt pdata RREME 256 fuU T DRLE gt to ae ee ea Pise Ed o xdata pdata Mi e ES RAR o HEEN E Eg Peripherals XRAM Bi Display xdata from on chip XRAM s Display xdata from external RAMZGA NE XRAM kz test ision3 C tmp test Main C BEE B File Edit View Project Debug Flash Tools SVCS Window Help xX 3 Bo e Ef Reset CPU bh HM m amp dm gm E E p m n Interrupt g Project Workspace x Le Forts z Fegister Value Timer as certa Port ata G_arrayl 16 at 0x60 in data space IE A D Converter data f arrayZ 16 at Ox S0 in idata space varl Eevpad Interrupt ps CHER AREER EPAPER EER ER ERE EERE RR EEE Display xdata from on chip XEAM variables Display xdata from external RAM _varl Lovar2 L_ovar3 Target Settings vard L var5 TT data A varl K war2 in space v unsig
17. E F r r z MAKE YOU WIN User Manual V2 21 YY MEGAWIN Megawin 8051 OCD ICE Megawin 8051 OCD ICE E FH at HH SCA This document information is the intellectual property of Megawin Technology Co Ltd 1 Megawin Technology Co Ltd 2007 All right reserved 4 Y MEGAWIN Megawin 8051 OCD ICE Wu 4 MAKE YOU WIN User Manual v2 21 3 cl etc 3 3 PR Ee TE oe eee ccececceecccensccenseeceeeeeersecsneveneeseeeeenseeesareveatessuteeeneeeeaneessnessirevenseess 4 3 TR 5 3 1 ZICEAI RREN occ cccecceccceccecceeccecceeccecceceeeccecceeccecseeceeceescceccessseeceecueeeeecesseeseeeseeseeeneess 5 3 2 Megawin Keil 8051 IDE i 5 4 Keil1IDE RII IRI rRmItrReRteretetretetretetritetve titre titre rire arnan 6 41 Device T 2 7 Ao UDa 8 2 T CO 8 DER 9 4o ales T ee OO 10 5 BHWBERERB occ eec ec cecceccececceccecceceeceececceeeeceeceeaeeaecuecueceeaeceaueceeaeceseeaeeaeeueseeseeaeeneans 11 SUME ne fo 10 0 Dobos 11 SNL rou EE 12 5 2 1 zg Reset sufr Runyf i Halt Z7 StepY 3f 7 i f T Run to Cursor 13 5 2 2 Source Level 9 13 526 14 5 2 4 R i Eae aE 15 eh tees ee stents A a A E 16 SUAM 0 17 B
18. F m Char xdata A vuHrl s varz local variables in zdata memory space i Ox0D C language Source Statement r4 QU Mapped to assembly code r5 Ox by C compiler Er 0x00 L_vwarl U 5A E E 750654 MOV 0x05 0Xx54 i 41 L varz xbB Ox 0D E Ds 750955 MOW 0x09 0x5B t L wvar3 x5t b 0x00 75DA5C MOV Ox0A 05 Sp LIE L_war4 021234 dptr Ox OC us Dx02FB 750512 MOW OxOB 0x1l2 PC DxD2ef C 0x02FE 750C34 MoV OxO0C 0x34 psw 0x00 ae L vars x5678 C language Source Statement arene 750D56 MOV 0x0D 0x56 Mapped to assembly code 0x 0304 75D0E78 MOV Ox0E 0x78 by C compiler i5 L varl U x38 Note this statement may be optimized out C 0x0307 750838 MOV 0x08 0238 aum a tr ain C amp Disasse This document information is the intellectual property of Megawin Technology Co Ltd 16 Megawin Technology Co Ltd 2007 All right reserved Yh MEGAWIN Megawin 8051 OCD ICE iy MAKE YOU WIN User Manual v2 21 5 2 6 inte E d RMA AmE LY DASS FB ZEE m RERO S TREE E BIER WA test JEision3 Disassembly BELIEFS Eile Edit View Projet Debug Flash Peripherals Tools SVCS Window Help E X 3g ar Status Bar i m ia 4 dh qm ily File Toolbar ret BU Build Toolbar P Project wigrkspace v Debug Toolbar 31 void main void A Register 32 wr Local variables SE T aot eter Lo vorl wuBr
19. S and half P4 Three 16 bit Timers 3 Programmable clock output 5 Four level priority interrupt system 9 Two UAETSs 10 Eight keypad interrupt inputs 113 One time enabled Watch dog Timer 12 SPI Serial Feripheral Interface 13 PCA Programmable Counter Array with 6 channels 145 10 bit ADC with 8 multiplexed analog inputs 153 ISP In System Programming amp ICP In Cireut Programming 16 TAP tIn Application Programming memory with programmable size 17 OCD interface for on chip debugging 3 4 3 b T AYA Defaults 4 2 Target 3EH 3 amp Use on chip ROM D Use on chip XRAM Opthions for Target Target test Device Output Listing C51 A51 BL51 Locate BL51 Misc Debug Utilities llegawin MPCS2GS16 Enabled Xtal MHz 12 I Use On chip ROM Ox0 OxFFFF Memory Model E small variables in DATA Code Rom Size Large 54K program I Use On chip XRAM Ox Ox3FF2 Operating system None m Off chip Code memory Off chip Xdata memory Start Size Eprom 1 Fam 1 Eprom 2 Eam 2 Eprom 3 Eam 3 Code Banking Start End Banks Bank Area AYA Defaults This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved Y MEGAWIN Megawin 8051 OCD ICE F User Manual v2 21 z MAKE YOU WIN 4 3 Output ZEH A Debug Inform
20. Z A E E a a Aaa a a a aea E era ia 18 6 19 6 1 PIT 3c 1 MM 19 6 2 VJj amp gXRAM JS JL EB Be SH Less mm mmn m Inm nrm mnm mnm mI mr rrm mre mrerre tre ree tie tret treten res rer is 19 6 3 eese nemen nm nmn mmn nn mnn mnmnhIR nne nrn treten rre treni 20 6 4 fe pil 59 RI 2C 0 21 6 5 5 FHERSEIERITDEBESSEYERERSK LLL nnne nrnenre trennt serrer inns 21 6 6 nn 22 MA EEAO E EE N 23 24 2a TRUSER This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved MEGAWIN Megawin 8051 OCD ICE F User Manual v2 21 E r z MAKE YOU WIN EIR BERI OCD On Chip Debug Hefi MCU ARIER E 4i VLE pid EEREN MERA EIRIS Keil 8051 IDE USB HERA GSE EE ERAT c CHEM BUDSA T SRSE Peas SUL Gs Ce m Ei Megawin 8051 OCD ICE 8051 RA RRAK N E HRA JIA bE LE o TJETRFHAEREHSUT OCD On Chip Debug Sify gt taf ICE 8091 ICE ie gt
21. ation 3 amp amp p53E3EUD ZH Ze T Hed ze ra ICE OMF Object Module Formati aE A5 BL51 Locate BL51 Mise Debug Utilities Mame of Executable fest amp Creste Executable test Enabled Debug Information Iv Browse Information v Create HEX File HEX Format IHEX 80 T Create Library test LIE Create Batch File After Make Beep When Complete Start Debugging i Run User Program 1 ltest BAT Browse Eun User Program 2 Browse Defaults 44 C51 SEf Level 0 Constant folding FI LBREBRz SES EG PERIGEE 6 3 AT o FE c LETRAS cee ptions for Target Target test Device Target Output Listing 451 BL51 Locate BL51 Misc Debug Utilities Freprocessor Symbols Define Undefine Disable code optimization Code Optimization i ing while debugging Warnings Warninglevel 2 D Level 0 Constant folding Emphasi 0 Constant folding Bits to round for float compare 3 id mphasis TT TEE M d 2 m Nec EIE iv Interrupt vectors at address 00000 ii SEN TRE Keep variables in order a p D meres elimination Enable ANSI integer promotion rules Loop rotation Include Extended Index Access Optimizing mi Paths Lo Reuse Common Entry Cod E Mise Controls ropes OPTIMIZE SPEEDY BROWSE DEBUG OBJECTEXTEND CODE contre string EHS Defaults This document information is the intellectua
22. ctual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved 23 Megawin 8051 OCD ICE User Manual v2 21 YD J 3 MEGAWIN TA Make YOU WIN E ELSK v1 00 The first release for beta site test 2007 08 15 v1 01 Add notes when installation fails Section 3 2 2007 08 24 v1 02 Change to manually specify the installation path of the Keil software Section 3 2 2007 08 27 Add the notification of default installation path of Keil 8051 IDE software Section 3 2 2007 08 29 2007 10 08 2007 10 08 2007 10 08 2009 02 27 288 Update the Keil IDE Setup Section 4 4 v2 Update the Special Notes Section 6 The formal released version 1 Improve the defect of breakpoint setting 2007 12 26 2 Fix the bug of wrong erasing range when downloading the application code 1 Update the data base for all series of MCU in Driver Installer 2 Removed the function of detecting the ICE adapter when install Driver Change the folder name of Driver Install to Database install 2009 04 01 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved 24
23. l property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved z ZY MEGAWIN Megawin 8051 OCD ICE r MAKE YOU WIN User Manual v2 21 4 5 Debug J8 s3 2 Megawin On Chip Debug Driver Options for Target Target test Device Target Output Listing C51 A51 BL51 Locate BL51 Misc Utilities Use zumulator Settings Limit Speed to Real Time Select Megawin Load Application at Startup Eun to maing Initialization File OR TB Infineon XC800 ULINK Driver ZI JADI Monitor Driver siiors Ll aeslon eats awin On Chip Debug Driver Breakpoints Toolbox Breakpoints v Toolbox v Watchpoints amp PA v Watchpoints v Memory Display v Memory Display GPU bier Fara meter Driver DLL Fara meter S805 LULL 3805 DLL Dialog DLL Parameter Dialox DLL Parameter DPS1 DLL p52 MegawinOCD DL BA122 Wa DW WH Zjsze Load Application at Startup kz Cache Options Options for Target Target test Device Target Output Listing C51 A51 BL51 Locate BL51 Misc Debus Utilities C Use Simulator Settings Use Megawin On Chip Debug Driver Limit Speed to Real Time Enabled v Load Application at Startup v Run to maint Load Application at Startug v Run to maint Initialization File Initialization File Restore Debug Tarset Setup Restore Debug Ses
24. ls Tools SVCS Window Help zi zl x Click right 2 acHO Ang g am Q9 amp Bz de I m S EX gv Target Jam Project Workspace x O larcet T E 7e TORONTO IUIS EE lude REG MPCS2B50516 h 1 lude delawv h 5 Open Mest M51 J nch 3 Pas ine LED Y P12 Yellow am net ine LED P13 Green j Build target F7 ine LED R Pl4 Red x 1 ine LED 0 P15 Orange show MCU run vnid3 LED Y_onfvoid LED Y offivoid New Group LED 8 on void LED G offivoid dh Manage Components EDS NET Dog LED DO on void3 LED 0 off void3 laclude Dependencies test SFRECvoid 025 void reset SPRivoi1d Pi zl 3 Build 4 Command FindinFiles 1 d Set Froject options Merawin On Chip Debug Driver Esp RAW This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved ZY MEGAWIN Megawin 8051 OCD ICE F User Manual v2 21 MAKE YOU WIN 4 1 Device 33EJH Megawin Device Database Ls 705 Options for Target Target test A5 BL51 Locate BL51 Mise Debug Utilities Vendor Megawin IOCEENIM Device Database Device MPC82G516 Use Extended Linker LE51 instead of BL51 Toolset Col ie li Operating speed up to Z4MBHz EA MPCSZGSIS 2 DAE bytes Flash program memory 3 2060 bytes internal RAM 3 1024 bytes on chip eXpanded RAM CCEAMD y Four full O ports PO P PP
25. ned char i Select the data source of xdata c5 44 LED blinking On chip XRAM or external RAM O45 046 L_varl 0x5 047 L varze x3D 046 L varss b o ali 4 d z 25 E uxp DODDD OO OO DF ED EB 71 77 DD x ux gdgg08 AB 1A 3C D AE Fa 4C 38 Dx000010 De Ew 39 Ba F7 FY CB 14 A000001 D2 ED AP EF FF 1D 33 Cr k k Wo Ll G wari We l1 G var z Ox000020 FY 4F 32 DE BE EA EA 7B E 0z000028 CD 1B 39 CF FF IB F9 49 gt x nnn030 D7 BB D4 65 7F DB 75 AY w E Locals 4 Watch 1 A Watch 2 4 Call St E FIHI Memory 1 A Memory 2 A Merc Mesawin On Chip Debug Driver t1 Q 00000000 see L 54 C41 RAW This document information is the intellectual property of Megawin Technology Co Ltd 19 Megawin Technology Co Ltd 2007 All right reserved ZY MEGAWIN Megawin 8051 OCD ICE F User Manual v2 21 z MAKE YOU WIN BEL STEALS SE AT FH PE XRAM DU OBEROI gt fiel SEAS ASCE Display xdata from on chip XRAM G_array1 7 gt ean Muss Display xdata from external RAM G_array2 T ESE EE FH HERE A SEE DAL unsigned char xdata G array1 512 at 0x0000 in xdata space will use on chip XRAM unsigned char xdata G array2 512 at Ox0000 in xdata space will use ext RAM unsigned int i AUXR amp 0xFD clear AUXR 1 for on chip XRAM for i20 i lt 512 i G array1 i 0x5A fill XRAM with Ox5A AUXR 0x02 set
26. oid3 Ginbel vaciahies e 027 unsigned char 5 varl zlobal variables 10 0x00 O28 unsigned int G var2 rl xD 029 D xDD nap Leeebeeebeeoeeeberepbeecoecopbeeobecebeeceobeoebeocebeeoeobeebeopbeebeeeopbeoobeeobecoeeoeopbeoebeeeoer r3 Ox 031 void main void r4 Ox 132 E 033 char L varl L v r2Z L var3 local variables r5 0x00 034 int L vard L vhr5 i rb xD 035 I7 OQ 35 char xdata X varl X vari2 flocal variables in xdata memory space ig 037 a B5n38 LED hlinkinkO 8 OUI b 0x00 040 L_varl 0x54 sp 0x13 041 L_varZ 0x5B dptr Ox 0000 n42 L warss wsp PC Oxti2ef 43 L vard xl234 IEE L varos xJbTS O45 nage L xarlz vER l Wate this statement max he oantimized ont on 4 Wa Mr Br Bl Maint psw DOC CoSstip tests test Wo 1 G varl G var M rnm D0x000008 i E ne 25 dd ds Ozx000010 DC EF 39 BS F6 OF C9 14 Press F2 key to Ox000018 D2 ED AF EF FA 1D 31 C7 enter global variable Ox000020 F5 4F 30 DE BE EA AA SB name Ozx0000268 CD 19 39 CF FY 1B F9 49 E DY AB D4 65 YE DB YY HB HIHI Locals lj watch 1 M Watel Y xtype Fz to edit gt ASM ASSIGN BreakDisahle Output Window Cl ion l Watches BE CF CH 12 E PIH Memory 1 Memory 2 4 Memory This document information is the intellectual property of Megawin Technology Co Ltd 17 Megawin Technology Co Ltd 2007 All right reserved ZY MEGAWIN Mega
27. sion Settings w Breakpoints lw Toolbox lw Watchpotnts v Memory I w Memory Display CPU DLL Driver DLL Parameter 205 1 DLL 805 1 DLL Dialog DLL Fara meter Dialog DLL Farameter DP51 DLL p52 MegawinOCD DL pBA122 MESE Hy 383 D efaults This document information is the intellectual property of Megawin Technology Co Ltd 9 Megawin Technology Co Ltd 2007 All right reserved Megawin 8051 OCD ICE User Manual v2 21 Load Application at Startup Ze Z 4 5 A7 Y MEGAWIN DO Ld 6 Utilities 4 SEJA Update Target before Debugging E ZiBRERH gt ARE Moma Use Target Driver for Flash Programming BL51 Locate BL51 Misc Debug Utilities m Disabled pdate Target before Debugging FE uVision2 Ye Aig GEA Don t care Options for Target Target test Device Target Output Listing Col ol Configure Flash Menu Command i Use Target Driver for Flash Programming Silicon Laboratories CSUSIFxxx nVisiol Y Settings Ph Init File ee Use External Tool for Flash Frogzramminz Command B Arguments This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved 10 ZY MEGAWIN Megawin 8051 OCD ICE MAKE YOU WIN User Manual v2 21 5 Bub vs MOE RS DUBNA De Sa AT DAB aa Vision
28. varls xLT PC f DxD2ef 045 049 X varl xAl Put dus 050 X varZ 0xA2 NE1 4 B i MRR RET Mane Interrupt I O Ports REAR RRR RE RRR RRR ER EE ark wars ari fflocal as tlk war2 Hilocal vardab xdata memory EF Timer Counter 4 TMOD Ix 00 TRON x 00 3 These peripherals ave been TOMOD 0x wo TOCON Ox o0 ft opened for checking RCAP2H 0x 00 RCAP2L Oy 00 THO Ox 00 TLO Ox 00 THI Ox DO TLI Ox 00 TH2 Ox 0O TL2 Ox 00 iLaad C tmp test test UWS 1 8 varl WS 1 G var z gt ASM ASSIGN BreakDisahle Output Window Watches D0x000000 U0 OO DF EU 6B 71 77 FD Dx000008 BB 14 3C D AE 73 5C 38 Dx000010 De Ef 39 BS Fe SE C9 4 04000018 D2 ED AF EF FA 1D 31 C 04000020 Fo 4F 30 DE BE EA AA 5B x nd 0ng28 CD 19 39 CF FY 1B F9 49 A ee DY AB D4 65 FE DB 77 B B Cr fr 19 Locals A Watch 1 4 Watc Memory 1 Memory 2 anes Mezawin On Chip Debug Driver t1 0 00000000 seo L40 0 37 RAW 15 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved YY MEGAWIN Megawin 8051 OCD ICE iy MAKE YOU WIN User Manual v2 21 5 2 5 AE EET RHINE SAIS TAA EU Odd ri EAB eile Doce Eee Rs View LRE Bami Ph tiii Disassembly Window Biata iHe AT PIT ke test HE ision3 K efx
29. win 8051 OCD ICE MAKE YOU WIN User Manual v2 21 e Tease WDE See View LRE aso le AE PERSE Memory Window 7s Teall esc Jag 37H VAR 1 ten data itat d 0x00 d OxFF 2 fmidata zU gs i 0x00 i 0xFF 3 fii xdata i88 x 0x0000 x 0xFFFF 4 in code tiit c 0x0000 c 0xFFFF EHHE A DAA ES RS n at ters CIN E gt AERE Ae bau ps xdata WA Aa DS 6 2 Ej k test ision3 Disassembly t e x amp File Edit Project Debug Flash Peripherals Tools SVCS Window Help lS X T v Status Bar t B s e File Toolbar zig 2 oe Ret dl Build Toolbar E zs Project Workspace Debug Toolbar 31 void main void A Registey gee y J Fe T aoe ther L warl L var L warst e lacal warishleses A zi Proyect Window 34 int L vari Lovari oe i fa Output Window ace Hj Source Browser 36 char xdata X varl A vere local variables in gdata memory Spa I 37 13 m 38 LED hblinking r4 E Disassembly Window 39 I2 Age Watch amp Call Stack Window P 120357 LCALL LED blinking 0357 6 E ET Menory Window n o2r2 75089A MOV 0x08 0x5A Sys 41 L varz l xb5bB 0x0 750955 Mov xl 9 20x5B AD L varg 0x5C The available commands are OxO02F6 HASC MOV Ox04 025C d 0x00 d 0xFF for data t e Sumus i anciany 43 L Wep4 Dx1234 l Ma i 0x00 i OxFF for idata type dptr 4 Serial Window 1 Ox02FB 7506 MOV x B z xi2
30. z L wdrss loreal waridghles m cy Project Mn Jav WWE 3E varti L varn ae iE Qutput Window ac p l8 Source Browser 36 char Kdata X vell varz selocal wariables in xdsta memory spa I aps 13 J8 LED hlinking 4 MISES Disassembly Window 39 T al To Ea Watch amp Call Stack Window 0x0 2EF 120357 LCALL LED hlinking C 0357 ih Wind 40 L_varl 0x5A S Memory Window x02F2 75085A MOV 0x08 0x5A i 41 L varz xb5B x zFb5 75094955 Moy Uxl g z x5B 12 L war3s lx56s x zFB8 7 SUASC Moy Oz04 025C sp symbol Window 43 L var4 0x1234 dptr 4 Serial Window l Ox02FB 750B12 MOV Dx B s 0x12 BC 1 4 Serial Window 2 Ox02FE 750C34 MOV Ox C 40x34 Fil E Su SET Serial Window 3 ps dE Symbols Pes Toolbox a Mask P Main C mY Disasse x Watch 4 E Window lt Include File Der Ox 0D4C 60 7D BF C3 9A CF FS sl FL va 0x00 Ox U4C68 OF F3 6F 33 D9 7B 7D OF 0x00 Ox004C70 FE OD CD EB 81 6F 6C BE 0x0000 Dx004078 SA OB E4 DF FE BA B7 61 Ox0000 Ox004C80 61 C4 FE 3E Di BB B8 FS Ox00 0x004C88 FF FC D7 3C 5C 6D 1F F6 O00 Ox004C90 E9 E6 6F SC F6 BO EF BB Output window ASM ASSIGN BreakDisahble gt Ox004C96 F6 53 SF BC BY DD OC 35 d 4 Locals i Watch 1 i Watch Memory 1 4 Memory 2 A Memory 1 ZUGE TERUEL ESI Watch 1 zc 2 71 E ARF P F2 88 A CAT Project Workspace x 24 void test SFR void Regit Value void reset_SFRiyv

Download Pdf Manuals

image

Related Search

Related Contents

Owner`s Manual  Approx appC02  プレスリリース(PDF約399KB)  Caldera Ceraclass Smart ZW24-2 AE Cámara Estanca  Arrow CHD1020 Installation Guide  Traulsen ALT126WUT-FHS Freezer User Manual  Sommaire  User Guide  

Copyright © All rights reserved.
Failed to retrieve file