Home

AP16102 - Infineon

image

Contents

1. LEDs OFF r n char message3 n r LEDS BLINKING r n volatile int R5232 wait 2 bit blinking ON char select USER CODE END Bleus TSP Buna A Command A Find in Fes ii Simulation L 98 C 17 Pus pong Roots boss PURI Application Note 53 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Double click MAIN C and insert the function input char input void char in do printf question while ASCO_RIC_IR ASCO_RIC_IR 0 in char ASCO_RBUF while in 1 amp amp in 2 amp amp in 3 return 1n KZ XC164CM pVision3 C XC164CM MAIN C _ J amp xl Elle Edit View Project Debug Flash Peripherals Tools SVCS Window Help SS el x ATI IERCH Wee ee CH a ae am ee ll sera if EX K Target ML g 3 Target 1 312 USER CODE BEGIN Main 1 5 3 Dave Files 313 char input void 8 Start V2 A66 314 31 MAIN C 315 char in IO C do 4 ASCO C 318 printf question satte 319 while ASCO RIC IR ee 320 ASCO RIC IR 0 321 in char ASCO RBUF 322 Iuwhile 1n1 1 SE An ET amp amp in 3 323 return in 324 325 USER CODE END 326 327 void main void 3280 329 ff USER CODE BEGIN Main 2 330 331 ff USER CODE END 332 333 MAIN vlInit 334 335 USER CODE BEGIN Main 4 ERIC EH MAIN C T3T TA Bund Command A Find M Files j D Simulation L 3
2. 15 14 13 12 11 10 9 8 7 6 PLL PLL WRI CTRL PLLMUL PLLIDIV PLLCON 0x7814 frrr fosc PLLMUL 1 PLLDIV 1 PLLODIV 1 fppp 8 24 1 1 1 4 1 20 MHz Raspa Core Faches PLLCON 0x7814 FLLCTRL PLL Input On FLLIDIh PLLCON 0x781 d FLLYE 00 150 MHz FLLMUL 24 TAL OSC 8 000000 MHz FLLODIY 4 MM CLOCK CPU 20 000000 MHz PLLWRI Clock Generation Control Application Note 19 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Global Settings do not change configuration 3 DAVE elx Eile View Options Add Ins Windows 2 on Dem fos DAvE XC164CM Release v0 3 Global Interrupt Enable V Enable global interrupt IEN XC164CM new project Application Note 20 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book CPUCONI VECSEG Vector Segment Pointer click check Start from internal program memory DAVE elx Eile View Options Add Ins Windows gta DEB fus DAvE XC164CM Release v0 3 Project Settings IESSE Scaling factor of Vector Table VECSC WDT Configuration WDTCTL DISWDT executable until End of Init Space between two vectors is 2 words v C DISWDT ENWDT always executable Segmentation Control Interruptibility of Switch Context INTSCXT C Switch context is not interruptible Disable segmentation SGTDIS Switch context is interruptible Branch Prediction Unit Control
3. 20 000 fvco MHz 100 000 C164CM new project Application Note 18 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book See also Core Register PLLCON View Register Explorer 8 DAVE Register Explorer ks x 9 Eile View Options Add Ins Windows 2 e x do Deb Ao EREE M CORE CP CPU Comex Pointer Register CPUCONT CPU Control Register PLLCON PLL Control Register EN CPUCON CPU Control Rester 2 I3 CSP CPU Code Segment Point Re E OPPO CPU Dota Page Pointer 0 R DPPI CPU Data Page Pointer 1 R DPF CPU Data Page Pointer 2 R EN OPP CPU Dala Page Pointer 3 R EN IDCHIP idertiher m e En IDMANUF Identifier Dit No 15 14 13 12 11 10 9 8 IDMEM identifier IDMEM2 Identifier E IDPROG identifier EN MOC CPU Mulsply Onade Control F Address OxF 100 Reset Value Ox 80 Actual Value Ox 814 PI MDH CPU Multiply Divide Registe Access E MOL CPU Multiply Divide Register ONES Constant Value 1 s Register Value 0 1 1 1 0 0 EN PSW CPU Program Status Word Fl RSTCFG Reset Conligurston Reg E SYSSTAT System Status Register VECSEG Vector Segment Pointer _ Dit No 7 6 5 4 3 2 1 0 ZEROS Constant Value 0 s Regis Pxiemal Bus Controller EBC 7 General Purpose Tamers EGETT2 E Interrupt Controller INT E Peripheral Event Controller PEC z Ports 10 Access amp Chonged Registers XCIBACS fnew project PLLCON PLL Control Register ESFR F1D0H E8H
4. DAvE XC164CM Release v0 3 D ae Compare Unit 2 CAPCOM2 x Ip ea Port Lock Control PL C The contents of the port register is changed by the CAPCOM2 unit E The contents of the port register is not changed by the CAPCOM unit Stagger Control Disable staggered mode STAG C164CM new project Application Note 31 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Timer 7 8 Timer 7 Start Control click V Start T7 after initialization T7R Timer 7 8 Interrupt Control click Y Enable T7 interrupt IE Timer 7 8 Timer 7 Input Selection T71 Prescaler choose Module Clock 1024 Timer 7 8 Timer 7 Registers Timer 7 reload register input OXB3B5 ENTER for 1 second DAVE elx Eile View Options Add Ins Windows Dau i A OB S DAvE XC164CM Release v0 3 amp Capture Compare Unit 2 CAPCOM2 KE ek Timer Mode T M Timer Input Selection T71 en Ta made Prescaler Module Clock 1024 Resolution 51 200 us v C Counter mode Timer Start Control Timer Registers 7 Start T after initialization T7R 999 9872000 Timer reload 8385 I T7R Overflow ms 999 9872000 register CC2_T7REL 0xB3B5 Interrupt Control Timer edie 0xB3B5 v Enable T interrupt IE CC T Timer 8 Mode T8M Timer 8 Input Selection T l ET no ma Prescaler Module Clock 8 Resolution 0 400 ys DN Counter mode Timer 6 Start Control Timer 8 Registers Star
5. You need a RS 232 Serial Cable 1 1 9 pin Sub D plug 9 pin Sub D connector For further information please refer to the XC164CM Board Manual V0 3 April 2004 For further information please refer to the XC164CM Board Manual V0 9 Aus 2005 For further information please refer to the XC164CM Board Manual V1 0 Jan 2006 For further information please refer to the XC164CM Board Manual V2 0 Jan 2007 Note Since Board Manual V2 0 the Easy Kit combines the powerful Debug Support a serial communication and Power Supply over one USB cable serial cable DC power supply 9 voc 400 mA Application Note 10 V2 0 2006 07 ec AP16102 In fi neon XC164CM Cookery Book Layout Overview Das O108 DIO Di12 0 0 0 0 0 0 SE ae 0040004040 3 Dios DIO DIGS DI Eos OCDS1 ajo o o o o n o zz o Config 1 4 Infineon XC164CM P PIBRTEERI ATASI EP Application Note 11 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book DIP switch 102 Jumper Settings Standard Internal Start DiQ DiD8 D110 D112 DANA N eeeesecee Be D105 DIO D103 0111 EREEBEEE OCDS1 SOCCER Config Infineon XC164CM U R152L le M1 19 v osxle lelelolsfofofe CHI Standard Internal Start Switch 102 ITRST9 5 9 4 Startup configuration Standard start from internal Flash Application Note 12 V2 0 2006 07 ore AP16102 Infineon XC164CM Cookery B
6. b Starterkit File name MT4 exe b Software Save as type Application amily For other devices use latest MemTool V4 XC166 DSP library is a DSP function library is C callable hand Y Software b TriCore Development Tools and Software b DAVE Digital Application virtual Engineer Application Note 71 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Execute file MT4 exe or higher version Infineon Memtool 4 InstallShield Wizard BE x Welcome to the InstallShield Wizard for Infineon Memtool 4 The Install hield Yizard will install Infineon Mermtoal 4 on your computer To continue click Next lt Back Cancel Application Note 72 V2 0 2006 07 ur AP16102 l n fi n e0 n XC164CM Cookery Book And choose Destination Location default directory C Program Files Infineon Memtool4 E ery B lex Fools Table Wir Help bersetzer Acrobat Type a question for help e x 1 PTTL AAA FR 4B BJ 9 C BZOER HES 100 Read B 44 Normal 12pt v Times New Roman x12 eh J sail E ARE CR HEI se LL era Infineon Memtool 4 InstallShield Wizard 7 Choose Destination Location Select folder where setup will install files Installshiela 5 L 2 A j CAFE ato Le j Restart Alpna List Restart Numbered List Update Fields Insert Figu Application Note 73 V2 0 2006 07 AP16102 In fi n eon XC164CM Cookery
7. A166 L166 Locate L166 Misc Debug Utilities De Dav C Use Simulator Settings Use ULINK Driver forXC1 6x D Settings 11 F LimitSpeedto Real Time E E Fc iv Load Application at Startup iv Run to main V Load Application at Startup Run to main Initialization File Initialization File sz CY n Restore Debug Session Settings Restore Debug Session Settings V Breakpoints V Toolbox M Watchpoints amp PA V Memory Display V Breakpoints V Toolbox M Watchpoints V Memory Display CPU DLL Parameter Driver DLL Parameter 3166 DLL Femonvz 5166 DLL Femonvz Dialog DLL Parameter Dialog DLL Parameter pi 67 DLL Le GACM H 67 DLL exi GACM Cancel Defaults Help 0 9 MAIN C asco c B CCC E MANH y A d i H O a j nio I 4 41 of Build Find in Files D D Ready Simulation L 319 C 1 RAW OK Application Note 95 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Now you can debug with OCDS via KEIL ULINK JTAG Interface or click En Debug Start Stop Debug Session le10k pVision2 SEN pVision2 Eelere TER EHE Wew Broject Dag Fl cpr Tools SES Wegen Hep File Edit View Project Debug Flash SH Tools SVCS Window Help ja TITI EEE TC aaja EIER A B Q SEM Sto le CITESI AR Target loue ebe 2 Elle Edit View Project Debug Flash Peripherals Tools SVCS Window Help lelx BcH
8. Add Sel gt gt Save As Read Edit Tool Disconnect Ready for Memtool Command FLASH OTP Memory Device 54 KByte on chip Program FLASH 0x00C00000 Ox00C01FFF 0x00C00000 0x00C007EF 1 Ox00C02000 Ox00C03FFF 2 Ox00C04000 Ox00CO5FFF Ox00C04000 0x00C0403F 3 Ox00C06000 Ox00C0 FFF 4 0x00C05000 xODCOFFFF Sector is protected 80 8K 8K 8K 8K 32K v Enable Remove All Erase Remove Sel Program Verify Protect Help Exit V2 0 2006 07 infir AP16102 n fi n eO n XC164CM Cookery Book Program Execute Memtool Command Ox00C007EF Ox00C04000 Ox00C0403F LE uo oO Remove sel Exit Exit MEMTOOL Disconnect Exit Application Note 81 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book Start your program Set Dip Switch 102 to Standard internal start Startup configuration Standard start from internal Flash OFF OFF OFF OFF Press Reset Key Your application 1s running TERMINAL EXE LEDs PIL 1 PIL 3 PIL S PIL f ON LEDs P1L 1 P1L 3 P1L 35 P1L f OFF LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking Application Note 82 V2 0 2006 07 infir AP16102 l n fi n eon XC164CM Cookery Book 6 OnChipFlash Programming OCDS Debugging via Keil ULINK JTAG Interface or USB JTAG Wiggler Box For further information please refer to the XC164CM Board Manual V
9. Standard start external external internal PLL OWD off PLL OWD ON ALE 1 Reserved Reserved Alternate Boo Alternate start internal WR 0 RORMV Q ROBMV 1 2 WR 1 RORMV 0 RO RMV 0 1 Only effective in bypass mode 2 P20 12 enabled this indicates a single chip reset without external bus system Note The pullups pulldowns on theConfiguration pins are activated at the beginning of a hardware reset It is badly needed to start the u Vision simulator with program start in on chip ROM Flash Application Note 63 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book Start the u Vision simulator with program start in on chip ROM Flash You can enable the on chip ROM behavior Standard Internal Start as described below mouse position Project Workspace Files Targetl click right mouse button Options for Target Target MZ XC164CM pVision3 Mz XCL64CM uVision3 File Edit View Project Debug Flash Peripherale SOI E gS OX amp Target l vid File Edit Wew Project Debug Flash Pe KH Ca pg 25 53 X Target 1 ie SS or EE JE Options tor Farget Elta Target 1 ER Open List File J Open XC164CM M66 2 3 Dave Files Open File L amp nimii HHHHIH nm Debug click Settings hf XC164C pVision3 C XC164CM MAIN C E FiEile Edi
10. Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities EK Dav Warnings Level 2 Disable Warning Numbers use linker control file B m m 8 8 4 CO me 7 f Edit Create Relocatable Output File LINKONLY Interrupt Vector Table Address pxocooooo Assign RegBank Reserve Create Misc Controls Linker TO XC164CM Fu Control VECTAB 0x0C00000 String CLASSES ICODE 0xC00000 0xCOFFFF NCODE 0xC00000 0xCOFFFF Cancel Defaults Loo pf Simulation OVR R AW rca FF FFFF 3 01 FF 0000 Hi m EM mere E0 0000 Sg C2 0000 S C1 0000 i co 0000 BF 0000 external IO 41 0000 segment 54 a ES EE 40 0000 210000 ext 10 MER JR RI win LAN 20 0000 Debug do nothing Utilities do nothing 03 0000 Segment 02 0000 2 MByte ext memory Adr OK 01 0000 Segment 00 0000 16 MOD a Application Note 50 V2 0 2006 07 ore AP16102 Infineon XC164CM Cookery Book Insert your application specific program Note DAVE doesn t change code which is inserted between USER CODE BEGIN and USER CODE END Therefore whenever adding code to DAvE s generated code write it between USER CODE BEGIN and USER CODE END If you wish to change DAvE s generated code or add code out
11. blinking OFF PlL LED OFF printf messageZ break case 3 blinking ON printf message3 break j USER CODE END ff End of function main x gt Bere MAIN C ASCO C B CC2C B MANH EIER FAC N m Warning al 4 4 gt Ph Build 4 Simulation L 319 C 1 DAN Application Note 85 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book mouse position Project Window Files or Target 1 click right mouse button click Options for Target click Options for Target Target 1 KA XC164CM pVision3 C XC164CM NI XC164CM pVision3 C FiFile Edit View Project Debug Flash Peripherals Tc og ene Re Loan 4 Project Workspace Se EE Target 1 Options for Target Options for Target Target 1 Utilities K XC164CM pVision3 C XC164CM MAIN ee Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help I mug sme no lee 433 Sl lia M e als Jelxi TINTO P e GIE o qm m Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities Configure Flash Menu Command T SE D a AR Use Target Driver for Flash Programming cel 5 settings Update Target before Debugging pi 8 C Init File t1 E dit Ll C Sel Use External Tool for Flash Programming Command LI Arguments Funindependent asy _ ee linkin Ca
12. x PE dell Ba c E m uos XS vl aH gt ma e o CIE er m o gt LOAD E amp s Target 1 d m ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o o o P a Target 1 8Interrupt Vectors Dave Files ff ff Cobb ob ob ob ob ob ob ob ZZZ ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe ob o B Start V2 A66 a MAIN C USER CODE BEGIN MAIN Header 9 USER CODE END ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob 8Project Includes w 8 ICC ff ff CR ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o ob ob o o o o E ASCO C B 8 CC2 C include lt Intrins h gt E User Files include IO H include ASCO H include CC2 H ff USER CODE BEGIN MAIN Header 10 include lt stdio h gt include lt ctype h gt USER CODE END endif ifndef MAIN H 0 S B manc x T3T Burd A Command Find in Files j O Simulation L 3721 C 19 GR Eos Pd Applicat
13. Book Start Memtool 28 C Program Files Infineon Memtool4 File Edit View Favorites Tools Help Back search Folders BE x Ed Address C Program Files Int RE EE fe Infineon Aj e ke File Folder 2 5 Memtool4 Memtool4 File Folder 74KB STG File el Infineon Tech SE L ifmm x dl 189 KB Application er z mne bi IMTMemtool exe ifmm6x_IMT stg 36 KB STG File EB De Application Sl ifmmte dil 181 KB Application s InstallShield Ir Modified 07 06 2006 Sifmmte IMT stg 11 KB STG File amp C3 Instant Messa 12 58 FAIMT Admin exe 109 KB Application SL Intel IMTLIb dil 77 KB Application oC Internet Explo size 220 KB gt IMTMEemtool exe 221 KB Application Browse Select Easy Kit with XC164CM 8F Series Select T igurati E x File Target Device Le elect Target Sona xj Browse DB gt Folder to browse CAProgram Files Infineon Memtool4 Targets sels Enable Files in folder Iv Show descriptions Easy Kit with XC164CM 4F Series Besen Easy Kit with XC164CM 6F Series Easy Kit with C164CS 16F AC step or newer Program Easy Kit with XC154CS 32F a Easy Kit with XC154CS 8F AC step or newer Verify Easy Kit with XC157CI 32F MCB with C866 2F BB Step and newer MCB with C866 4F BB Step and newer Protect MCB with XC866 868 6F i MCB with XC866 868 8F TriBoard with TC1161 zem TriBoard with TC1152 TriBoard with TC1163 Se
14. Book Double click Main h and insert the following Defines define OFF 0 define ON 1 define LED ON 0x0000 define LED OFF OxFFFF Wp op T re uVision3 C XC164CM MAIN H Xx Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help Hi E x Bug 85 az2JEE LUE ah am sap ab o Swit E amp Target 1 d e 0037 a Target 1 0038 J DS SSD S SE EE e E 5 Dave Files 8 Start_V2 A66 2 E MAIN C g mainh 3 intrins h 0039 Macros 0040 ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oc ob o 0041 0042 USER CODE BEGIN MAIN Header 3 0043 0044 USER CODE END 0045 0046 0047 ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oc ob o 0048 Defines 0049 ff ff C bbb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o 0050 define KEIL a E ASCO C M CC2C 3 User Files 0051 0052 USER CODE BEGIN MAIN Header 4 0053 define OFF 0 0054 define ON 1 0055 define LED ON 0x0000 0056 d
15. CR LF Wo Events Font Comm Events Flow Control Timeouts F Autowrap No Status 1 LEDs PIL 1 PIL 3 PIL LEDs PIL 1 PIL 3 PIL 3 LEDs PIL 1 PIL 3 PIL your choice 1 xxx LEDs ON xxx 1 LEDs PIL 1 PIL 3 PIL 2 LEDs PIL 1 PIL 3 PIL 3 LEDs PIL 1 PIL 3 PIL your choice 3 xxx LEDs BLINKING xxx 1 LEDs PIL 1 PIL 3 PIL 2 LEDs PIL 1 PIL 3 PIL 3 LEDs PIL 1 PIL 3 PIL StPIL St PIL otPIL StPIL StPIL StPIL StPIL StPIL 5 PIL T ON T OFF T blinking T ON T OFF T blinking T ON T OFF T blinking Modem Status CTS DSR FRING RLSD CD Application Note Comm Status CTS Hold OFF Hold Tx Char C DSRHold MT XOFFSent TX Chars o RLSDHold EOF Sent EX Chars o 111 1 Status message go here V2 0 2006 07 ee AP16102 n fi n eon XC164CM Cookery Book mouse position Project Window Files or Target 1 click right mouse button click Options for Target click Options for Target Target 1 Vp XC164CM pVision3 C XC164CM a XC164CM pVision3 C FIEile Edit View Project Debug Flash Peripherals Te SO XZ ae SE Project Workspace ee 3 Options for Target als ls ie Re Bs 8 2l te t IW oe ae Es E t i i ih E fa ne 8 3 x Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utiliti
16. E 2 E i S Function Library Part 2 CC2 vPorLock Pa F e Eu x69 000 000 on Interrupt of Timer 7 is enabled el XC164CM new project Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking Es the close button Application Note 34 V2 0 2006 07 AP16102 XC164CM Cookery Book Configure Port IL Pin 1 3 5 7 to Output lax Eile View Options Add Ins Windows n D 6 110 M Rel nA e o coe d a ENS PETI we Sd r A 1 AE Ee KC Led ue ve e Aa Tee X CRX rca Bat ore ap H ax Cora o R tq n 109 KS Rag 1 an High Speed System s d ae Frm Ser ze er w E er A er 5 MP a www Jd x t L oap acus MS LEE is p em L v eg T x ba m Ea XC164CM new project Application Note 39 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Ports click Configure Port 1L DAVE Jelx Elle View Options Add Ins Windows 6a Dez fus DAvE XC164CM Release v0 3 We e 49 Ports Functions Parameters Notes Configure Port 1H Configure Port 3 Configure Port 5 Configure Port 9 XC164CM new project Application Note 36 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Port 1L Functionality click v Use PIL 1 as general IO Port 1L Functionality click v Us
17. ES E T External Memory Start Size TE IlBuild t assembl 1 RAM Ez compili m RAM D MAIN C MAIN C 3 RAM MAIN C compili compili linking 6 GEESS omen FE 0 Y gl vf Mle gt ms a RR Par m Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities Clock MHz Ei Use On chip ROM 64KB I Memory Model Small near functions and data v VAlse On chip SRAM 0xC000 0xC FF j Operating System None v E Data Threshold near 6 16 D KB ROM ls Program Size data 1088 near 1088 const 2 near code 752 XC164CM 0 Error s 3 Warning s v aL 4 4 gt f Build E Le Simulation E bwR N Table 3 1 XC164CM Memory Map Address Area Start Loc End Doc Area Size Notes Flash register space FF F000 FF FAFFj 4Kbytes Reserved Acc trap F8 0000 FF FHFFj 508Kbytes Reserved for PSRAM E0 0800 F7ZFFFFj lt 1 5 Mbytes Minus PSRAM Program SRAM 00000 EOO7FF 2Koytes Reserved for pr mem DF FAFFL lt 2 Mbytes Minus Flash Reserved 200800 3F FFFF lt 2 Mbytes Minus TwinCAN TwinCAN registers 20 0000 2007FF 2 Kbytes Accessed via EBC Reserved 0100004 1F FFFF lt 2 Mbytes Minus segment 0 Dual Port RAM 00 FDFF 2Kbytes Reserved for DPRAM 00 F200 OOF5FF 1Kbyte ESFR area 00F000 ovrire oskbye Re
18. File Ox00C00000 Ox00CD1FFF Remove All Erase 1 0x00C02000 Ox00C03FFF 8K 2 Ox00C04000 Ox00CO5FFF 8K ct All 3 0x00C06000 Ox00C07FFF 8K Remove Sel Program 4 0x00C05000 OXOOCOFFFF 32K Add Sel gt gt Verity Save Ae Protect etate dit Info Setup Erase x Infineon Memtool on Easy Kit with XC164CM 8F Series File Target Device Log Help File a FLASH Sectors to Erase v MV Enable Erase whole FLASH Module y Stat C Erase selected Sectors Remove All Erase Cancel M i Wx00C00000 Ox00C0 Remove sel Program Dx00C02000 Help EE e WII DOC ei Verity 4 LC FF Protect State sa Setup n fi n eon Disconnect Reedy for Memtool Command Help Exit Star Application Note 78 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book x Infineon Memtool on Easy Kit with XC164CM 8F Series File Target Device Log Help File Execute Memtool Command w Current FLASH OTP Device Remove All 64 KByte on chip Program FLASH Remove Sel Operation success Progress Cinfineon Exit Load HEX File Open File Dateityp Files of type select H86 Files h86 Look in C XC164CM Select XC164CM H86 File Target Device Log Help Fe Fl ASHINTP Memare Mevire Remove All Remove Sel File name ci 64CM
19. H86 D Open Info Files of type H86 Files h85 v Cancel h Disconneg pa for Memtool Command Cinfineon Open Application Note 79 Too Disconnect Reedy for Memtool Command Help Help MV Enable Erase Program Verity Protect State Setup Exit v Enable Erase Program Verity Protect etat n Setup Exit V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book x Infineon Memtool on Easy Kit with XC164CM 8F Series File Target Device Log Help File Ku G4CM XC164CM H86 Ox00C00000 Ox00C007EF Ox00C04000 0x00C0403F Open File Select All FLASH OTP Memory Device 64 KByte on chip Program FLASH v Iv Enable Ox00C00000 Ox00C01 FFF 1 Ox00C02000 Ox00C03FFF Kc Ox00C04000 Ox00CO5FFF 3 Ox00C06000 Ox00C0 7FFF 4 Ox00C08000 Ox00COFFFF Sector is protected Remove All Erase Program Verity Protect La m D Info Setup Disconnect Reedy for Memtool Command Help Exit Program selected hex file into the OnChipFlash Select All Add Sel gt gt x Infineon Memtool on Easy Kit with XC164CM 8F Series File Target Device Log Help File Ku B4CMYVXCTB4CM H8b 0x00CO07EF Ox00C0403F Infineon Application Note Open File Unselect All
20. Insert insert Start DAVE without Project Command insert C Program Files DAvE dave exe Application Note 120 V2 0 2006 07 infir AP16102 n fi n eO n XC164CM Cookery Book Customize Tools Menu Stat DAE with current Project GP start D amp YE without Project Application Note 121 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book And see the result VELLE Elle Edit View Project AE Flash Peripherals Tools sves Window Help a c o as EINE 2 lt gt ss 6 99 AA Setup PCLint a GIE Lai sje in Lint All C Source Files Customize Tools Menu Start DAVE with current Project GP Start DAVE without Project Application Note 122 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Application Note 123 V2 0 2006 07 Jum AP16102 In fi neon XC164CM Cookery Book 8 Feedback XC164C M Your opinion suggestions and or criticisms III III ARTA TALI IA RRA TATA IA RPA TA TATA IA III 030333 Contact Details this section may remain empty should you wish to offer feedback anonymously If you have any suggestions please send this sheet back to email mcdocu comments infineon com FAX 43 0 4242 3020 5783 Your suggestions Application Note 124 V2 0 2006 07
21. KB Application Note Back amp i Asearch Folders ES x Address ec Go Links A ES A a XC164 D start htm HTML Document Modified 20 02 2006 09 06 Size 15 9 KE Attributes Reac only 100 Mame Size O AppNotes BIN DemoPrograms Driver Software Extensions img Library scripts Tools Training Utilities XC 161C5 XC 164CM XC 16405 XC 164D XC 164 XC 164kM XC164LM XC 164 XC 1645 XC 1645 XC 164 TM MC16 CI El autorun inf Disclaimer Easy Kit pdf amp products htm readme txt start htm Be 1 KB 54 KB 15 KB 1 KB 19 KB Type File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi File Fi Setup Adob HTML Text HTML DI 18 9 KB K My Computer V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Click Getting Started a Easy Kit CD for XC16x family Infineon Technologies File Edit View Favorites Tools Help back Q A A search GaFavorites Media S Ba SA BVA Address 21D start htm M Go Links Googly v ClSearch IE Popups okay Check X AutoLink Autorill Options Easy Kit CO Home Infineon Home Infineon pplication Notes 0015 xtension Boards ilities Easy Kit CD Home Never stop thinking Welcome to the Easy Kit CD for XC16x fami
22. Note 59 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Double click CC2 C and insert code for T7 interrupt service routine if RS232 wait RS232_walt if blinking PILZzPIL OxFFFF K XC164CM pVision3 C XC164CM CC2 C P File Edit View Project Debug Flash Peripherals Tools SVCS Window Help elx Ba5u3 pece 3 AR A as gt 2 4 user m 5j 89 96 3 amp Target1 ver 337 e 52 Target 1 5 8 Dave Files 8 Start_V2 A66 8 MAIN C 8 IO C A ASCO C eB 6026 E User Files 338 USER CODE BEGIN Tmr 1 339 340 USER CODE END 341 342 void CC2 viTmr void interrupt CCZ T INT 3431 344 USER CODE BEGIN Imr 7 2 345 if RS232 wait 346 RS232 wa it 347 348 if blinking 349 PIL P1L 0xFFFF 350 351 ff USER CODE END 352 353 End of function CC2_viTmr 354 355 356 357 3680 USER CODE BEGIN CC2 General 10 359 360 USER CODE END 361 362 alelo we MAIN C E MANH E ASCOC STS Bard j Command A Find M FTES LEE EEE Simulation L 349 C 5 Eo p ERN e SEN Application Note 60 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Generate your application program Project Rebuild all target files VR XC164CM pVisio Project Workspace T JRebuild all target files KZ XC164CM pVision3 C XC164CM MAIN C FiFile Edit View Project Debug Flash Peripherals Tools SVCS Window Help ee
23. Pin Selection Alternate Pin Selection click V Use pin Tx click V Use pin Rx 3 DAVE elx Eile View Options Add Ins Windows gw Deng oa DAvE XC164CM Release v0 3 General Operating Mode M Alternate Pin Selection Full duplex asynchronous operating modes Use pin TxDAQO P3 10 C Half duplex 8 bit synchronous operating mode Use pin RxDAQ P3 11 XC164CM new project Autobaud do nothing Application Note 25 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Control Receiver Enable click Y Enable receiver DAVE lax Eile View Options Add Ins Windows gv Deng Ana DAvE XC164CM Release v0 3 Mode Control M Receiver Enable Loopback Mode C B bitdata synchronous Enable receiver REN Enable loopback mode LB 8 bit data asynchronous Stop Bit Selection STP Parity Selection ODD C 7 bit data parity asynchronous One stop bit Even parity C 9 bit data asynchronous C Two stop bits C Odd parity C 8 bit data wake up asynchronous C 8 bit data parity asynchronous Interrupts C IrDA mode 8 bit data asynchronous Enable transmit interrupt IE Error Check Invert Receiver Input Enable transmit buffer interrupt IE Enable overrun check OEN Enable receive interrupt IE Enable framing check FEN I Enable parity check PEN F Enable error interrupt IE XC164CM new project FIFO do nothing Application Note 26 V
24. REN z amp e 1 5 a m x emm eae EES ANE bm 2 33 Target 1 B a Dave Files 8 Start V2 A66 A MAIN C B IO C 3 ASCO C B CC2 C User Files on S qqpuild target Target 1 a assembling Start_V2 A66 compiling MAIN C MAIN C 248 warning C192 value truncated MAIN C 259 warning C192 value truncated MAIN C 265 warning C192 value truncated compiling IO C compiling ASCO C compiling QUESIQ linking Program Size data 1088 near 1088 const 2 near 0 code 752 XC164CM 0 Error s 3 Warning s sl LA o Build D Simulation SSS EE EC GE RM ut Window Application Note 45 V2 0 2006 07 Cinfineon AP16102 XC164CM Cookery Book Configure Compiler Assembler Linker Locater Hex Converter and Build Control mouse position Project Workspace or Files Targetl click right mouse button Options for Target Target LA XC164CM pVision3 Eile Edit View Project Debug Flash Peripherals BeldatbBbeln2c 8er r id ALE Open List File pen XC164CM M66 m Open File Application Note click KZ XC164CM pVision3 File Edit A SS ES A ew Project Debug Flash Tarast EE ptions for Targe Ga Dave Files V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Device check XC164CM 8F Va XC164CM pVision3 NENNEN el Eile Edit View Project Debug Flash Peripherals Tools SVCS
25. Security v uv 3 C155 V6 04a DEMO Target location uv3 ut wi Target CAKeil D bbit Mbll Aeu 2N ka exe DAVE DAVE SDK F rate I Run as different user d Start in ke D 6bit_604a UV3 C51 UV3 C51 UV3C166 uv3 C166 v800d v801 V6 04a V6 04a Shortcut key None DEMO Run Mormal window v gs s m 8 C166 v8 0ri C166 v8 5ri TriCore TriCore Comment Keil uVision3 vl 5ri v2 2rl Find Target Change Icon E HiTOP Starter Kit TriCore for TriCore Application Note 43 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book If you see an open project close it Project Close Project Project Open Project Look in CAXC164CM choose File of type Dave Project Files File name XC164CM dpt Mf pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help leede ARAM JAatl gt alsamalo e m we snasla za m om Workspace EN iS i Select Project File B ecc SIND ENT aou o 89 File name ES 64CM dpt ow Files of type Dave Dave Projea Files td si Files dpt Cancel N Output Window A 4 gt Lo f Build Le ie foe es DE Ver Want Kal eeler de Open Application Note 44 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Generate make File Project Rebuild all target files LA XC164CM Visio ile Edit View Project Debt pilis ir MA XC164CM pVision3 elx eng
26. Tools SVCS Window Help i j x eg g55me 22J EE JR AR A ah eo e o CIE nern i9 e a6 4 AlTarget 1 vla 327 void main void ata Target 1 3286 2 Dave Files 329 USER CODE BEGIN Main 2 4 Start V2 A66 330 A MAIN C 331 ff USER CODE END 8 IO C 332 8 ASCO C 333 MAIN vlInit 334 i CC2C 335 USER CODE BEGIN Main 4 User Files 336 while RS232 wait 337 while 1 338 339 printf menu select input switch select 343 344 case 1 blinking OFF PIL LED ON printf messagel break 345 case 2 blinking OFF PlL LED OFF printf message2 break 346 case 3 blinking ON printf message3 break 347 348 349 USER CODE END D 350 3511 End of function main x gt ULINK Driver for XC16x L 333 C 1 EA TESA RAW Application Note 104 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book mouse position Project Window Files or Target 1 click right mouse button click Options for Target click Options for Target Target 1 KA XC164CM pVision3 C XC164CM NI XC164CM pVision3 C FiFile Edit View Project Debug Flash Peripherals Tc acide ne 43 ul Target 1 ae mmm i 4 i rn Select Device for Target Target 1 Project Workspace e IP Options for Target Firile edit View Project Debug Flast als Jelxi x Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilitie
27. Zero Cycle Jump function Control Iv Enable branch prediction BP M Enable zero cycle jump function 2CJ Vector Segment Pointer VECSEG Start from internal program memory VECSEG oxco XC154CM new project curas FF FFFF a E rroooo kml E0 0000 S C2 0000 S C1 0000 wo o 191 BF 0000 Sca 41 0000 64 ar 21 0000 Preah CAN 200000 gt 03 0000 PU x 0 00 0000 16 MByte Application Note 21 V2 0 2006 07 infir AP16102 l n fi n eon XC164CM Cookery Book Notes If you wish you can insert your comments here Exit this dialog now by clicking Es the close button Project 5 Application Note 22 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Configuration of the ASCO als Elle View Options Add Ins Windows 2 eerie Fa L YT T TIE XC164CM new project Application Note 23 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Module Clock do nothing DAVE BHP Eile View Options Add Ins Windows ea Ose fus DAvE XC164CM Release v0 3 ASCO Disabled Flag ASCODIS Enable module the peripheral is supplied with the clock signal Disable module the clock input of peripheral is disabled Input Clack Input clock of the ASCO module MHz m XC164CM new project Application Note 24 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book
28. 0 3 April 2004 For further information please refer to the XC164CM Board Manual V0 9 Aug 2005 For further information please refer to the XC164CM Board Manual V1 0 Jan 2006 P 2 4 7 EN O 4 Jj 0 g k U m A T OCDS Interface ONS ONS ONS DIA Application Note 83 V2 0 2006 07 ce AP16102 Infineon XC164CM Cookery Book Keil ULINK JTAG Interface LLL TL TL TL 1 Application Note 84 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book Start Keil u Vision 3 and open the KEIL Project XC164CM Uv2 If you see an open project close it Project Close Project Project Open Project choose C XC164CM choose File type Project Files uv2 choose XC164CM uv2 Offnen Open Do you want to migrate the changes click JA Yes VO XC164CM pVision3 C XC164CM MAIN C FIFile Edit View Project Debug Flash Peripherals Tools SVCS Window Help amp x asggiBaejoc ee 453 la oam al S G IE Target 1 vla Po gt void main void a Target 1 3280 f 5 amp Dave Files 329 USER CODE BEGIN Main 2 A Start V2 A66 330 SR 331 USER CODE END 3 IO C 332 a A ASCO C 333 MAIN vInit 8 CC2 C 334 335 USER CODE BEGIN Main 4 336 while R5232 wait while 1 printf menu select input 3 User Files switch select case 1 blinking OFF PlL LED ON printf messagel break case 2
29. 2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Baud Rate Baud Rate Required baud rate kbaud input 9 600 lt ENTER gt Baud Rate Baud Rate Selection Bit additionally if you want click V Use fractional divider as prescaler S DAVE elx Elle View Options Add Ins Windows 2 on DEB 4 oa DAvE XC164CM Release v0 3 Baud Rate Selection Bit BRS Fractional Divider FDE Baud Rate Generator Run Control R Additionally reduce serial clack to 2 Disable baud rate generator C Additionally reduce serial clack to 3 Use tractional divider as prescaler tor baud rate timer Enable baud rete generator fFDE Baud Rate Required baud rate kbaud 3 600 Real baud rate kbaud 1600 Fractional divider n 512 232 Percentage of deviation 0 001 Min baud rate baud 0 298 Reload value RL Ox003A Max baud rate Mbaud E XC164CM new project Note Validate each alpha numeric entry by pressing ENTER IrDA do nothing Interrupts do nothing Int Extension do nothing PEC do nothing Application Note 27 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Functions Initialization Function click v ASCO_vlnit 8 DAVE BHP Elle View Options Add Ins Windows on Du fus DAvE XC164CM Release v0 3 amp Asynchronous Synchronous Serial Interface ASCO KE SE Pin Selection Autobaud Control FIFO Baud Rate IrDA Interrupts Int
30. 24 C 2 pup pon prog prm PAN Application Note 54 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Double click MAIN C and insert the following code into the main function while RS232_ wait while 1 printf menu select input switch select case 1 blinking OFF PIL LED_ON printi messagel break case 2 blinking OFF PIL LED_OFF printf message2 break case 3 blinking ON printf message3 break J lsl FiFile Edit View Project Debug Flash Peripherals Tools SVCS Window Help el sl aebglipag lcocolece A3 o vl d tie gt e e arm amp B 5j E53 g amp 8 amp Target 1 vla Project Workspace si 306 ai Target 1 2 3 Dave Files 4 Start V2 A66 4 MAIN C 4 IO C i ASCO C i CC2 C ij User Files i 327 void main void 32801 329 USER CODE BEGIN Main 2 330 331 USER CODE END 332 333 MAIN vInit 334 335 USER CODE BEGIN Main 4 while R5232 wait while 1 printf menu select input switch select case 1 blinking OFF PIL LED ON printf messagel break case 2 blinking OFF PlL LED OFF printf message2 break case 3 blinking ON printf message3 break j USER CODE END 1 End of function main x gt E MAIN C siue T3T T Burg A Command A Find in Fires Ih Simulation L 332 C 38 En pum EE RIN Application Note 55 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery
31. Application Note V2 0 July 2006 AP16102 XC164CM XC164CM Cookery Book for a Hello World application Microcontrollers gt dien Never stop thinking Edition 2008 07 16 Published by Infineon Technologies AG 81726 Munchen Germany Infineon Technologies AG 2008 All Rights Reserved LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND INCLUDING WITHOUT LIMITATION WARRANTIES OF NON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE Information For further information on technology delivery terms and conditions and prices please contact your nearest Infineon Technologies Office www infineon com Warnings Due to technical requirements components may contain dangerous substances For information on the types in question please contact your nearest Infineon Technologies Office Infineon Technologies Components may only be used in life support devices or systems with the express written approva
32. CM Uv2 Open Note You could program now the hex output file XC164CM H86 with Memtool http www pls mc com or Minimon www perschl at or XCFLASHER Open Source by www perschl at or FLASHIT http www hse electronic com or Flash on the Fly into the OnChipFlash Program Memory of the XC164CM microcontroller Additionally you can use the u Vision3 for OnChipFlash Programming using the JTAG interface of course you can also use a Debugger for this task Application Note 62 V2 0 2006 07 Jum AP16102 In fi neon XC164CM Cookery Book Using the simulator first we will test our program inside the Keil Simulator without hardware The uVision3 simulator has a couple of VTREG s that allow you the configuration of the reset behaviour These pins of the Infineon XC16x are reflected by the following VTREGs EA isthe EA pin 0 2 code fetch from external ROM 1 2 code fetch from on chip ROM ALE isthe ALE pin RD isthe RD pin WR isthe WR pin RSTCFGP are the levels on the configuration PINs NMIPIN is the NMI pin By default the value of the EA pin is set to 0 to simulate the off chip ROM When this VTREG is 1 at CPU reset the uVision3 simulates on chip ROM and the RESET vector and interrupt vectors are at address 0xC00000 Additionally see the XC16x Derivatives System Units User s Manual Basic Startup Configuration via External Circuitry ALE 0 Standard start Standard start Standard Boot
33. Content Start DAVE with current Project iP I Fromptfor Arguments I Run Minimized Run Independent Command CAPragram Files DAVE dave exe SS Initial Folder a Arguments rap da Application Note 118 V2 0 2006 07 AP16102 XC164CM Cookery Book And see the result Eile Edit View Project Debug Flash Peripherals Window IS IE LIE Ra E a GEE Setup PC LInt E re Emu Be un Lint All C Source Files E 321 3 Target 1 322 char in 243 Dave Files 323 do Customize Tools Menu 324 f 325 printe 326 while Start DAVE with current Project XC164CM 327 ASCO R rx mm EE als Eile View Options Add Ins Windows ea Dau fius 6 DAVE XC164CM A Release vo M2 XC164CM Ee b4CM CAC bACMVACT B4ICM dav Application Note 119 V2 0 2006 07 infir AP16102 n fi n eon XC164CM Cookery Book k10 2 open DAvE without project Tools Customize Tools Menu V XC164CM pVision3 C XC164CM MAIN C Fifile Edit View Project Debug Flash Peripherals Tools SVCS Window Help asugi aBel RR Setup PELi 5j 5 o5 93 Target 1 a Ci Lint All C Source File EE Target 1 322 char in L ces Dave Files do Customize Tools Menu iH Start VZ AGG j 524 1 E g E MAINC 325 print a A QC 326 while Start DAVE with current Project XC1640M Menu Content click New
34. DON printf messagel break PlL LEDOFF printf messagez brea rintf message3 break USER CODE END g End of function main 5 Running in Eval Mode SK LA S ASM ASSIGN BreakDigable EreakEnable BreakEill BreakList EZ J SLA 41 Pih Build A command Find in Files Ready reco ua ndow OK Application Note 114 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Vp XC164CM pVision3 C XC164CM MAIN C P File Edit View Project Debug Flash Peripherals Tools SVCS Window Help as x 720 eee oe Xl amp oam S amp m x emm 10 o USER CODE END MAIN viInit USER CODE BEGIN Main 4 while R5232 wait while 1 0x0000 printf menu 0x8104 select input Ox01f6 UxUUCU switch select 0x0030 0x0031 i f i 0x3032 case l blinking OFF PIL LEDON printf messagel break 03131 case 2 blinking OFF P1L LEDOFF printf message2 brea 0x344d case 3 blinking ON printf message3 break x8033 USER CODE END End of function main MAIN C ASCO C B CC2C B MANH Je Serial 1 Currently used 2128 Bytes 25 4 For Help press Fi ULINK Driver for XC16x RAW Application Note 115 V2 0 2006 07 See AP16102 n fi n e 0 n XC164CM Cookery Book Debug Run ls FIEile Edit View Project Debug Flash Peripherals Tools SVCS Window Help Ra e EN ask a o lan Im amp
35. Extension PEC Functions Param 4 Initialization Function Source File ASCO_vinit File name ASCO C Function Library Part 1 Function Library Part 2 Run le ae ee sr Im Rose UE eer XC164CM new project Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking Eai the close button Application Note 28 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Configure Timer T7 in CAPCOM 2 DAvE Elle View Options Add Ins Windows oa Deu fus T 24 ck dd a e Zu Preti 1 Le oF x i XC164CM new project Application Note 29 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Module Clock CAPCOMQ Disable Flag click Enable module DAVE CER Eile View Options Add Ins Windows gw Du Ans DAvE XC164CM Release v0 3 amp Capture Compare Unit 2 CAPCOM2 a gra CAPCOM Disabled Flag CC2DIS Enable module the peripheral is supplied with the clock signal C Disable module the clock input of peripheral is disabled Input Clock Input clock of the CAPCOM2 module MHz E XC164CM new project Application Note 30 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Control Port Lock Control click The contents of the port register is not changed by the CAPCOM2 unit amp DAVE el Elle View Options Add Ins Windows 2 j 3 DER fs
36. Flash Ext Flash 16 bit Demux MF2SF4A00B Ext Flash Ext Flash 16 bit Demux ACT 6x1 6F On chip Flash On chip Flash C16bx 32F On chip Flash On chip Flash AC bx BF On chip Flash On chip Flash Target Debug Options u Downloa M Run IS Programming Algoritt si Description i Td aT Add Remove Start Size Offset bi E 9 WA 2 OK Cancel Help aile gt Draws lg Autoshapese OO IH d 8 3 A Z A miam g Fage 24 Sec 1 24 31 b pet m Lng Coli REC TRK EXT OVR English U S Ux click Add Application Note 108 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Vp XC164CM pVision3 C XC164CM MAIN C FiEile Edit View Project Debug Flash Peripherals Tools SYES Window Help Li el x Infineon DAS Driver Setup E DAS Client Setup Host Computer localhost DAS Server TAG over USE Box hd Start Stop Running DAS Server JTAG over USB Box ia M Start automatically Device Es B Target Debug Options Flash Download Optians Download Function M Erase Iv Program M Verity I Resetand Run Programming Algorithm Address Range ALT bx oF On chip Flash On chip Flash CBUDODOH COFFFFH DOCBOOH Start ESO Size 0x01 0000 Offset RER ULINK Driver for XC16x L 319 C 1 El E RA Application Note 109 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book And see the result A XC164CM uVision3 C XC164C
37. M MAIN C 3 le x FIEile Edit View Project Debug Flash Peripherals Tools SVCS Window Help elx salive scies 133 uU ale gt alala cz eme e E RS Target 1 v d e Project workspace Download to Flash Memory Ee EE case 1 blinking OFF PIL LEDON printf messagel breal case Z blinking OFF PIL LEDOFF printf messageZ bre case 3 blinking ON printfimessage3 break p we S Build target Target 1 A assembling Start V2 A66 compiling MAIN C MAIN C 269 warning C192 MAIN C 280 warning C192 MAIN C 286 warning C192 compiling TOC a compiling ASCO C compiling 222 2 linking Program Size data 1308 near 1308 const 330 near 64 code 1758 creating hex tile from ACL64CM 2 xCc164cemM 0 Error s 3 Warningis Load C XMECIOACMMXVXEXCIOA4CM Erasing Erase Done PA Start_V2 A66 amp 8 MAIN C a A IO C e E ASCO C value truncated value truncated value truncated Programming Done Verify OK Application running wm It 4 gt Hf Build Find in Files Ia gt Download to Flash Memory ULINK Driver for xC16x L 319 p RAN Application Note 110 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Multi threaded TTY File TTY Transfer Help Baud Parity Data Bits stop Bits M Local Echo E Ho Reading Port comi 3500 None E X M Display Errors Bertin CR gt
38. QT nen o 25 El SAREE Project Workspace x l TTC 221 B Ceci GI Begser Vo ET TTE LEDs P1L 1 P1L 3 P1L 5 P1L f ON LEDs PIL 1 P1L 3 P1L 5 P1L 7 OFF LEDs PIL 1 P1L 3 P1L 5 P1L 7 blinking your choice break brea LE ue Z ASM ASSIGN BreakDisable BreakEnable EreakE ll BreakList Ra A S A gt Lh Build Command Find in Files I4 4 Locals Watch 1 Ready ULINK Driver for XC16x Bere E e Dau Application Note 116 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book 7 Merging DAVE uVision3 __ Merging tools Eel DAVE uVision3 ME http www infineon com DAVE open your current DAVE project Tools Customize Tools Menu Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help Edie RR SetupPClint qe E Ti ey X ai amp Target 1 s A i Lint Lint All C Source Files 2 33 Target 1 322 char in re Dave Files do Customize Tools Menu Start V2 A66 323 Application Note 117 V2 0 2006 07 infir AP16102 l n fi n eon XC164CM Cookery Book Menu Content click New Insert insert Start DAVE with current Project P Command insert C Program Files DAvE dave exe Arguments insert P P dav Note amp P current directory path P project name without Extension and without path Customize Tools Menu Menu
39. Window Help B5U9 pell EL EX amp e2 5 q nm x emm ee Options for Target Target l x i3 Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities a Dav BE Database Generic CPU Data Base v X Eh Vendor Infineon DE Device C164CM 6F Toolset C166 en i 23 SAB 800517 Microcontroller Built Around the Synthezisable C166S V2 Core with 3 SAB 80C517A 2K Bytes Dual port RAM for Register Sets and System Stack 3 SAB 800535 2K Bytes Data RAM Controlled by DMU j CH SAB 800537 Internal Instruction Memory Block IMB Controlled by PMU C SAB 83C515A 5 64K Bytes Program Flash 2K Bytes RAM C SAB 83C517A 5 Intelligent On chip Peripheral Subsystems Automotive specific Peripherals 14 bit ADC and TwinCAN 3 SDA 30C16x 26x OCDS JTAG Interface for on chip debugging fd SDA555X TYText Pro 3 SDA 6000 El en OO SDA 80D51 AU O XC161CH16F 3 C161C3 32F F Simulation GGI II GRR Application Note 47 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Target insert check Clock MHz 8 Target click check v Use On chip ROM 64KB Target click check V Use On chip XRAM Wa XC164CM pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help Bae Ill KM s x Bi Options for Target Target 1 Infineon XC164CM 8F ES ES ES
40. alkBelnelees sa ar Wl lan e os app s P m StlHOMP Poo a Aeg DER ce Ve ff USER CODE END Besser Re MAIN viInit ff USER CODE BEGIN Main 4 while R5232 wait while 1 EVALUATION VERSION Running in Eval Mode SK PIL LEDON printf messagel break PlL LEDOFF printf messagez brea rintf message3 break USER CODE END g End of function main 5 Running in Eval Mode SK LA S ASM ASSIGN BreakDigable EreakEnable BreakEill BreakList EZ J SLA 41 Pih Build A command Find in Files Ready reco ua ndow OK Application Note 96 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book KZ XC164CM pVision3 C XC164CM MAIN C EE Ex Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help SS x 4 il at gt SQ GF em m USER CODE BEGIN Main 2 ff USER CODE END MAIN vInit Ox08b9 USER CODE BEGIN Main 4 0x0000 while R5232 wait 0x8104 while 1 0x01f6 Dalle 0x0030 pe 0x0032 ass switch select e 0x344d EM 0x8033 case l blinking OFF P1L LED ON printf messagel break case 2 blinking OFF PlL LED OFF printf message2 break case 3 blinking ON printf message3 break printf menu select input Load C XC164CM XC164CM 3 gt as ASSIGN BreakDisable BreakEnable BreakKill BreakList v aL iR Build Command j Find i
41. ation Note 106 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Options for Target Target 1 Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Click Settings Click Add KZ XC164CM pVision3 C XC164CM MAIN C Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help I x amp Infineon DAS Driver Setup E B E amp DAS Client Setup Project WWorkspac Host Computer localhost BS Targ Ta De DAS Server JTAG over USB Box Start Stop bod B Running DAS Server J TG over USB Box M Start automatically a A Device Es bx Go fag We Target Debug Options Flash Download Options Download Function M Erase Iv Program M Verify I Resetand Run Programming Algorithm Address Range Add emote Start Size Offset ULINK Driver for xC16x L 319 s RAN Application Note 107 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Add Programming Algorithm select XC16x 8F On chip Flash 2B part k1i pVision3 Keil ULINK USB JTAG Wiggler Box de rosoft E mx File Edit View Insert Format Tools Table Window Help bersetzer Type a question for help x D EZ ie Infineon DAS Driver Setup ir 7 DAS Client Setup L Host Computer localhost EX m Add Programming Algorithm c top Y Running aM29F160DT Ext Flash Ext Flash 16 bit Demux i AhM2S8FS DBT Ext
42. ct Debug Flash Peripherals Tools SYES Window Help efa f Infineon CORTO Target Driver Setup LI ESE ULINK USB JTAG Adapter JTAG Device Chain stes Serial No U1292R7E IDCODE Device Name IRlen MERE BS Targe gus TDO ULINK Version ENG e e meena i 21 SE AM29F160DT Ext Flash Ext Flash 16 bit Demux ee AMZIFEDDBT Ext Flash Ext Flash 16 bit Demux i i MF29F 4008 Ext Flash Ext Flash 16 bit Demux P E Us ACT 6x1 6F On chip Flash On chip Flash C16bx 32F On chip Flash On chip Flash ACT bx B8F On chip Flash On chip Flash Target Debug Options Logo Downloa EA M Run Programming Algoritt Description Start Size Offset Simulation L 319C 1 D p p D OBAMO Application Note 88 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Add Programming Algorithm select XC16x 8F on chip Flash KZ XC164CM pVision3 C XC164CM MAIN C mn F amp x Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help pi eee EH el x JTAG Device Chain naasser IDCODE Device Name IR len Mowe Serial Mo UTSS R E Hr DUE Bra O TDO 2 33 Targ Up ma Li ULINK Version Add Programming Algorithm e Bown AM SFIBUDT Ext Flash Ext Flash 16 bit Demux 2 38 AM29F800BT Ext Flash Ext Flash 16 bit Demux foe MFZ3F4UDB Ext Flash Ext Flash 16 bit Demux T amp LE AC 6x1 6F On chip Flash On chip Flash C16bx 32F On chip Flash On chip Flash l AC bx BF On c
43. devices use latest gt DAvE Digital Application virtual MemTool V4 Engineer XC166 DSP library is a DSP function library Lu co is C callable hand Con 4 gt b Carnet Todi and EN Description Manual and Download Pari gt C500 C600 XC600 Development Tools and Software MemTool is a free of charge software designed for on chip flash programming MemTool V4 is b_C166 XC166 Development Tools and Software MemTool release notes gt Integrated Compiler Development Environment MemTool v4 0 2 exe download gt Emulators Debugger Development supporting the XC800 4 25 MB Systems XC166 and TriCore gt DAvE UML family b b b v v Application Note 70 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book 2 Software Downloads Infineon Technologies Infineon Technologies File Edit View Favorites Tools Help Back Q A A Search Favorites Media S Dv 3 Ar BV Gookv v GSearch 3 Et Popups okay Check i AutoLirk Autori faOptions da Search 1 Search Home Partners Sitemap Where to bu e nfi bs and Software Never stc Save in C XC164CM v History as S j b Development Tor Pan gt C500 C800 Xi Tools and So b_C166 XC166 Software b Integrated i y C Environme My Computer pr DE Davenm vy Network Pla Simulation Operating Programm
44. e BreakKill BreakList v 31 gt h Build j Command Find in Files aj gt Ready Simulation ti 0 00015300 sec L 333 C 1 RAW Application Note 66 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Debug Run View Serial Window 1 Peripherals I O Ports Port Peripherals Capcom2 T7 T8 T7 VP XC164CM uVision3 Serial 1 5 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help x aeugibej oc es ee a RI e 0 45 Qmm P em T 7 x ies E Q v Goo o sot e gn v e c e m a Timer Counter 7 i Mode Timer Input Prescaler 1024 v l LEDs P1L 1 P1L 3 P1L 5 P1L 7 ON ef Erop 2 LEDs P1L 1 P1L 3 P1L 5 P1L 7 OFF 3 LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking T 0xE805 I TAR 0x0000 0x0000 0x0000 T 8CON 0x0047 IT TAN ihe 0x8385 vour choice Parallel Port 1 0x0000 0x0000 Bits 0 Bits 0 Pn rrrrrrrr Pr WII DPIH 0x00 mtr ee DPIL AA VCPCrRoPe ALTSELOPIH foxo immm 0x00 rrrrrrrr Pins 0x00 BEBNFTTTTT Pins AA Po ed A pi A ni 7 ni 0x0000 0x0000 0x0 0x0000 4 MAIN C B MANH B ascoc B CC2C e Serial gei Currently used 2128 Bytes 25 p E gt ASM ASSIGN BreakDisable BreakEnable BreakKill BreakList v 4 lt gt i h Build ACommand Find in Files m Ready Simulation ti 15 62295915 sec RAN Note By activating click the Serial W
45. e P1L 3 as general IO Port IL Functionality click v Use PIL 5 as general IO Port IL Functionality click v Use PIL 7 as general IO DAvE Eile View Options Add Ins Windows 2 ta Dzas us DAvE XC164CM Release v0 3 Bi Configure Port 1L x dta Functionality Use PILO as general IO Use PIL 1 as general IO Use PIL2 as general IO Use PIL 3 as general IO Use PILA as general IO Use P1L5 as general IO I Use PILE as general IO Use PIL as general IO Direction fe In Out C In f Out n Out C In f Out n Out C In f Out G n Out C In f Out Direction click 9 Out Direction click 9 Out Direction click 9 Out Direction click 9 Out Output Value Thigh high E high high E high high E high high ex XC164CM new project Output Characteristic do nothing Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking 55 the close button Application Note 37 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Functions Initialization Functions click v IO vInit 8 DAvE CSZ Eile View Options Add Ins Windows on Du i fis DAvE XC164CM Release v0 3 Parallel Ports We i BB gt D Parameters Notes Initialization Function Source File IO vini File name IO C Function Library Part 1 IO ubReadFin IO vSetPin IO vResetPin IO_vTog
46. e Screenshots General Controller Type Type select XC164CM 8F40 General For the KEIL Compiler choose Keil in the Compiler Settings DAVE elx Eile View Options Add Ins Windows 2 IC Deus fis DAvE XC164CM Release v0 3 Controller Type Type ci 64CM 8F 40 v ROM Size b KByte ROM Type Flash Max CPU Clock pio MHz Main Source File Main Header File File name MAIN C File name MAIN H Compiler Settings Keil Memory Model SMALL v C Tasking XC164CM new project Application Note 17 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book System Clock CPU Clock will be 20 MHz 8 DAvE Eile View Options Add Ins Windows 6n Dau us DAvE XC164CM Release v0 3 amp Project Settings dta PLL Operation Control PLLCTRL C Bypass PLL clock multiplier the VCO is off C Bypass PLL clock multiplier the VCO is running VCO clock used input clock switched off YCO clock used input clock connected PLL Input Divider PLLIDIV fin fosc 2 v PLL Output Divider PLLODIV fall MHz 20 000 fin MHz mi fveo 5 vw do nothin ex Input Frequency fosc MHz 8 000 PLL YCO Band Control PLLYE VCO output frequency 100 150 MHz C CO output frequency 150 200 MHz C YCO output frequency 200 250 MHz PLL Multiplication Factor PLLMUL tvco fin 25 e Clock Prescaler for System CPSY S fcpu fpll 1 D fcpu MHz
47. efine LED OFF xFFFF 0057 USER CODE END 0058 0059 0060 ff f Cobb sb ZZZ ZZZ ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oc oc ob o 0061 Deciaration of SFRS 0062 iii 4 gt MAIN C MAIN H a S TT BUA A Commend A ANA A Files RE Simulation L 56 C 23 To Ti RR CRT Application Note 56 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Double click Main h and insert extern declaration Global Variables extern bit blinking extern volatile int RS232 wait M XC164CM pVision3 C XC164CM MAIN H RUES ked Elle Edit View Project Debug Flash Peripherals Tools SVCS Window Help j x mag pelcoclee 433 o at e gt m 6 QR zer e 2 33 Target 1 5 8 Dave Files 8 Start_V2 A66 amp 8 MAIN C E mainh L intrins h E A Target 1 d e ff ff C bobo ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe o o o o o Imported Global Variables ff ff RC bbb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe ob ob USER CODE BEGIN MAIN Header 6 USER CODE END ff ff Pb ob ob ob ob ob ob ob ob ob ob ob ob ob
48. el x dug e 22 E 433 a lat oam oi Ill Pa amp i eas 13 ax Target 1 vas while RS232 wait eid Target 1 while 1 oc Dave Files B Start_V2 A66 printf menu B MAIN C select input 8 IO C 4 ASCO C 9 5 CC2 C E User Files switch select E case 1 blinking OFF PIL LED ON printf messagel break case 2 blinking OFF PlL LED OFF printf message2 break case 3 blinking ON printf message3 break on Build target Target 1 a assembling Start_V2 A66 compiling MAIN C MAIN C 269 warning C192 value truncated MAIN C 280 warning C192 value truncated MAIN C 286 warning C192 value truncated compiling IO C compiling ASCO C compiling COS 0 linking Program Size data 1308 near 1308 const 330 near 64 code 1758 lcreating hex file from XC164CM XC164CM 0 Errors 3 Warningis g ali 4 P oi Build Find in Files 4 D Simulation L 332 C 38 RAW Now you can close your project and u Vision 3 Project Close Project File Exit Application Note 61 V2 0 2006 07 Jum AP16102 In fi neon XC164CM Cookery Book Note From now on you can simply open your u Vision Project with Start Keil u Vision and open the Keil Project If you see an open project close it Project Close Project Project Open Project choose C XC164CM choose File type Project Files uv2 choose XC164
49. es DS Dav Use Simulator Settings Use Keil Monitor 66 Driver settings ln Limit Speed to Real Time EI gt El Iv Load Application at Startup M Run to main M Load Application at Startup Funto maint E Initialization File Initialization File Es CH Restore Debug Session Settings Restore Debug Session Settings M Breakpoints M Toolbox M Watchpoints amp PA Iv Memory Display Iv Breakpoints F Toolbox M Watchpoints Iv Memory Display CPU DLL Parameter Driver DLL Parameter g bb DUT Femopvz 8166 DLL Loun Dialog DLL Parameter Dialog OLL Parameter L pt amp DLL ext BACHI T167 DLL KSE SERA linking Cancel Defaults Program lcreating hex file from XCl164CM KC164CMH 0 Error s 3 Warningis x Find in Files Ready Keil Monitor 166 Driver L 319C 1 RAW Application Note 112 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book Options for Target Target 1 Debug click Use select Infineon DAS Client for XC16x XZ XC164CM pVision3 XC164CM MAIN C la x Die Edit View Project Debug Flash Pere Tools SVCS Window Help Ei x WIE 444 A L I edi pel lia Me 09 amp a BF oF em DS Dav Use Simulator Settings Limit Speed to Real Time m 8 cel 5 I iv Load Application at Startup M Run to maint M Load Applicat
50. ftware C251 Evaluation Software C51 Evaluation Software Product Information Note Why buy tools from Keil C166 is fully compatible with DAvE 2 from Infineon For How to place an order more details on using DAVE 2 with Vision refer to Get more information Application Note 148 Get Prices Quotes SIQUIS To install the Keil evaluation tools Sales Channels s Download and run C166V604A EXE This file is a self extracting SETUP program Follow the instructions displayed by the SETUP program File Information Download and run this file C166V604A EXE 16 031 776 bytes Be sure to request a quote for the full version of the tools Contact Site Map Press Privacy v Execute C166V604a EXE or higher and choose e g C Keil_D16bit_V604a for the installation path Application Note 42 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book Start Keil u Vision3 and open the DAVE Project Double click E X py A m d H gt 4 Le ES My My N xplorer Outlook Internet QuickTime Windows Musicmatch PowerDVD Nero Computer Places Explorer Player MediaPlayer JUKEBOX Burni i x e m 1 c LW i P ae Si Word Microsoft XCe PowerPoint NetMeeting GINA Start Aironet Wireless Visio Deskt Link A s g Ss och ire DOS Paint Shop view exe Calculator Pro 5 ea Be o BS Visual C EasyCASE Target type Application 6 0 C General Shortcut
51. get 1 Debug Click Use Select ULINK Driver for XC16x Z XC164CM pVision3 C XC164CM MAIN C BERE x File Edit View Project Debug Flash Peripherals Tools SVCS Window Help LE e x Aae4tgli amp ae joc ee 433 Ja M e 5 q n x s F m 3 Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities D Dav C Use Simulator Settings Fuse INT EE u EE Limit Speed to Real Time E 7 E M Load Application at Startup iv Run to main M Load Application at Startup Runto main E ra Initialization File Initialization File Restore Debug Session Settings E Cy Restore Debug Session Settings V Breakpoints V Toolbox M Watchpoints amp PA V Memory Display V Breakpoints V Toolbox M Watchpoints V Memory Display CPU DLL Parameter Driver DLL Parameter g 66 DLL Femonvz g 66 DLL Femonvz Dialog DLL Parameter Dialog DLL Parameter pi 6 DLL Le GACM H 67 DLL Le GACM Cancel Defaults Help 0 lt MAIN C ASCIC CCC E MANH y sr i H O MA nio derer Build Find in Files 4 D Ready Simulation L 319 C 1 RAW Application Note 94 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book click V Run to main Z XC164CM pVision3 C XC164CM MAIN C D 5 x als 3 Target Device Target Output Listing C168 EC
52. glePin IO vSetPinln IO vSetPinOut IO uwReadPort IO s VritePort IO vSetPortln IO vSetPortOut lume 7 e __ _ e S o es ee es TUNE esi 00 a nr a EE i E E E E E E E XC164CM new project Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking Eai the close button Application Note 38 V2 0 2006 07 Ce AP16102 Infineon XC164CM Cookery Book Save the project File Save Save project Save in C XC164CM create directory File name XC164CM Save project Save in axc 64CM x amp t C Er s History Desktop My Computer yao e My Network Pla File name xc164cM Save as type DAVE project file dav v Cancel F jlO_vSetPortin F jlO_vSetPortOut 72 XC164CM BEE Save Application Note 39 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book Generate Code File Generate Code DAVE will show you all the files he has generated File Viewer opens automatically amp DAvE Generated Files in C XC164CM 1 File View Options Add Ins Windows 2 e x I Dau fus DAvE s Project Documentation Project XC164CM dav Controller XC164CM 8F40 Compiler Keil Memory Model SMALL Date 21 07 2006 10 18 03 Please read this document carefully and note the red colored hints If you miss a file in the generated files list maybe you have forgot
53. hain Additionally the hello world example can easily be expanded to your needs You can connect either a part of or your entire application to the Starter Kit Board You are also able to benchmark any of your algorithms to find out if the selected microcontroller fulfils all the required functions within the time frame needed Note The style used in this document focuses on working through this material as fast and easily as possible That means there are full screenshots instead of dialog window screenshots extensive use of colours and page breaks and listed source code is not formatted to ease copy amp paste Have fun and enjoy the XC164CM Application Note 4 V2 0 2006 07 AP16102 XC164CM Cookery Book XC164CM Block Diagram Aktes CPU li ei Interrupt amp PEC Si Ka g Paipera Dolo E no CC1 DSRAM es no4k option 2 bytes Progviem Flash 2KE reduced to 64 kBytes OCDS Debug Suppot Ose PLL aie i Clock Generation i no PORTA Dr di XG164GM Application Note 5 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book Cookery book For your first programming example for the XC164CM Starter Kit Board TERMINAL EXE LEDs PIL 1 P1L 3 P1L 5 P1IL 7 ON LEDs P1L 1 P1L 3 P1L 5 P1L 7 OFF LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking your choice XC164CM Starter Kit Board Power Supply Jum
54. hip Flash On chip Flash Target Debug Options L nD Downloa EA M Run Programming Algorit Description om als AL Add Remove Start Size Offset linkin Progra creati OK Cancel Help EC164 Cutput Window Simulation L 319 ee RAW click Add Application Note 89 V2 0 2006 07 ee AP16102 n fi n e0 N XC164CM Cookery Book U1292R7E e ID CODE Device Name IC Ign 0xC00000 0x01 0000 0x000000 linkir Progra creati XC164 141 41 gt Build OK OK Application Note 90 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book And see the result KA XC164 pVision3 C XC164CM MAIN C elx project a Flash Peripherals Tools SVCS Window Help Hs x Lena FiEile Ec as gt ld EN n a Dave La i Start V2 A amp 2 MAIN C amp 8 IO C m D AGO C itch select case 1 blinking OFF PlL LED ON printf messagel break case 2 blinking OFF PlL LED OFF printf message2 break case 3 blinking ON printf message3 break 0 IS MAIN C ASCIC B CC2C B MANH Build target Target 1 a assembling Start_V2 A66 compiling MAIN C MAIN C 269 warning C192 MAIN C 280 warning C192 MAIN C 286 warning C192 compiling IO C compiling ASCO C compiling 02 0 linking Program Size data 1308 near 1308 const 330 near 64 code 1758 creating he
55. hy buy tools from Keil How to place an order Infineon Technologies Austria AG Gat more Information http www infineon com microcontrollers Get Prices Quotes Version Numbers Sales Channels H 43 1 5877070 300 v XI XI XI XI 3I 3I XI XI lt lt e e e s o Check our Privacy Statement for details regarding information collected on this web site Contact Site Map Press Privacy v Application Note 41 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Click Submit A C166 Version 6 04a Evaluation Software Request Infineon Technologies File Edit View Favorites Tools Help Back gt Q A A Search Gifavorites Media 815 SAVE Address amp https www keil com demo evaldl asp Go Links Googler well Cl Search 32 E Popups okay Check Autolink Autorill Options Evaluation Software gt KEIL An ARM Company Home Products Events Support Search CERE 5o Evaluation Software C166 Evaluation Software Overview Development Tools for XC16x C16x ST10 Microcontrollers Version 6 04a Requirements Limitations The Keil C166 Evaluation Kit allows you to create programs a le for the Infineon XC16x C16x and STMicroelectronics ST10 Evaluation Kits microcontroller families ARM Evaluation Software Review the hardware requirements before installing this software m Note the limitations of the evaluation tools C166 Evaluation So
56. indow 1 you can type 1 2 or 3 and you can watch the result in the Parallel Port 1 window Now if you want you can close your simulator session Debug Stop Running Debug Start Stop Debug Session Now if you want you can close your project and u Vision 3 Project Close Project File Exit Application Note 67 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book Using real hardware 5 Usine Bootstrap loader ASCO MEMTOOL Layout Overview Dos 0108 D110 DI12 L OCDS1 Config Infineon XC164CM LE D LS ce e FAREED Application Note 68 V2 0 2006 07 AP16102 In fi n eon XC164CM Cookery Book DIP switch 102 Jumper Settings Bootstrap Loader ASC Standard Internal Start DIO6 O108 D110 D112 eiejeleiejee o SoS E Eji EEEE x D105 D107 D109 0111 FOOAGOORS OCDS1 OO Config 1 Infineon XC164CM UG RISK lw R1581 N cololoiololotolool HI Gresch loiplolokololeol CRL a e o o o ee LL Bootstrap Loader ASC Standard Internal Start Switch 102 ITRST 9 5 9 4 Startup configuration Standard start from internal Flash Startup configuration Bootstrap loader ASC Application Note 69 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book MEMTOOL Installation On Chip Non Volatile Memory Programming Tool Wemtoot DT E Microcontrollers Hever siop lhinking The f
57. install the DAS the DAS Software for the USB Software for the USB JTAG JTAG Wiggler Box the first Wiggler Box click here or time click here or navigate to navigate to Keil setup folder Tanang setup Que 2D Drive Tools DAS CO Drive XTools Taskingh and start the setup exe and start the setup exe To install Keil pvision click 2 After finish the installation here or navigate to Keil setup connect your Debbuger Box folder to the USB connector of your CD Drive Tools Keil Software FC or Laptop and start the ek 1 BR oom exe After finish the installation connect your Debbuger Box to the USB connector of your PC or Laptop Note If you already install the DAS Software forthe USB Wiggler Box from a CD 2 1 coming with a ACTBACM Easy Kit please uninstall the Software before install the version of this CO by browsing to gt Start Settings gt control panel gt Add Remove Programs amp back te top amp 2005 Infineon Technologies AG Application Note 103 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Start Keil u Vision 3 and open the KEIL Project XC164CM Uv2 If you see an open project close it Project Close Project Project Open Project choose C XC164CM choose File type Project Files uv2 choose XC164CM uv2 Offnen Open Do you want to migrate the changes Click JA Yes A XC164CM pVision3 C XC164CM MAIN C FiEile Edit View Project Debug Flash Peripherals
58. ion Note 58 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Double click ASCO C and insert code into the ASCO_vInit function to start printf ASCO_TIC_IR 1 A A XC164CM pVision3 C XC164CM ASCO C 1 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help x Asagi talc E g AA Wil zate gt alala EAn en m BH A Target 1 dh amp 2 33 Target 1 156 ASCO RXFCON 0x0102 load ASCO receive FIFO control regist S Dave Files 157 ASCO TXFCON 0x0102 ff load ASCO transmit FIFO control regist 8 Start V2 A66 158 33 MAIN C AD dn ERROR PC ERREUR A SC ODE E 8 IO C 160 Configuration of the 8 ASCO C 161 Aff A E S CC2 C 162 P3 10 is used for ASC Transmit Data Output TxDAO User Files 163 P3 11 is used for ASCO Receive data Input RxDAO ser 164 165 ALTSELOP3 0x0400 ff select alternate output function ABB P3 P3 amp uword 0x0400 0x0400 set data register 167 DP3 DP3 amp fuword 0x0400 0x0400 set direction register 168 Re 170 Configuration of the used ASCO Interrupts LE mm nad 172 173 ff USER CODE BEGIN ASCO Function 3 174 ASCO TIC IR 1 175 ff USER CODE END 176 177 ASCO CON 0x8000 enable baud rate generator 176 179 180 End of function ASCO vInit 4 sn MAIN C MAINH e DICO Build j Command A FINA IN Fes j B Simulation L 174 C 17 RAW Application
59. ion at Startup M Run to maint 2 Initialization File Initialization File a 8 Restore Debug Session Settings Restore Debug Session Settings M Breakpoints MF Toolbox M Watchpoints amp PA Iv Memory Display Iv Breakpoints F Toolbox M Watchpoints M Memory Display CPU DLL Parameter Driver DLL Parameter g bb DUT Femopvz 8166 DLL Loun Dialog DLL Farameter Dialog OLL Farameter pt amp DLL FrxtBacm T167 DLL EX1 64CM Cancel Defaults Help xC164CMH 0 Error s 3 Warningis 4 h Build Find in Files Ia gt Ready ULINK Driver for xC16x L 319 eee RAW OK Application Note 113 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Now you can debug with OCDS via USB JTAG Wiggler Box or click En Debug Start Stop Debug Session le10k pVision2 SEN pVision2 Eelere TER EHE Wew Broject Dag Fl cpr Tools SES Wegen Hep File Edit View Project Debug Flash SH Tools SVCS Window Help ja TITI EEE TC aaja EIER A B Q SEM Sto le CITESI AR Target loue ebe 2 Elle Edit View Project Debug Flash Peripherals Tools SVCS Window Help lelx BcHalkBelnelees sa ar Wl lan e os app s P m StlHOMP Poo a Aeg DER ce Ve ff USER CODE END Besser Re MAIN viInit ff USER CODE BEGIN Main 4 while R5232 wait while 1 EVALUATION VERSION Running in Eval Mode SK PIL LE
60. ion pins are activated while TRST 1 and the hardware reset signal is active shown in the Table 2 below Basic Startup Configuration via External Circuitry Function Default standard start internal Flash Standard start internal Flash Bootstrap loader via ASCO Bootstrap loader via CAN Adapt Mode Reserved v gt gt PIO Ol OH Hi GO V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book B Adobe Reader XC164CMBoard_Vi_0 pdf 1 5 x FF File Edit View Document Tools Window Help 8 x vr jc B c eR gt Be me Table 3 DIP Switch Settings for 102 Name in Default configuration Description schematic 102 Startup configuration Standard start from internal Flash OFF OFF OFF OFF Bookmarks N Signatures Startup configuration Bootstrap loader ASC ON ON OFF OFF pases fi Layers Startup configuration Bootstrap loader CAN ON OFF ON OFF Startup configuration Adapt Mode ON ON ON OFF Startup configuration All other positions are reserved SS 7 82 x 11 08 in 4 i4 4 11 of 28 gt AMIO Ol Gi HA n n am FS of om Mom H am Bon d Loud id Lk ud did ku Press Reset Key Application Note 77 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Erase the ONChipFlash Connect x Infineon Memtool on Easy Kit with XC164CM 8F Series File Target Device Log Help File FLASH OTP Memory Device 64 KByte on chip Program FLASH v M Enable Open
61. k LI WR 0 a Target Ga Dav amp 8 I eg a e C Simulator Setup Configuration from Program Memory e 16 bit multiplexed e M Iv v m m Build t assembl compili MAIN C MAIN C MAIN C compili compili D167 DLL p X164CM T167 DLL pX164CM compili linking Programm creating e oe XC164CM 0 Error s 3 Warningis 14 41 gt Build OK OK Application Note 65 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Debug Start Stop Debug Session Emp m gs P gu AN EVALUATION VERSION Running in Eval Mode SK OK v XC164CM pVision3 C XC164CM MAIN C A Elle Edit View Project Debug Flash Peripherals Tools SVCS Window Help is j x ag gsm 22 EEK Jane am sa pa np em 327 void main void 3266 329 ff USER CODE BEGIN Main 2 330 331 ff USER CODE END 0x0001 MAIN vInit 0x0000 0x0000 USER CODE BEGIN Main 4 0x0000 while R5232 wait Ox01f6 while 1 Ox00c0 0x0000 0x0000 0x0000 0x0000 0x0000 switch select 0x0000 printf menu select input case l blinking OFF PlL LED ON printf messagel break case 2 blinking OFF PlL LED OFF printf message2 break 0x0 case 3 blinking ON printf message3 break 0x0000 0x0000 v du Iw IS MAIN C ASCO C B cc2c B MANH Load C KEC164CM KXC164CM l gt ASM ASSIGN BreakDisable BreakEnabl
62. l of Infineon Technologies if a failure of such components can reasonably be expected to cause the failure of that life support device or system or to affect the safety or effectiveness of that device or system Life support devices or systems are intended to be implanted in the human body or to support and or maintain and sustain and or protect human life If they fail it is reasonable to assume that the health of the user or other persons may be endangered See AP16102 In fi neon XC164CM Cookery Book AP1610210 Revision History 2006 07 V2 0 Previous Version none Page Subjects major changes since last revision We Listen to Your Comments Any information within this document that you feel 1s wrong unclear or missing at all Your feedback will help us to continuously improve the quality of this document Please send your proposal including a reference to this document to P mcdocu comments infineon com Application Note 3 V2 0 2006 07 infir AP16102 l n fi n eon XC164CM Cookery Book Note Table of Contents see page 6 Introduction This Appnote is an Infineon Hands On Training It will help inexperienced users to get an XC164CM Evaluation Board Starter Kit Board up and running With this Hands On Training Cookery Book step by step book you should be able to get your first useful program in less than 2 hours The purpose of this document is to gain know how of the microcontroller and the tool c
63. les or Target 1 click right mouse button click Options for Target click Options for Target Target 1 Vp XC164CM pVision3 C XC164CM a XC164CM uVision3 C FIEile Edit View Project Debug Flash Peripherals Te FE 4 SH Bl weld m9 while Rizag Project Workspace EINE 3 Options for Target als ls x Target Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities DS Dav Use Simulator Settings Use Keil Monitor1 66 Driver settings i E m Limit Speed to Real Time amp m amp V amp 8 I M Load Application at Startup i Run to maint i Load Application at Startup Run to maing Bf Initialization File Initialization File EC Fa E ke Restore Debug Session Settings Restore Debug Session Settings M Breakpoints M Toolbox M Watchpoints amp PA Iv Memory Display Iv Breakpoints F Toolbox M Watchpoints Iv Memory Display CPU DLL Parameter Driver DLL Parameter g bb DUT Femopvz 8166 DLL Loun Dialog DLL Parameter Dialog OLL Parameter pt amp DLL ext BACHI T167 DLL KSE linking Cancel Defaults Program lcreating hex file from XCl164CM s xci 4cM 0 Erroris 3 Warning s Find in Files Ready Keil Monitor 166 Driver L 319C 1 RAW Application Note 93 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Options for Target Tar
64. ly Welcome AC161CGHCS XC164CH series AC164Chi This CD ROM provides all relevant ACT164GM software tools and information C164KM aboutthe XC16 Infineon Microcentrollers family for taking ACT64L M the first steps 2C1645M SCH BA TIMI Te setup your Environment please click and follow the 3 Steps of the HC 16405 series Getting Started AC164C8 201640 21 64h Getting Started AC1645 AC167C1 D Navigation Select on the left side the product on which you would like te get information like User s Manual and Data Sheet as well as hardware information en the 201 6x Easy Kit board Application Note 101 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book E Getting Started Infineon Technologies File Edit View Favorites Tools Help Back gt A Qsearch GdFavorites Meda SE amp 2 e HF 4 Address D Training GettingStarted GettingStarted htm Go Links Googly v ClSearch IE Popups okay Check e Autolirk lAutoFill KdOptions Easy Kit CO Home Infineon Home Infineon ETS Easy Et CD Home Getting Started Application Notes Tools Extension Boards Utilities Never stop thinking Getting Started gt Step 1 gt Hardware Setup Welcome AC161C4CS XC164CH series AC 1 64 CM LIL To Setup the Hardware AC164KN AC164L Hl 21645 ACIGA4TNI XC164CS series AC164CS 401640 AL 164 AC 1648 ACl r Cl Easy Kit Board USB Wiggler N 1 j nonnonna Y zer i
65. n Files For Help press F1 ULINK Driver for XC 16x H 0 00000000 sec L 333 E RAN Application Note 97 V2 0 2006 07 um AP16102 In fi neon XC164CM Cookery Book Debug Run RST Project Wor G SEEN SS Register W orc j LEDs P1L 1 P1L 3 P1L 5 P1L 7 ON LEDs P1L 1 P1L 3 P1L 5 P1L 7 OFF LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking quour choice ri rg d rl rl rl ri rl ri break Byte break Mac RS Sys o A a Load C ECI64CH AC164CH Sp 77 07 veus gt ASM ASSIGN BreakDisable BreakEnable BreakKill BreakList o KI 4 gt gt h Build A Command Find in Files gt 21 414 gt bi f Locals watch 1 watch Ready ULINK Driver for XC16x ti 0 00000000 sec L 333 C 1 RAW Application Note 98 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book WR Application Note 99 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Easy Kit XC164 CD click start htm File Edit View Favorites Tools Help B My Documents B des My Computer E amp YBDCOSS071 C amp Easy Kit XC164 D e G i salesvie on salesvie vie infineon com X e Gei brezovit on userhome 2 vih infineon cc Ef CP Drive on mus M sales on Dussda O2 agroups Ns 2 vihshare on vihshare vih infineon com 2 SWPool on vihsdnO1 vih infineo c 5 is Control Panel o E My Network Places B Recycle Bin 8 Internet Explorer Type HTML Document Size 18 9
66. ncel Defaults Help Progr alr slcreating hex file from XCI64CM E XCl640M 0 Error s 3 Warning s PE wm 3 Find in Files Ia Simulation L 319 C 1 HD p Dp Db BAM Application Note 86 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Options for Target Target 1 Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Select ULINK Driver for XC16x LA XC164CM pVision3 C XC164CM MAIN C EO lelx asugi e loc ses 433 aale oa e o Oli em m eis Options for Target Target 1 Project Workspace 13 Target Device Target Output Listing C166 EC A168 L166 Locate L166 Misc Debug Utilities HS Dav Configure Flash Menu Command 8 N Use Target Driver for Flash Programming ULINK Driver for XC1 Bx Settings Update Target before Debugging nit File m Edit C Use External Tool for Flash Programming Command Si Arguments 17 Run Independent Cancel Defaults Help 3 J 2 0 MAIN C Asco c A cc2c E MANH X e d M fl m sla nino B Regie Build D Simulation L 319 C 1 RAW Application Note 87 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Options for Target Target 1 Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Click Settings Click Add KZ XC164CM pVision3 C XC164CM MAIN C Die Edit View Proje
67. ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob Global Variables ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ok ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe ob ob ob o amp ASCO C w L CC2 C USER CODE BEGIN MAIN Header 7 User Files extern bit blinking extern volatile int R5232 wait USER CODE END ff ff PCs ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe ob ob Prototypes Of Global Functions ff CR bob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o o o o void MAIN vUnlockProtecReg void w s S MAIN C MAIN H TT BUA Commend A ANA A ASS RE Simulation L 3684 C 32 ooo CREE RR Application Note 57 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Double click Main h and insert Includes for printf include lt stdio h gt include lt ctype h gt Vb XC164CM pVision3 C XC164CM MAIN H Pie Edit View Project Debug Flash Peripherals Tools SVCS Window Help H la
68. ollowing procedure will install prepare Memtool for the programming of the XC164CM Download MemToolv4 0 2 exe or higher version http www infineon com ce 1 bin ifx portal ep channel View do channelld 75076 amp channelPage 2Fep 2Fchannel 2FinformationPage isp amp pageTypeld 17099 E Software Downloads Infineon Technologies Infineon Technologies File Edit View Favorites Tools Help Bak v gt Q A A Search Favorites Media J Bry 3 A AVE Address a jew do channelld 75076 amp channelPage 2Fenp 2Fchannel9 2FinformationPage isp amp pageTy Google sw G Search 39 amp Popups okay Check AutoLink E AutoFill EdOptions Search Ir Search Home Partners Sitemap Where to bu e e n fi n eon Products Company Investor Press Careers Home Products Product Categories Microcontrollers Development Tools and Software gt C166 XC166 Development Tools and Software Software Downloads Never stop thinking Software Downloads a ee Product yc466 C166 Version Na MemTool v4 0 2 V4 Simulation Modelling MemTool is a free of Operating Systems charge software tm Programmers Flash Tools designed for on chip MemToal description StarterKits and Evaluation Boards MemTool flash programming 314 KB Software Partners V3 v3 4 1 MemTool V3 is still Software Downloads used for the C166 MemTool v3 4 1 exe TriCore Development Tools and family For other 1 54 MB Software
69. ook 2 DAVE Installation for XC164CM microcontrollers Install DAVE mothersystem Download http www infineon com DAVE the DAvE mothersystem setup exe DAVE Mothersystem without derivatives Setup exe cS 152MB 7 Jul 2005 and execute setup exe to install DAVE Application Note 13 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book Install the XC164CM microcontroller Update 1 Download http www infineon com DAVE the DAvE update file DIP for the required microcontroller DAVE DIP files for the XC166 microcontroller Family Infineon Technologies File Edit View Favorites Tools Help Back gt A A Qsearch Favorites Media SE amp v AVS Address amp http Awww infineon com egi bin ifx portal ep orogram View do channelld 65578 amp programId 347C Google ClSearch amp IE Popups okay Sf Check amp AutoLink AutoFill Ed Opt Search PE 5 Search Home Partners Sitemap Where e Infineon Company Investor Press Careers i Home Products Product Categories Microcontrollers Development Tools and Software 7166 04 66 Development Tools and Software DAVEVUML DAE DIP files for the 42166 microcontroller Family Never stop thinking DAVE DIP files for the XC166 microcontroller Family a Development Tools and Software v Development Tools b C500 0800 XC DUU Development Description File Hame Pages Date RE Toole and Soft om
70. per Setting Serial cable to the notebook DAVE program generator DAVE installation mothersystem DAVE Update XC164CM DIP for XC164CM Using DAVE Microcontroller initialization for your programming example Using the KEIL Development Tools C EC Compiler Programming of your application XC164CM with KEIL tool chain u Vision3 Compiler V6 04a first steps with the Simulator Application Note 6 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Additional exercises OnChipFlash Programming with Bootstrap Loader Mode ASCO MEMTOOL Merging DAVE with u Vision3 OnChipFlash Programming and OCDS via Keil ULINK or USB JTAG Wiggler Box Application Note 7 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book single shot modulated playing music Feedback Feedback Application Note 8 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book 1 XC164CM Easy Kit Ordering information Starter Kit Type Ordering No SK XC164CM XC164CM Easy Kit B158 H8647 X 0 7600 Distribution Worldwide http www intineon com ce1 bin ifx portal ep channel View do channelld 66982 amp pageTypeld 17224 Application Note 9 V2 0 2006 07 Jum AP16102 l n fi n eon XC164CM Cookery Book You need a Power Supply The XC164CM Board requires an external power supply A regulated DC power supply with 9 Volts 400 mA can be connected to the power connector
71. rS XC154CM DIP File for DAVE xciB4cM mz a NB Be ME 45 Mar 2006 v03 b C166 0166 Development Tools and SSR Unzip the zip file XC164CM_v0 3 zip and save XC164CM DIP e g D DAVE XC164CM 2006 07 20 Application Note 14 V2 0 2006 07 Jum AP16102 In fi neon XC164CM Cookery Book 3 View Setup Wizard Default e Installation Forward gt Select e I want to install products from the DAvE s web site Forward gt Select D DAVE XC164CM 2006 07 20 Forward gt Select Available Products click v XC164CM Forward gt Install End 4 DAVE is now ready to generate code for the XC164CM microcontroller Application Note 15 V2 0 2006 07 Ce AP16102 Infineon XC164CM Cookery Book 3 DAVE Microcontroller Initialization after Power On Start the program generator DAVE and select the XC164CM microcontroller File New 16 Bit Microcontrollers XC164CM Create File View Options Add Ins Windows 2 oe Da zinc amp DAvE New Project x 16 Bit Microcontrollers 8 Bit Microcontrollers Communication ic 32 Bit Micro 4 gt C163 14 C167SR i t C154Cl 1 C167SR r2 C165 TI XC161CJ i t C165H XC164CM i C165UTAH TI XC164CS C167 i X lt C164D 14 C167CR 1 XC164N i2 CIB7CR r2 i XC1645 14 C167CS TH XC167C1 1 C1675S EM E e EE Application Note 16 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Choose the Project Settings as you can see in th
72. s Configure Flash Menu Command T SE D a AR Use Target Driver for Flash Programming cel 5 settings Update Target before Debugging pi 8 C Init File t1 E dit Ll C Sel Use External Tool for Flash Programming Command LI Arguments Funindependent asy _ ee linkin Cancel Defaults Help Progr alr creating hex file from ECl64C0M E XCl640M 0 Error s 3 Warning s PE wm 3 Find in Files Ia Simulation L 319 C 1 HD p Dp Db BAM Application Note 105 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Options for Target Target 1 Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Select Infineon DAS Client for XC16x Z XC164CM pVision3 C XC164CM MAIN C n 2 x P File Edit View Project Debug Flash Peripherals Tools SVCS Window Help E el x Options for Target Target 1 Project Workspace_ Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities Confiqure Flash Menu Command Use Target Driver for Flash Programming Infineon DAS Client for XC1 Bx settings Update Target before Debugging nit File a Edit C Use External Tool for Flash Programming Commendi ID Arguments T Run Independent Cancel Defaults Help Seu P SS MAIN C ASCUC B CC2C B MANH ULINK Driver for XC 16x L 333 C 1 TED RAW Applic
73. served for DSRAM Reserved 000000 oozerr 32Koytes Application Note V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book Output click v Create HEX File ls V9 XC164CM uVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help ASSURE SERENE Asa r e gt S Q kp et m e EE Options for Target Target 1 Device Target Output Listing C166 EC A166 L166 Locate L166 Misc Debug Utilities A S Name of Executable KC164CM TI 8 81 aA A Create Executable XC164CM g 8 C Iv Debug Information IV Browse Information mus V Create HEX File HEX Format HEX 386 H167 v Start End FLASH Fill Byte Offset C Create Library XC164CM LIB Create Batch File After Make iv Beep When Complete Start Debugging Run User Program 1 Browse Run User Program 2 Browse tput Window 4 gt Simulation DORRA Listing do nothing C166 do nothing EC do nothing A166 do nothing L166 Locate do nothing Application Note 49 V2 0 2006 07 ur AP16102 l n fi n eon XC164CM Cookery Book L166 Misc Interrupt Vector Table Address insert 0x0C00000 Z XC164CM pVision3 E lelx Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help Aad Or 3 eoces s s4 343K E DER lt t e RR ep go Options for Target Target 1 3 i3 Target Device
74. side these USER CODE sections you will have to insert modify your changes each time after letting DAvE regenerate code Application Note 51 V2 0 2006 07 See AP16102 In fi neon XC164CM Cookery Book Double click MAIN C and insert Global Variables char menu r n n n n 1 LEDs PIL 1 PIL 3 P1L 5 P1L 7 ON r n 2 LEDs PIL 1 PIL 3 P1L 5 P1L 7 OFF r n 3 LEDs PIL 1 P1L 3 P1L 5 P1L 7 blinking r n Wu char question your choice char messagel nv LEDs ON r n char message2 n r LEDs OFF r n char message3 n r LEDs BLINKING r n volatile int RS232_walt 2 bit blinking ON char select Application Note 52 V2 0 2006 07 See AP16102 Infineon XC164CM Cookery Book XC164CM pVision3 C XC164CM MAIN C Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help x la x ae4gdl be 2c ee54 3 ml Ja gt eo BE F m e i 4 amp Target1 v e E Project Workspace x ia Target 1 USER CODE BEGIN MAIN General 7 2 3 Dave Files char menu 8 Start V2 A66 rimini B MAIN C I LEDs P1L 1 P1L 3 P1L 5 P1L 7 ON r n Bloc 2 LEDS P1L 1 P1L 3 P1L 5 P1L 7 OFF r n 8 ASCO C 3 LEDs PIL 1 P1L 3 P1L 5 P1L 7 blinking r n i S CC2C r n User Files char question your choice char messagel n r LEDs ON r n char messagez n r
75. t T8 after initialization T8R Timer 8 reload TER Overflow ms 26 2144000 register CC2 TEREL E Interrupt Control Timer 8 register Enable T8 interrupt IE CC2_T8 C164CM new project Channels do nothing Application Note 32 V2 0 2006 07 ur AP16102 Infineon XC164CM Cookery Book Interrupts drag and drop the CC2 Timer 7 INT to Interrupt Level 7 Group 0 3 DAVE elx Elle View Options Add Ins Windows oa Ose fus DAvE XC164CM Release v0 3 amp Capture Compare Unit 2 CAPCOM2 a gt Module Clock Control Timer 7 8 Channels Interrupts Int Extension PEC Functions Parameters Notes Level 0 non interrupting el 9 el CC2T INT el 5 evel 4 el 3 el2 Level 1 Note To change the level and the group of an interrupt source click on it drag itto its new position and drop it To set an interrupt source to the non interrupting level Level 0 click on it drag itto the Level 0 list and drop it XC164CM new project Int Extension do nothing PEC do nothing Application Note 33 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Functions Initialization Function click v CC2 vlnit 8 DAVE Eile View Options Add Ins Windows gv D B fius DAvE XC164CM Release v0 3 Initialization Function Source File CC2_vinit File name Eet Function Library Part 1 Ee CC2 viTmr CC2_viTmr d E
76. t View Proje Seals Es 0 M 2 Q ER mr gm EE Options for Target Ta cet 1 E 3 Target Device Target Output Listing C166 E 166 L166 Locate L166 Misc Debug Utilities ES Dav Use Simulator Setings C Use Keil Monitor 166 Driver Settings als Jelx mebug Flash Peripherals Tools SvCS Window Help 185 7 Limit Speed to Real Time d 31 M Load Application at Startup Iv Run to main V Load Application at Startup Runto main o Dt Initialization File Initialization File Er l reak LI Edit Ei Edit break fia Usel Restore Debug Session Settings Restore Debug Session Settings Iv Breakpoints iv Toolbox Iv Watchpoints V Memory Display Iv Breakpoints Iv Toolbox M Watchpoints amp PA Iv Memory Display CPU DLL Parameter Driver DLL Parameter compili g 66 DLL Femopv2 si 66 DLL Femonvz MAIN C MAIN C MAIN C MM compili Disleg DCE Parameter Dialog DLL Parameter compili D167 DLL Fpx164CM T167 DLL Frx 64cM linking Progran Cancel Defaults Help creatine d XC164CM 0 Error s 3 Warning s 3 v E Find in Files IK Simulation L 330 C 34 VO ERR CS RO SS Application Note 64 V2 0 2006 07 ur AP16102 l n fi n e0 n XC164CM Cookery Book Simulator Setup Startup Configuration SMOD choose Configuration from Program Memory click v EA 1 click v RD 1 click LJ ALE 0 clic
77. ten to select the initialisation function of the related module Generated Files MAIN H MAIN C IO H IOC ASCO H ASCO C CC2 H CC2 C XC164CM ASM XC184CM CAXC154CMYXCT84CM deu File Exit Save changes Click Yes Application Note 40 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book 4 Using of the KEIL u Vision 3 Development Tools Install the Tool chain here you can download the Keil Development Tools http www keil com demo eval c166 htm C166 Version 6 04a Evaluation Software Request Infineon Technologies File Edit View Favorites Tools Help Back Q A A Qsearch GdFavorites PMedia J Sr 3 ETA Address https www keil com demo evaldl asp p c166 D Go Links Googler sw Czech amp Popups okay Check AutoLink ElAutoFill EdOptions Evaluation Software gt KEIL An ARM Company Home Products Events Support Search Keil com Go Evaluation Software C166 Evaluation Software Overview Development Tools for XC16x C16x ST10 Microcontrollers Requirements Version 6 04a Limitations CD ROM Request Complete the following form to download the evaluation software Evaluation Kits Enter Your Contact Information Below ARM Evaluation Software bold fields are required C166 Evaluation Software C251 Evaluation Software C51 Evaluation Software Product Information FAE MC W
78. tup TriBoard with TC1164 TriBoard with TC1165 el w E Default New Copy Edit Remove Infineon Zt Ton coca tee ri OK Application Note 74 V2 0 2006 07 ee AP16102 n fi n e0 n XC164CM Cookery Book Infineon Memtool on Easy Kit with XC164CM SF Series 64 KByte on chip Program FLASH not ready el Ww Ox00C00000 Ox00C01FFF Remove All Frase 0x00C02000 Ox00C03FFF Ox00C04000 Ox00C05FFF 5 E Ox00C06000 0x00C07FFF Remove Sel FOGFGITIE Ox00C08000 Ox00COFFFF MEMTOOL is now ready to program the OnChipFlash of the XC164CM microcontroller Application Note 75 V2 0 2006 07 Infineon AP16102 XC164CM Cookery Book Using MEMTOOL Programming XC164CM h86 into the OnChipFlash in the XC164C M Assign Power to your target board Set Dip Switch S102 to Bootstrap Loader ASC JA Adobe Reader XC164CMBoard V1 O pdf 7 File Edit View Document Tools Window Help Name in Pages fl Layers fl Signatures H Bookmarks Table 2 XC164CM Pin level configured by 102 ITRST 0 P9 5 x P9 4 x ITRST 1 P9 5 1 P9 4 1 ITRST 1 P9 5 0 P9 4 1 ITRST 1 P9 5 1 P9 4 0 ITRST 1 P9 5 0 P9 4 0 All other positions Al 782x1106in 4 B i4 4 9 of 28 Application Note 76 e aL 1006 9 Description al Startup configuration Standard start from internal Flash Default The pull ups on the configurat
79. w DC power supply 1 Connect your DC power supply with to the Easy Kit Board ensure correct polarity gt the two green LED for SV and 2 5V will switch on Note The Power Supply 7 12 Volts min 400mA is not included in the Easy Kit 2 The USB Wiggler has to be connected to the PC after Step 2 Software Installation ES Application Note 102 V2 0 2006 07 AP16102 In fineon XC164CM Cookery Book Install click DAS Software 4 Getting Started Infineon Technologies File Edit View Favorites Tools Help Back gt A search GdFavorites Media SE amp e BVP Address D Training GettingStarted GettingStarted_2 htm Go Links Google v ClSearch Popups okay 4 Check amp AutoLink AutoFill MGptions Easy Kit CO Home Infineon Home Infineon pplication Notes ools xtension Boards ilities Easy Et CD Home Getting Started Never stop thinking Getting Started gt Step 2 gt Software Tools Welcome AC TET S XC164CH series 2C164CM 2C164GM si Install the Software AC164LM XC164SM Integrated Compiler Development Environment CEATA On the Easy Kit we focus in our examples on two Tool vendors please select one of them XC164CS series By click the logo the install folder will open in a separate window ACT64C05 AC184D AC 164 XC1848 KEIL xc z DIE Allium 1 Before install the Keil ui Vision 1 To install Altium Tasking and the first time
80. x file from XCl64CM XC164CM 0 Error s 3 Warning s Load C XC164CM XC164CM Erasing Erase Done value truncated value truncated value truncated Programming Done ilverify OK ZlApplication running Ww 4 41 gt gt i Build Find in Files D D Download to Flash Memory Simulation L 319 C 1 RAN Application Note 91 V2 0 2006 07 etc AP16102 n fi n eon XC164CM Cookery Book Multi threaded TTY File TTY Transfer Help Een ul DE EIS ins Iv Local Echo No Reading 2600 None E v fi v Iv Display Errors I Wo Writing CR gt CR LF No Events Font Comm Events Flow Control Timeouts v Autowrap No Status 2 LEDs PIL 1 PIL 3 PIL S PIL f OFF 3 LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking your choice 1 xxx LEDs ON xxx 1 LEDs P1L 1 P1L 3 P1L 5 P1L 7 ON 2 LEDs PIL 1 PIL 3 PIL S PIL f OFF 3 LEDs P1L 1 P1L 3 P1L 5 P1L 7 blinking your choice 3 xxx LEDs BLINKING xxx 1 LEDs P1L 1 P1L 3 P1L 5 P1L 7 ON 2 LEDs PIL 1 P1L 3 P1L 5 P1L 7 OFF 3 LEDs PIL 1 P1L 3 P1L 5 P1L blinking your choice M 1 Status message go here Modem Status Comm Status MN Cis DSR RING J RESD CD CTSHold XOFFHold TxChar I DSRHold XOFFSent TX Chars o I RLSDHold EOF Gen PRX Chars fo Application Note 92 V2 0 2006 07 ee AP16102 l n fi n eon XC164CM Cookery Book mouse position Project Window Fi

Download Pdf Manuals

image

Related Search

Related Contents

Kit ventilazione ME.indd  1996 Ducati 900SS owner`s manual  taylor iii  Axis P3364-LV  Ethan Frome - Portal Prevención de riesgos  

Copyright © All rights reserved.
Failed to retrieve file