Home
ATT7025/7027 Development Tool`s User Manual
Contents
1. Hilrendtech ATT77025 7027 Development Tool s User Manual ATT7025 7027 Development Tool s User Manual www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Pagel Hilrendtech ATT77025 7027 Development Tool s User Manual Version Update Remark 2008 01 17 V2 0 2008 01 21 Note No responsibility is assumed by HI TREND Technology for its use nor for any infringements of patents or other rights of third parties that may result from its use Specifications subject to change without notice No license is granted by implication or otherwise under any patent or patent rights of HI TREND Technology Trademarks and registered trademarks are the property of their respective owners Tel 021 51035886 Fax 021 50277833 Email sales hitrendtech com Web http www hitrendtech com www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page2 HiTrendtech SPAN SN Nn Fb Ww RD me p p p ak wn mM ATT77025 7027 Development Tool s User Manual Todo CO SALE eee nee E nen ene E eee ee one eee 4 IE UI OS sas eee so vce oe paca yao cine oeuvre E cen ves gt vouesanuecewuaei E 4 Software and Related documentations cc ccc ccccssssssssseeeeeccceeeeeeeeecaaaaasssseeeeeeeceeeeeeeeeeaaaaaaaseeses 4 MV CT VOW SEE E EE E E EE E E EEE EE EE E E IEEE 4 USB 5erial Port D4 ee ne ee ee ee eed 5 Software Installation ridende eners Er Neree ENEE NENNE EENE ENEE E
2. Settings gt Emulator The check box Insert debugging code decides whether to insert some codes for debugging to hex file Settings Tools window E Emulator Working Director MF Compiler Tools Communication al Ee Driver Manager Environment Options a Emulator Setting v Insert debugging code 5 You can download your program to target board directly by using memory gt Download Memory Break Program flash File File EtWorkDirtTest_AlhOutputiTest_All hex Download file according to postis support Intel HEX BIN and Intel GMF form Options Wass erase before programming ProgramVverity Verifying and Encrypting Message Open downloaded file to data buffersucceedt www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 19 Hilrendtech 11 ATT77025 7027 Development Tool s User Manual Debugging Suggestions 1 There are some restrictions when user is debugging the program 1 2 3 4 5 6 7 12 Serial Port 0 and Time 2 can t be configured User can t disable EA and Serial Port O interrupt Watch Dog needs to be disabled The system must be 5 5296MHz or 11 0592MHz The SFR window in MedWinV3 can t display written protect registers correctly User can get real values through indirect ways 32K flash can only be configured as code flash and user can
3. Serial driver a Connect the USB Serial Port device to PC there will be a Found New Hardware dialog on the screen please select No not this time Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows Will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software Yes this time only O Yes now and ever time connect a device Click Hest to continue This wizard helps you install software for Manley TPAP2 Protocol Controller If pour hardware came with an installation CD lt or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Click Next to continue www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page6 Hilrendtech ATT77025 7027 Development Tool s User Manual Found New Hardware Wizard Please choose your search and installation options 9 Search for the best driver in these locations Use the check boses below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM Include this location in the search D T PRP a Don t search will c
4. t program from 7COOH to 8000H When user is debugging the program MCU always execute at high frequency mode Two breakpoints can t be set adjacently If user has finished executing memory gt download gt Program Verify please don t close the Program flash window at once You should remove USB Serial Port at first otherwise the program download before will be erased C code debugging suggestions It is not recommended to set the breakpoint at the end of subroutine or interrupt routine 13 ASM debugging suggestions Program execution may stop on wrong address when the following situations happen at the same time 1 User sets breakpoints at the end of subroutine or interrupt routine 2 The instruction under break address is the entrance address of a function 3 The PC is under the break address and user execute RUN The picture below is a example 13 14 15A 16 17 16 19 2U eal fe 2354 ed RE 26 SE IHC IHC b FH CCE INC IHC IHC HOP HOP HOP HOF HOF HOF HOP HOP AJHP COL Te fie Wo fee foe www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 20
5. 27 Development Tool s User Manual Please select ChipICE ATT702X Emulator Driver and click the button OR According to the crystal on target board user should select the clock of development tool Settings Tools Window Emulator Working Director all Compiler Tools Communication el He Driver Manager Environment fh options Emulator Setting v Insert debugging code If all the operations are correct the status will be shown at the bottom of Med WinV3 Emulator ATTFO2 CJ Monitor USB f l 5 5296MHz If there are some problems the status shown at the bottom of MedWinV3 will like this Emulator 47T702 Monitor USE f l 5 5296MHz www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 10 Hilrendtech ATT77025 7027 Development Tool s User Manual 2 Add C compiler to MedWinV3 Settings gt Compiler Tools Window Settings Tools fy Emulator Working Director Compiler Tools Communication Driver Manager Environment Options If user select Keil company s compiler you should set path to folder that Keil was installed before You must ensure that you have installed Keil software in your PC Compiler Tools Translate settings O Default Assemble and linker Path User defined Tools Cikeincs1 O Executable files and path user defined C com
6. EEE EEEN 5 ATT702x driver and C COMMINICE aos 55 ccc soecgnacersescaconacaeanioeceearosteanraoenanasocenaeetoreen as asas i a Te oa 8 Creating a new OC geese Severe crane evaecetrtieeednccbersucrseeredrabersverdeenedsnobersverdierederobersveraiersdorebereds 12 OWS AUN A VT EL ES EET ENE 15 Building and Loading your program ccccceccccccccccceeseeseccececeaasseeecceeeesaaeeeeeeceeessauaeseeeeeeeeaas 18 Debugging Suggestions 52 501025 dsa cer asdna sens deena etna verssduanena sue soresdueanasduasevesduesonasdnaseresdueneuestuaveresduenvuesdees 20 C code debugging suggestions ccc ceeeeeeeeesssccececceeeeeeeeeeeaeeeeeseeeeeeeeeeeeeeeeeeaeeaaaseeeesseseeeeeeeeeeeeeeeaaaas 20 ASM debugging suggestions i coressvesetescweceteraranediraneue ieraranetavanane ieneaneditvamnacelieatraneltvainaneluabanedioaiaaeberebebes 20 www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page3 Hilrendtech ATT77025 7027 Development Tool s User Manual 1 Introduction MedWin is an Integrated Development Environment that combines project management source code editing and program debugging in one single powerful environment It provides a most convenient way for debugging the ATT702X products This user manual explains the steps needed to use Med Win 2 Features E Two breakpoints Communication through USB Serial Port device E Connect an extern power supply to ATT702X 3 Software and Related document
7. V1 0 Page 17 Hilrendtech 4 Click finish and you will see the new file in Files Manager ATT77025 7027 Development Tool s User Manual Files Manager eu Project First 5 H Source Files MYTTTT C J Header Files _ Library Files J Output Files First m51 First hex 5 If the status at the bottom of MedWinV3 is the same as the picture below user can debug the file he or she created Emulator ATTFO2 Monitor USB 5 5296MHz 10 Building and Loading your program 1 When you have created a functional program you can build it Use the Project gt Rebuild all the first time you build the project An output window will show the build process and status When the build is finished the output window will display lt Compiler gt C51 COMPILATION COMPLETE 0 WARNING S 0 ERROR S 3 The program in debugging mode will be like the picture below O1 define _MYTTT_C_ g include regSl1 h U3 Hinclude myttt h O4 O45 U6 unsigned char a b C 07 mairt j 18 he EH f IE a 1 10 Do 1 se l ii www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 18 Hilrendtech ATT77025 7027 Development Tool s User Manual 4 If program is in debugging mode the development tools inserts some debugging codes to corresponding hex files in output files If user has finished debugging the program and want to create original hex file please use
8. ations MedWinV3 software ATT702X driver USB to Serial driver Medwin_manual pdf ATT702x development tool s user manual downloaded from the ATT702x web site at www hitrendtech com 4 Overview AC DC TET x USB Serial Port Power Adaptor device www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page4 HiTrenatech K ATT77025 7027 Development Tool s User Manual 5 USB Serial Port Device The red line represents pin 1 all the pins are configured as the chart below 3 GND RST 4 6 ER Undefined The switch should be turned to right in other words the narrower side 6 Software Installation The file MedwinV3 software and related documentations rar includes 3 folders described as below 1 the installation file of MedWinV3 2 ATT702x Driver 3 USB Serial Driver lt HiTrendtech Copyright January 25 20082008 gt REV 1 0 Page 5 W Hilrendtech ATT77025 7027 Development Tool s User Manual To install the MedWinV3 software for ATT702x 1 Double click setup exe in MedWinV3 folder The setup program guides you through installation process Follow the setup instructions on the screen On completion of the setup program execution the MedWinV3 0 program icons are created in the selected folder 2 Please copy all the files in ATT702X Driver folder to the selected folder in process one the folder user select to install MedWin V3 3 To install USB
9. create assembler program enter a new name into field of file name The name should not contain TY e and The system default extension ofa assembler file is ASM Following rules are recommended a Use A or as first character of a name b Dontuse a too long name N www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 15 Hilrendtech 3 Ifa C language file will be created the wizard will guide user as below ATT77025 7027 Development Tool s User Manual New file wizard Timerd INT1 Timert Serial Generation Initinitialization Low priority _ interrupt routing High priority Register bank Trigger Low level New file wizard 3 Options Include SFR define file Choose SFR files REGS1H vw Make head file Head file L stTbIo H C MATH H C ETYPE H C STRING H C STDLIB H LIABSACC H CI INTRINS H LISTDARG H C SETIMP H www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 16 Hilrendtech ATT77025 7027 Development Tool s User Manual New file wizard 4 Declare Generate maing elete Modify New file wizard 5 Preview Fdefine MYTTTT oc _ Finclude regs1 A Finclude mm tt h File MY TTT Th egl Fifndef MYTTTT H Fdefine MYTTTT_H_ DRE a Sa TE SS I a IE TG aI SEE SONS S SS EK ol www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt RE
10. head files that have been created before in this dialog ATT77025 7027 Development Tool s User Manual If you don t want to add any file please click Next New Project Step5 source Files Header Files Library Files Output Files Language Comp Import Move Down 6 Click Finish MedWinV3 creates a project file New Project Step6 Project description Compiler Tool Format Inter OMF Project Name first Project Path F WwvorkDirifirst Project Alias first Project Include Path Proejct Describe Source Files Header Files Library Files Output Files FovvorkDinfirstiDebugiirst m51 FWorkDirtirstOutputitirst hex www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV 1 0 Page 14 Hilrendtech ATT77025 7027 Development Tool s User Manual 9 Creating a new file 1 Project gt New File Project Debug Memory Breakpoi New Project AIk F 1 1 Open Project Import Project Export project Close Project Mew File Alk F12 Odd File Import File Make Ctrl F5 Build Ctrl F pi Translate Ctrlt F is Ctrl F8 Build and Download Chri F9 Properties 2 Type the file name in the file name field and choose the file type you want to create New file wizard 1 File name ry ttt Filetype Assemble language OG language Description The steps to create a new assembler file of wizard are as follows 1 Select
11. hoose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware Found New Hardware Wizard Please wait while the wizard installs the software i Hardware Installation y Manley TPRP2 Protocal Controller The software you are installing for this hardware Manley TPAP2 Protocol Controller has not passed Windows Logo testing to verify its compatibility with Windows SP Tell me why this testing is important Continuing pour installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anpway www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page7 Hilrendtech ATT77025 7027 Development Tool s User Manual Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F Manley TPARP2 Protocal Controller Click Finish to close the wizard c If you install this driver at the first time maybe the operation system will remind you to install the driver again 7 ATT702x driver and C compiler 1 Add ATT702x driver to MedWinV3 Setting
12. piler Assembler Pe Linker SSS INC path fr LIB path Co apply www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page ll Hilrendtech ATT77025 7027 Development Tool s User Manual 8 Creating a new project 1 Launch MedWinV3 2 Project gt New Project please select driver ChipICE ATT702x Emulator Driver New Project Step1 _ Device Driver rey Select Driver Cancel Project Select compiler output format according to specified compilerin project wizad OUBROF format AR C8051 www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page 12 Hilrenatech 3 In the project Name field type the project name In the location field type or browse to the folder you ATT77025 7027 Development Tool s User Manual created New Project Step3 Projec Description 4 Recommended Optimizations setting is lt default gt New Project Step4 Target Asm Output Code Compile ctrl Include path Define Undefine Misc MOAREGS Optimizations Embedded assemble L sre Command line www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV 1 0 Page 13 Hilrendtech 5 You can add the source files library files or
13. s gt Driver Manager Driver Manager Insight ME 52HU Family Emulator 80051 Simlator Driver ChipiCE JEW SE2Z01 Emulator Driver ChiplCe JEW 9E8825 Emulator Driver CHIpICE JEY79E834 Emulator Driver ChipiCE JEW SEBS9 Emulator Driver ChiplCE JEYW 79E2T8 Emulator Driver Remove ChiplCeE JEVVW6e1 308 Emulator Driver www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page8 Hilrendtech ATT77025 7027 Development Tool s User Manual Driver Manager Insight ME 52HU Family Emulator 80051 Simlator Driver Chipi CE JEVWFSYE2Z01 Emulator Driver ChiplCE JEW79E875 Emulator Driver ChipleE JEYW79E834 Emulator Driver ChiplCE JEW79E659 Emulator Driver ChiplCE JEYWY79E2T8 Emulator Driver ChiplCE JEW681 308 Emulator Driver eR Add Driver Look in G re errr rte rrr rere File name Driver Manager Insight ME 52HU Family Emulator 200751 Simlator Driver ChipiGE JEVWFSE2Z01 Emulator Driver ChiplCe JEY79E828 Emulator Driver ChiplCe JEY79E834 Emulator Driver ChiplCE JEVWFSEBS9S Emulator Driver ChiplCe JEYY79E2T8S Emulator Driver Remove g ChiplCE JEVWRe1 308 Emulator Driver oo ChiplCE ATT702K Emulator Driver Copyright c 2000 2007 Manley Electronics Co Ltd m oD ATTTOZdl Ver 1 00 00 oo ATTTO2X lib Ver 3 00 00 www hitrendtech com lt HiTrendtech Copyright January 25 20082008 gt REV1 0 Page9 Hilrendtech ATT77025 70
Download Pdf Manuals
Related Search
Related Contents
Sennheiser IE 8i MVP Series User`s Manual - Pdfstream.manualsonline.com contexte JBX COM / JBX PWR L0 0-`L Mode d`emploi détecteur de tension 2 - Brother M6635 : Computer Cool School User's Manual for Solar Charger Copyright © All rights reserved.
Failed to retrieve file