Home
AP16139 - Infineon
Contents
1. DAS Product Brief Print Page Send Page Latest release version for download DAS Edition v2 6 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 Y LPT Server v2 4 0 zip 4 01 MB Home tor Press Careers nfineon worldwide 21333 w i EXE 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 is included in the DAS software A virtual COM port driver is also included Application Note 12 V2 0 2008 06 infir AP16139 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 carn Estimated time left Not known Opened so far 600 EE Download to das edition v64 zip Transfer rate 300 KB sec I Close this dialog box when download completes Open Open Polder Cancel Unzip das edition v264 zip and Application Note 13 V2 0 2008 06 See AP16139 In
2. G Storage R Disk Defragmenter Services and Applications Cbisk drives Display adapters Ze DVD CD ROM drives ig Human Interface Devices Q IDE ATA ATAPI controllers 4 Gp IEEE 1394 Bus host controllers ER Keyboards lt Mice and other pointing devices Modems Monitors Bl Network adapters PCMCIA adapters Ports COM amp 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 06 See AP16139 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 ZS System Tools T 2 Device Manager E IS Z Biometric amp Storage zc D amp Disk Defragmen T m Computer 8 Services and Applic E Disk drives Ez um Display adapters F 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 BIS Network adapters COMS k H PCMCIA adapters d Ports COM A LPT Ri Communications Port COM1 E Infineon USB COM Port COM5 d Printer Port LPT1 B Secure Digita
3. N N Y N R7 zFB16 z37FB R10 250044 R11 0081 DPPO 20002 DPPl 20300 DPP2 20003 UOCO ASC uwGetDatag 312 0x8 while 1 UOCO PSR amp 0x4000 SD 0x03 0x03 0x8 0x03 0x03 DPP3 20003 CP zP600 SP STKOV FA0C STKUN FCOO MDH 0000 Oxa 0x03 0x03 MDL 0000 pan Oxc 0x03 0x03 ILVL 00 Hated Program stopped by user File Exit Application Note 125 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book File Close Project Space TASKING EDE C166 ST10 20x File Edit Search Project Build Text Document Customize Tools Window Help e 5 5umt 3 2c z amp veaumulbeosmmtusuuG No project space is open TASKING program builder v8 7r2 Build 088 Preprocessing start asm Compiling and assembling main c Compiling and assembling scs c Compiling and assembling io c Compiling and assembling u0cO c Compiling and assembling usicO c Compiling and assembling cc2 c Compiling and assembling myprintf c Linking and locating to xel64 out W 518 page 2 assigned to DPPO W 518 page 768 assigned to DPPIl N 518 page 3 assigned to DPP2 Wi 199 same page assigned to DPPZ and DPP3 gt total errors 0 warnings 4 O 3 0 eBi e 0 C File Exit Application Note 126 V2 0 2008 06 infir AP16139 In fi neon UConnect CAN XE164 Cookery Book Conclusion In this step by step book you have learned how to use the
4. CA XXE 164 psp EJ XE164 1 Project a XE164 15 Files 2e Source Files void main void e vd USER CODE BEGIN Main 2 n CC2 C USER CODE END DOC D MAIN C MAIN vinit i FD SCS C USER CODE BEGIN Main 3 D start asm while RS 232 wait P USER CODE END DN U0OCO C D USICO C while 1 243 Header Files l a CC2 H USER CODE BEGIN Main 4 o RD IO H myprintf menu i D MAIN H select input n SCS H switch select D UOCO H ra USICO H case l blinking 0FF IO vResetPin IO P2 7 myprintf in LED IO Port 2 7 ON n break D case 2 blinking 0FF IO vSetPin IO P2 7 myprintf n LED IO Port 2 7 OFF 1n break D XE16xREGS H E Project Files f Resources 43 Other Files D XE164 dpt case 3 blinking 0N myprintf n LED IO Port Z 7 BLINKING 1n j break 1 ff USER CODE END J amp Build File C XE164 MAIN C Ot Q Mod Ins Line 366 Col 95 Application Note 87 V2 0 2008 06 infir AP16139 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 11 10 9 8 f 6 1 U 15 14 143 12 5 4 3 2 PC PC PC PC PC PC PC PC PS PS PS PS PS T 6 5 4 3 2 1 0 T 5 4 1 0
5. Emil address DO Do not enter hotmail com gmail com yahoo com 163 com etc email accounts Email address to verity FT First name OO OO Surname i T Department D 9 E Job title OO OOO Phone KREE Company 9 T Country 5eect el Address City Town L State Province PO Zipoode O Microcontroller Device that is used Select cea Namp or descriptian of target project o d T Application segment 3dekt O Planned ramp up date Select yaar Submit registration Cancel registration 2 pene Z Select month Application Note 65 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book C166 classic v8 r2 Start TASKING EDE Classic select the working directory and include the DAVE Project First Run Create Example Workspace click No Example Workspace First Run Create Example Workspace Do you want to create an example workspace C Create Example YYorkspace Folder serhome brezovit My Documents TASKING CT66 ST1O v8 7r2 Browse No Example YVorkspace r OK Application Note 66 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book File Change Directory J TASKING EDE C166 ST10 File Edit Search Project Build Text Document Customize Tools Window Help Z New CAN j Y Sea Po R R Re ra a
6. D IO H L USER CODE BEGIN MAIN Header 3 D MAIN H extern void myprintficonst char p D SCS H USER CODE END D UOCO H D USICO H EEE LD XE16xREGS H Interrupt Vectors i FHFKFFHFFLFFLFFLFLFFLFLFLFEFLFFFLFLFFLFFFFLFFFLFFFFFFFAFAFFAFFFAFAFFAFAFAFFAFFAFFAFAFFFFAFFAFFFF E Project Files re E Resources Other Files D XE164 dpt USER CODE BEGIN MAIN Header 9 USER CODE END NM 4 K JE Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard ot e Mod Ins Ea L Line 98 Col 3 Application Note 91 V2 0 2008 06 AP16139 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 File Edit Search Project Build Text Document Customize Tools Window Help ee e gt 8 egal amp eoc zA Pf FFFFEFEFKEKELKFKFKELFFKFKEKELKFKFKEFKLKFKFKEFKFKFKEKEFKFKFEFKEFKFKFKFKFFKFKBFKSF CA AXE164 psp Sl XE164 1 Project ei a XE164 15 Files D Source Files ff Interrupt Vectors d se dd USER CODE BEGIN MAIN Header 9 ff USER CODE END n CUZ IL D IOC EEE Pod D MAIN C ff Project Includes zh SCS C EEE D start asm j tn UOCO C include XELl6xREGS H gt D USICO C include SCS H EK Header Files i include IO H D CC2 H include C
7. return in CR co USER CODE END oid main void USER CODE BEGIN Main 2 USER CODE END aT wa 0 maint main c 363 1 Oxc0048e USER CODE BEGIN Main 3 while RS232 wait USER CODE END while 1 USER CODE BEGIN Main 4 myprint T menu 7 X gt Command CrossView Memory n X _ Register Mal x MAIN vInit eveagamos CSE 00C0 RO main 363 set Reset rst address 0 ai e SS set Rerun R set BrkOnExit amp EXIT bi 0x0 0x03 0x03 R7 R9 set Return bU C 0x2 0x03 0x03 R10 R12 set Main rst S 0x4 0x03 0x03 R13 R15 set DelAllBrk D KT 0x03 0x03 DPPO DPP2 0x8 0x03 0x03 NEM tt 7900 d sov MEO un FCO MDH 0000 Oxa 0x03 0x03 MDL 0000 pan ME Oxc 0x03 0x03 ILVL 00 Application Note 115 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Ze CrossView Pro C166 ST10 xe164 abs File Target Edit Run Breakpoints Data Tools Setting Sc LN ossView Pro C166 SL BL Z Mid K b gt Halt Shift F5 Reset Application ta SCH e S VERI C Reset Target System eg File Targ Se Run s Mu m T Run to Cursor BL BL GR H I E EE SC L gt Bes oe Jump to Cursor Return from Function Background Mode Step Mode Step Over Step Into Animate CrossView Pro C166 ST10 xe164 abs File Target Edit Run Breakpoints Data
8. 12 Mbytes External Addressing Capability Application Note On Chip Areas External Memory 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 4T 32 FF FFFF E0 0000 C0 0000 A0 0000 DU 0000 600000 40 0000 20 0000 H 000000 16 Mbytes Segments 255 0 31 D CH n O glo HE o elo 29 ICH CH sl O E V2 0 2008 06 infir AP16139 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 Eai the close button Project 5 Application Note 32 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book Configuration of the serial interface ASCO VART USICO CHO UOCO ed DAVE File View Options Add Ins V L Osea nus SP AvE XE164 Fe P e aa ae h tan sinin ET TT z XE164F new project A Application Note 33 V2 0 2008 06 infir AP16139 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 6n Di B 4 s e Universal Ser
9. Back v 9 3 A Search Folders Favorites A zl v Av SS vy SER Bat l About Infineon gt H Home Sitemap Select Language Login Infineon Never stop thinking Get Product information Y Select a Category X Search Part Number Go Search Website f Go Y Microcontrollers Home gt Microcontrollers Development Tools Software and Training XE166 Development Tools and Software gt Easy Kits Evaluation Kits Uconnect XE164 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 CANopen 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 Pl 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 Horch project to lis
10. Install the XE164 microcontroller 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 E155 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 AE154 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 experts ere 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 v2 0 4 2 MB RET5xx 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 06 infir AP16139 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 gt Select Available Products click v XE16xx_Series Forward gt Ins
11. USER CODE END D MAIN C MAIN vInit i HD SCS C LD start asm USER CODE BEGIN Main 3 Pod while RS232 wait jn UOCO C USER CODE END D USICO C amp 43 Header Files banat 1 in CC2H LD 10 H USER CODE BEGIN Main 4 n MAIN H USER CODE END i FO SCS H D UOCO H 1 D USICO H End of function main D XET6xREGS H f Project Files a Resources D Other Files D XE164 dpt dd USER CODE BEGIN MAIN General i0 dd USER CODE END X 4 gt File Find A Search A Browse A Difference A Shell A Symbols Build Inserted from the clipboard ke We EN Mod Ins ESA Line 366 Cal 24 Application Note 86 V2 0 2008 06 gm AP16139 n fi n eon 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 rt 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 TASKING EDE C166 ST10 C XE164 XE164 pjt C XE164 MAI IN Cla E File Edit Search Project Build Text Document Customize Tools Window Help la x SE s ae mei m mw e roi ei i lY ze H amp amp mo IAA return in 1 n USER CODE END
12. Window Help PRIMUM Tools Project Build Text Document Customize iced o SE s P USER CODE BEGIN MAIN General 6 USER CODE END Z ff Global Variables ff FF FFFFSKFKFKFKFKFKFKFKFKFKFKFFFLFFFLFFFFLFFFFFKFLFFKFFKFHKFHKFKFKFKFHKFKFKFKFKFKF USER CODE BEGIN MAIN General 7 const char menu inNnn Il LED IO Port 2 7 ON n 2 ss LED IO Port 2 7 OFF n 3 LED IO Port 2 7 blinking n in volatile int R323Z wait 2 volatile bit blinking 0N Char select dd USER CODE END ff FF FFEKFKFKFKFKFKFKFKFKFKFLFLFFFLFLFFLFFLFFLFLFFFLFLFKFHKFFKFFFHKFKFKFHKFHKFKFKFKFKFKF dd External Prototypes L iLiGdddddddd d d d d d xx xcd xc cc c bc cx cllc cllc ld dal aaa ta aa oa La Build A File Find A Search A Browse A Difference A Shell A Symbols WITT clipboard Ot le gt Er Mod Ins Une gp Col 17 Application Note 84 V2 0 2008 06 gm AP16139 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 UOCO0O_ASC_uwGetData while in 1 amp amp in 2 amp amp in 3 return in j File Edit Search Project Build Text Document Customize Tools Window Help Seen 6 ZN i H aes USER CODE BEGIN Main l Char input void CA XXE164 psp S XE164 1 Project c
13. Send Sequences Send Name SE 1 LED IO Port 2 7 ON 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 06 See AP16139 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 j Control Characters Shortcuts Sequence Definition 1 Name 2 LEDIO Part 2 7 OFF 2 Sequence EditMode 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 06 gm AP16139 n fi n eon UConnect CAN XE164 Cookery Book Double click inside the red box Dockligm 1 7 File Edit Run Too Help Deke sua SS A 7 oe ad Commmunication port closed Colors amp Fonts Mode COMS 9600 None 8 1 Send Sequences Communication Send Name Se ASCI HEX Decimal Binary gt 1 LEDIO Part 2 7 ON 1 gt 2 LED lO_Port_2 7 OFF ES l eee LED IO Port 2 7 ON D POIL iert OFF Double click to add new sequence _Port_2 7 blinking Application Note 122 V2 0 2008 06 ec AP16139 n f
14. and check the results on your UConnect CAN XE164 pe G fis IEREEECHEEEE FERRE E PPP LLU La IDEM Cd peered H 11 THT Hino n Lae ia TUIE TT Application Note 124 V2 0 2008 06 etc AP16139 n fi n eon UConnect CAN XE164 Cookery Book Now we close the Debugger and TASKING EDE Classic Run Halt BL CrossView Pro C166 ST10 xe164 abs File Target Edit Run Breakpoints Data Tools Settings View Window Help BLBL Gr Det ee gt bni ao save ow 4m Data B rx Source uOcO c el sgoeos R KW Bee AQRro 4 312 eh Q ce00808 JUOCO ASC ow e fulSouce ines w Source Ine 8Date 03 06 2008 AAA USER CODE BEGIN ASCGetData 1 USER CODE END rd UOCO ASC uwGetData void SSI E E LL 0 UOCO ASC uwGetDatai u0c0 c 312 UOCO PSCR 0x4000 clear receive indication flag 1 input main c 351 return UOC RBUF return receive buffer register 2 main main c 374 3 Oxc0048e End of function UO0CO ASC uwGetData A Jwan AKKA KKK A KKK A KK X A KKK A KKK A KKK A KK KA KK XA KKK K KKK A KKK K KKK A KKK K KKK X 7 8Function ubyte VOCO_ASC_ubTxDataReady void 4 Command CrossView IJI X C Register CSP 00C0 set BrkonExit amp EXIT bi es7ecmos set Return bu c address 9 A set Main rst s set DelAllBrk Dp 0x0 0x03 0x03 Ox2 0x03 0x03 gt c Program stopped by user 0x4 0x03 0x03
15. 3 blinking 0N myprintf n LED IO Port 2 7 BLINKING n break ff USER CODE END H j End of function main B TASKING program builder v8 7rz Build 088 Preprocessing start asm Compiling and assembling main c Compiling and assembling scs c Compiling and assembling io c Compiling and assembling u0cO c Compiling and assembling usicO c Compiling and assembling ccZ c Compiling and assembling myprintf c Linking and locating to xel64 out W 518 page 2 assiqned to DPPO W 518 page 768 assigned to DPPl W 518 page 3 assigned to DPP2 W 199 same page assigned to DPP2 and DPP3 total errors 0 warnings Build A File Find A Search A Browse A Difference A Shell A Symbols Ho ES lot le el ns IC Line 375 Cal 95 Note Programming is now complete 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 104 V2 0 2008 06 infir AP16139 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 E fien 2 HER z UConnect R al 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 US
16. Pulse Length lo S Ae Pair One stop bit C Even parity Two stop bits Sample Point 7 C Odd parity Info Word length 8 Frame 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 06 infir AP16139 l n fi n eon UConnect CAN XE164 Cookery Book Additional information RS232 serial interface Note The RS232 serial interface USIC_0_Channel_0 pins P7 3 and P7 4 1s 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 Signat Contr tl r Application Note 37 V2 0 2008 06 infir AP16139 l 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 TxDCO P2 5 8xn Bytes 1 x means that the level on the corresponding pin is irrelevant Application Note 38 V2 0 2008 06
17. see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Control do nothing File View Options Add Ins Windows ou Dau eitis t Data Transfer Interrupts and Node selection F Alternate Receive Interrupt uoco oe INT e Transmit Buffer Interrupt uoco oic INT e Receive Interrupt uoco_oic INT e 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 Synchronization Break interrupt XE164F new project fa Application Note 39 V2 0 2008 06 Infineon AP16139 UConnect CAN XE164 Cookery Book FIFO do nothing File View Options Add Ins Windows ou Dau eitis t Transmit FIFO Buffer Configuration No of FIFO buffer entries lo w Tx FIFO Data Pointer Transmit FIFO Interrupts Configuration Limit for Interrupt Generation of Buter Event on Limit vertin L Standard Tx Buffer Int uoco oic INT e uoco oic INT e Ix Butter Error Int Receive FIFO Buffer Configuration b x E No of FIFO buffer entries Rx FIFO Data Pointer Receive FIFO Interrupts Configuration Recetver Notification Mode RNM REI mode Limit for Interrupt Generation af Butter Event on
18. see AP16139 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 Serial Interface Channel USIC UOCO KE ZE 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 06 AP16139 UConnect CAN XE164 Cookery Book Configure Timer T7 in the CAPCOM 2 module ed DAVE EB X File View Options Add Ins Windows Deng slAloel 8 e M Sa UT 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 06 Infineon ry Book UConnect CAN XE164 Cookery Book Module Clock CAPCOM2 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 CAPCOM module MHz 66 XE184F new project ve Appl
19. 2008 06 infir AP16139 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 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book File View Options Add Ins Windows on Dau ies D DAvE XE164F Release Si Generated Files in C XE164 We d 9 DAvE s Project Documentation Project XAE164 dav Controller AE164F 96F66 Compiler Tasking Classic Memory Model SMALL Date 02 06 2008 15 45 15 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 MAIN H MAIN C SCS H SCS C XE16XREGS H IO H IOC UOCH H UOCH C USICO H USICO C CC2 H CC2 C XE164 ASM 7 XE164F CAXETOAXET64 dav A File Exit Save changes Click Yes Application Note 64 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book 4 Using the TASKING Development Tools C Compiler Install the tool chain You can request the TASKING Development Tools http forms tasking com xe166 php Note Altium s TASKING Classic Compiler for XE166 devices is free of charge for one year E XE166 compiler registration Infineon Technologies File Edit View F
20. Book Global Settings do nothing Do not change configuration File View Options Add Ins Windows n Dag ficos Global Interrupt Enable Z Enable global interrupt IEN XE164F new project AL Application Note 29 V2 0 2008 06 Infineon AP16139 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 Z 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 fero Cycle Jump function Control I Enable zero cycle jump function ZJ XE164F new project P Note We should not change the pipeline behaviour Application Note Prfetch III refetc E D meten ko i lai loa lo les Memory 30 V2 0 2008 06 Cinfineon AP16139 UConnect CAN XE164 Cookery Book Additional information Start from program memory Source User s Manual Start from program memory VECSEG Program Memory
21. CC2 vilmr CC2 vil mr8 COC vResetCCxOUT CC ubGetCCxOUT CCx vsyneStartl mr ppp prp E A E S 5 XE184F new project AL Parameters do nothing Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Esi the close button Application Note 53 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book Configure Port 2 Pin 7 to Output salsa DAVE XE164F Release v2 r Ara Note The is connected to r p me Wi wem p Application Note 54 V2 0 2008 06 infir AP16139 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 Si Parallel Ports ea 7 Ports Functions Parameters Notes Configure Port 0 Configure Port 1 Configure Port 4 Configure Port5 Configure Port 6 Configure Port 7 Configure Port 10 Configure Port 15 XE164F Ires eu C X S I CU SS X S S X C S SS WX S TS Application Note 55 V2 0 2008 06 see AP16139 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 n Deng fus Si DAVE XE164F Release v2 0 Configure Port 2 Functionality Direction Push Pull Open Drain Output Value IT Use P2 0 as general lO
22. In Out F Open drain F high F 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 F Use P2 4 as general IO In Out M Open drain TC high F Use P2 5 as general IO In Out Open drain F high r Use P2 6 as general IO In Out M Open drain F high Use P2 7 as general IO Out F 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 M Open drain F high F Use P2 10 as general IO In Out M Open drain F high F Use P2 11 as general IO In Out M Open drain r high F Use P2 12 as general IO In Out M Open drain F high XE164F VE E d E Application Note 56 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Input Characteristic do nothing File View Options Add Ins Windows G Deng fus Si DAVE XE164F Release v2 0 d Configure Port 2 p et Pull Device P2 0 pull device Tristate Wy K P2 1 pull device Tristate M P2 2 pull device Tristate sl E P2 3 pull device Tristate M P2 4 pull device Tristate ei P2 5 pull device Tristate yl E P2 6 pull device Tristate sl P2 7 pull device Tristate ei P2 8 pull device Tristate m P2 9 pull device Tristate M P2 10 pull device Tristate ei P2 11 pull device Tristate ei P2 12 pull device Tristate XE164F VE d ON
23. Settings a ea 2 System Frequency f5Y5 Clock Output Control C SYS MHz 80 00 T Enable Clock Output Clock Source EXTCON SEL e tSYS MHz 66 00 B ISYS as ext clk C Use Pin P2 6 as CEKOUDT C ar Through PLL Note External Oscillator Frequency fOSC is 8 MHz Configuration of PLL Contigure PLL f5Y3 MHz ha C Use Pin P7 1 as CLKOUT C Use both pins P2 8 P7 1 as CLKOUT Contigure 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 XTAL1 configured system frequency is 66 00 MHz system clock is 66 00 MHz Application Note V2 0 2008 06 infir AP16139 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 L B E DRTC o lp RTC E EXTCLK to CC60 Clock Generation Unit CGU Note The CGU can convert a low frequency 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 fei 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 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery
24. Space ab start asm D UOCO C Project Options D USICO C D Header Files Build B CC2H Rebuild D IOH D MAIN H Version Control d D SCSH y UOCO H Properties D USICO H co de XE16xREG Edit this menu a Project Files E Resources Other Files SS DO XE164 dpt j 4 gt L File Find A Search A Browse A Difference A Shell A Symbols Eis OlszOebloeolnc Build EE Ia t Mt 555 ling 3 necs eaae Application Note 98 V2 0 2008 06 gm AP16139 n fi n eon UConnect CAN XE164 Cookery Book Click myprintf c A File Edit Search Project Build Text Document Custome Tools Window Help Bee CHE CA AXE164 psp EJ XE164 1 Project EE XE 164 15 Files D Source Files Be 1 a Zon SIU0C0 C SIYE164d d0 HDO IOC 15 w Ra Lo MAING 3 xel64 cfg MAIN C 5 U0C0 H lxe164 err Leer JS xe164 ilo MAIN H SUSICO C 3l xe164 mz Elte xe164 xvo myprintf c 5I USICO H lxe164 opi D U0CO C D BIB CC2 C SCS C XE164 asm XE164 pjt D USICO C BCC2 H p H IXE164 bak XE164 ps Header Files BS sIXE164 dav ZIXE164 rtf LD CC2H LD IO H DI gt L D MAIN H g j D SCS H ial File name myprintt c y UOCO H D USICO H pa Files of type Al Files Cancel D XE16xREGS H E Project Files E Resources G Other Files D XE164 dpt Build A File Find A Search A Browse A
25. UConnect CAN XE164 together with the TASKING EDE Classic 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 Cl6x 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 examples CAPCOM6 examples e g BLDC Motor playing music Simulator examples C examples based on these step by step books Application Note 127 V2 0 2008 06 ec AP16139 In fi neon UConnect CAN XE164 Cookery Book 6 Feedback UConnect CAN XE164 TASKING EDE Classic Your opinion suggestions and or criticisms Contact Details this section may remain blank should you wish to offer feedback anonymously I
26. 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 i 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 Tm WARNING This program is protected by copyright law and a ny wire international reaties any device 2 Cancel Application Note 14 V2 0 2008 06 infir AP16139 l 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 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Connect the UConnect CAN XE164 to the host computer EE i i JE SEF UConnect I JET EE Real Time SignaEContr ll r yj USB Connection used for UART communication the USICO CHO UART RS232 serial interface is 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
27. 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 1s 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 06 see AP16139 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 D E Jd 88 D 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 D Paint Shop Pro 5 i view WinMerge Calculator Macmillan MapSource tei Vergleich English Europe 2008 eae L G EA ip Install Remove W Li 9 Office Applications E U2CAN Visual Studio EasyCASE C Docklight XC888 v1 1 2005 file explorer 31 WinZip Bx ics es SF z Di explorer exe UDE 2 02 03 DAS Server DAS Basic Client REMOVE DAS Show Delete Control Panel COMs Control Panel Network and Dial up Connections 3 Printers 3 Taskbar amp Start Menu z 8 g B 2 HiTOP52 U CA XC164CM
28. 4 1 Project 548 XE164 15 Files G Source Files LD CC2 C DOC LD MAIN C Ho SCS C n start asm LD U0CO C 2 USICO C 3 Header Files LD CC2H LD IO H LD MAIN H LD SCSH i LD UOCO H D USICO H D XE16xREGS H E Project Files E Resources C166 ST10 Project Options XE164 PJT T Application Execution Environment C Compiler EI Use simulator T C Compiler H Assembler Board manufacturer 7 Macro Preprocessor Linker Locator ziii M Board configuration Execution Environment Configuration Settings Nones Y H RAM ROM Monitor Communication OCDS via DAS Setup DAS wiggler type Wiese cds On board USB wiggler Y RTOS Aware Debugging Module 1 Logging Miscellaneous nfineon Target configuration Tile Browse Register Initialization Configuration Settings Bg Other Files D XE164 dpt Options string G tefg c Axe164X xe164 cfg single instance load application download true load application verify true enable flash false load application use map file true gt load_application_signal true load_application_program_reset true x Cancel Default File Find A Search A Browse A Difference A Shell A Symbols C EC E Mod Ins Line 1 791 Application Note 80 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book CrossView Pro Execution Environment Board configuration select Infineon XE1
29. 6 see AP16139 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 IE Geuns Te EZ Si DAVE XE164F Release v2 0 3 Capture Compare Unit 2 CAPCOM2 Ia eta Module Clock Control Timer 7 8 Channels Interrupts Int Extension Bank Select PEC Functions Parame 4 d ENS Best Reni ser ees Level 0 non interrupting Note To change the level and the group of an interrupt source click on it drag it ta 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 Level 0 list and dean it XE184F new project AL Int Extension do nothing Bank Select do nothing PEC do nothing Application Note 52 V2 0 2008 06 see AP16139 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 cc2 c Function Library Part 1 Function Library Part 2 CG2 vStartTmr CG2 vPortLock CG2 vStopTmr CC2 vPortUnlock COC Clear mr CC vEnableSingleEvent COC uwReadI mr ne hat UUU onm om CG2 ve ad TImr uud S usse US usc a bou y y CC2_vSelectDoubleRegisterCompareMode CC2 vSetReload Bese CC2 vSetCCxReg eee er SUM CC uwGetCCxReg
30. 64 Cookery Book Double click inside the red box d Docklight 7 3 ojx File Edit Run Tools elp Stop Communication F6 D a Ed S gt n E AA Zei L Commmunication port open Colors amp Fonts Mode COMS 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 06 See AP16139 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 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Double click inside the red box ZZ Docklig V1 7 ES nx File Edit Run ToS Help D c s S amp S wd 7 Oo ad Commmunication port closed Colors amp Fonts Mode COMS 9600 None 8 1 Communication Se ASCII HEX Decimal Binary
31. 64F via DAS Single Chip TASKING EDE L C166 ST10 C XE164 XE164 pjt File Edit Search Project Build Text Document Customize Tools Window Help e asua malo S C XE164 psp EJ XE164 1 Project S 4 XE164 15 Files C166 ST10 Project Options XE164 PJT Eg Source Files i D CC2 C Oe HD MAIN C D SCSC LD startasm Application Execution Environment C Compiler r Use simulator C Compiler Assembler Board manufacturer n Macro Preprocessor nineon sl D UOCO C Linker Locator 2 USICO C CrossView Pro 3 Header Files Execution Environment LD CC2 H i Configuration Settings Infineon XE164F via DAS Single Chip n IO H H RAM ROM Monitor Communication D MAINH OCDS n SCS H Initializ m UOCOH RTOS D USICO H Loggin Q Infineon XE164F via DAS Single Chip has been selected as new execution environment GH SMEDEN Do you want to set the startup registers to the default values for this execution envrionment t3 Project Files E Resources zc Other Files Yes Set the startup registers to new values D XE164 dpt AF H He pH H Board configuration No Keep the current values of the startup registers Lw e gt load application signal true load application program reset true v OK Cancel Default 7 Build A File Find A Search A Browse A Difference A Shell A Symbols C EE Mod ns Une Cott Click Yes Ap
32. Application Note V2 0 June 2008 AP 16139 XE164 UConnect CAN XE164 Cookery Book for a hello world application using Attium s TASKING classic C166 toolset this toolset is available free of charge for One year Microcontrollers gt dien Never stop thinking Edition 2008 07 16 Published by Infineon Technologies AG 81726 Munchen Germany Infineon Technologies AG 2008 All Rights Reserved LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND INCLUDING WITHOUT LIMITATION WARRANTIES OF NON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE Information For further information on technology delivery terms and conditions and prices please contact your nearest Infineon Technologies Office www infineon com Warnings Due to technical requirements components may contain dangerous substances For information on the types in question please contact your nearest Infineon Technologies Office Infineon Te
33. Application Note 57 V2 0 2008 06 Infineon EE UConnect CAN XE164 Cookery Book Output Characteristic do nothing File View Options Add Ins Windows n Deng fius Edge Characteristic Control Driver Characteristic Control Edge of P2 0 P2 3 Sharp edge mode Driver of P2 0 P2 3 Strong driver v Edge of P2 4 P2 7 Sharp edge mode Y Driver of P2 4 P2 7 Strong driver v Edge of P2 8 P2 11 Sharp edge mode z 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 58 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Parameters do nothing File View Options Add Ins Windows M DER Z fus DEEN Parameters onn d 7 loP21 5 lop22 03 2 ona ona ons one loP27 4 loP28 Oo ona TL EMNNERRERRENEE lO P2 10 lo P2 1 1 lo P2 1 7 XE164F E 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 06 infir AP16139 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 P
34. As Save All Application Note 96 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Mouse position XE164 15 Files File View Window click right mouse button 1AA1 8 A 8 A wmm APA ae J TASKING EDE C166 ST10 C XE164 XE164 pjt 33931220077 elt 3 File Edit Search Project Build Text Document Customize Tools Window Help en x x a CA AXE164 psp S XE164 1 Project Et 164 15 Files amp 3 Source Files D CC2 C rm 10 C UD MAIN C D SCS C n start asm r 1 UOCO C 2 USICO C G Header Files D XE16xREGS H E Project Files a Resources D Other Files D XE164 dpt cFIEOl 0 eB foc File View File Find A Search A Browse A Difference A Shell A Symbols Cep we nes Got Application Note 97 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Mouse position XE164 15 Files File View Window click right mouse button click Add Existing Files Browse J TASKING EDE C166 ST10 C XE164 XE164 pjt C XE164 mypr a a m X File Edit Search Project Build Text Document Customize Tools Window Help x e 2 j s8B8 amp kmuoc a Ci XE164 psp EJ XE164 1 Project pS B s D Source Files Add New File i D CC2 C Add Existing Files d Browse D Ioc Include Sub Project D MAINC J Scan D SCSC Remove from Project
35. B to UART JTAG interface used for On Chip Flash Programming 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 Application Note 105 V2 0 2008 06 Cinfineon AP16139 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 O 3 G Search Folders Favorites 4 Gl Ze amp w Saw aw oy Address e http www docklight de download_en htm M Go e 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 Sc
36. C USER CODE END i D SCS C D start asm PF amp Defines D UOCO C Pf FHFFEFEFFFKELFFKFFKEFFLKFKFKFLKFKFKFFELKFKFKEFKFKFKFKEFKFKFFKFKEFKFKFFKFLKFKFFSF gt D USICO C define TASKING CLASSIC Co Header Files H f USER CODE BEGIN MAIN Header 4 i n CC2 H define OFF 0 D IO H define ON 1 D MAIN H USER CODE END SCSH D UOCO H EEE Iypedefs PDO USICO H EEE D XE16xREGS H E Project Files E Resources Other Files D XE164 dpt USER CODE BEGIN MAIN Header 5 ff USER CODE END z Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard lot r Mod Ins Ea L Line 54 Col 14 Application Note 89 V2 0 2008 06 AP16139 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 File Edit Search Project Build Text Document Customize Tools Window Help See e W mmo JAA a ff USER CODE END CA AXE164 psp Sl XE164 1 Project ei a XE164 15 Files D Source Files P Imported Global Variables EEE dd USER CODE BEGIN MAIN Header 6 n CC2 C i D OC USER CODE END D MAIN C Sk SCS C EEE D start asm 8Global Variables P D UOCO C D USICO C USER CODE BEGIN MAIN Header 7 E ea H
37. C2 H D IO H include USICO H D KAER USER CODE BEGIN MAIN Header 10 LD SCS H include lt stdio h gt for sprintf for myprintf D UOCO H include lt ctype h gt PO USER CODE END rD USICO H i a XE16xREGS H endif ifndef MAIN H D Resources Other Files m XE164 dpt z Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard ot EN Mod Ins ES L Line 125 Col 19 Application Note 92 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book File New TASKING EDE C166 ST10 File Edit Search Project Bui Bien ON Open a New File for Editing Current Directory C AXE 164 Filename M Create new window Browse Cancel Help Insert myprintf c Open a New File for Editing Current Directory C AXE164 Filename Wirpate new window Browse o Cancel Help Click OK Application Note 93 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Insert include main h void myprintf const char p while p UOCO ASC vSendData p 4 4 j j p Example 1 use of myprintf void main void j myprintf Hello World n Example 2 use of myprintf EE char mb 200 message buffer for sprintf void main void int dummy sprintf mb Variable dummy d dummy Write for
38. CAN CCleaner Profile Space Recycle Bin Monitor at 1 Cleaner R Pant sh j Dic 25 OMLORSHG 3A e WM Start APO807 Application Note 17 V2 0 2008 06 Infineon AP16139 UConnect CAN XE164 Cookery Book Double click Administrative Tools amp Control Panel File Edit View Favorites Tools Help Back v v amp Search Folders J 4 X Dw el D Address Control Panel v Go c 112 Pe ee ie S B o Ff 25 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 E 93 kk personalize your 2 F E LA 5 L E d 2 4 computer Internet Options Java Keyboard Mail Mouse Nero BurnRights Networkand NVIDIA nView Phoneand Power Options Printers Dial up Co Desktop Ma Modem Options view its description GE 9 J 9 sg a e e 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 06 Infineon AP16139 UConnect CAN XE164 Cookery Book Double click Computer Management t Administrative Tools File Edit View Favorites Tools Help Back v 3i ASe
39. Default Settings Directories Members Tools Errors Filters EXE 164 0 Projects Project Space CAXE164VXE164 psp T Hide projects already in project space External Workspace none Application Note 70 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book Click Add new project to project space TASKING EDE C166 ST1 XE164 0 Projects Project Properties E Default Settings 1 XE164 0 Projects RRR RRNA RRR R RRA RRS RAR Application Note 71 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book Insert XE164 TASKING EDE C166 ST10 File Edit Search Project Build Text Document Customize Tools Window Help e gt jas D Project Properties CA AXE 164 p i Default Settings Directories Members Tools Errors Filters XE164 0 Project g 0 Project S 0 Projects Project Space CAXE164XXE164 psp Projects Add New Project to Project Space Current Directory CAXE164 Filename XE 164 v Look in same directory for external makefile Makefile Type I Auto syne makefile Build A File Find A Search A Browse A Difference A Shell A Symbols M ip El Bee R TEST Siet IHH HHIHH OK Application Note 72 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book Click Add existing files to project TASKING EDE C166 ST10 File Edit Search Project Build Text Document Cu
40. Difference A Shell A Symbols Ga L a Tee on Click Open Application Note 99 V2 0 2008 06 ec AP16139 n fi n eo n UConnect CAN XE164 Cookery Book Project Properties Default Settings E XE164 1 Project ER 16 Files CAXE164 XE164 dpt CAXE164 start asm CAXE16443MAIN H CAXE1644MAIN C CAXE1644SCS H CAXE1644SCS C CAXE164XXE16xREGS H CAXE1643U0CO0 H CAXE1644U0CO C CAXE164 USICO H vC Project nonez I Add project files to VCS Project De Other Files Py XE1 64 dpt Click OK Application Note 100 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book File Edit Search Project Build Text Document Customize Tools Window Help je x e 2 58 amp 95 m 2 e e e 5iib summumuus X include main h a CAXE164 XE164 psp void myprintf const char p 6 XE164 1 Project while n 24 XE164 16 Files aa Source Files VOCO ASC vSendData p D CC2 C CAXE164 CC2 C n IOC CAXE164 10 C LD MAIN C C XE164 MAIN C n myprintf c CAXE 164myprintf c HD SCS C C XE164 SCS C LD start asm C XE164 start asm i ani Conta D UOCO C CAXE164 U0C0 C t de USICO C CAXE164 USICO C myprintf Hello World irin G Header Files D CC2 H CAXXE1644C C2 H Example 2 use of myprintf n IO H CA XE164 10 H dE n MAIN H CAXXE1644MAIN H char mb 200 message buffer for sprintf LD SCS H CAXE164 SC
41. Limit Ciper nma Filling level mode uoco oic INT e uoco oic INT e uoco oic INT e E Standard Bx Buffer Int E Alternate Bx Butter Int D Bx Buffer Error Int XE1864F new project fi Application Note V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Interrupts do nothing File View Options Add Ins Windows dt D B Z s EI DAVE XE164F Release v2 0 a Ga 2 ASC General Control FIFO interrupts Int Extension Bank Select PEC Functions Notes me a a Group Priority 0 Group Priority 1 gt Group Priority 2 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 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Int Extension do nothing File View Options Add Ins Windows 6n De RN fos EFSER Raat Groups ees Jeer EE o e URN gt Group Priority 4 gt Group Priority 5 gt Group Priority 6 gt GroupPriority 7 Application Note 42 V2 0 2008 06 Infineon ry Book UConnect CAN XE164 Cookery Book Bank Select do nothing File View Options Add Ins Windows l n Dag ZOO t d Universal Ser
42. N C i D SCS C C XE164 SCS C HDI startasm C XE164 start asm LD UOCO C CAXE164 U0CO0 C D USICO C CAXE164USICO C Header Files i LD CC2 H CAXE164 CC2 H DIOH CAXE164 10 H D MAIN H CAXE164MAIN H LD SCSH CAXE164 SCS H LD U0CO H CAXE164JU0CO H i p USICO H CAXE164 USICO H D XE16xREGS H C XE164 XE16xREGS H E Project Files Resources Be Other Files LD XE164 dpt CAXE164 XXE 164 dpt i EE lee Mod Ins une Application Note 77 V2 0 2008 06 Cinfineon AP16139 UConnect CAN XE164 Cookery Book Project Project Options TASKING EDE C166 ST10 C XE164 File Edit Search Project Build Text Docum e 9 ecHS CA XXE164 psp El XE164 1 Project e XE164 15 Files Eg Source Files HD CC2 C p IOC HD MAIN C D SCS C E start asm Q UOCO C USICO C Ge Header Files LD CC2 H LD 10H p MAIN H D SCS H y UOCO H rD USICO H D XE16xREGS H E Project Files E Resources Ges Other Files DO XE164 dpt Application Note Properties A d Directories Load Files Project Options Current File Options Load Options Save Options Select Toolchain Load Workspace Save Workspace Browse Build Tags Set Current d Recent Projects 78 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book Application Processor Processor Selection Man
43. Project Files m Resources D Other Files D XE164 dpt Build A File Find A Search A Browse A Difference A Shell A Symbols File C XE164 CC2 C lo Qr Mod Ins Une 324 Col 32 Application Note 102 V2 0 2008 06 Cinfineon AP16139 UConnect CAN XE164 Cookery Book Generate your application program Build Rebuild Compile Ctrl Shift F10 Build S XF 164 1 Project selected oa Debug gt XE 164 16 Files Execute 7 3 Source Files 9 3 CC2 C cae 1 Clean D 10 C case 2 enc case gt Scan All Dependencies Application Note nix Help BE 103 V2 0 2008 06 Infineon AP16139 UConnect CAN XE164 Cookery Book File Edit Search Project Build Text Document Customize Tools Window Help e x UE OK EECH z AT HHT Qmm uus CA AXE164 psp EJ XE164 1 Project D XE164 16 Files 2c Source Files inccac n myprintf c D SCSC n start asm D UOCO C D USICO C G Header Files LD CC2H LD IO H n MAIN H D SCSH D UOCO H LD USICO H D XE16xREGS H Le Project Files E Resources 53 Other Files D XE164 dpt USER CODE BEGIN Main 4 myprintf menu select input switch select case l blinking 0FF IO vResetPin IO P2_7 myprintf An LED IO Port 2 7 ON n break case 2 blinking 0FF IO vSetPin IO PZ 7 myprintf n LED IO Port 2 7 OFF n break case
44. S H er 7 p UOCO H CAXE1644U0CO H abri LD USICO H C XE164 USICO H int dummy LD XE16xREGS H CAXE164XXE16xREGS I l l t sprintf mnb Variable dummy 3d dummy Write formatted data to string mb rum Project Files ayprintf mb A Resources Ss 58 Other Files XE164 dpt CAXE164 XE164 dpt 1 d amp File f Outl Obj Boo Ope Cod Build A File Find 4 Search A Browse A Difference A Shell Symbols o eee wel Line32 ot Application Note 101 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Double click CC2 C insert Code CAPCOM 2 Timer 7 Interrupt Service Routine if RS232 wait RS232 wait if blinking IO vTogglePin IO P2 7 j File Edit Search Project Build Text Document Customize Tools Window Help e xj dd 8Date 03 06 2008 Ci XE164 psp S XE164 1 Project 245 XE164 16 Files D Source Files EEE ETEL ff USER CODE BEGIN Imr 1 ff USER CODE END 2 n CC2 C interrupt CC2 T7INT void CC2 viTmr void FD IO C IO MANC M n O myprintf c R 232 wait D SCS C E n start asm S GE D UOCO C I0 vTogglePin IO P2 7 LD USICO C a USER CODE END c3 Header Files HDO CC2 H dd End of function CC2 viTmr HD IOH 2 n MAIN H KD SCS H D UOCO H USER CODE BEGIN CC2 General 10 D USICO H dd USER CODE END D XE16xREGS H E
45. Selection TSI Ti d pats Prescaler Module Clock 8 Resolution 0 121 usec hd C Counter mode Timer 8 Start Control Timer 8 Registers r Start 8 after initialization Timer 8 reload T8R Overflow ms 7 9437576 reale 0x0000 Interrupt Control T8 External Run Selection Timer 8 register Disable ext sett f T 00000 IT Enable T8 interrupt IE sable external set ng o cc2 T8 XE184F new project Application Note 90 V2 0 2008 06 see AP16139 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 F Channel 17 1s enabled Configure Channel 25 C Channel 25 is enabled Configure Channel 18 F Channel 161s enabled Configure Channel 26 Channel 761s enabled Configure Channel 19 Channel 18 is enabled Configure Channel 27 E Channel 27 is enabled Confiqure Channel 20 Channel 20 is enabled Configure Channel 28 IL Channel 28 is enabled Confiqure Channel 21 Channel 2115 enabled Configure Channel 29 E Channel 28 ts enabled Confiqure Channel 22 Channel 22 is enabled Configure Channel 30 E Channel 30 is enabled Configure Channel 23 E Channel 2351s enabled Configure Channel 31 E Channel si is enabled XE164F new project fe Application Note o1 V2 0 2008 0
46. Tools Settings View Window Help RAS s K rMIF IS ea Data Bp h BO 29 8 KWA Ave CC po e 0S8s lt lac C3 emm s J Source ine Iwhale inis 1 amp amp in 2 in 3 return in USER CODE END Source main c oid main void USER CODE BEGIN Main 2 USER CODE END Stack AT WA 0 maint main c 363 USER CODE BEGIN Main 3 1 Oxc0048e while RS232 wait USER CODE END while 1 USER CODE BEGIN Main 4 myprint T menu 4 Command CrossView f ER ol x E elt _ Register Reset rst e26o amoe c 00C0 Rerun R address TUE R4 Brk nExit amp EXIT bi Ox 0x03 0x03 R7 Return bu C Main rst s 0x2 0x03 0x03 R10 DelAllBrk D 0x4 0x03 0x03 R13 0x6 0x03 0x03 OPPO DPP3 20003 oxe 0x03 0x03 El sov EN stKuN Fco0 Oxa 0x0310x03 MDL 0000 x PSW Oxc 0x03 0x03 ILVL 00 Application Note 116 V2 0 2008 06 see AP16139 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 Ds Commmunication port open Colors amp Fonts Mode COMS 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 06 see AP16139 n fi n eon UConnect CAN XE1
47. W W W W W W W W W W W W W W W VW Field Description Bits PSx X W Port Set Bit x x 0 7 Setting this bit sets or toggles the corresponding bit in the port 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 O 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 88 V2 0 2008 06 AP16139 n fi n eon UConnect CAN XE164 Cookery Book Double click Main h and insert the following Defines define OFF 0 define ON 1 File Edit Search Project Build Text Document Customize Tools Window Help ee ER 2 sBudexmao x ff USER CODE END CA AXE164 psp Sl XE164 1 Project B a XE164 15 Files ER Source Files df ff Macros ft j n CC2 C USER CODE BEGIN MAIN Header 3 D IO C LN MAIN
48. Z Open Ctrl O Close Save Cl Save As Save All New Project Space Open Project Space Close Project Space Configure Project Space Send Mail Reload Filters Change Directory amp Print Ctrl P Print Setup Recent Files Recent Project Spaces Exit Alt F4 4 Application Note 67 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Choose C XE164 CAAXE164 ka 320 IFX_HOT Ges INST o 3 Program Files d E OK Application Note 68 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book File New Project Space TASKING EDE gi Em 2 eret E Bi u l ild e om cw SCH E a Ctrl mho E Save 2 SS SE 5 ne Save All New pee Space Se o pen Proje ect 5 pag ce cus E DS Ee ARS Dame WADE Insert XE164 Create a New Project Space x Current Directory CAXET164 Filename XE b4 Look in same directory for external workspace Workspace Type Auto sync workspace Browse Cancel Help E OK Application Note 69 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book TASKING EDE C166 ST10 File Edit Search Project Build Text Document Customize Tools Window Help Ies Asuala amp ezog 58m mu x CA XXE 164 psp Sl XE164 0 Projects Project Properties X CO
49. ancel Default 7 c FJE0j 0jeBj a Oj 8 C Build A File Find A Search A Browse A Difference A Shell A Symbols GER Mod Ins Une coti OK Application Note 82 V2 0 2008 06 Kre AP16139 n fi n eon UConnect CAN XE164 Cookery Book Insert your application specific program Note DAVE doesn t change code which is inserted between A USER CODE BEGIN and 4 USER CODE END Therefore whenever adding code to DAvE s generated code write it between A 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 83 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book Infineon Double click MAIN C and insert Global Variables const char menu n n n LED IO Port 2 7 ON n 2 LED IO Port 2 7 OFF 3 LED IO Port 2 7 blinking ul volatile int RS232 wait 2 volatile bit blinking ON char select File Edit e 89 CA AXE 164 psp S XE164 1 Project B o XE164 15 Files Go Source Files D CC2 C D IO C D MAIN C LD SCS C R n start asm n UOCO C j D USICO C D Header Files Dn CC2 H D IOH n MAIN H n SCS H D UOCO H D USICO H Dp XE16xREGS H a Project Files a Resources D Other Files D XE164 dpt Search
50. arch Folders A UX e i Tools Computer Management Shortcut Administrative Address Administrative Tools Component Services Computer Management Data Sources ODBC SlEvent Viewer S Local Security Policy B Microsoft NET Framework 1 1 Configuration Microsoft NET Framework 1 1 Wizards SMicrosoft NET Framework 2 0 Konfiguration Manages disks and P Microsoft NET Framework Configuration provides access to S Microsoft NET 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 Sie Type Modified 1KB 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 2KB Shortcut 12 11 2007 13 40 Manages disks and provides access to other tools to manage local and remote computers 1 52 KB be My Computer Application Note 19 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Click Device Manager c Computer Management Action View Ome Tree Computer Management Local E System Tools
51. arketing GER SEN Cla CME P D Flash fi 3 8 L 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 E EBC S e Se DMU XBUS Control Voltage 256 Kbytes Reset C166SV2 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 amp PEC de Bus USICo USIC1 USIC2 MultiCAN RS232 RS232 RS232 E SPI LIN SPI LIN SPI LIN ECES IEG tome ES HBG Channels GPIO Ports Note The XE164 microcontroller is a derivative of the XE167 microcontroller Application Note 7 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book SAF XE164F 96F66L Block Diagram Source DAVE Gd 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 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 06 infir AP16139 In fi neon UC
52. art 1 click MIO vSetPin Functions Function Library Part 1 click MIO vResetPin Functions Function Library Part 1 click M IO vTogglePin File View Options Add Ins Windows oa Du a i oa gi DAVE XE164F Release v2 0 Si Parallel Ports al a Ports Functions Parameters Notes Initialization Function Source File IO 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 auaa porah o L L L EE XE164F HnewprojBGd TX Application Note 60 V2 0 2008 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Parameters do nothing File View Options Add Ins Windows da Du m f us 3 DAVE XE164F Release v2 0 Si Parallel Ports i 7 Header File File name IO H XE164F IRI RVG 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 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Save the project File Save Save project Save in C XE164 create new directory I Create New Folder File name XE164 Save project My Network Pla File name Salz Save as type DAVE project flle day Y Cancel E Save Application Note 62 V2 0
53. avorites Tools Help D Back A 7 2 search Folders 3iFavorites A Sloe Ze LP Io HD He d Add ress e http forms tasking com xe166 php e Go 7 Links TASKING HE 166 G compiler registration page Please register here to receive download instructions on the special TASKING XE166 C compiler that Altium developed in collaboration with Infineon Technologies The special XE166 C compiler is derived from the popular TASKING Classic C166 compiler and provides o a s Derivative support for the new Infineon XE166 microcontroller family License validity for one year s Small memory model support s Default level optimizations Attractive upgrade path to full classic C166 compiler or new VX toolset for C166 More details are available in the Release Note The compiler will run 15 days of use without a license activation key After your registration we will contact you for the MAC address of your computer s network card for which we will issue a one year license activation key Each member of your team that will be using this special compiler will have to register through this form to receive a personal license This special XE166 compiler is exclusively available through this registration and not from any Altium office or reseller Only one year node locked licenses will be granted If you prefer floating network licenses you may consider purchasing a standard TASKING Classic C166 toolset or VX toolset for C166 from Altium
54. chnologies 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 AP16139 In fi neon UConnect CAN XE164 Cookery Book AP08048 Revision History 2008 06 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 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book Table of Contents Page Note Table of Contents see page 9 Introduction This Appnote is 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 able to get your first useful progra
55. eader Files extern volatile int R3232 wait i extern volatile bit blinking n CC2 H USER CODE END D MAIN H PF FD SCS H Prototypes Of Global Functions D UOCO H EEE D USICO H i a XE16xREGS H void MAIN vUnlockProtecReg void n Resources D Other Files dp XE164 dpt void MAIN vLockProtecReg void void MAIN vChangeFreg void JE Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard lot Or Mod Ins Ea L Line 82 Col 30 Application Note 90 V2 0 2008 06 AP16139 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 File Edit Search Project Build Text Document Customize Tools Window Help Seve nici aes Gf FFFFEFKFKEKELEFKFKELFLKFKEFKFLKFKFKEFFLKFKEKFFKFKFKEFKELFKFKEKELFKLKFKFKLLKFKFFKSF Global Variables A ft Ci XE164 psp SI XE164 1 Project B a XE164 15 Files D Source Files USER CODE BEGIN MAIN Header 7 extern volatile int R3232 wait extern volatile bit blinking ff USER CODE END n CC2 C i HD 10 C i i MAIN C EEE D Prototypes Of Global Functions gs SCS C EEE HD start asm j t UOCO C void MAIN vUnlockProtecReg void gt D USICO C H a Header Files void MAIN vLockProtecReg void PD CC2 H void MAIN vChangeFreq void
56. ect zm Gaa 1 File Project CAXE164 XE 164 pjt Files a amp s x m w I Hide files already in project 0 of 1 selected External Makefile lt none gt g e VCS Project none gt a t F Add project files to VCS Project Cee mmm om OK Note This step includes the DAVE Project file Application Note 75 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book Click E Refresh DAVE imported project TASKING EDE C166 ST10 C XE164 XE164 pjt DIS d AR EM OR File Edit Search Project Build Text Document Customize Tools Window Help EE KETTER BAO lt Jaa v ZleShpPelRRERDAD CA XE164 psp Refresh DAvE imported project XE164 1 Project G XE164 2 Files G Source Files gt D startasm a Header Files E Project Files a Resources SE Other Files D XE164 dpt ild A File Find A Search A Browse A Difference A Shell A Symbols ct E Er Mod Ins Une Col 1 Note This step includes the Dave files Application Note 76 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book TASKING EDE L C166 ST10 C XE164 XE164 pjt File Edit Search Project Build Text Document Customize Tools Window Help 8H amp ti 4 72908BBPQ mm m uu CLAU xj C AXE164 XE164 psp EJ XE164 1 Project 24 XE164 15 Files Source Files LD CC2 C CAXE164 CC2 C HD loc CAXE164 10 C D MAIN C CAXE164 MAI
57. f you have any suggestions please send this sheet back to email mcdocu comments infineon com FAX 43 0 4242 3020 5783 Your suggestions Application Note 128 V2 0 2008 06
58. gnore Project Settings Communication COM Port Settings Data Bits select 8 Project Settings Communication COM Port Settings Stop Bits select 1 ijj Project Settings ES x Communication Mode L e p Monitoring receive only IZ Send Receive send Receree on comm channel COM Choose a COM port from the list of available devices or type a COM port from COM1 to COM256 COM Port Settings Baud Rate OO E Data Bits Parity Stop Bits Parity Error Char ignore Cancel Application Note 109 V2 0 2008 06 infir AP16139 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 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 RS485 Transcerver Control Set RIS 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 indows 98 ME and not supported by many USB to Serial devices OK Cancel Help Application Note 110 V2 0 2008 06 infir AP16139 In fi neon UConnect CAN XE164 Cookery Book Project Settings Communication Filter Contents Filter click Show all original communication data ESjP
59. har in E a XE164 15 Files do 2e Source Files t myprintf your choice ah CC2 C in char U0CO ASC uwGetData i D 10 C while in l amp amp in 2 amp amp in 3 j de MAIN C return in n SCS C USER CODE END FD start asm ae D UOCO C foc 2 D USICO C Au USER CODE BEGIN Main 2 58 Header Files fe GG CC2 H USER CODE END n IO H MAIN vInit S pack USER CODE BEGIN Main 3 D UOCO H USER CODE END D USICO H while 1 vd USER CODE BEGIN Main 4 LD XE16xREGS H a Project Files E Resources D Other Files D XE164 dpt dd USER CODE END JE Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard o Or Mod Ins Line 354 Col 2 Application Note 85 V2 0 2008 06 gm AP16139 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 TASKING EDE C166 ST10 C XE164 XE164 pjt C XE164 L olx File Edit Search Project Build Text Document Customize Tools Window Help l x e 5 5u wmm2 Hele v ennn while in l amp amp in 2 amp amp in 3 gt return in CA AXE 164 psp Sl XE164 1 Project XE164 15 Files 243 Source Files dd USER CODE END void main void USER CODE BEGIN Main 2 D CC2 C D IOC
60. i n eon UConnect CAN XE164 Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 3 LED IO Port 2 7 blinking Edit Send Sequence Sequence Definition 2 Sequence insert 3 deu Edit Send Sequence RRR OOOO ie L E E 4 L Lum Delete gt equence OK Application Note 123 V2 0 2008 06 see AP16139 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 LEDIO Port 2 7 blinking Ld r F Docklight V1 7 File Edit Run Tools Help Stop Communication F6 D a hd mim Pl 9 7 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 KS 1 LEDIO Port 2 7 ON 1 NS EI LED IO Port 2 7 OFF 2 NS E LED IO Pont 27 blinking d 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
61. ial 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 with 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 Int s 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 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book PEC do nothing File View Options Add Ins Windows a Dazu fos PEC Channels Configure PEC channel 0 TUE sauret i7 none xl Group 0 and Level 14 12 10 8 Configure PEC channel 1 Ua sauran mir none Group 1 and Level 14 12 10 8 Configure PEC channel 2 EU sia none Group 2 and Level 14 12 10 8 Configure PEC channel 3 bel none Group 3 and Level 14 12 10 8 Configure PEC channel 4 EE none EN Group 0 and Level 15 13 11 9 Configure PEC channel 5 E none x Group 1 and Level 15 13 11 9 Configure PEC channel amp erupt sauce tar none Group 2 and Level 15 13 11 9 Interrupt source for SE Group 3 and Level 15 13 11 9 XE164F new project Note For our hello world program the 8 PEC Channels are not needed App
62. ial Interface Channel USICO HR et Protocol USICO Channel 0 Protocol Selection USIC Protocol for UOCO v USICO Channel 1 Protocol Selection USIC Protocol for UOC1 None v XE164F Pew pramen SS S IVY SS SS Exit and Save this dialog now by clicking 55 the close button Application Note 34 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book Configuration of the serial interface USICO CHO UOCO ed DAvE File View Options Add Ins Del 4 fus y AvE XE164F Rele d D Za xe gt K ba 1 Mum pe XE164F new project 4A Application Note 35 V2 0 2008 06 see AP16139 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 n Dau Alen t Module Enable LUCU Input Clock Enable module kernel clack and module functionality Input clock MHz Operation Mode Half Duplex Connection Type Baud Rate Full Duplex External C Internal i Half Duplex Pin Selection Step value STEP LoopBack Data Transmit TxD P 7 3 Divider factor PDIV IrDA Receive RxD P74 Real Baud rate kbaud PCRL Settings Parity Selection stop Bit Selection
63. ication Note 48 V2 0 2008 06 see AP16139 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 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 XE184F new project A Application Note 49 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Timer 7 8 Timer 7 Start Control click v 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 T7M Timer 7 Input Selection T 71 Ti d e Prescaler Module Clock 1024 Resolution 15 515 usec e C Counter mode Timer 7 Start Control Timer Registers Start 7 after initialization Timer 7 reload TZR Overflow ms 1999 9980606 register 0x043B Interrupt Control T7 External Run Selection Timer 7 register i t 0x043B Enable T7 interrupt IE Disable external setting of T v CC29 T7 Timer 8 Made T8M Timer 8 Input
64. l host controllers ES Gei Smart card readers ch Sound video and game controllers Ml System devices Universal Serial Bus controllers Exz Generic USB Hub Infineon USB COM Port Infineon USB Debug N 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 Le Batteries IO FE PEI TR L BEH COMS i 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 06 infir AP16139 n fi n eon UConnect CAN XE164 Cookery Book 2 DAVE Installation for XE16x microcontrollers Install DAvE mothersystem Download the DAvE mothersystem setup exe http www infineon com DAVE Title Date Version Size Tool Package DAVE Mothersystem latest version US Feb 2007 2 1 r24 14 8 MB DAVE 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 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book
65. lication Note 44 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Functions Initialization Function click Il UOCO ASC vlnit Functions Function Library Part 1 click vf 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 vf UOCO ASC ubRxDataReady File View Options Add Ins Windows leta Dag etus 3 DAvE XE164F Release v2 0 Initialization Function Source File Header File lUOCO ASC vnit File name uoco c File name con Function Library Part 1 Function Library Part 2 lUOCO ASC vSendData loroasc MEO lt lt UOCO_ASC_uwGetData UOCO_ASC_uwGetRxFIFOData UOCO_ASC_ubTxDataReady luoco ASC ublsxFlFObusy UOCO ASC ubTxBufFree UOCO_ASC_ubisTxFIFObusy UOCO_ASC_ubRxDataReady uoco ASC ublsRxFIFOfull UOCO ASC vlt ioco ASC ublsxFIFOfull UOCO ASC willC uoco ASC ublsxFlFOempy UDCO ASC vil UOCO_ASC_ubisTxFiFOempty UOCO ASC visIC_CC2 UOCO_ASC_ubGetRxFIFOFillingLevel UOCO_ASC_ubGetTxFIFOFillingLevel Luc ASC vFlusRXFIFO BAS Aes vb v t LL I 1 bL 1 LE XE164F new project AL Note You can change function names e g U0CO ASC viInit and file names e g U0CO C U0CO H anytime Application Note 45 V2 0 2008 06
66. m 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 06 AP16139 UConnect CAN XE164 Cookery Book CH ie Ei D Ap Et 06 V2 0 2008 Application Note gm AP16139 n fi n eon UConnect CAN XE164 Cookery Book Block Diagram Source XE164 UConnect Manual USB To UART MultiCAN ES JTAG Bridge B s CAN Transceiver BL brns ae miim m uConnect ES PER Real Time Si gnat Contr ll r HAAT DUU 11 1 mutt LUIUUIEEEEEEE Application Note 6 V2 0 2008 06 gm AP16139 n fi n eon UConnect CAN XE164 Cookery Book SAF XE167F 96F66L Block Diagram Source Product M
67. matted data to string mb myprintf mb ii Application Note 94 V2 0 2008 06 AP16139 n fi n eon UConnect CAN XE164 Cookery Book File Edit Search Project Build Text Document Customize Tools Window Help en xj et 888 amp m me2 ae4 v e 59 9 x include main h A Ci XE164 psp void myprintf const char p S E XE164 1 Project while p c XE 164 15 Files 543 Source Files VOCO ASC vSendData p in cczc Se FD I0 C D MAIN C P j gb SCS C Example 1 use of myprintf n start asm pt j tn UOCO C void main void D USICO C Eg Header Files myprintf Hello World rin D CC2H j Sp IO H Example 2 use of myprintf DI MAIN H icc IE j LD SCS H char mb 200 message buffer for sprintf pj UOCO H C D USICO H void main void Poi D XE16xREGS H int dummy E Project Files i sprintf mb Variable dummy 3d dummy Write formatted data to string mb E Resources ayprintf mb Other Files D XE164 dpt E 4 gt Build A File Find A Search A Browse A Difference A Shell A Symbols Inserted from the clipboard ke es EM Mod Ins ES L Line 32 Col 1 Application Note 95 V2 0 2008 06 AP16139 EE n fi n eon UConnect CAN XE164 Cookery Book File Save TASKING EDE 166 ST10 File Edit Search Project Build I 8 New Ctrl N amp Open Ctrl O Save
68. n All Dependencies Pel s T Tel Tx CrossView Pro C166 5T10 xe164 abs File Target Edit Run Greakpoints Data Tools Settings View Window Help E Pl lt mn K br m gc ee dm Data l ox Pd Source and Disassembly myprintf c E 2 el X B06 26 l v xcon010 l Pac Dp031 27 Stack Cox ITERA 0 _BASE_OPP1 sop oxo OOO la ease Dp0 ie 7 mjret a d E BS eae DIS PE TT TLE a 00CO IF 0000 R 3000 Rl mBFAE R e iE R3 777C address 1 PE FBRRL BS BAF RE W H Den r l xx at OuOS x z RT a3EFA R DES4 R9 ein BEID a977B Rll mCEB R12 DFF5 od OxOF 0x03 Rl mDABRD Rld s rT R15 mE17A deg x03 0x03 DEED w 000 DPPi s i DePZ w 2 Caen 0x03 0x03 Ri DPP3 0003 CP osFCOO Sp ECD Stef ADD STKUNSECOOD HDH 0000 inca Dach xb MDL 0000 x PSH 0000 ue OTI 0x03 ILVLe O Note As you can see in the screenshot above the on chip program flash 1s automatically programmed when the debugger 19 launched Application Note 114 V2 0 2008 06 etc AP16139 n fi n eon UConnect CAN XE164 Cookery Book CrossView Pro C166 ST10 xe164 abs File Target Edit Run Breakpoints Data Tools Settings View Window Help BB Ie K r mY 03 3 Y ea Data Lox Source main c EN r1 CE ie ES Bee 9 o 33 H OecO0S8e Iman we Sow nes w Source Ine 1 e Iwhale init 1 amp amp Anise 2 amp amp in 3
69. onnect CAN XE164 Cookery Book Cookery book For your first programming example for the UConnect CAN XE164 Your pw E crooner amp F Docklight V1 7 LIX File Edit Run Tools Help ee E E i i Die Commmunication port closed Colors amp Fonts Mode COM6 9600 None 8 1 Send Sequences Communication Send Name ASCII HEX Decimal Binary UM 1 LED IO Port 2 7 ON SSS 2 LEDIO Part 2 7 OFF SS 3 LEDIO Part 2 7 blinking LED IO Port 2 7 ON eee LED IO Port 2 7 OFF e LED IO Port 2 7 blinking your choice Chapter vaz Recipes Step DAS Installation Connecting the UConnect CAN XE164 DAvE program generator DAvE Installation mothersvstem DAvE Update Installation XEl6xx Series dip for XE164 Using DAvE Microcontroller initialization for your programming example Using the TASKING Development Tools C Compiler Proerammine of vour application XE164 with Altium s TASKING classic C166 toolset Running your first programming example Feedback Feedback Application Note 9 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book 1 DAS Installation Connecting the UConnect CAN XE164 Application Note 10 V2 0 2008 06 AP16139 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 Tools Help
70. plication Note 81 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book TASKING EDE L C166 ST10 C XE164 XE164 pjt File Edit Search Project Build Text Document Customize Tools Window Help e 8a sus S oczel amp amp 2 4 9 ASP 7 9 EEG CA AXE164 psp EJ XE164 1 Project XE164 15 Files C166 ST10 Project Options XE164 PJT G Source Files coc T Application Execution Environment Io C T C Compiler T Use simulator MAIN C 37 C Compiler SCS C 7 Assembler Board manufacturer start asm Macro Preprocessor nineon sl U0CO0 C Linker Locator Ty USICO C C CrossView Pro G Header Files Sl Execution Environment i LD CC2 H Register Initialization Infineon XE164F via DAS Single Chip IO H Configuration Settings MAIN H RAM ROM Monitor Communication DAS wiggler type SCS H OCDS via DAS Setup i On board USB wiqgler UOCO H Initialization 39 M USICO H RTOS Aware Debugging Module B SPENT XE16xREGS H Logging g g Project Files Miscellaneous Browse E Resources 3 d amm Register Initialization D XE164 dpt Configuration Settings Board configuration Options string G tefg cAxe164X xe164 cfg D TCP localhost 1 single instance load application download true load application verify true enable flash true load application use map file true D load_application_signal true load_application_program_reset true el C
71. ripting V1 4 3868 KB V1 4 Release 05 2004 Download Docklight V1 4 3028 KB Release Docklight V1 4 05 2004 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 ERES Application Note 106 V2 0 2008 06 ec AP16139 n fi n eon UConnect CAN XE164 Cookery Book Now start Docklight amp 7Docklight V1 7 Application Note 107 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Click Project Settings Im ETE E Inixi ad Commmunica Project Settings Communication Settings Colors amp Fonts Mode COMS 9600 None 8 1 Send Sequences Communication Receive Sequences Active Name Sequence Application Note 108 V2 0 2008 06 infir AP16139 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 1
72. roject Settings E x Communication Flow Control Communication Filter Contents Filter Ki Show all original communication data channel 1 and channel 2 C Show channel 1 or LX 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 111 V2 0 2008 06 infir AP16139 n fi n eo n UConnect CAN XE164 Cookery Book cia E Lm cklight V1 7 EX Ims ve 554 Eia eebe Application Note 112 V2 0 2008 06 Infineon ry Book UConnect CAN XE164 Cookery Book 427 Docklight V1 7 File Edit Run Tools Help Stop Communication F6 Dearth a g PHB 2S we Commmunication port open Colors amp Fonts Mode COMS 9600 None 8 1 Send Sequences Communication Send Name Sequence ASCII HEX Decimal Binary Receive Sequences Active Name Sequence Note Docklight is now ready for serial communication Application Note 113 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book Go to TASKING EDE Classic Build Debug TASKING EDE C166 ST10 C XE164 XE164 pjt TEO BETEG Dee XE164 MAIN Options Pet lw EN Bs Alo Compil Ctrl Shift F10 pi eld Ji SELLE e i Tools Window Help D CA AXXET64 psp z Rebuild SETH 1 Project ME 164 16 Files Source Files Lo ccac HD 0 6 Duo E HE AIN C sca
73. stomize Tools Window Help coelo Project Properties Eee CO Default Settings gt Directories Members Tools Errors Filters XE164 0 Project amp XE 164 1 Project SITES Project CAXE164 XE 164 pjt Files alalo x m m Add existing files to project Alt O I Hide files already in project External Makefile VCS Project none a qu F Add project files to VCS Project Cancel Application Note 73 V2 0 2008 06 See AP16139 In fi neon UConnect CAN XE164 Cookery Book Select XE164 dpt TASKING EDE C166 ST10 File Edt Search Project Build Text Document Customize Tools eae Project Properties D BEI Default Settings Directories Member Tools Eras Bed E XE164 0 Project XE164 1 Project S lt a EE Select One or More Files to Add to Project 7x SEI XE164 Se amp ek Ev Se UE 3ISCS H lIXE164 dav UOCO C a XE164 dpt Ext S UOCO H OXE164 pjt mne BIO USICO C XE164 psp dar e AE S USICO H ZIXE164 rtf S XE164 asm SIXE16xREGS H IXE164 bak lt none gt SESE F Add projec Application Note 74 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book TASKING EDE C166 ST10 File Edit Search Project Build Text Document Customize Tools Window Help GE CA XE164 p Default Settings gt Directories Members Tools Errors Filters XE164 0 Projec amp XE164 1 Proj
74. tall End 4 DAVE 1s now ready to generate code for the XE16x microcontrollers Application Note 24 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book 3 DAvE Microcontroller Initialization after Power On Start the program generator DAVE and select the XE164 microcontroller File New 16 Bit Microcontrollers Select XE164F Create 3 DAvE New Project Create Cancel Help jr Application Note 25 V2 0 2008 06 see AP16139 n fi n eon UConnect CAN XE164 Cookery Book Choose the Project Settings as you can see in the following screenshots General Controller Type Type check select XE164F 96F66 General Compiler Settings Compiler select Tasking Classic File View Options Add Ins Windows ou Dep ZS Si DAVE XE164F Release v2 0 Si Project Settings A ea 2 Controller Type Type XE 164F 96F66 k ROM Size r68 KByte ROM Type Flash Max CPU Clock 6 MHz Main Source File Main Header File File name MAIN C File name MAIN H Compiler Settings Compiler Tasking Classic Y Memory Model SMALL e XE1864F new project AL Note You can change file names e g MAIN C MAIN H anytime Application Note 26 V2 0 2008 06 AP16139 UConnect CAN XE164 Cookery Book Infineon System Clock do nothing File View Options Add Ins Windows a Deel fus Si DAvE XE164F Release v2 0 Si Project
75. ten 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 XE154 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 lt gt pert Home Company Investor Press Careers Infineon worldwide 1999 2008 Infineon Technologies 4G Usage of this website is su el 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 0 800 951 951 951 Direct Access 49 89 234 65555 Infineon is happy to help you K Infineon Service Center sj DUE Trusted sites E V2 0 2008 06 see AP16139 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 ee m x File Edit View Favorites Tools Help Back v 9 3 2 Search Folders Favorites 4 Gl aw Se Saw tv d Address http www infineon com cms en product promopages das index html M Go e N Links p Our Products Infineon Never stop thinking
76. ufacturer select Infineon Application Processor Processor Selection Processor derivative select XEI64F 96F L VE wm I oh TASKING EDE C166 ST10 C XE164 XE164 pjt File Edit Search Project Build Text Document Customize Tools Window Help gt asua SIC CA AXE164 psp E XE164 1 Project C166 ST10 Project Options XE164 PJT 243 XE164 15 Files Source Files Application Processor Selection LD CC2 C _ Processor DOC User Defined Processor RT bied M LD MAIN C CPU Problem Bypasses and Che LD SCS C Memory Model B Hn start asm T Startup n UOCO C C Compiler i 3 USICO C C Compiler Processor derivative Assembler Macro Preprocessor Linker Locator CrossView Pro MW Use on chip flash MW Use on chip RAM EH EH EH EH EH EH User Defined Processor O XE16xREGS H CPU Problem Bypasses and Checks E Project Files E Resources BE Other Files D XE164 dpt C EC m Mod ns ine1 Gi Application Note 79 V2 0 2008 06 See AP16139 n fi n eon UConnect CAN XE164 Cookery Book CrossView Pro Execution Environment Execution Environment click to unselect LJ Use simulator CrossView Pro Execution Environment Board manufacturer select Infineon om 8 TASKING EDE C166 ST10 C XE164 XE164 pjt File Edit Search Project Build Text Document Customize Tools Window Help EE EE amp ozl JAA ZER mmm mum CA AXE164 psp E XE16
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 - LEDIUS商品データベース T4/3.01 MSC/Circ.1108 25 mayo 2004 DIRECTRICES PARA Untitled Nilfisk-ALTO GD 1000 User's Manual Sensores InPro®5000 CO2 Manual de Instruções Targus Slim Laser 取扱説明書 Weider WETL40808 User's Manual ESP-150 ESP-150 - Enselli Motores Elétricos Copyright © All rights reserved.
Failed to retrieve file