Home

AP16137 - Infineon

image

Contents

1. Project Workspace 070 m 3 Target 1 071 Dave Files 072 JP SNS 3 Start V3 A66 073 Global Variables 3 MAIN C 074 JP 7 7 vk o 2 o v ok o b ok o vb ok o o oe o v ve o ve ob o oe b ok oe e oe oe v ve oe v vb oe oe v oe oe e ob ob e oe ob ve v oe ve ee ob ve e ob oe e o oe e t gt 8 075 ASCS C 075 USER CODE BEGIN MAIN General 7 3 IO C 077 const char menu 4 UOCO C 078 Aninin 4 USICO C 99 1l LED IO Port 2 7 ONXn 2 B CC2 C fe T2 LED IO Port 2 7 OFF n fi 3 LED IO Port 2 7 blinkingXn 082 Xn 083 034 volatile int R3232 wait 2 085 volatile bit blinking ON o6 char select 087 USER CODE END 088 083 090 JP T 9 Hk vk vk kp ok o o ok o ok ok vb ok ok ok o o ok o o ok o o ok v ok ok v ob o ok o o ok o ob ok o o ok v o o v o o o o ob oe ve o oe ve aE oe vb e oe oe e o oe e ok ok 2 amp User Files o1 GExternal Prototypes 092 Jf SNS 093 094 USER CODE BEGIN MAIN General 8 095 006 USER CODE END 097 098 099 PSSS 10 GPrototypes Of Local Functions 101 E f TC 9 Hv o s v SN v 4 gt B MAIN C GAS Ier Br Simulation Application Note 89 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click MAIN C and insert the function input char input void char in do myprintf your choice in char U0CO ASC uwGetData while 1in 2 1
2. EN EEES g Z A a aal gt ulala IRIS aer a S Hues Target 1 jan e Project Workspace 069 ia Target 1 070 E OSOS o ee ok ke oe ve ae oe oe ve oe ve oe e oe veo ae m 3 5 Dave Files 071 Imported Global Variables A Start v3 A66 072 Jf f 7 7 PE v s ok o ok e o vk o ok o ok v o v o ok o ok o o o eo ve o o o ok ake ve o oe e oe ve oe ve X oe eoe ok ok ae MAIN C 073 044 USER CODE BEGIN MAIN Header 6 A main h dus intrins h 076 USER CODE END J xe16xregs h 077 scs h 078 13 io h 079 ff 7 oko v sk ok ook o vk o ok ob ok o o v o ok ob ok o o ob o ok ob ALLA 2h 0800 Global Variables ll CC a 081 PSN oo oe ve oe e ok ok ok ae i3 usicO h e UOCO h 083 USER CODE BEGIN MAIN Header 7 SCS C 084 extern volatile int RS232 wait B IO C 085 extern volatile bit blinking 9 UOCO C ns USER CODE END 8 USICO C s 8 CC2 C 089 Z f v v ok vk o ok o o vk o ok ob ok o ok vk o ok ob ok o o ve oe vb X oe e oe k ok oe oo E User Files 090 Prototypes Of Global Functions 091 ff PE PE v s ok ke o o ok o ok o ok o ok ke ok o ok o o ob o ok o oo ok ve oe eoe ok ok ok ae 092 093 094 void MAIN vUnlockProtecReg void 095 096 void MAIN vLockProtecReg void 097 098 void MAIN vChangeFreq void 099 100 USER CODE BEGIN MAIN Header 8 1m id 4 gt sc Z W Ir Br MAIN C M
3. File View Options Add Ins Windows leta Gem Anal DAVE XE164F Release v2 0 Part Lock Control PL C The contents of the port register is changed by the CAPCOM unit E The contents of the port register is not changed by the CAPCOM unit Stagger Control Disable staggered mode STAG XE164F new project A Application Note 49 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Timer 7 8 Timer 7 Start Control click Y Start T7 after initialization T7R Timer 7 8 Interrupt Control click v Enable T7 interrupt IE Timer 7 8 Timer 7 Input Selection T7I Prescaler choose Module Clock 1024 Timer 7 8 Timer 7 Registers Overflow s insert 1 ENTER File View Options Add Ins Windows lea Dmr Anal Timer 7 Mode TM Timer 7 Input Selection T FI e Ti d ENC Prescaler Module Clock 1024 Resolution 15 515 usec e C Counter mode Timer 7 Start Control Timer f Registers Start 7 after initialization Timer 7 reload TR Overflow ms 1999 9980606 register 0x043B Interrupt Control T7 External Run Selection Timer f register i t 0x043B Enable T7 interrupt IE Disable external setting of T v CC2 T7 Timer 8 Mode T8M Timer Input Selection Tal Ti d AO Prescaler Module Clock 8 Resolution 0 121 usec hd C Counter mode Timer Start Control Timer Registers r Start 8 after initialization Timer 8 reload T8R Overflow ms
4. compiling MAIM C enmpiling ECE C compiling I0 2 compiling DOG u mm Gempiling FICH C eenpiling CCZ C ecmpiling myprintf c linking Program Size data IUS91 n amp AE 1091 conste z2z nm amp amp Ar 156 c de 11949 creating hex file from XE164 XEI54 D Errar msm 0 Warning s 3 4 gt Build Command Find in Files la S Simulation L 380c 101 4 Application Note 105 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Note Programming is now complete Unfortunately it is not possible to test your program with the Keil Simulator because this feature 1s currently not supported Therefore we are going to load On Chip Flash Programming and run your program on the UConnect CAN XE164 in the next chapter Application Note 106 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book 5 Running your first programming example Make sure that the UConnect CAN XE164 is still connected to the host computer D I nim vimm A fien z gt MT E z UConnect Real Time Signat Controller USB Connection used for UART communication the USICO CHO UART RS232 serial interface 1s available via USB as a virtual COM port of the second USB channel of the FTDI FT2232 Dual USB to UART JTAG interface used for On Chip Flash Programming and Debugging first USB channel of the FTDI FT
5. n Dag ficos Global Interrupt Enable Y Enable global interrupt IEN XE164F new project AL Application Note 29 V2 0 2008 05 Infineon AP16137 UConnect CAN XE164 Cookery Book CPUCONI VECSEG do nothing File View Options Add Ins Windows n Dau ficos Scaling factor of Vector Table VECSC Space between two vectors is 2 words ka Segmentation Control Disable segmentation SGTDIS Branch Prediction Unit Control Y Enable branch prediction BP Vector Segment Pointer VECSEG Start from program memory VECSEG loxco WOT Configuration YD TC TL DISWDT executable until End of Init C DISWDT ENYWDT always executable Interruptibility of Switch Context INTSCXT C Switch context is not interruptible Switch context is interruptible Zero Cycle Jump function Control Y Enable zero cycle jump function ZJ XE164F new project P Note We should not change the pipeline behaviour Application Note Prefeteh III III refetc go E D meten ko i lai loa lo 1 n Memory 30 V2 0 2008 05 Cinfineon AP16137 UConnect CAN XE164 Cookery Book Additional information Start from program memory Source User s Manual Start from program memory VECSEG Program Memory 12 Mbytes External Addressing Capability Application Note On Chip Areas External Memory
6. 80 007 Aaa SES DAVE s Project Documentation Project XE164 dav Controller XE164F 96F66 Compiler Keil Memory Model SMALL Date 29 05 2008 15 05 10 Please read this document carefully and note the red colored hints If you miss a file in the generated files list maybe you have forgotten to select the initialisation function of the related module Generated Files XE164 ASM v RI s XE164F CAXE1G4XE164 dav A File Exit Save changes Click Yes Application Note 64 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book 4 Using the KEIL u Vision 3 Development Tools Install the tool chain You can download the Keil Development Tools http www keil com E C166 Version 6 11 Evaluation Software Request Infineon Technologies Els File Edit View Favorites Tools Help Back v gt 2 3 A Asearch Folders Favorites S 2 Sv Aw A2 m RH Address https www keil com demo eval c166 htm y Go v Links Evaluation Software gt KEIL S Home Products Events Support Search Keil com Product Informatio C166 Evaluation Software Software 8 Hardware Prc Development Tools for XC16x C16x ST10 Microcontrollers Why Buy Tools From Kei Version 6 11 Contact Ordering Instructions The Keil C166 Evaluation Kit allows you to create programs for the Infineon XC16x C16x and Product Information Reque i a STMicroelectronics ST10 microcontroller
7. G fis ERA La IDEM Cd peered H 11 od WOU HU mut Application Note 124 V2 0 2008 05 Cinfineon AP16137 UConnect CAN XE164 Cookery Book Now we close our project and u Vision 3 Project Close Project File Exit Application Note 125 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Conclusion In this step by step book you have learned how to use the UConnect CAN XE164 together with the Keil tool chain Now you can easily expand your hello world program to suit your needs You can connect either a part of or your entire application to the UConnect CAN XE164 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 Have fun and enjoy working with XE16x microcontrollers Note There are step by step books for 8 bit microcontrollers e g XC866 and XC888 16 bit microcontrollers e g C16x XC16x and XE16x XC2xxx and 32 bit microcontrollers e g TC1796 and TC1130 All these step by step books use the same microcontroller resources and the same example code This means configuration steps function names and variable names are identical This should give you a good opportunity to get in touch with another Infineon microcontroller family or tool chain There are even more programming examples using the same style available e g ADC exam
8. Targetl M XE154 pVision3 i XE164 uVision3 File Edit View Project Debug Flash Peripherals asu d mm Jee SE e s File Edit Vi amp y Project Debug Flash P xj ge ACE mug SEB OC E 4 SS SC xj EE ole Target 1 S u a Options for Target Target 1 Options for Target S E m e Dave Files E Open List File Wi 19 A Start V3 A66 Open AXE164M66 Y MAIN C pa Gr Open File Bo M A IO C LOCO C Y Build target ii LISICO C Translate File MI 19 pe CC2 C Stop build 3 User Files Mew Group Add Files to Group amp Manage Components Remove Item Include Dependencies CEM E AL Br Project Workspace Files Application Note 68 V2 0 2008 05 See AP16137 In fi neon UConnect CAN XE164 Cookery Book Device check XE164F 96F Options for Target Target 1 A x Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Database Generic CPU Data Base Vendor Infineon Device XElb64F 96F Toolset 166 fd XC2287 96F XC2365 48F Microcontroller built around the synthesizable 2166342 Core with ZK Bytes Uuakport RAM for Register Sets and System Stack 4 XIC2385 586F 1K Bytes stand by RAM SBRAM A XC2365 72F 16K Bytes data RAM DSRAM o d Ch XC2387 72F b4k Bytes program data RAM PSRAM 768K Bytes Program Flas
9. amp amp in 2 amp amp in 3 return 1n M XE164 uVision3 C XE164 MAIN C E el x E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help EX ASUS BA 22 E s AA A y 4444 gt m Sa 4 ET gn i ES e Z y A Target 1 jan e Ell Aa ia Target 1 342 4 Qn Dave Files 343 Start V3 A66 344 USER CODE BEGIN Main 1 H i 34 char input void 346 B 347 char in ji 348 do E 349 a USICO C 350 myprintf your choice a2 CC2 C 351 in char U0CO ASC uwGetData H d a Y T d d e a User Files 352 while in 1 KK in 2 amp amp in 3 353 return in 354 355 USER CODE END 356 357 void main void 358E 359 USER CODE BEGIN Main 2 360 361 USER CODE END 362 363 MAIN vInit 364 365 USER CODE BEGIN Main 3 366 367 USER CODE END 368 369 while l 370 371 372 USER CODE BEGIN Main 4 e gt ay 4 MAIN C GAS Iw Ir Br Simulation Application Note 90 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click MAIN C and insert the following code in the main function while RS232 wait v XE164 pVision3 C 1XE1641MAIN C E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help n x
10. myprintf c int dummy sprintf mb Var C Source file c o myprintf mb amp mo e B MAINC B MAIN H E Application Note 102 V2 0 2008 05 AP16137 n fi n eon UConnect CAN XE164 Cookery Book M XE164 uVision3 C XE164 myprintf c B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help asug B Qc FE 6 X qu y a n gt 0139 19 mx 4 P m HECK X a Target 1 jan a AA ci include main h fa Target 1 02 Dave Files 03 void myprintf const char p A Start V3 A66 04 1 E MAIN C e SE 5 5C5 C 07 UOCO ASC vSendData p s 8 IO C B i ad UOCO C 09 amp 8 USICO C 10 B CC2 C j User Files i El myprintf c gt Wivoid main void v H 18 myprintf Hello Worid r n 19 20 21 Example 2 use of myprintf 22 ff 23 24 char mb 200 message buffer for sprintf 25 26 void main void See 28 int dummy 29 30 sprintf mb Variable dummy d dummy Write formatted data to string mb 31 myprintf mb m 33 35 4 S mom Br B MANC B MANH Simulation Application Note 103 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click CC2 C insert Code CAPCOM 2 Timer 7 Interrupt Service Routine if RS23
11. Dau 4 A0 Data Transfer Interrupts and Node selection IT Alternate Receive Interrupt uoco oic INT e Transmit Buffer Interrupt uoco oic INT e Receive Interrupt uoco_oic INT IT Transmit Shift Interrupt uoco oic INT e IT Receiver Start Interrupt uoco oic INT e Data Lost Interrupt uoco oic INT e ASC Interrupts and Node selection ASC Protocol Interrupts uoco oic INT e Collision Detection Interrupt Format Interrupt Recetver Noise detection Interrupt Frame finished Interrupt C Synchronization Break interrupt XE164F new project fa Application Note 39 V2 0 2008 05 Infineon AP16137 UConnect CAN XE164 Cookery Book FIFO do nothing File View Options Add Ins Windows ou Dau 4 A0 Transmit FIFO Buffer Configuration No of FIFO buffer entries lo w Tx FIFO Data Pointer w Transmit FIFO Interrupts Configuration Limit for Interrupt Generation of Buter Event on Limit verme uoco oic INT e uoco oic INT e F Standard Tx Buffer Int Ix Butter Error Int Receive FIFO Buffer Configuration b x y No of FIFO buffer entries Rx FIFO Data Pointer Receive FIFO Interrupts Configuration Recetver Notification Mode RNM f Filling level mode C RC mode Limit for Interrupt Generation af Butter Event on Limit Ciper nma E Standard Bx Buffer Int uoco oic INT e uoco oic INT e uoco oic INT e E Alternate Bx Bu
12. Defaults Application Note 79 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book L166 Misc Interrupt Vector Table Address insert 0x0C 00000 Options for Target Target 1 7 xX Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Warnings Level 2 y Disable Warning Numbers use linker control file Create Relocatable Cutput File LINKOM CYA Interrupt Vector Table Address KO Assiqn RegBank Reserve Misc Controls Linker TO xE164 Control VECTAB 0x0C00000 String CLASSES ICODE 0xC00000 0xCOEFFF NCODE 0xC10000 0 C1FFFF e gt g ay E anaa E0 0000 00 F000 dE s Data Pa i gt ge 3 00 E000 o 9 C8 0000 C0 0000 m am B E BF 0000 E E l Data Page 2 Reserved co E E I 410000 H f 64 Note 40 0000 00 8000 gt O l a a 21 0000 The On Chip Flash starts here A AE j Data Page 1 El eno 20 0000 gt M 03 0000 00 4000 dr gt M 2 0270000 E H External e E ae Data Page 0 Memory 3 01 0000 o 00 0000 00 0000 16 System Segment 0 MByte Application Note 80 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Debug do nothing Options for Target Target 1 n S xX Device Target Output Listing User C166 EC A166 L166 Locate L166 M
13. Double click to add new sequencej Fort 2 7 ON ee GE D Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice Application Note 120 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 2 LED IO Port 2 7 OFF Edit Send Sequence Sequence Definition 2 Sequence insert 2 deu Edit Send Sequence Index 1 Control Characters Shortcuts Sequence Definition 1 Name 2 LEDIO Part 2 7 OFF 2 Sequence EditMode Y ASCII HEX Decimal Binary Pos 2 1 2 3 Additional Repeat Settings IT Send periodically if not sent as an automatic answer to a receive sequence Repeat sequence every b seconds Delete Sequence OK Cancel Apply Help OK Application Note 121 V2 0 2008 05 K Ce AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click inside the red box Dockligh 1 7 File Edit Run Too Help Deke gt SS A 7 oe LD Commmunication port closed Colors amp Fonts Mode COM5 9600 None 8 1 Send Sequences Communication Send Name Se ASCII HEX Decimal Binary gt 1 LEDIO Port 2 7 ON 1 gt 2 LEDIO Port 2 7 OFF ES l eee LED IO Port 2 7 ON D POTE 2 7 OFF Double click to add new sequence _Port_2 7 blinking Application Note 122 V2 0 2008 05 infir AP16137 n fi n eo n UConnect CAN XE164 Cookery Book Edit Send Sequence Seque
14. HiTOP52 U CA XC164CM CAN CCleaner Profile Space Recycle Bin Monitor at 1 Cleaner R Pant sh Dic S5qmaigeme24 1349 BA Start AP0807 Application Note 17 V2 0 2008 05 Infineon AP16137 UConnect CAN XE164 Cookery Book Double click Administrative Tools amp Control Panel File Edit View Favorites Tools Help Back v A Search Folders J 4 X Dw el a Address Control Panel v Go E 112 Pe a ie S B Y YN L Accessibility Add Remove Administrative Automatic Date Time Display Fax Folder Options Fonts Gaming Options Control Panel Options Hardware Programs Tools Updates Use the settings in Control Panel to ec S m kk gt personalize your MY B A 5 E 2 4 computer Internet Options Java Keyboard Mail Mouse Nero BumRights Network and NVIDIA nView Phoneand Power Options Printers Dial up Co Desktop Ma Modem Options view its description GE 9 J 9 a sg a 8 Windows 2000 Ki gt Support QuickTime Regional SAP SAPConsole Scanners and Scheduled Tasks Sounds and Speech System Text Services ThinkPad Options Configuration Administrator Cameras Multimedia Configuration ThinkVantage Users and Wireless Link Active Prot Passwords i 36 object s LE My Computer Application Note 18 V2 0 2008 05 Infineon AP16137 UConnect CAN XE164 Cookery Book Double click Computer Management DEN File Edit View Favorites Tools Help Back v 3i AsSear
15. Reserved for DPRAM 1 KBytes ESFR area 0 5 KBytes XSFR area 4 KBytes Data SRAM DSRAM 00 A000 16 KBytes Reserved for DSRAM 00 80004 00 9FFFy 8 KBytes External memory area 00 0000 00 7FFFy 32 KBytes Application Note 71 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Additional information Memory Map Source User s Manual Options for Target Target 1 Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Infineon XE164F 96F Clock MHz Bo Use On chip ROM 0xC00000 OxCOEFFF Memory Model Small near functions and data v Use On chip ROM 0xC10000 OXCBFFFF Operating System None el Use On chip XRAM 0xA000 OxDFFF Data Threshold hear 6 Use On chip XRAM 0xE00000 OXEOFFFF FFFFFF yy I H Oo Reserved Reserved F0 0000 Reserved PSRAM E9 0000 M PSRAM 64 KB Reserved Flash Access PSRAM SSES E8 0000 E 1 0000 Reserved Flash Area Flash 2 256 KB E caooo y Flash 1 256 KB No software access to this Flash range PSRAM 64 KB SRAM Timing E0 0000 Flash 0 252 KB Application Note 72 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Output click M Create HEX File Options for Target Target 1 Device Target Output Listing User C166 EC A166 L16
16. USICO Channel 1 Protocol Selection USIC Protocol for UOC1 None v XE164F Pew pramen RR y y Exit and Save this dialog now by clicking Ey the close button Application Note 34 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Configuration of the serial interface USICO CHO UOCO es DAVE File View Options Add Ins De Z DAS Y AvE XE164F tele 9 D Za K ba 1 pe XE164F new project E Application Note 35 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book ASC General Module Enable UOCO click M Enable module kernel clock and module functionality ASC General Pin Selection Transmit TxD select P7 3 ASC General Pin Selection Receive RxD select P7 4 ASC General Baud Rate Required baud rate kbaud insert 9 600 ENTER File View Options Add Ins Windows eco Dau 4 A403 t Module Enable LUCU Input Clock Enable module kernel clock and module functionality Input clock MHz Operation Mode Half Duplex Connection Type Baud Rate Full Duplex External E Internal i Half Duplex Pin Selection Step value STEP LoopBack Data Transmit TxD P 7 3 Divider factor PL IrDA Receive RxD P74 Real Baud rate kbaud PCRL Settings Parity Selection stop Bit Selection Pulse Length lo o OP One stop bit C Even parity C Two stop bits sample Point 7 C Odd parity Info Word length 8 Frame
17. 7 9437576 reale 0x0000 Interrupt Control T8 External Run Selection Timer 8 register Disable ext sett f T 00000 F Enable T8 interrupt IE Isable external setting o Y cc2 T8 XE164F new project Application Note 90 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Channels do nothing File View Options Add Ins Windows let Da Zoe Capture Compare Channels Confiqure Channel 16 Channel 16 is enabled Configure Channel 24 E Channel 24 ts enabled Configure Channel 17 PF Channel 17 is enabled Configure Channel 25 E Channel 25 is enabled Configure Channel 18 F Channel 161s enabled Configure Channel 26 Channel 761s enabled Configure Channel 19 Channel 1918 enabled Configure Channel 27 E Channel 27 is enabled Confiqure Channel 20 Channel 20 is enabled Configure Channel 28 FE Channel 25 is enabled Configure Channel 21 Channel 21 1s enabled Configure Channel 29 E Channel 29 is enabled Configure Channel 22 Channel 22 is enabled Configure Channel 30 FE Channel 30 is enabled Configure Channel 23 E Channel 23 1s enabled Configure Channel 31 E Channel si is enabled XE164F new project E Application Note o1 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Interrupts drag and drop the CC2 T7 INT to Interrupt Level 7 Group 0 File View Options Add Ins Windows Jem Dep 71803 Si DAVE XE16
18. Port Settings Stop Bits select 1 Ei Project Settings gt Communication Mode Bs p Monitoring receive only F Send Receive Send Receive on comm channel COMO hd Choose a COM port from the list of available devices or type a COM port from COM1 to COMZ5b COM Port Settings Baud Rate 9600 Data Bits Parity Stop Bits Parity Error Char ignore Cancel Application Note 111 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Project Settings Flow Control Flow Control Support click 9 Off ES Project Settings E x Flaw Control Support El Off p Manual RIS DTH can be set or reset manually CTS DSR lines are displayed but not used for synchronization Hardware Handshaking RIS CTS C Software Handshaking AON XOFF C R5405 Transcerver Control Set RTS high while sending Warning The R5485 Transcetver Control option is an expert setting for R5485 converters interfaces that require the RTS signal It is not available on Windows 95 ME and not supported by many USB to Serial devices OK Cancel Help Application Note 112 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Project Settings Communication Filter Contents Filter click Show all original communication data Hei Project Settings m x Communication Flow Control Communication Filter Contents Filter Ki Show all origin
19. Save this dialog now by clicking M the close button Application Note 93 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Configure Port 2 Pin 7 to Output TAL A DAVE XE164F Release v2 r Ara Note The is connected to n p me Wi wem p Application Note 54 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Ports click Configure Port 2 File View Options Add Ins Windows da Dm f us DAVE XE164F Release v2 0 es Parallel Ports da 2 Ports Functions Parameters Notes Configure Port 0 Configure Port 1 Configure Port 4 Configure Port 5 Configure Port 6 Configure Port 7 Configure Port 10 Configure Port 15 XE164F new Pra O OS OS KK gt A gt Application Note 55 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Port 2 Functionality click M Use P2 7 as general IO Direction click Out File View Options Add Ins Windows da Dem 4 fus Functionality Direction Push Pull Open Drain Output Value IT Use P2 0 as general IO In Out F Open drain F high IT Use P2 1 as general IO In Out F Open drain F high r Use P22 as general IO In Out M Open drain F high Use P233 as general IO In Out M Open drain F high IT Use P2 4 as general IO In Out M Open drain TC high r Use P2 5 as general IO In Out F Open drain F high r
20. Smart card readers ch Sound video and game controllers MM System devices Universal Serial Bus controllers Generic USB Hub Infineon USB COM Port Infineon USB Debug Intel R ICH8 Family USB Uni Intel R ICH8 Family USB Universal Intel R ICH8 Family USB Universal Host Contr Intel R ICH8 Family USB Universal Host Contr Intel R ICH8 Family USB Universal Host Contr Intel R ICH8 Family USB2 Enhanced Host Con Intel R ICH8 Family USB2 Enhanced Host Con USB 2 0 Root Hub USB 2 0 Root Hub L Batteries IO a Am dm d JE EB COMS E ost Contr USB Composite Device USB Composite Device USB Mass Storage Device USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub Application Note 21 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book 2 DAVE Installation for XE16x microcontrollers Install DAvE mothersystem Download the DAvE mothersystem setup exe O http www infineon com DAVE Title Date Version Size Tool Package DAVE Mothersystem latest version US Feb 2007 2 1 r24 14 8 MB DAWE Motherzystem 04 Jul 2006 x21 r23 15 1 MB and execute setup exe to install DAvE Note Abort the installation of Acrobat Reader Application Note 22 V2 0 2008 05 See AP16137 In fi neon UConnect CAN XE164 Cookery Book Install the XE164 microcontroller
21. Start with Debugger Device XE166 XC2000 Family M Stop with Debugger Tar Debug Options Flash Download Options Download Function 4 Iv Erase Iv Program Iv Verify Iv Reset and Run Prramming Algorithm E Address Range Add Remove Start Size Offset Application Note 85 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Select XE16x 96F On chip Flash Add Programming Algorithm 7 3 X AM29F160DI Ext Flash Ext Flash 16 bit Demux AM29F5006B T Ext Flash Ext Flash 16 bit Demux MF29F400B Ext Flash Ext Flash 16 bit Demux AC16x 16F On chip Flash On chip Flash AC16x 32F On chip Flash On chip Flash AC 16x 4F On chip Flash On chip Flash C16x 8F On chip Flash On chip Flash AC2xxx ASF On chip Flash On chip Flash AC2xxx DoF On chip Flash On chip Flash AC2xxx F2F On chip Flash On chip Flash AUC2xxx 9oF On chip Flash On chip Flash AE 16x 24F On chip Flash On chip Flash XE16x 486F On chip Flash On chip Flash AE 16x 2F On chip Flash On chip Flash AE16x 96F On chip Flash On chip Flash Click Add Application Note 86 V2 0 2008 05 etc AP16137 n fi n eon UConnect CAN XE164 Cookery Book Infineon DAS Driver Setup PS Client Setup Host Computer localhost Automatic Start Stop DAS Server JTAG over USB Chip y v Start with Debugger Device XE166 XC2000 Family M Stop with Debugger Target Debug Options Flash Download Op
22. driver v Edge of P2 4 P2 7 Sharp edge mode v Driver of P2 4 P2 7 Strong driver v Edge of P2 8 P2 11 Sharp edge mode v Driver of P2 8 P2 11 Strong driver v Edge of P2 12 P2 15 Sharp edge mode v Driver of P2 12 P2 15 Strong driver v XE164F new project Z Application Note 98 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Parameters do nothing File View Options Add Ins Windows M DER Z Ana DEEN Parameters A AA MOP 2 ona ona ons one loP27 4 loP28 Oo ona Ce ED IO P2 10 lo P2 1 1 lo P2 1 7 XE164F ES EESO Note We will use the name IO_P2_7 in application programming Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Eai the close button Application Note 59 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Functions Initialization Functions click check M IO vlInit Functions Function Library Part 1 click M IO ubReadPin Functions Function Library Part 1 click M IO vSetPin Functions Function Library Part 1 click M IO vResetPin Functions Function Library Part 1 click M IO vTogglePin File View Options Add Ins Windows oo Du a i 803 ey DAVE XE164F Release v2 0 Si Parallel Ports al ta 2 Ports Functions Parameters Notes Initialization Function Source File I
23. families Pricing Information Request Product Brochures Newsletters Device Database Device List What is the Device Databas why isn t a Device Listed 4 Note Paang SCC auti S m C166 is fully compatible with DAvE 2 from Infineon For Searching the Device Da more details on using DAvE 2 with uYision refer to Search by Architecture Application Note 148 Search by Wendor Review the hardware requirements before installing this software m Note the limitations of the evaluation tools Parametric Search NON To install the Keil evaluation tools Evaluation Softwar rs Right click on C166V611 EXE and save it to Reguirements your computer tenor PDF files may be opened with Acrobat Reader CD ROM Request ZIP files may be opened with PKZIP or WINZIP Downloads ARM Evaluation Software C166 Evaluation Softwar C251 Evaluation Software C51 Evaluation Software Compliance Testing ISO ANSI Compliance Validation and Verificatic Distributors Overview Select Your Country v Go Select your country for a list distributors available in your se od b Gel S Internet Y Download and Execute C166V611 EXE or any higher version and install the Keil tool chain Be sure to request a quote for the full version of the tools Application Note 65 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Start Keil u Vision3 and open the DAVE Project If you see an open proj
24. length 8 For Half Duplex internal connection connect external pull up resistor to XE164F new project fA Note 1 Validate each alphanumeric entry by pressing lt ENTER gt Application Note 36 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Additional information RS232 serial interface Note The RS232 serial interface USIC O Channel 0 pins P7 3 and P7 4 is available via the USB port which converts the TTL UART signals to USB signals using a virtual COM port of the second USB channel of the FTDI FT2232 Dual USB to UART JTAG interface USB port E E a UConnert ES ze Real Time Signal Contr tl r Application Note 37 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Additional information Standard UART Pins Source User s Manual Table 10 10 Configuration Data for Bootstrap Loader Modes Bootstrap Loader Configuration Receive Line Transmit Line Transferred Mode on P10 3 0 from Host to Host Data Standard UART RxD P7 4 TxD P7 3 32 Bytes Sync Serial 1001 MRST P2 4 MTSR P2 3 n Bytes SCLK P2 5 1 65 280 SLS P2 6 MultiCAN RxDCO P2 6 TxDC0 P2 5 8x n Bytes 1 x means that the level on the corresponding pin is irrelevant Application Note 38 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Control do nothing File View Options Add Ins Windows ou
25. m include main h a Target 1 02 B amp 3 Dave Files 03 void myprintf const char p l Start V3 A66 04 i l A MAIN C 05 while p L m 06 B 41 SCS C 07 UOCO ASC vSendData p UOCO C 09 s USICO C 10 CC2 C m 12 I2 myorinti Options for Group User Files EE Open List File b World r n Open Map File Open File myprintf ssage buffer for sprintf 3 Build target Translate File Stop build able dummy d dummy Write formatted data to si New Group Add Files to Group User Files Z Manage Components Remove Group User Files and its Files Include Dependencies 4 W Rr Si B MAIN C E MAIN H B myprin AF O y e Add Files to current Project Group P mulo Application Note 101 V2 0 2008 05 etc AP16137 n fi n eon UConnect CAN XE164 Cookery Book Click myprintf c a f ZS sm 4 OL h x s4 ae Target zl Aas 2 include main h ne Ree void myprintf const char p B E Start V3 A66 B MAIN C B SCS C B IO C 8 UOCO C A USICO C B CC2 C B while p El UOCO ASC vSendData p T e El E Add Files to Group User Files Example 1 use o BCC2 C BIO C MAIN C m nyprintf c myprintf Hell SECS C RuoOCO C RusICO C Example 2 use o El Doa void main void char mb 200 me void main void f
26. ok ok ok e o v o o o o eoe ve o oe o oe ve oe ve v ve e oe ve oe ve ob ob oe ve ok ok ok o i c 041 main h 042 USER CODE BEGIN MAIN Header 3 i intrins h 043 il xel6xregs h 044 USER CODE END 3 scs h 045 sf 046 io h 047 E f FR PE e vk ok ok o o v p ok ok ok o o v vb ok ob ok o o o ob ok ob ok o dida H cc2 h ma 048 Defines 3 usicO h 049 JP TC 9k vk hok v v o o ok ok ok e v o ok ok o ok e o v ob ok o ok dad o i3 uOcO h nR define KEIL o 8 SCS C 051 Z IO C 052 define SEG func unsigned int unsigned long void far void func gt gt 16 s 8 UOCO C 053 define SOF func unsigned int void far void func x 054 9 USICO C 05 USER CODE BEGIN MAIN Header 4 sl CC2 C ass define OFF 0 E User Files 057 define ON 1 058 USER CODE END 059 060 061 ff P 7 v vk ok oko k o ke vk ok ok ok o ole ok ok ob ok o ole ob ok ob ok o ole ob dae 02 Typedefs 063 POSO o o ed oe 064 065 USER CODE BEGIN MAIN Header 5 066 067 USER CODE END MAR hdi 4 1 1 S Iw Ier Br MAIN C MAIN H Application Note 95 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click Main h and insert extern declarations Global Variables extern volatile int RS232 wait extern volatile bit blinking M XE164 pVision3 C XE164 MAIN H B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help Ge Izd x
27. support update XE16xx_Series dip 1 Download the DAvE update file DIP for the required microcontroller http www infineon com DAVE DAVE for the Infineon 22166 microcontroller Family DAVE supports the 16 bit derivatives as DAVE Integration Package DIP files All the latest DIPs are available for FREE download Company Product AEB AE164 Description Hame and Hame Series Series Weblink DAVE x x DAVE stands for Digital Application Virtual Engineer and iz Infineon Technologies code generator for their range of 8 16 and 32 Bit Microcontrollers It provides initialization configuration and driver cade to ease programming for beginners as well as experta psa a DAVE home Documents Contact uz Document Types Development Tools Title Date Version Size Development Tools CA mE16xx Series DIP file for DAVE Microcontroller Configuration Tool 20 May 2008 2 0 4 2 MB LEID Series v2 zip Unzip the zip file XEl xx Series v2 1 O zip and save XE16xx_Series dip e g C DAVE XE16x 2008 05 29 XE16xx_Series dip Application Note 23 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book 3 View Setup Wizard Default e Installation Forward Select e I want to install products from the DAvE s web site Forward Select C DAVE XE16x 2008 05 29 Forward Select Available Products click v XEl6xx Series Forward Install End 4 DAVE is now ready to
28. 1 click M UOCO ASC vSendData Functions Function Library Part 1 click M UOCO ASC uwGetData Functions Function Library Part 1 click M UOCO ASC ubTxDataReady Functions Function Library Part 1 click M UOCO ASC ubTxBufFree Functions Function Library Part 1 click M UOCO ASC ubRxDataReady File View Options Add Ins Windows eco Dag 7403 3 DAVE XE164F Release v2 0 Initialization Function Source File Header File lUOCO ASC vnit File name uococ File name con Function Library Part 1 Function Library Part 2 lUOCO ASC vSendData poco ASC sera lt lt UOCO ASC uwGetData oC ASC uwGetRxFIFOData LOCH ASC ubTxDataReady luoco ASC ublsxFlFObusy UOCO ASC ubTxBufFree luoco ASC ublsTxFIFObusy LOCH ASC ubRxDataReady Loco ASC ublsRxFIFOfull UOCO ASC vlt Loco ASC ublsxFIFOfull LOCO ASC willC uoco ASC ublsxFlFOempy UDCO ASC vi IC uc ASC ublsTxFIFOempty UOCO ASC wl CC UOCO_ASC_ubGetRxFIFOFillingLevel UOCO_ASC_ubGetTxFIFOFillingLevel JUOCO_ASC_vFlushRxFIFO Zak Aes vb A OA LL I 1 bL Ge Se XE164F new project AL Note You can change function names e g UOCO ASC vlnit and file names e g UOCO C UOCO H anytime Application Note 45 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Notes do nothing File View Options Add Ins Windows l n DB fus 3 DAVE XE164F Release v2 0 d Universal S
29. 2 wait RS232 wait if blinking d IO vTogglePin IO P2 7 j M XE164 pVision3 C 1XE1641CC2 C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help Te Be Dc FF4 2 2KW y Ian lt gt 919 4 O aer a i 3 A Target 1 ja e 2995 7 2 2 2b k k v ok ok vk o vk o o v o ok v o ke o ok o o ok o o id s Target 1 21 G Function void CC2 viTmr void Dave Files 292 A Start_V3 A66 EA A MAIN C 294 Description This is the interrupt service routine for the CAPCOM2 timer S SCS C 295 7 It is called when overflow of the timer 7 register 4 296 occurs IO C 297 Please note that you have to add application specific code s UOCO C 298 to this function A USICO C 299 E H e NE n E ence d e User Files T Se fReturnvalue None Z myprintf c m ee eee H 304 Parameters None 305 306 307 Date 29 05 2008 308 309 Jf f F9 v ok v v p ok o o v ok o v v ee ee o o ve o v ok v ve v ve ok oe ee ee eee ov ve ee ve ove kee ve ve o ke ee o oe oe ve ve o ee ve oe o oe oe e ok ok k ae x 310 31 USER CODE BEGIN Tmr7 1 312 313 USER CODE END 314 315 void CCZ viTmr void interrupt CCZ T7INT 316 1 317 USER CODE BEGIN Tmr7 2 318 if RS232 wait 319 RS232 wait 320 321 if blinking 1 322 323 IO vTogglePin IO P2 7 324 3
30. 2232 Dual USB to UART JT AG interface the USB connection works also as the power supply Application Note 107 V2 0 2008 05 Cinfineon AP16137 UConnect CAN XE164 Cookery Book Note Now we need a terminal program which is able to handle a virtual COM port COM5 As an example of any terminal program we are going to use Docklight Docklight can be downloaded http www docklight de E Docklight Download Infineon Technologies File Edit View Favorites Tools Help Back v 2 A A ASearch Folders Favorites 2 Gl Ze Sw Y y 4 R lt Address e http fwvww docklight defdownload_en htm M Go M Links Software Archive Latest Releases Download Docklight V1 7 37 for Windows Vista Windows XP Windows 2000 Windows NT Windows ME VVindows 98 3143 KB Download Docklight Scripting V1 7 37 for Docklight V1 7 Docklight Windows Vista Windows XP Windows scripting V1 7 2000 Windows NT Windows ME Windows 98 4314 KB Access to previous and obsolete versions of Docklight Docklight Scripting Download Docklight Scripting V1 6 3960 KB V1 6 Release 01 2007 Download Docklight V1 6 3027 KB Release Docklight V1 6 01 2007 Docklight Scripting Download Docklight Scripting V1 5 3909 KB V1 5 Release 09 2004 Docklight Scripting Download Docklight Scripting V1 4 3868 KB VI A Release 05 2004 Download Docklight V1 4 3028 KB Release Docklight V1 4 05 200
31. 25 USER CODE END 326 37 End of function CC2 viTmr 7 328 329 330 221 je a IEN PUTO PA SRAZ AMAT LA A Ro MM EMEN EM HEET Eu Application Note 104 V2 0 2008 05 AP16137 n fi n eon UConnect CAN XE164 Cookery Book Generate your application program Project Rebuild all target files MZ x 164 uVision3 i Edit Wew uei Debuc VEGE HVision3 C XE164 MAIN C E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ES e x Asagi taar Oe eH N jan u ae Ell oer e d i Sx EA dP Soe Froject Workspace 3 Target 1 xs USER CODE BEGIN Main 3 i Dave Files 365 while RS232 wait 3 Start V3 A66 3 USER CODE END A MAIN C xem ss wa whileil ASCS C aal d HE ATO 371 rA UDCO C 372 USER CODE BEGIN Main 4 4 USICO C 373 myprintf menu e DOE 374 select input User 375 ge Files 376 switch select a 4 myprintf c Ka 378 case 1 blinking OFF IO vResetPin 10 P2 7 myprint L n LED IO Port 2 7 ON 0 break 378 case 2 blinking OFF IO v3etPin IO P myprintf Xn LED IO Port Z OFF n break 380 case i blinking 0N myprintf n LED IO Port 2 BLINKING ate h break 381 E USER CODE END Bs r m MAING I MAIN H B mori B 172 c Ril puz La rarger Target 1 assembling Start vi AG
32. 4 E Download Docklight V1 3 3048 KB Release Docklight V1 3 01 2004 Download Docklight V1 2 2866 KB Release Docklight V1 2 02 2003 Download Docklight V1 1 2850 KB Release Docklight V1 1 09 2002 Download Docklight V1 0 2834 KB Release Docklight V1 0 04 2002 back to the Docklight main page e S Application Note 108 V2 0 2008 05 infir AP16137 n fi n eo n UConnect CAN XE164 Cookery Book Now start Docklight amp 7Docklight V1 7 Application Note 109 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Click Project Settings Im ETE E Ox ad Commmunica Project Settings Communication Settings Colors amp Fonts Mode COM8 9600 None 8 1 Send Seguences Communication Receive Seguences Active Name Seguence Application Note 110 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Project Settings Communication Communication Mode click 9 Send Receive Project Settings Communication Communication Mode Send Receive on comm channel select COM5 Project Settings Communication COM Port Settings Baud Rate select 9600 Project Settings Communication COM Port Settings Parity select None Project Settings Communication COM Port Settings Parity Error Char select 1gnore Project Settings Communication COM Port Settings Data Bits select 8 Project Settings Communication COM
33. 4F Release v2 0 3 Capture Compare Unit 2 CAPCOM2 es et 2 Module Clock Control Timer 7 8 Channels Interrupts Int Extension Bank Select PEC Functions Parame 4 d BONS A ees Level 0 non interrupting Mate To change the level and the group of an interrupt source click on it drag it to its new position and drop it To set an interrupt source to the non interrupting level Level 0 click on it drag it to the L evel 0 list and ron it XE164F new project AL Int Extension do nothing Bank Select do nothing PEC do nothing Application Note 52 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Functions Initialization Function click check M CC2 vlInit File View Options Add Ins Windows ta Dig fis Initialization Function Source File TAL q File name ec2 c Function Library Part 1 Function Library Part 2 CC2 vStartTmr CG2 vPortLock CG2 vStopTmr CC2 vPortUnlock COC Clear mr CC vEnableSingleEvent COC uwReadI mr EE Ee CG2 ve ad T mr eer S pa O MC M EE CC2 vSelectDoubleRegisterCompareMode CC2 vSetReload Bese CC2 vSetCCxReg SE SUM CC2 uwGetCCxReg CC2 vilmr CC2 viTmr8 COC vResetCCxOUT CC ubGetCCxOUT CCx vsyneStartl mr ppp prp gt lt A E a XE164F new project AL Parameters do nothing Notes If you wish you can insert your comments here Exit and
34. 5 See AP16137 In fi neon UConnect CAN XE164 Cookery Book execute DAS_v264_setup exe to install the DAS Server InstallShield Wizard Preparing to Install DAS Setup is preparing the InstallShield Wizard which will guide you through the program setup process Please wait Configuring Windows Installer Cancel DAS InstallShield Wizard EM X Welcome to the InstallShield Wizard for DAS The Install amp nielatR Wizard will install DAS on your computer To continue click Next DAS any tool MP WARNING This program is protected by copyright law and a ny wire international reaties any device 2 Cancel Application Note 14 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book DAS InstallShield Wizard Se InstallShield Wizard Completed The Installshield Wizard has successfully installed DAS Click Finish to exit the wizard Cancel Click Finish Application Note 15 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Connect the UConnect CAN XE164 to the host computer EE i i JE SEF UConnect 7 k XE16G Real Time SignaEContr ll r 4 USB Connection used for UART communication the USICO CHO UART RS232 serial interface 1s available via USB as a virtual COM port of the second USB channel of the FTDI FT2232 Dual USB to UART JTAG interface used for On Chip Flash Progr
35. 6 Locate L166 Misc Debug Utilities Select Folder for Objects Name of Executable E 64 Create Executable EIDA kW Debug Information M Browse Information Create HEX File yes Format HEX 386 H167 kad Start End FLASH Fill Byte JAffset C Create Library XXET64 LIB Create Batch File OK Cancel Defaults Note The HEX File could be used while working with the program MEMTOOL for OnChip Flash Programming via RS232 interface Bootstrap Loader BSL Mode via UART USICO CH0 Application Note 73 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Listing do nothing Options for Target Target 1 Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Select Folder for Listings Page Width i 20 Page Length m M E Compiler Listing Ist kW Conditional T Symbols F include Files Assembly Code C Preprocessor Listing 7 I Assembler Listing st IZ Conditional IZ Symbols Macros Final expansion only T Cross Reference kW Linker Listing E164 mob Z Memory Map kW Public Symbols kW Line Numbers Cross Reference M Local Symbols M Comment Records WM Generated Symbols Ww Library Symbols Ok Cancel Defaults Application Note 74 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book User do nothing Options for Target Target 1 D
36. AIN H Application Note 96 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click Main h and insert extern declarations Global Functions extern void myprintf const char p v XE164 pVision3 C 1XE1641MAIN H 1 pa m EN E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help i x asugi BA Dc FF 4 2KA aae gt s a BA 4 ei E x Target 1 jan a Project Workspace 078 ia Target 1 079 gt E ok ok ok ok ok ok ok o ok ok ok ok ok ok ok o ok ok ok ok ok ok ok ok ok ok ok o ok ok o ok ok ok o ok ok ob o ok ol ob o ol ok ob o ol ok o ok ol ok ob ok o ok ob ok oe E ob E E E E E oe E e e oe obo Dave Files 0800 GGlobal Variables Start V3 A66 081 JP 7 oko v vk s ok ook o p o v ok ook e v v p ok o ok v o v v o o ok ook ode 8 MAIN C d a mm 083 USER CODE BEGIN MAIN Header 7 d 084 extern volatile int RS232 wait intrins h ngs extern volatile bit blinking 3 xe L6xregs h o6 USER CODE END i ses h 087 A io h 088 gt 2h 089 ff PCR vk v vk vk ok ok ok ok o o o o ok ook o o o o ok ob ok o o v o ok o ok o ok v v o o ok ook v o o o ok o ok ve o ve o o o ok veo ve o ve oe veo ve ak oe e oe ve oe ve o oe ok on ok ne o90 Prototypes Of Global Functions A usicO h 091 E OOOO oda A uOcO h 092 a SCS C 093 o IO C 094 void MAIN vUnlockProtecReg void a 9 UOCO
37. Application Note V2 0 May 2008 AP16137 XE164 UConnect CAN XE164 Cookery Book for a hello world application using the KETC too chain you can do the hello world example in this document with the evaluation version of the KEIL tool chain Microcontrollers gt Infineon Never stop thinking Edition 2008 07 16 Published by Infineon Technologies AG 81726 M nchen Germany O 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 Infineo
38. Area External lO Area External Memory Area Vector Segment Pointer VECSEG Total Address Space 255 240 239 224 223 208 207 192 191 176 175 160 159 144 143 128 127 112 111 96 95 80 79 64 63 48 47 32 FPFFFF E0 0000 C0 0000 A0 0000 DU 0000 600000 40 0000 20 0000 H 00 0000 16 Mbytes Segments 255 0 31 2 o o n O llo HE o elo co ss ICH lt O E V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Kai the close button Project 5 Application Note 32 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Configuration of the serial interface ASCO UART USICO CHO UOCO ws DAVE File View Options Add Ins V ea 0870094 SP AVE XE164 Fe e Pa n h tan sinin m TT z XE164F new project A Application Note 33 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Protocol USICO Channel 0 Protocol Selection USIC Protocol for UOCO select ASC File View Options Add Ins Windows ot Di B 4 s e Universal Serial Interface Channel USICO Je et Protocol USICO Channel 0 Protocol Selection USIC Protocol for LOCH y
39. C e 096 void MAIN vLockProtecReg void 8 USICO C Se Tp s B CC2 C 098 void MAIN vChangeFreg void E User Files 099 100 USER CODE BEGIN MAIN Header 8 101 extern void myprintf const char p 5 102 USER CODE END 103 104 105 E 7 A v vk ok o ok ok ok o o o ok ok ook e o o o ok o ok o v o ok o ok o ok v o o o ok ook v o o o ok ook v o ve o o ob ok veo ve o ve oe veo ve o ve k oe ve oe ve o oe t on 106 QInterrupt Vectors 107 JP PCR vk v v vk ok ok ok ok o o ok o ok o ok v o o o ok o ok e o o o ok o ok o ok o o o o ok o ok o o o o ok o ok o o o o o o ok veo ve o ve oe veo ve X ve ob oe ve oe ve ot oe ok on ok 108 109 USER CODE BEGIN MAIN Header 9 s 11 4 Simulation Y Application Note 97 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click Main h and insert include files include lt stdio h gt for sprintf for myprintf include lt ctype h gt i XE164 pVision3 C XE164 MAIN H E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ell ASHG eo 17 y 44 44 lt gt 9189 d IRIS emm ene Y A Target 1 ja e Project Workspace vx B 103 m fa Target 1 104 GT Dave Files 105 JP FCR vk vk ok ok ok ook o p ok o ok o ok o o o ob ok od A Start V3 A66 105 Interrupt Vectors eg ff 7 vk v v vk o ok ok ok o o o ok ok o ee ok o ok o
40. F66L Block Diagram Source Product Marketing GER SEN m sk P D Flash fi 3 8 8 256 KB e Ke P D Flash ITT 256 KB i P D Flash KB GPIO Ports SAF XE164F 96F66L Block Diagram Source Product Brief PSRAM DSRAM OCDS 64 Kbytes yte 16 Kbytes Debug Support SCU P D Flash EI CPU EBC S e Se DMU XBUS Control Voltage 256 Kbytes Reset C1665V2 Core es DP Switch 1 Kbyte SBRAM P D Flash 256 Kbytes P D Flash eege 256 Kbytes Peripheral Data Bus Osc PLL D Clock Generation Interrupt 8 PEC m Bus USICo USIC1 USIC2 MultiCAN RS232 RS232 RS232 SPI LIN SPI LIN SPI LIN PORS CSC ES HBG Channels GPIO Ports Note The XE164 microcontroller is a derivative of the XE167 microcontroller Application Note 7 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book SAF XE164F 96F66L Block Diagram Source DAVE W DAVE XE164F Release v2 0 PSRAM DPRAM DSRAM OCDS 64 Kbytes 2 Kbytes 16 Kbytes Debug Support Program Flash 0 256 Kbytes EBC LXBus Control Program Flash 1 External Bus 256 Kbytes Control Program Flash 2 256 Kbytes Oscillators PLL System Fct gt Clock Reset Power Control Stand By RAM Note Just by comparing the different sources of block diagrams you should be able to get a complete picture of the microcontroller and to answer some of your initial questions Application Note 8 V2 0 2008 05 in
41. FF IO vResetPin 379 case 2 blinking 0FF IO vSetPin IC 380 case 3 blinking 0N myprintf n 381 D 382 USER CODE END 383 384 385 3861 End of function main 387 pu 388 ve 4 b B a mom Sr MAIN C X Build target Target 1 f assembling Start V3 A 66 compiling MAIN C compiling SCS C compiling IO C compiling UOCO C compiling USICO C compiling CC2 C compiling myprintf c linking Program Size data 1091 near 1091 const 222 near 196 code 1394 creating hex file from XE164 XE164 O Erroris O Varning s LOAD Load C XE164 XE164 Erasing Erase Done Programming Done Verify OK Application running MAIN H B myprin B CC2 C Window EL lt gt Build Command Find in Files Ready Application Note 116 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Docklight Go to Docklight and see the result amp Docklight V1 7 Fille Edit Run Tools Help Stop Communication F6 D Commmunication port open Colors amp Fonts Mode COM5 9600 None 8 1 Send Sequences Communication Send Name Se ASCII HEX Decimal Binary LED IO Port 2 7 ON 2 eee LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice Application Note 117 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click inside the red box 25 Dockli
42. Horch project to listen on the CAN Bus and CAN Report PC GUI Visit port Homepage To browse through the latest version of the Easy Kit CD please click here The Uconnect XE164 will be available in 2 2008 for 49 recommended retail price To use the CANopen example you need two UConnect extension or one UConnect extension and one Easy Kit gt gt pert Home Company Investor Press Careers Infineon worldwide 1399 2008 Infineon Technologies 4G Usage of this website is su 8 Note For further information please refer to the For further information please refer to the Application Note bject to our Usage Terms Imprint Contact Privacy Policy XE164 UConnect Manual V 1 0 XE164 UConnect Manual V 1 1 International Toll Free 0 07500 951 951 951 Direct Access 49 89 234 65555 Infineon is happy to help you Infineon Service Centet sj PL Trusted sites V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Install the Infineon DAS DeviceAccessServer Server Go to www nfineon com DAS E DAS Tool Interface Infineon Technologies Infineon Technologi O EX File Edit View Favorites Tools Help Back v gt 9 3 2 ASearch Folders Favorites 2 A aw Se Saw tv Address http www infineon com cms en product promopages das index html M Go N Links p Our Products gt Infineon
43. Never stop thinking DAS Product Brief E Print Page Send Page Latest release version for download DAS Edition v2 5 4 Latest LPT server for download JTAG JDR LPT Server v2 4 0 Note Please use always the latest DAS release Please report problems with the latest DAS release to das support infin on com Download Service das product brief pdf 132 KB DAS Edition v2 5 4 zip 7 36 MB JTAG JDR LPT Server v2 4 0 zip 4 01 MB Home tor Press Careers nfineon worldwide 21333 vw B E Trusted sites E Note The DAS Server must be installed on your host computer The goal of the DAS software 1s to provide one single interface for all types of tools The USB Device driver communicates with the UConnect CAN XE164 when connected to the host computer The USB Device driver for the UConnect CAN XE164 USB interface 1s included in the DAS software A virtual COM port driver is also included Application Note 12 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Download The latest release version for download DAS Edition v2 6 4 Saving das edition _v264 zip from wew Infineon cor Estimated time left Not known Opened so far 600 EE Download to Cidas edition v64 zip Transter rate 300 KB sec I Close this dialog box when download completes pen Open Folder Cancel Unzip das_edition_v264 zip and Application Note 13 V2 0 2008 0
44. O vinit File name IOC Function Library Part 1 IO vSetPin IO vResetPin IO vTogglePin IO vSetPinln IO uwReadPort IO vWritePort IO vSetPortln IO vSetPortOut B8 B HM M M C GC C GG a eee MEL LLL M m A porah ML E E M p XE164F JE Application Note 60 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Parameters do nothing File View Options Add Ins Windows da Du m f us E DAVE XE164F Release v2 0 Si Parallel Ports da 2 Header File File name IO H XE164F NORU ROE NN Ou e i S NN S O Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Eai the close button Application Note 61 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Save the project File Save Save project Save in CAXE164 create new directory I Create New Folder File name XE164 Save project My Network Pla File name Salz Save as type DAVE project file dav Y Cancel Z Save Application Note 62 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Generate Code File Or click r Generate Code DAVE will show you all the files he has generated File Viewer opens automatically Application Note 63 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book File View Options Add Ins Windows
45. SS Misc Controls Compiler MODV2 A Control String el Application Note 17 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book A166 do nothing Options for Target Target 1 Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Conditional Assembly Control Symbols Set Reset lM MPL Macro Processing Case Sensitive Symbols Include A Paths Misc hon Controls Assembler MODY2 SEGMENTED MOD 2 SET SUL DEBUG EF Control String Cancel Defaults Application Note 78 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book L166 Locate do nothing Options for Target Target 1 Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Iv Use Memory Layout from Target Dialog C166 Variable Initialization Tables zs Its DPP Usage O OPPUSE ndata app2 m nconst app E ICODE OxCOQ000 0xCOEFFF NCODE USLC O000 OxCT FFFFI FOONST OOA OE FFF xC1OOOO O CBFFFF I HCONST OxCOO000 OxCOEFFF Ox 0000 ACONST OxCOOOOD OxCOEFFF OxCTOOOO OxCBFFFF NCONST OxCO4000 OxC0 AFF Target Classes User Classes User Sections Linker TO xXE164 Control CLASSES ICODE 0xC00000 0xC0EFFF NCODE 0xC10000 0xC1FFFF String FCONST 0xC00000 0xCOEFFF 0xC10000 0xCBFFFF HCONST 0xC00000 0xC0EFFF 0xC10000 w Cancel
46. Use On chip RAM 0xA000 0xDFFF Use On chip ARAM DNEOOOUOO OXEQFFFF Start Size mew s PAZ efr TI Cancel Defaults Application Note 70 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Additional information Memory Map Source User s Manual Options for Target Target 1 Device Target output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Infineon XE164F 96F Clock MHz bo Use On chip ROM 0xC00000 OxCOEFFF Memory Model Small near functions and data v Use On chip ROM 0xC1 0000 OxCBFFFF Operating System None v Use On chip XRAM 0xA000 OxDFFF Data Threshold hear 6 Use On chip XRAM OxE00000 OXEOFFFF Table 3 1 XE16x Memory Map Address Area Notes IMB register space Reserved access trap Minus IMB registers Reserved for EPSRAM EPSRAM E8 0000 ES FFFFy 64 KBytes PSRAM with Flash timing Reserved for PSRAM E1 0000 E7 FFFFy 448 KBytes PSRAM EO0 0000 EO FFFF 64 KBytes Program SRAM Reserved for Flash CC 0000 DF FFFFy lt 1 25 MBytes Flash 2 256 KBytes Flash 1 256 KBytes Flash 0 292 KBytes Minus res seg External memory area 8 MBytes External IO area lt 2 MBytes Minus CAN USIC USIC registers 6 KBytes Accessed via EBC MultiCAN registers 16 KBytes Accessed via EBC External memory area 2 MBytes Minus segment 0 SFR area 0 5 KBytes Dual port RAM 2 KBytes DPRAM
47. Use P2 6 as general IO In Out M Open drain F high Use P2 7 as general lO Out T Open drain high r Use P28 as general IO In Out M Open drain F high r Use P2 9 as general IO In Out Open drain F high IT Use P2 10 as general IO In Out M Open drain F high IT Use P2 11 as general IO In Out M Open drain r high IT Use P2 12 as general IO In Out M Open drain F high XE164F aa a E Application Note 56 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Input Characteristic do nothing File View Options Add Ins Windows da Dem 4 fus Si DAVE XE164F Release v2 0 d Configure Port 2 e da 2 Pull Device P2 0 pull device Tristate Wy K P2 1 pull device Tristate M P2 2 pull device Tristate sl 8 P2 3 pull device Tristate E P2 4 pull device Tristate ei P2 5 pull device Tristate e k P2 6 pull device Tristate sl P2 7 pull device Tristate ei P2 8 pull device Tristate E P2 9 pull device Tristate M P2 10 pull device Tristate 1 e P2 11 pull device Tristate ei P2 12 pull device Tristate XE164F E Application Note 57 V2 0 2008 05 Infineon ae UConnect CAN XE164 Cookery Book Output Characteristic do nothing File View Options Add Ins Windows da Dem Z fius Edge Characteristic Control Driver Characteristic Control Edge of P2 0 P2 3 Sharp edge mode v Driver of P2 0 P2 3 Strong
48. Windc ess a E Yt FS s m 2 ZER 4 W laa 6 ab sere eei iess return in 3 Target 1 5 5 Dave Files Start V3 A66 356 MAIN E 357 void main void 3588 USER CODE BEGIN Main 2 USER CODE END MAIN vInit USER CODE BEGIN Main 3 while RS232 wait USER CODE END while USER CODE BEGIN Main 4 myprintf menu select input 359 360 361 362 363 364 365 366 367 360 369 370 3n 372 switch select case 1 blinking OFF IO vResetPin IO P2 7 myprintf n LED IO Port 2 7 ON n break case 2 blinking OFF IO vSetPin IO P2 7 myprintf n LED IO Port 2 7 OFF Xn break case 3 blinking ON myprintf n LED IO Port 2 7 BLINKING n break USER CODE END End of function main 390E USER CODE BEGIN MAIN General 10 391 392 USER CODE END Application Note 93 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Additional information Port Output Modification Register Source User s Manual Pn OMRL n 6 11 Port n Output Modification Register LowXSFR E9C0 4 n Reset Value XXXX y 11 10 9 8 f 6 1 0 15 14 13 12 5 4 3 2 PC PC PC P PC PC PC PC PS PS PS PS PS T 6 5 4 3 2 1 0 T 5 A 1 0 W W W W W W W W W W W W W W W W Field Description Bits PSx X W Port Set Bit x x 0 7 Setting this bit sets or toggles the corresponding bitin the po
49. 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 chain Additionally the hello world example can easily be expanded to suit your needs You can connect either a part of or your entire application to the UConnect CAN XE164 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 UConnect CAN XE164 Application Note 4 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book ii ku Ei CY A 05 V2 0 2008 Application Note K Ce AP16137 n fi n eon UConnect CAN XE164 Cookery Book Block Diagram Source XE164 UConnect Manual USB To UART MultiCAN ES JTAG Bridge B lt CAN Transceiver M CECR IE miim m UConne t ES PER Real Time Sis gnat Contr ll r HAAT DUU 11 1 mutt FAR F FFAA Application Note 6 V2 0 2008 05 ME AP16137 n fi n eon UConnect CAN XE164 Cookery Book SAF XE167F 96
50. age Y Disk Defragmenter Services and Applications CJ Disk drives Display adapters Ze DVD CD ROM drives Us Human Interface Devices E IDE ATA ATAPI controllers 4 KG IEEE 1394 Bus host controllers ER Keyboards lt Mice and other pointing devices Modems Monitors BY network adapters PCMCIA adapters Ports COM 8 LPT JB secure Digital host controllers Me Smart card readers GE sound video and game controllers i System devices Universal Serial Bus controllers Application Note 20 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Expand Ports COM amp LPT Expand Universal Serial Bus controllers m Computer Management i Action View e em i Tree TT Computer Managemer Wem System Tools T Device Manager 43 Biometric Sy Storage zc E amp Disk Defragmen T m Computer 8 Services and Applic LJ Disk drives Display adapters Z DVD CD ROM drives F IS Z Human Interface Devices IDE ATA ATAPI controllers Sal IEEE 1394 Bus host controllers Note GB Keyboards AS we can see 7 Mice and other pointing devices our virtual COM Port for Modems UART RS232 communication with the I Monitors UConnect CAN XE164 via USB is BM Network adapters COMS PCMCIA adapters 7 Ports COM amp LPT A Communications Port COM1 A Infineon USB COM Port COM5 4 Printer Port LPT1 A Secure Digital host controllers a
51. al communication data channel 1 and channel 2 C Show channel 1 or TX data only C Show channel 2 or RX data only Hide all original serial data show additional comments only OK Cancel Help OK Application Note 113 V2 0 2008 05 infir AP16137 n fi n eo n UConnect CAN XE164 Cookery Book cia E SD cklight V1 7 Ex usb 15 5 4 EL a a di ee Application Note 114 V2 0 2008 05 Infineon ry Book UConnect CAN XE164 Cookery Book 427 Docklight V1 7 File Edit Run Tools Help Stop Communication F6 Car hd gt AAA Commmunication port open Colors amp Fonts Mode COM5 9600 None 8 1 Send Sequences Communication Send Name Sequence ASCII HEX Decimal Binary Receive Sequences Active Name Sequence Answer Note Docklight 1s now ready for serial communication Application Note 115 V2 0 2008 05 AP16137 n fi n eon UConnect CAN XE164 Cookery Book Go to u Vision em GE x 364 fa Target 1 365 USER CODE BEGIN Main 3 t 3 5 Dave Files 366 while RS232 wait A Start V3 A66 367 USER CODE END B MAIN C a 369 while 1 3 0 SCS C II e DOC 2 a UOCO C 372 USER CODE BEGIN Main 4 4 8S USICO C 373 myprintf menu t A CC2 C 374 select input 375 User Files 376 switch select a myprintf c f 378 case 1 blinking O
52. amming and Debugging first USB channel of the FTDI FT2232 Dual USB to UART JT AG interface the USB connection works also as the power supply Found New Hardware aa DAS JTAG over USB UcConnect Note A USB driver is installed the first time while connecting the UConnect CAN XE164 via USB to your host computer Note A default virtual COM Port is generated Application Note 16 V2 0 2008 05 See AP16137 n fi n e 0 n UConnect CAN XE164 Cookery Book Using a Windows 2000 operating system we are now going to search for the virtual COM Port which was generated after connecting our UConnect CAN XE164 Start Settings Control Panel a A uu A Wd dd My Computer My Network File Explorer Outlook Internet Windows Media iTunes Nero Burning PowerDVD Places Explorer Player Rom W e e si S W Word Excel PowerPoint Microsoft Office Gina Start Defrag Communicat i MED 58 Paint Shop Pro 5 i view WinMerge Calculator Macmillan MapSource tei Vergleich English Europe 2008 eae b Pa jen Install Remove W Li 9 Office Applications E U2CAN Visual Studio EasyCASE C Docklight XC888 v1 1 2005 file explorer 31 WinZip Bx bes es SF z Di explorer exe UDE 2 02 03 DAS Server DAS Basic Client REMOVE DAS Show Delete Control Panel COMs Control Panel 31 Network and Dial up Connections gt 3 Printers A Taskbar amp Start Menu z 4 g 0 2
53. ch Folders 4 33 X 3 Me i Tools Computer Management Shortcut Administrative Address Administrative Tools Component Services Computer Management Data Sources ODBC Event Viewer S Local Security Policy B Microsoft MET Framework 1 1 Configuration Microsoft NET Framework 1 1 Wizards Microsoft NET Framework 2 0 Konfiguration Manages disks and P Microsoft NET Framework Configuration provides access to Microsoft MET Framework Wizards other tools to V Performance manage local and Services remote computers Telnet Server Administration Modified 12 11 2007 18 21 Size 1 52 KB Attributes normal 4 gt j Size Type Modified 1 KB Shortcut 08 05 2008 10 26 2 KB Shortcut 12 11 2007 18 21 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 1KB Shortcut 12 11 2007 14 58 1KB Shortcut 12 11 2007 14 58 2KB Shortcut 20 11 2007 16 30 L KB Shortcut 12 11 2007 14 56 1 KB Shortcut 12 11 2007 14 56 2 KB Shortcut 08 05 2008 10 26 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 Manages disks and provides access to other tools to manage local and remote computers 1 52 KB E My Computer Application Note 19 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Click Device Manager a Computer Management Action View Ome Tree Computer Management Local System Tools G Stor
54. ect close it Project Close Project Project Open Project Select Project File Look in choose CAXE167 1 Select Project File Files of type select Dave Project Files 2 Click XE167 dpt 3 Select Project File Look in BOUT History lu De kt op My Computer Kur m My Network Pla File name Le 564 dpt m Files of type Dave Project Files dpt el Cancel Z Click Open Application Note 66 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Generate make file Project Rebuild all target files 5 XE164 pVision3 Edit View Debuc SE s ME XE164 HViston3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help lac liie ealoc L ln 4 a BR LE LITAI jara E 4 Target i amp Dave Files A Start V3 A66 E 5 MAIN C E 505 0 B 410 C m A UOCO C m USICO C Bcc User Files Ata 1088 near 1088 const 2 near D code 1208 arning Note This step generates a makefile and shows the include files Application Note 67 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Configure Compiler Assembler Linker Locater Hex Converter Build Control Simulator Debugger Listings and Utilities e g OnChip Flash Proerammin mouse position or click Project Workspace Files Targetl click right mouse button click Options for Target
55. ei EF As AA A A mea BA 4F m xs Target 1 arc 353 return in 43 Target 1 354 5 5 Dave Files 355 USER CODE END A Start V3 A66 356 4 MAIN C 357 void main void SCS C Se 358 USER CODE BEGIN Main 2 9 IOC 360 2 UOCO C 361 USER CODE END A USICO C 362 CC2 C 363 MAIN vInit 364 User Files 35 USER CODE BEGIN Main 3 366 while RS232 wait 367 USER CODE END 368 363 while l 370 371 372 USER CODE BEGIN Main 4 373 374 USER CODE END 375 376 377 3781 End of function main 379 380 381 320 USER CODE BEGIN MAIN General 10 383 384 USER CODE END an EH Er EH Hg J S W Ier Ier MAIN C Simulation Application Note 91 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Double click MAIN C and insert the following code in the main function into the while 1 loop myprintf menu select input switch select case 1 blinking OFF IO vResetPin IO P2 7 myprintf n LED IO Port 2 7 ON pg break case 2 blinking OFF IO vSetPin IO P2 7 myprintf n LED IO Port 2 7 OFF fx break case 3 blinking ON myprintf n LED IO Port 2 7 BLINKING n break j Application Note 92 V2 0 2008 05 e tc AP16137 n fi n eo n UConnect CAN XE164 Cookery Book WA XE164 pVision3 C XE164 MAIN C H B m ba o A dala enpr Jow F erais Tools SVCS
56. erial Interface Channel USIC UOCO KE da 2 ASC General Control FIFO Interrupts Int Extension Bank Select PEC Functions Insert Notes XE164F new project A Note Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Eai the close button Application Note 46 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Configure Timer T7 in the CAPCOM 2 module ed DAVE EB IX File View Options Add Ins Windows Da saca e M Sa E P Mao Pd eu Note The will be blinking if selected in the main menu with a frequency of about second done in the Timer 7 Interrupt Service Routine Therefore we have to configure Timer 7 Application Note 47 V2 0 2008 05 Infineon ry Book UConnect CAN XE164 Cookery Book Module Clock CAPCOM Enable Module click Enable module File View Options Add Ins Windows IE Dau iftius CAPCOM Enable Module CC2MODEN 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 66 XE164F new project ve Application Note 48 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Control Port Lock Control click The contents of the port register is not changed by the CAPCOMZ unit
57. evice Target Output Listing User c166 EC A166 L166 Locate L166 Misc Debug Utilities Run User Programs Before Compilation of a CfC File FP Run 1 F Run 2 Y Beep When Complete Start Debugging Cancel Defaults Application Note 75 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book C166 do nothing Options for Target Target 1 n S EN Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Preprocessor Symbols Define Undefine Code Optimization Warnings Waminglevel 2 v Level e Constant propagation k IT Keep Variables in Order Emphasis Favor speed v T Global Register Coloring F Reorder Instructions to Minimize Pipeline Effects Treat char as unsigned char Iv Save DFP on Interrupt Entry Use Static Memory for Non register Automatics F Double precision Floating point M Alias Checking on Pointer Accesses save Temporary Variables on User Stack Include Paths Misc hon Controls Compiler Control string Application Note 76 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book EC do nothing Options for Target Target 1 Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Preprocessor Symbols Define Undefine Include BH Paths
58. fir AP16137 In fi neon UConnect CAN XE164 Cookery Book Cookery book For your first programming example for the UConnect CAN XE164 Your pw E SE amp F Docklight V1 7 VR File Edit Run Tools Help ela AAA Die Commmunication port closed Colors amp Fonts Mode COM6 9600 None 8 1 Send Sequences Communication Send Name Se ASCII HEX Decimal Binary SS 1 LEDIO Port 2 7 ON RSS 2 LEDIO Port 2 7 OFF S 3 LEDIO Port 2 7 blinking 1 LED IO Port 2 7 ON eee LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice Recipes Chapter Step DAS Installation Connecting the UConnect CAN XE164 DAVE program generator DAVE Installation mothersystem DAVE Update Installation XE16xx Series dip for XE164 Using DAvE Microcontroller initialization for your programming example Using the KEIL Development Tools C Compiler Programming of your application XE164 with the KEIL tool chain u Vision3 Running your first programming example Feedback Feedback Application Note 9 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book 1 DAS Installation Connecting the UConnect CAN XE164 Application Note 10 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Infineon Screenshot of the UConnect CAN XE164 Homepage http www infineon com cms en product channel html channel db3a3043 183a955501 183c3446e1 OO6f File Edit View Favorites T
59. generate code for the XE16x microcontrollers Application Note 24 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book 3 DAvE Microcontroller Initialization after Power On Start the proeram generator DAvE and select the XE164 microcontroller File New 16 Bit Microcontrollers Select XE164F Create g DAVE New Project Create Cancel Help iii Application Note 25 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Choose the Project Settings as you can see 1n the following screenshots General Controller Type Type check select XE164F 96F66 General Compiler Settings Compiler check choose Keil File View Options Add Ins Windows 3 Dag ficos Controller Type Type XE 164F 96F66 hd ROM Size 768 KByte ROM Type Flash Max CPU Clock pe MHz Main Source File Main Header File File name MAIN C File name MAIN H Compiler Settings Compiler k A Memory Model SMALL v XE164F new project A Note You can change file names e g MAIN C MAIN H anytime Application Note 26 V2 0 2008 05 AP16137 UConnect CAN XE164 Cookery Book Infineon System Clock do nothing File View Options Add Ins Windows a Deel 11803 2 Si DAVE XE164F Release v2 0 Y Project Settings es eta 2 System Frequency 575 Clock Output Control C SYS MHz 80 00 T Enable Clock Output Clock S
60. ght v 7 E Dis File Edit Run Tools lp Stop Communication F6 D a ed S gt a e AE Zei Leg Commmunication port open Colors amp Fonts Mode COM5 9600 None 8 1 Communication Se ASCII HEX Decimal Binary Send Sequences Send LED IO Port 2 7 ON 2 LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice Application Note 118 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 1 LED IO Port 2 7 ON Edit Send Sequence Sequence Definition 2 Sequence insert 1 deu Edit Send Sequence Index 0 ess Control Characters Shortcuts Sequence Definition 1 Name 1 LED IO Port_2 7 ON 2 Sequence EditMode ASCII HEX Decimal Binary Pos 2 1 1 3 Additional Repeat Settings IT Send periodically if not sent as an automatic answer to a receive sequence Repeat sequence every b seconds Delete Sequence OK Cancel Apply Help OK Application Note 119 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click inside the red box ZZ Docklign V1 7 ES nx File Edit Run To Help DOM gt E A AMR Oo LLJ Commmunication port closed Colors amp Fonts Mode COM5 9600 None 8 1 Communication Se ASCII HEX Decimal Binary Send Sequences Send Name RON 1 LED IO Port 2 7 ON
61. h Intelligent On chip Peripheral subsystems ADC 10 bit 16 channels D Universal Serial Interface Channels USG XC2766X 96F CA XC2786 96F of XE164F 24F Ed XE164F 48F 3 Enhanced Capture Compare Units 6 CCUB L XE164P 72F 1 General Purpose Capture Compare Unit CAPCOM 2 0 164F 96F 4 MultiCAN Nodes OO XE184G 24F m Debug and Emulation Control Blocks Ed XE164G 458F Ed XE164G 72F A XE164G 96F v CA XE164H 24F i AY VvE1z4L AGE v y Application Note 69 V2 0 2008 05 Cinfineon AP16137 UConnect CAN XE164 Cookery Book Target Clock MHz check 8 0 Target tick check lvl Use On chip ROM Target tick check lvl Use On chip ROM Target tick check M Use On chip XRAM Target tick check M Use On chip XRAM Options for Target Target 1 Device Target Output Listing User C166 EC 46 Infineon XET54F S5F Clock MHz ENS Mernory Model Smal near functions and data v Operating System None v Data Threshold ear 6 Near Memary 16 y KB RAM 16 y KB ROM External Memory Start Size am II Hm o ka zl TI Note Source DAvE Configuration of the System Clock VCO clock used input clock is connected input frequency 1s 8 00 MHz configured system frequency 1s 66 00 MHz system clock 1s 66 00 MHz L166 Locate L166 Misc Debug Utilities Use On chip ROM OxCOO000 OXCOEFFF Use On chip ROM 0x1 0000 OXCBFFFF
62. isc Debug Utilities Use Simulator settings C Use ULINK Driver for xC 6x y Settings Limit Speed to RealTime kW Load Application at Startup Ww Run to maint kW Load Application at Startup F Run te maini Initialization File Initialization File Restore Debug Session Settings Restore Debug Session Settings i Breakpoints i Toolbox WM Watcnpoints amp PA M Breakpoints I Toolbox M MWatcnpoints IW Memory Display M Memory Display EE HI BLL Parameter Driver DLL Parameter 5166 DLL oM oov 5166 DLL ER Dialog DLL Parameter Dialog DLL Parameter DIST pL YE DAF H Di DLL PXETe4F Cancel Defaults Application Note 81 V2 0 2008 05 K Ce AP16137 In fi neon UConnect CAN XE164 Cookery Book Utilities Configure Flash Menu Command check Use Target Driver for Flash Programming Utilities Configure Flash Menu Command select Infineon DAS Client for XC16x Options for Target Target 1 EM Device Target Output Listing User C166 EC A166 L166 Locate L166 Misc Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Infineon DAS Client for SCT 6x Settings w Update Target before Debugging Init File E Edit Use External Tool for Flash Programming Command E Arguments Run Independent Application Note 82 V2 0 2008 05 K Ce AP16137 In fi neon UConnect CAN XE164 Cookery Book Utilities Configu
63. ith priority gt 12 Local Reg Banks 1 or 2 can be assigned by dragging and dropping to the desired bank Note 2 Only 2 Fast Inte can be assigned with priority gt 12 at a time in the bottom 2 cells of Fast Interrupt XE164F new project Note local reg bank For our hello world program the 2 local register banks are not needed global reg bank Application Note 43 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book PEC do nothing File View Options Add Ins Windows 6 08 003 2 PEC Channels Configure PEC channel 0 SS i7 none Ka Group and Level 14 12 10 8 Configure PEC channel 1 E none Group 1 and Level 14 12 1078 Configure PEC channel 2 EE none v Group 2 and Level 14 12 10 8 Configure PEC channel 3 EUROPY none v Group 3 and Level 14 12 1083 Configure PEC channel 4 EE none EN Group 0 and Level 15 13 11 9 Configure PEC channel 5 W none Group 1 and Level 15 13 11 9 Configure PEC channel 6 E none Group 2 and Level 15 13 11 9 Interrupt source for A E Group 3 and Level 15 13 11 9 XE164F new project Note For our hello world program the 8 PEC Channels are not needed Application Note 44 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Functions Initialization Function click M UOCO ASC vlnit Functions Function Library Part
64. k ooo a MAIN C O c 108 main h 109 USER CODE BEGIN MAIN Header 9 intrins h 110 3 xe16xregs h m1 USER CODE END i3 scs h 112 3i 113 io h 114 JP FCR v v v vk sk ok ok e v ok o ok ook o o o p ok o ok e ok v v o o ok ook v v o v ok ook ve v o o ok ok ve o ve v oe oe veo ve v oe ob oe ve oe ve k oe X oe voe ve ok ob ok on ok il cc2 h iion 15 GProject Includes A usicO h 116 E 7 Ak v v vk ok ok ok o o ok o ok o ok o o o o ok o ok o oda A uOcO h 117 a e SCS C 18 include lt Intrins h gt a e IO C 119 rawocc Inesec USICO C 120 s CC2 C 123 include IO H User Files 124 finclude CC2 H 125 include USICO H 126 127 USER CODE BEGIN MAIN Header 10 128 include lt stdio h gt for sprintf for myprintf 129 include lt ctype h gt 130 USER CODE END 131 132 133 fendif ifndef MAIN H 134 w 4 JS wu mr MAIN C Ej MAIN H Simulation Y Application Note 98 V2 0 2008 05 AP16137 EE n fi n eon UConnect CAN XE164 Cookery Book File New MZ XE164 pVision3 C EfFile Edit View Project Debug F elal New STRG N L lt E Open STRG O Pro Insert include main h void myprintf const char p while p UOCO ASC vSendData p j j Example 1 use of myprintf M void main void myprintf Hello World r n j Example 2 use of myprintf M char mb 200 me
65. n Technologies Office Infineon Technologies Components may only be used in life support devices or systems with the express written approval 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 AP16137 In fi neon UConnect CAN XE164 Cookery Book AP08048 Revision History 2008 05 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 is 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 mcdocu comments infineon com Application Note 3 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book Table of Contents Page Note Table of Contents see page 9 Introduction This Appnote 1s a Hands On Training Cookery Book step by step book It will help inexperienced users to get an UConnect CAN XE164 up and running With this step by step book you should be
66. nce Definition 1 Name insert 3 LED IO Port 2 7 blinking Edit Send Sequence Sequence Definition 2 Sequence insert 3 deu Edit Send Sequence PUDE Pon 27 bimg OOOO o a E gt 4 L Fa Delete Sequence OK Application Note 123 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Click Click Click 1 LED IO Port 2 7 ON or LED IO Port 2 7 OFF or 13 LED IO Port 2 7 blinking r 2 Docklight V1 7 File Edit Run Tools Help Stop Communication F6 D a hd Sl gt mim Pl SI we 3 Lg Commmunication port open Colors amp Fonts Mode COM5 9600 None 8 1 Send Sequences Communication ASCII HEX Decimal Binary Send Name Se 1 LED IO Port 2 7 ON 1 EI LED IO Port 2 7 OFF 2 gt E LED IO Port 2 7 blinking Y LED IO Port 2 7 ON 2 LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice 1 wee LED IO Port 2 7 ON l LED IO Port 2 7 ON 2 LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice 2 LED TO Port 2 7 OFF l LED IO Port 2 7 ON 2 LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice 3 LED IO Port 2 7 BLINKING Receive Sequences Active Name Sequence Answer l LED IO Port 2 7 ON 2 see LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking your choice and check the results on your UConnect CAN XE164 re
67. ools Help Back v gt 9 3 4 ASearch Folders Favorites zl v Av SS vy DA e l About Infineon Home Sitemap Select Language Login Infineon Never stop thinking Get Product information Y Select a Category X Search Part Number Go Search Website J Go 7 Microcontrollers Home gt Microcontrollers Development Tools Software and Training gt XE166 Development Tools and Software gt Easy Kits Evaluation Kits gt Uconnect XE154 The UConnect XE164 is a low cost USB stick providing full evaluation capability for the new XE166 16bit Family of microcontrollers The kit includes development toolchains demos a CAHopen EVA version and tutorials for quick installation and ease of The Uconnect USB Stick comes with an CAH extension Board UConnect XE164 Features Low cost USB stick format provides a single evaluation platform for the XE166 family 16bit microcontrollers 8 Complete toolchain support for the XE166 Free Compiler Development Suite S Print Page Access to hardware signals through a 16 pin connector for evaluating the key features of the 16bit XE154 microcontroller CAN ADC CAPCOMBE and two USIC channels UART SPI and IIC Easy installation with demos CANopen EVA version and tutorials for ease of use and quick evaluation of key features eX Send Page Ask Infineon Features of the XE164 CANopen EVA Version CANopen EVA version and Stick PC GUI CAN
68. ource EXTCON SEL tSYS MHz 66 00 B ISYS as ext clk C Use Pin P2 6 as CLKODT C fSYS Through PLL Note External Oscillator Frequency fOSC is 8 MHz Configuration of PLL Configure PLL f5Y3 MHz ha C Use Pin P7 1 as CLKOUT C Use both pins P2 8 P7 1 as CLKOUT Configure TOUT XE164F new project A Note Source DAVE Configuration of the System Clock VCO clock used input clock 1s connected input frequency is 8 00 MHz XTAL 1 configured system frequency is 66 00 MHz system clock is 66 00 MHz Application Note V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book Additional information Clock System Source User s Manual Clock Generation Unit CGU Block Diagram XTAL1 XTAL2 Clock Generator d CCU fsys to RTC DIRIN B E DRTC lans Te EXTCLK to CC60 Clock Generation Unit CGU Note The CGU can convert a low freguency external clock to a high speed internal clock or can create a high speed internal clock without external input The system clock fsys 1s generated out of four selectable clocks e PLL Clock fpLL e Wake Up clock fwu e The Direct Clock fosc from pin X TAL Input DIRIN as Direct Clock Input fpi Application Note 28 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Global Settings do nothing Do not change configuration File View Options Add Ins Windows
69. ples CAPCOM6 examples e g BLDC Motor playing music Simulator examples C examples based on these step by step books Application Note 126 V2 0 2008 05 infir AP16137 In fi neon UConnect CAN XE164 Cookery Book 6 Feedback UConnect CAN XE164 Keil tools Your opinion suggestions and or criticisms Contact Details this section may remain blank should you wish to offer feedback anonymously If you have any suggestions please send this sheet back to email mcdocu comments Oinfineon com FAX 43 0 4242 3020 5783 Your suggestions Application Note 127 V2 0 2008 05
70. re Flash Menu Command click Settings Options for Target Target 1 EM Device Target Output Listing User C166 EC A160 L166 Locate L166 Misc Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Infineon DAS Client for C1 6x w Update Target before Debugging Init File S Edit Use External Tool for Flash Programming Command E Arguments Run Independent Application Note 83 V2 0 2008 05 etc AP16137 n fi n eon UConnect CAN XE164 Cookery Book Flash Download Options Download Function check M Erase Flash Download Options Download Function check M Program Flash Download Options Download Function check M Verify Flash Download Options Download Function check M Reset and Run Infineon DAS Driver Setup E X DAS Client Setup Host Computer localhost Automatic Start Stop DAS Server JTAG over USB Chip y v Start with Debugger Device XE166 XC2000 Family v Stop with Debugger Target Debug Options Flash Download Options Download Function Erase Program 7 Verify Reset and Run Programming Algorithm Address Range ces Application Note 84 V2 0 2008 05 See AP16137 n fi n eon UConnect CAN XE164 Cookery Book Click Add Inf 1e0n DAS Driver Setup p 5 Client Setup Host Computer localhost Automatic Start Stop DAS Server JTAG over USB Chip y v
71. rt output register Pn OUT see Table 7 4 On a read access this bit returns 0 PCx x 8 Jw Port Clear Bit x x 0 7 Setting this bit clears or toggles the corresponding bit in the port output register Pn_OUT see Table 7 4 On a read access this bit returns 0 Function of the PCx and PSx bit fields Table 7 4 Function of the Bits PCx and PSx PCx 0 or no write access 0 or no write access Bit Pn OUT Px is not changed Bit Pn OUT Px is set 1 0 or no write access Bit Pn OUT Px is cleared 1 Bit Pn OUT Px is toggled Function O or no write access Note If a bit position is not written one out of two bytes not targeted by a byte write the corresponding value is considered as O Toggling a bit requires one 16 bit write Application Note 94 V2 0 2008 05 see AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click Main h and insert the following Defines define OFF 0 define ON 1 V XE164 pVision3 C XE164 MAIN H B File Edit View Project Debug Flash Peripherals Tools SYCS Window Help 2 Izd x ASUE XS BOOTHE 422K vialal gt 9 8 a Ba sere PG 5g ex Target 1 jan a Project Workspace 036 m ia Target 1 037 GH Dave Files 038 E 7 PE PE kk ok o p o p ok ok vk o o ole ok ok ob ee o ob ok ob ok o ole ob ok da Start V3 A66 033 Macros i 33 MAIN C 040 ff FR vk vk ok kk o v o p
72. ssage buffer for sprintf void main void int dummy sprintf mb Variable dummy d dummy Write formatted data to string mb myprintf mb Si Application Note 99 V2 0 2008 05 infir AP16137 n fi n eon UConnect CAN XE164 Cookery Book File Save As M XE164 pVision3 EfEile Edit View Project Debug E El New STRG N m Open STRG 0 Proj a Close ki Save STRG S Insert myprintf c Ch Fy Save in A XE164 v el EIUSICO H 5XE164 SI E ICC2 C SISCS C S UY 2ICC2 H ISCS H 3USICO LST 3IXE164 U SCH 1CC2 LST 3SCS LST 1USICO OBJ 1XE164_C i 2 CC2 0BJ 2SCS OBJ IXE164 1XE164 L Jezhit IO C siStart V3 A66 XE164 asm XE16xRE Stef ZStart V3 LST IXE164 dav Mu Computer gt IO LST Start V3 OBJ XE164 dpt E IO OBJ UOCO C sIXE164 Inp IEEE S MAIN C UOCO H IXE164 M66 EN El MAIN H 3UOCO LST IXE164 Opt IMAIN LST 1U0C0 0B IXE164 plg IMAIN OBJ USICO C ZXE164 rtf gt Save as ype sl Cancel Filename Save Application Note 100 V2 0 2008 05 ME AP16137 n fi n eon UConnect CAN XE164 Cookery Book Mouse position Project Window User Files click right mouse button click Add Files to Group User Files v XE164 pVision3 C 1XE1641myprintf c E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help FE 6 SH a vat gt s o ER er m sua BaBe 2c Same 8 Target ZA
73. tions Download Function Iv Erase Iv Program Iv Verify Iv Reset and Run Programming Algorithm Address Range XE16x 96F On chip Flash On chip Flash COO000H CBFFFFH 000000H A Start oxc00000 Size oxoco000 Offset ox000000 OK Cancel OK OK Application Note 87 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Insert your application specific program Note DAVE doesn t change code which is inserted between USER CODE BEGIN and 4 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 outside these USER CODE sections you will have to insert modify your changes each time after letting DAvE regenerate code Application Note 88 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Double click MAIN C and insert Global Variables const char menu n n n 1 LED IO Port 2 7 ON n 2 LED IO Port 2 7 OFF n 3 LED IO Port 2 7 blinking n Mn volatile int RS232 wait 2 volatile bit blinking ON char select v XE164 pVision3 C XE164 MAIN C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help x asada BA OC FFE4 2 2KA iale gt alala 0 m xs Target 1 jan e
74. tter Int LO Bx Butter Error Int XE164F new project fi Application Note V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Interrupts do nothing File View Options Add Ins Windows dt D B Z 803 2 DAVE XE164F Release v2 0 a ea ASC General Control FIFO interrupts Int Extension Bank Select PEC Functions Notes me NA NN Group Priority 0 gt Group Priority 1 gt Group Priority 2 gt GroupPriority 3 gt Note For the serial communication with a terminal program e g Docklight www docklight de running on your host computer the myprintf function is used The myprintf function uses Software Polling Mode therefore we do not need to configure any interrupts Application Note 41 V2 0 2008 05 ur AP16137 n fi n eon UConnect CAN XE164 Cookery Book Int Extension do nothing File View Options Add Ins Windows 6 02 003 2 EFSER Raat Tas ees Jeee7 AE O V gt Group Priority 4 gt Group Priority 5 gt Group Priority 6 gt GroupPriority 7 Application Note 42 V2 0 2008 05 Infineon ry Book UConnect CAN XE164 Cookery Book Bank Select do nothing File View Options Add Ins Windows l n Dag 4 40 t d Universal Serial Interface Channel USIC UOCO KE et Local Reg Bank 1 Local Reg Bank 2 Fast Interrupts P Global Register Bank Note 1 For all int s w

Download Pdf Manuals

image

Related Search

Related Contents

TYPE:36 カタログ    The Main HE A User Guide  Istruzione per l'uso  Philips bSure XG2-Brilliance  Saison - Omsistres.com  Karcher K 5.93 M User's Manual  PP-100NE 運用者ガイド  Configurations User Manual  Velodyne Acoustics SERIES VA-810X User's Manual  

Copyright © All rights reserved.
Failed to retrieve file