Home

AP08067 - Infineon

image

Contents

1. XC888CLM new project Note For the serial communication with a terminal program running on your Personal Computer the printf function is used The printf function uses Software Polling Mode therefore we do not need to configure any interrupts Application Note 25 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Interrupt Priorities Note Source Application Note AP08053 There could be six interrupt priorities These priorities with 6 beeing the highest are as follows Interrupt Priority Y NM gt Interrupt Priority 3_ _ Interrupt Priority 2_ _ Interrupt Priority 1_ _ Interrupt Priority O_ 1 an Main refers to routines that run prior to any interrupt and can be interrupted by any interrupt Each interrupt source can be programmed to any of the four interrupt priorities 0 3 An interrupt that is currently being serviced can only be interrupted by a higher priority interrupt but not by another interrupt of the same or lower priority Hence an interrupt of the highest priority cannot be interrupted by any other interrupt request In any case the NMI always has the highest priority above level 3 and its priority cannot be programmed Application Note 26 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Functions Initialization Function click v UART vlnit DAVE EEES Elle View Options Add Ins Windows 2 da 0201003
2. Global Variables fff bob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ak ob ob ob F ak ak ak ak at a ak H J UART C A TOLC USER CODE BEGIN MAIN Header 8 User Files extern bit blinking extern volatile int xdata R3232 wait USER CODE END ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o e E o o o o o ff Prototypes Of Global Functions ff ff Pb ob ob ob ob ob ob ob ob ob ob ob ob ak ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o o o o o USER CODE BEGIN MAIN Header 9 USER CODE END af SG TS B mane B manaf OO fe a IN A LA butid Lommand fA rina Inrres ES Application Note 71 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click Main h and insert include files include lt stdio h gt include lt ctype h gt v XC888 pVision3 C 1XC8881MAIN H B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help Ss S BsugtBelnz2 Frs Hr Aale gt a EEE eee ls A Target 1 ME ag 601 2 33 Target 1 602 E Dave Files 603 ff ff Pob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob
3. BRG Run Control Fractional Divider Control Enable Fractional Divider Enable BRG BCON R FDCON FDEN BRG Settings Prescaler BRPRE ION fPCLK v STEP Value 1 05 Required baud rate 9 6000 Actual baud rate 8 6004 kbaud ET kbaud Min baud rate 2 8882 Percentage of 0 0038 baud deviation Max baud rate fi 494 1406 Reload Value oxe1 kbaud BG XC888CLM new project Note Validate each alphanumeric entry by pressing ENTER Application Note 24 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Interrupts do nothing DAVE ax Eile View Options Add Ins Windows 2 De R fs x di UART Serial Interface I Priorit Cavett rene WM sai ET OOOO e mart mem OOO saz Bienne me TER Level 5 UART Interrupt Level 6 Timer 2 BRG MultiCAN Node 0 Interpts Level ADC MNCANNode T arazer Level 6 SSC Interrupt Level 9 External 2 T21 UARTI BRG1 Intrpts Level 10 External 6 3 MultiCAN Node 3 Interpts Level 11 CCUG Node 0 MultiCAN Node 4 Interpts Level 12 CCUG Node 1 MultiCAN Node 5 Interpts Level 13 CCUG Node 2 MultiCAN Node 6 Interpts Level 14 CCUB Node 3 MultiCAN Node 7 Interpts Priority 3 Priority 0 Priority 1 Priority 2 Highest Priority can t be changed G L EC G Pee Pe ES
4. E C51 Version 8 09a Evaluation Software Request Infineon Technologies File Edit View Favorites Tools Help EBack Q A Gt search Folders Favorites I Dr Le 3 Ar 5 A eg Y Address https www keil com demo eval c51 htm 0 Links Evaluation Software gt KEIL An ARM Company Home Products Events Support Search Keil com for MO c Product Information C51 Evaluation Software Software amp Hardware Products Development tools for Classic and Extended 8051 Microcontrollers Why Buy Tools From Keil Version 8 09a Contact Ordering Instructions The Keil C51 Evaluation Kit allows you to create programs Product Information Request for all 8051 derivatives Pricing Information Request l Product Brochures Newsletters Evaluation Software Overview Requirements Limitations CD ROM Request To install the Keil evaluation tools Downloads ARM Evaluation Software Download and run C51V809A EXE This file is a self C166 Evaluation Software extracting SETUP program C251 Evaluation Software C51 Evaluation Software Follow the instructions displayed by the SETUP program Compliance Testing ISO ANSI Compliance Validation and Verification Distributors Overview Select Your County Y Go Select your country for a list of t distributors available in your are m Review the hardware requirements before installing this software m Note the limitations of the evaluation tools Be sure to re
5. CLKOUT COUTS TLEN Toggle Latch Note fsys 96 MHz CPU clock CCLK SCLK 24 MHz Fast clock FCLK 24 or 48 MHz Peripheral clock PCLK 24 MHz Flash Interface clock CCLK2 48 MHz and CCLK 24 MHz CLKREL The clock division factor fsys 4 see DAVE screenshot page 17 1s inclusive the fixed divider factor of 2 Application Note 19 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Global Settings do not change configuration File View Options Add Ins Windows n Dau fius Global Interrupt Enable Interrupt Structure 2 Mode Select M Enable global interrupt IEN0 EA MODE 2 ER C IMODE 1 Interrupt Service Routine Type Select C CHOICE ISRs Push and Pop SYSCON to prevent register mapping RMAP problems CHOICE Global Interrupts EA are disabled in Functions Macros that modify RMAP to avoid mapping issue Shared Interrupt Message Box Enable M Enable shared interrupt message box XC888CLM new project Note Source DAVE You have two choices for interrupt type select in Project Settings Page under Global Settings Section If you select CHOICE 1 then ISR will be generated with push and pop Tf you select CHOICE 2 then ISR will be generated without push and pop Default choice is CHOICE 2 Current selection is CHOICE 2 Note 3 Interrupt Structure 2 applies to Timer 2 Timer 21 UART1 LIN external interrupts 2 to 6 ADC
6. XCo88 D Error s O Varning s Load C 11XC88811 XC888 Erasing Bank O Sectors O Erase Done Programming Done Verify Done Application running vw 3141 Build Ki LC UL Window Application Note 108 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Dock a hit Go back to Docklight and see the result F Docklight V1 7 E x File Edit Run Tools Help Stop Communication F6 Caw kd az AR 1 E Bs Commmunication port open Colors amp Fonts Mode COM16 9600 None 6 1 Send Sequences Communication Send Name Sequence ASCII HEX Decimal Binary 27 08 2007 17 32 27 07 RX lt CR gt lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt 1 LEDs P3 ON lt CR gt lt CR gt lt LF gt 2 LEDs P3 OFF lt CR gt lt CR gt lt LF gt 3 LEDs P3 blinking lt CR gt lt CR gt lt LF gt lt CR gt lt CR gt lt LF gt Active Mame Sequence Answer your choice Receive Sequences Application Note 109 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click inside the red box FDocklig t V1 7 File Edit Run amp Tools Help Dele LAS 2 AR 20x53 Et Commmunicatif amp ort closed Colors amp Fonts Mode COM16 9600 None 8 1 Communication ASCII HEX Decimal Binary send Sequences send Name Sequence A Eo E 27 08 2007 17 32 27 07 RX lt CR g
7. di DAVE XC888CLM Release v1 2 di UART Serial Interface a eta 2 Initialization Function Source File UART_vinit JUART_vinit File name JUART C Miscellaneous Functions 8 Bit Data Units F UART wiler UART_vilsr F UART_ubGetDates UART_ubGetDatas M UART vPxEnable UART_vPoEnable M UART vSendDete8 UART_vSendDatas UART vRDiseble UART _vPxDisabe F UART bPxReady UART_bPxReady p BitData Units M UART_bTxReady JUART_bTxReady F DVART_uwGetDatad UART_uwGetData9 P UART vSendDatag UART_vSendDatad Multiprocessor Communication F UART vSendAddr JUART_vSendAddr P UART_bOwnAddress UART_bOwnAddress P UART vWekeUp UART_WakeUp F UART vGotosleep UART vGotoSleep XC888CLM new project Note You can change function names e g UART_vlnit and file names e g UART C anytime Application Note 27 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Parameters do nothing DAVE ex Eile View Options Add Ins Windows 2 on DE us 2 di DAvE XC888CLM Release v1 2 Header File File name UART H XC888CLM new project Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Ey the close button Application Note 28 V2 0 2007 08 ME AP08067 n fi n eo n XC88x Starter Kit Cookery Book Configure Timer TO el DAVE File View Options Ad
8. 1 position the mouse on the source code you are interested in 2 click right mouse button and select Open Linker COD File 3 see the result Assembler Code of your C Source Code Application Note 52 V2 0 2007 08 AP08067 n fi n eon XC88x Starter Kit Cookery Book User do nothing WOO pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help ac dd Roll 2 Cz 4 RH al val 2 8 d EB em m Options for Target Target 1 x i3 Target Device Target Output Listing User c51 Ax51 LX51 Locate Lx51 Misc Debug Utilities amp amp Dav Run User Programs Before Compilation of a C C File Run 8 8 gt Run 2 aa 4 Run User Programs Before Build Rebuild Run 1 DOS16 ne Run User Programs fter Build Rebuild Runs Run 2 4 v Beep When Complete Start Debugging G Build tart assembling compiling gand Ka Cancel Defaults Help compiling linking Program Size data 9 D xdata 0 code 125 E RC555 D Erroris O Varning s Ww Find in Files 4 gt I m 000 Application Note 93 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book C51 Code Optimization click v Linker Code Packing max AJMP ACALL N XC888 pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help E E 4 Ye a Ae gt m d IRIS em
9. gt o Application Note 63 V2 0 2007 08 Taf AP08067 n fi n eon XC88x Starter Kit Cookery Book elx File Edit View Project Debug Flash Peripherals Tools SvCS Window Help a gt ds v C Fus am IS NG LNB serial No U0070PSE v ULINK Version v2 10 Device Family Ixcso0 TDO 0x10120083 Infineon lt C886 8 Automatic Detection ID CODE Firmware Version v2 02 C Manual Configuration SAI Ry Max JTAG Clock i MHz Add Delete Update IE Ten Target Debug Options Flash Download Options LORD F4 C Erase Full Chip iv Program Erase Used Sectors Iv Verify C Do not Erase v Reset and Run XiBuild tart assemb lint compiling Cancel Help compiling compiling compiling linking Program Size data 9 D xdata 0 code 125 rXCS88 0 Error s O Varning s Output Window v Find in Files 4 gt Note To make the ULINK work properly the XC888 Evaluation Board must be supplied with power We are going to do this in chapter 6 Application Note 64 V2 0 2007 08 Kre AP08067 n fi n eon XC88x Starter Kit Cookery Book Insert your application specific program Note DAVE doesn t change code which is inserted between USER CODE BEGIN and USER CODE END Therefore whenever adding code to DAvE s generated code write it between USER CODE BEGIN and USER CODE END If you wish to change
10. Application Note 75 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Generate your application program Project Rebuild all target files VZ XC866 4FR pVisic File Edit View Project Deb nnn Hn BENE Me 58586 nz Rebuild all target files Axcsss pVision3 C XC888 MAIN C E B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ES IES AA EN MEA vale gt 2 sa ala 1 0 a e ge x Target 1 lana 247 ai Target 1 while 1 2 4 Dave Files 4 START XC 8 MAING USER CODE BEGIN MAIN Main 4 A IOC printf menu 3UART C select input ee G switch select case 1 blinking OFF P3 DATA LED ON printf messagel break case 2 blinking OFF P3 DATA LED OFF printf message2 break case 3 blinking ON printf message3 break USER CODE END if End nf funatian main W MAIN C MAINH B UARTC B Toc XiBuild target Target 1 assembling START XC a51 compiling MAIN C compiling IO C compiling UART C compiling TO1 C linking ES Program Size data 33 2 xdata 2 const 154 code 1476 Bicreating hex file from XC555 rXCS88 0 Error s O Warningis a U U U 3 Command Find in Files 4 gt Application Note 76 V2 0 2007 08 Cinfineon AP08067 XC88x Starter Kit Cookery Book Now we close our project and u Vision 3 Project Close Project
11. MN IN LA La Bund A Lommand A rine IN Ves j ES Application Note 74 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click TO1 C Insert code for TO interrupt service routine Timer 0 interrupt counter if RS232 wait RS232 wait 183 Timer 0 overflow 183 5461 333 us 0 9994 if Timer 0 interrupt counter2 2183 183 Timer_0 overflow 183 5461 333us 0 9994s Timer_0_interrupt_counter 0 if blinking P3 DATA P3 DATA OXxFF B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ES IES ABER SSO az Es H Al a e 1139 q An e HRE Target 1 dw ou Project Workspace x l P 204 5 13 Target 1 205 void T01 viTmrO void interrupt T INT 2 4 Dave Files 2060 4 START XC 207 3 MAIN C 208 USER CODE BEGIN T01 IsrTmr0 2 3 IO C 209 Timer 0 interrupt counter Z UART C 210 8 TO C 211 if RSZ3Z walt p U Fil 212 RS232 wait 183 Timer overflow 183 5461 333 ps 0 9994 um SE eS 913 214 if Timer 0 interrupt counter 183 183 Timer 0 overflow 183 5461 215 216 Timer 0 interrupt counter 0 217 if blinking 218 219 P3 DATA P3 DATA XFF 220 221 222 ff USER CODE END 223 224 End of function T0 viTmr0 225 226 227E USER CODE BEGIN TOl_General 10 228 229 USER CODE END 230 S MAIN C B MANH E UART C Too x ST3T T Burd j Command Fina A Fires ES
12. di DAVE XC888CLM Release v1 2 xr 4 4 Project Settings CEEE Clock Source Control C Prescalar Mode VCO Bypass PLL Mode Clock System P 1 fSYS fOSCxN PxK n 20 a Clock Output Control Use Pin P0 0 as CLKOUT Use Pin P0 as CLKOUT CLKOUT fOSC C CLKOUT is Selected by COREL and TLEN bits Clock Divider COCON COREL sys 2 Enable Toggle Latch COCON TLEN CLKOUT MHz x Clock Source Selection OnChip OSC C External OSC fOSC MHz 557 System Frequency fSYS fSYS MHz 96 00 Clock Management Clock divider CMCON CLKREL fSY5 4 v PCLK SCLK CCLK MHz 24 00 FCLK MHz 48 00 XCBB8CLM new project Note CPU clock is 24 MHz Application Note 17 V2 0 2007 08 et AP08067 Infineon e XC88x Starter Kit Cookery Book Additional information Clock System Source User s Manual Clock Generation Unit CGU Block Diagram osc fail lock detect PLL core OSCDISC NDIV VCOBYP OSCR LOCK T 96 MHz Note fsys fosc N P K 29 6 MHz 20 1 2 96 MHz Application Note 18 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Additional information Clock System Source User s Manual Clock Generation from fsys FCCFG 48 NU 48 fsys 4 FCLK CLKREL MultiCAN PCLK24 u Penpherals SCLK24 CCLK24 CORE 9 6 A fos 96MHz FLASH Interface
13. ot 0 TMOD 0x01 P3_PUDEN 0x40 FRFFrFrrrr THO 0x95 TLO 0xa3 LEDs P3 ON P3_ALTSELO 0x00 Trrrrrrrr iv TU Pin TFO LEDs P3 OFF Control LEDs P3 blinking P3 ALTSELI IX FFFFrFrrr ah Fun your choice Pins OFF VV iviviviviviv iv TRO MT GATE M INTO MAIN C B UART C B TOC B MANH g UART 0 XiLoad C 11xC88811XC888 N 4 ASM ASSIGN BreakDisable BreakEnable BreakKill BreakList BreakSet Breakiccess a 3 3 a 4 4 D Build Find in Files 4 gt Simulation ti 1184 70262107 Note By activating clicking the UART 0 window you can then type 1 2 or 3 and see the result in the Parallel Port 3 window Now we close our simulator session Debug Stop Running Debug Start Stop Debug Session Now we close our project and u Vision 3 Project Close Project File Exit Application Note 81 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Note Since our program runs as expected in the simulator we can now use real hardware Application Note 82 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book 6 Using real hardware Application Note 83 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Connecting the XC888 Board to the Environment Connect the USB Cable the RS232 serial interface 1s available via USB the USB connection works also as the power supply Jumper COM
14. 11 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book 2 DAVE Installation for XC888 microcontrollers Install DAvE mothersystem Download the DAvE mothersystem setup exe http www infineon com DAVE Title Version Size Tonl Package DAVE Mothersystem latest version US Feb 2007 2 1 r24 DAVE Mothersy stem 04 Jul 2006 2141 123 and execute setup exe to install DAVE Application Note 12 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Install the XC888 microcontroller support update XC888CLM DIP file 1 Download the DAvE update file DIP for the required microcontroller http www infineon com DAVE Title Version Size Development Tools CosoCLi DIF file for DAVE Microcontroller Configuration Tool v1 2 25 Jun 2007 Unzip the zip file XC888CLM_v1 2 zip and save XC888CLM_v12 DIP e g D DAVE XC888 2007 08 14 XC888CLM_v12 dip Application Note 13 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit 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 D DAVE XC888 2007 08 14 Forward gt Select Available Products click w XC888CLM Forward gt Install End 4 DAVE 1s now ready to generate code for the XC888CLM microcontroller Application Note 14 V2 0 2007 08 Kre AP08067 n f
15. 3 LEDs P3 blinking r n ag User Files irn as zum ee 2S code char question your choice code char messagel n r LEDs ON irAn code char messagez n r LEDs OFF r n code char message3 AnXr LEDS BLINKING r n volatile int xdata R5232 wait 183 183 Timer 0 overflow 183 54 bit blinking ON char select ff USER CODE END y gt BJs u MAN IN LA La Bund A Lommand A rine IN Ves j Bos Application Note 67 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click MAIN C and insert the function input char input void char in do printf question while RD RIZO in SBUF while in 1 amp amp in 2 amp amp in 3 return 1n W XcC888 pVision3 C XC888 MAIN C E B File Edit View Project Debug Flash Peripherals Tools SvCS Window Help pu IES agg mm soc isa vale lt gt 0139 90 aa erm SHELA y AlTarget 1 Jaag 219 2 33 Target 1 220 USER CODE BEGIN MAIN Main 1 221 char input void 222 A MAIN C 223 char in 8 IO C do 8 UART C B TO1 C 226 printf question fia User Files ad me UA 228 RI 0 229 in SBUF 230 while fini 1 amp inl 2 amp amp in l 37 231 return in 232 233 USER CODE END 234 235 void main void 2360 1 237 ff USER CODE BEGIN MAIN Main 2 238 239 ff USER CO
16. 3 Dave Files 150 SCON 0x50 load serial channel control register E START XC 151 amp MAIN C EE A E PE a e IO C 153 Baudrate generator settings E 154 f f 24224 Ets 155 input clock fPCLK User Fil 156 Fractional divider is enabled im User Files 157 baudrate 9 6004 kbaud 158 159 FDSTEP 0xD5 load fractional divider reload register 180 BG 0x81 load baudrate timer reload register 181 FDCON 0x01 load Fractional Divider control registe 162 BCON 0x01 load baud rate control register 153 164 165 USER CODE BEGIN UART Init 3 166 TI 1 167 ff USER CODE END 168 169 End of function UART vInit 170 171 1728 USER CODE BEGIN UART General 10 173 174 USER CODE END WC gt u RS MAIN C E MAINA fe a IAN LA LA Bund A Lommand A rine IN VES j ES Application Note 73 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click TO1 C Insert the following global variable unsigned char Timer 0 interrupt counter O0 AXc888 pVision3 C XC888 T01 C it XI B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ES x EA E IEA ah gt alala mA e m e e Ee xs AlTarget 1 ja 9 062 Project Workspace a Target 1 063 ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob
17. 64K program Muse On chip XRAM 0xF000 0xF5FF Kit ga Usel Operating system None Use multiple DIEM R registers Off chip Code memory Off chip Xdata mor Eprom 1 Eprom 2 Eprom 3 4 IC Code Banking Build tar Banks 2 y D 4 assemblint compiling compiling OK compiling linking Program Size data 9 0 xdata 0 code 12 XCS88 D Erroris O Varning s L Window v TA Build Command Find Files 7 KI gt F600 1 In 24 Kbyte Flash devices the upper 2 Kbyte of Banks 4 and 5 are not available Indirect Direct Address Address FF 0000 00 Program Space External Data Space Internal Data Space Application Note 49 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Additional information Flash Memory Map Source User s Manual C000 D Flash Bank 1 data D Flash Bank 0 data D Flash Bank 0 data 4 Kbytes 4 Kbytes D Flash Bank 0 D Flash Bank 0 program 4 Kbytes program 4 Kbytes D Flash Bank 1 program 4 Kbytes _ P Flash Banks 4 and 5 P Flash Banks 4 and 5 2 x 4 Kbytes 2 x 2 Kbytes P Flash Banks 2 and 3 P Flash Banks 2 and 3 2 x 4 Kbytes 2 x 4 Kbytes P Flash Banks U and 1 P Flash Banks O and 1 2 x 4 Kbytes 2 x 4 Kbytes 0000 24 Kbytes 32 Kbytes Note Source User s Manual The D Flash bank s n the XC886 888 Flash devices are mapped to two program memory address spaces D Flash Ba
18. Back gt 91 QSearch Folders 3 E XxX A Er Address Administrative Tools v Go A Name ma aii Component Services 1KB Shortcut 24 03 2003 20 AD 5 Computer Management 2KB Shortcut 28 03 2003 18 AI ANS fa Data Sources ODBC 2KB Shortcut 24 03 2003 20 Event Viewer 2KB Shortcut 24 03 2003 20 Local Security Policy 2KB Shortcut 24 03 2003 20 Computer Microsoft NET Framework 1 1 Configuration 1KB Shortcut 04 11 2004 10 Management Microsoft NET Framework 1 1 Wizards 1 KB Shortcut 04 11 2004 10 Shortcut Microsoft NET Framework 2 0 Konfiguration 2KB Shortcut 09 08 2007 15 Manages disks and Microsoft NET Framework Configuration 1KB Shortcut 24 03 2003 20 provides access to other a Microsoft NET Framework Wizards 1KB Shortcut 24 03 2003 20 tools to manage local and BE Performance 2KB Shortcut 24 03 2003 20 remote computers Bi Services 2KB Shortcut 24 03 2003 20 ad Telnet Server Administration 2KB Shortcut 24 03 2003 20 Modified 28 03 2003 18 45 Size 1 53 KB Attributes normal Manages disks and provides access to other tools to manage local and remote computers 1 53 KB YU My Computer Application Note 93 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Device Manager O Computer Management Action View 9 Glm i2 mee S Sl IENOOOS Computer Management Loc 159 Batteries System
19. Hub USB Root Hub XC800 Evaluation Board Note AS we can see in the screenshot above our COM Port for UART RS232 communication with the Starter Kit Board via USB 1s COM16 Application Note 95 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Additional information Using a SILICON LABS CP2102 Single Chip USB To UART Bridge Note IC2 soldered on the XC888 Starter Kit is a Silicon Labs CP2102 chip Single Chip USB To UART Bridge using Virtual COM Port Device Drivers Using Virtual COM Port drivers the data format and baud rate are set during COM port configuration on the PC Supported Data Formats and Baud Rates Source CP2102 Data Sheet Data Bits 5 6 7 and Parity Type None Even Odd Mark Space Baud Rates 300 600 1200 1800 2400 4000 4800 7200 9600 14400 16000 19200 28800 35400 51200 56000 57600 64000 76800 115200 128000 153600 230400 250000 256000 460800 500000 576000 921600 Notes 3 5 bit only 4 Additional baud rates are supported See AN205 9 or 8 data bits only The CP2102 Virtual COM Port VCP device drivers allow a CP2102 based device to appear as a COM port to the PC s application software The application software e g Docklight running on the PC accesses the CP2102 based device as it would access a standard hardware COM port Every CP2102 device is delivered with a unique Serial Number making it possible to u
20. Priority can t be changed G S T E LE LT RIRE BEBIEEBEIBERI IE XC888CLM new project Interrupt of Timer 0 is enabled ETO 1 Note Source User s Manual An interrupt that 1s currently being serviced can only be interrupted by a higher priority interrupt but not by another interrupt of the same or lower priority Hence an interrupt of the highest priority cannot be interrupted by any other interrupt request If two or more requests of different priority levels are received simultaneously the request with the highest priority 1s serviced first If requests of the same priority are received simultaneously an internal polling sequence determines which request is serviced first Thus within each priority level there is a second priority structure determined by a polling sequence as shown in the User s Manual and above Application Note 32 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Functions Initialization Function click Y TOI vlInit DAVE e x Eile View Options Add Ins Windows 2 dea Da fica Initialization Function Source File v T01 vinit TO1_vinit File name To1 c Function Library T01 vStartTmr T01_vStartTmr T01_wStopTmr T01_vStopTmr T01 vClearTmr T01_vClearTrmr B HR Timer_0 interrupt service routi T01_vLoadTrnr To1_vLoadTmr Iv T01 viTmr TO1_viTmrO T1 viTmri T 1 viTmrl 101 vsta
21. SSC CCU6 Flash MDU CORDIC and MultiCAN interrupt sources There is a slightly different behavior between MODE 0 and MODE T in setting clearing the pending interrupt request bit amp If an interrupt node is shared with another interrupt node the ISR code will be generated in the SHARED INT C file Application Note 20 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit 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 21 V2 0 2007 08 ME AP08067 n fi n e0 n XC88x Starter Kit Cookery Book Configuration of the ASCO ud DAvE File View Options Add Ins Windows ea pews eos ud DAvE c oh Release a 2 L XC888CLM new project Application Note 22 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book UART Transmitter click Use pin P1 1 TXD 0 UART Receiver click Use pin P1 0 RXD 0 UART Receiver Enable click Y Enable receiver REN UART Mode Control click Mode 1 8 bit shift UART variable baud rate see BRG or Timerl 6 x d DAVE Eile View Options Add Ins Windows 7 on Da RN 4 Ans di DAVE XC888CLM Release v1 2 di UART Serial Interface ja 60 9 Transmitter Receiver Receiver Enable C No pins are selected C No pins are selected Use pin P1 1 TXD 0 Use pin P1 0 RXD 0
22. Target as cd 2 EU 767 Options for Target Targetl Debug check Use Simulator i Xc88s pVision3 C XC888 MAIN C ED B e x ESTER a E B x a Target Device Target Output Listing User C51 AX51 LX51 Locate LX51 Misc Debug Utilities File Edit View Project Debug Flash Peripherals Tools SVCS Window Help SS IES sugtBea2z Eee aan Ua Eten E MEE Beli ds E es xe o Options for Target Target 1 Project Workspace B a Day Settings C Use y Settings E SI Limit Speed to Real Time b amp 8 Ie Load Application at Startup iv Run to main M Load Application at Startup Runto main Y L Initialization File Initialization File et E Edit a Edit ke Usel Restore Debug Session Settings Restore Debug Session Settings V Breakpoints Iv Toolbox M Watchpoints amp PA V Memory Display Iv Breakpoints M Toolbox Iv Watchpoints V Memory Display CPU DLL Parameter Driver DLL Parameter 58051 DLL Fmaos1Ew 58051 DLL Dialog DLL Parameter Dialog DLL Parameter DCores1 DLL Frxcees TCares1 DLL excess Cancel Defaults u u S MAIN C UART C B TOC B MANH Build Find in Files ANA OK Application Note 79 V2 0 2007 08 Ce AP08067 n fi n eon XC88x Starter Kit Cookery Book Start the u Vision Simulator Debug Start Stop Debug Session AN EVALUATION VERSION Running with Code
23. USER CODE END 061 062 define bool bit 063 define ulong unsigned long 064 define uword unsigned int 065 define ubyte unsigned char 066 067 068 define KEIL 069 070 SW nS TS mnc xS TTB command Fina mes AR Application Note 70 V2 0 2007 08 Ce AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click Main h and insert extern declarations Global Variables extern bit blinking extern volatile int xdata RS232 wait v XC888 pVision3 C 1XC8881MAIN H B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help gt E x as T Er el ah gt alala OA sears Wei Wed Jf f 9b ob b sk ob b ob sk ob ob ob sb ob ob ob ob o ob ob ob o ob ob ob o ob ob ob o ob ob ob ob o ob ob ob o ob ob ob ob ob ob ob ob ob ob ob o ob ob ob ob ob ob ob ob ob ob ob ob ob ob o ob ob ob o o EEE a Target 1 Imported Global Variables Dave Files EA A A E ak ak ak ak ak ak ak a ak ak ak ak aF ak ak ak ak ak ak ak ak ak ak aF ak ak ak ak ak a ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o o o o ob START XC A B MAIN C USER CODE BEGIN MAIN Header 7 USER CODE END ff ff Pob bob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ak ob ob ob ob ob o ob ob ob ob ob ob ak E o o o o o
24. data 9 0 xdata 0 code 125 3 RC555 D Erroris O Varning s 2 a U U U 3 Command A Find in Files K Application Note 60 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Note For OnChipFlashProgramming and OCDS Debugging the Infineon USB JTAG Wiggler Box could be used instead of the Keil ULINK JTAG Interface For the Infineon USB JTAG Wiggler Box the Infineon DAS Client for XC800 must be selected je x VNA XC888 pVision3 le Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help ASH EG S RS 22T EEE 7 v s asana 4 a Y eg e Target E amp Dav Options for Target Target 1 Device Target Output Listing User C51 Ax51 LXS1 Locate Lx51 Misc Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Infineon DAS Client for lt C500 v Settings Update Target before Debugging 4 c4 LPCI00 EPM Emulator Programmer Init File ST uPSD ULINK Driver a Edit Infineon lt C800 ULINK Driver ADI Monitor Driver C Use TT Command 1500 _FLOAD EXE 33H n f Run Independent XiBuild tart assembling compiling compiling Cancel Defaults Help compiling compiling TO1 C i linking Program Size data 9 0 xdata 0 code 125 3 XCSSS D Erroris O Varning s y 3 Find in Files gt Additionally the DAS Server must be installed on
25. fi n eon XC88x Starter Kit Cookery Book amp Docklight V1 7 File Edit Run Tools Help Stop Communication F6 D a bd Sl ar 2 AR 410806 L Commmunication port open Colors amp Fonts Mode COM16 9600 None 8 1 Send Sequences Communication Send Name Sequence ASUI HEX Decimal Binary Receive Sequences Active Name Sequence Answer Note Docklight is now ready for serial communication Application Note 107 V2 0 2007 08 AP08067 n fi n eon XC88x Starter Kit Cookery Book Go back to u Vision LOAD 2 click 1 click M XC888 HVision3 J XC888 MAIN C D s ES x B File Edi as Miew Project Bug Flash Peripherals Tools SVCS Window Help G N SAEED EE DN at e aala My PT qm while 1 E Target 1 aS Dave Files USER CODE BEGIN MAIN Main 4 printf menu select input 1 E switch select case 1 blinking OFF P3 DATA LED ON printf messagel break case 2 blinking OFF P3 DATA LED OFF printf message2 break case 3 blinking ON printf message3 break 0 m MAIN C UART C B T01C B MAINH Build target Target 1 assembling START XC a51 compiling MAIN C compiling IO C compiling UART C compiling TO1 C linking Program Size data 33 2 xdata 2 const 154 code 1476 creating hex file from EXCS88
26. html Application Note 9 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Screenshot of the XC888 Starter Kit Homepage Datei Bearbeiten Ansicht Chronik Lesezeichen Extras Hilfe lt a ue e Kg tt QL http www infineon com cms en product channel htm Erste Schritte 5 Aktuelle Nachrichten Cinfineon Never stop thinking About Infineon gt Get Product information Y Select a Category Services for Engineers Y Select Services Home gt Microcontrollers gt Development Tools Software and Training C500 C600 KC500 Development Tools and Software S Print Page 63 send Page gt Starter Kits Evaluation Boards and Application Kits SK XC885 888CLM Starter Kit Ask Infineon International Toll Free MCU Derivatives S4K XCSD6CM O 0 800 951 951 951 Direct Access CPU Clock 24 MHz 49 89 234 65555 Infineon is happy to help you On Chip Memory Infineon Service Center 1792 Byte RAM 32 kByte Flash incl up to 8kByte data flash Where to buy Please use our location finder to Interfaces S get in contact with your nearest USB Connector for power supply UART communication and flash downloading ion bla es A He LIN via Header A CANO via Header and CAN1 via 9 Pin male D Sub A JTAG via Header Motor control connector via Header Includings Cables and USB to JTAG Debugger Box 4 port USB Hub Technical Documentation e d use
27. lt LF gt 2 LEDs P3 OFF lt CR gt lt CR gt lt LF gt 3 LEDs P3 blinking lt CR gt lt CR gt lt LF gt lt CR gt lt CR gt lt LF gt your choice Recelve Sequences Application Note 116 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Conclusion In this step by step book you have learned how to use the XC 888 board together with the Keil tool chain Now you can easily expand our hello world program to suit your needs You can connect either a part of or your entire application to the Starter Kit Board You are also able to benchmark any of your algorithms to find out if the selected microcontroller fulfils all the required functions within the time frame needed Have fun and enjoy working with XC88x microcontrollers Note There are step by step books for 8 bit microcontrollers e g XC866 and XC88x 16 bit microcontrollers e g C16x and XC16x 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 b
28. ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ak ak aF ak ak at ak at a t ak H t amp 3 Dave Files Imported Global Variables b 2 START_XC ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oe o o o o o o 4 MAIN C 8 IO C USER CODE BEGIN T01 General 6 UART C DORE a User Files ff USER CODE END EE A E E ak a ak a ak a ak ak ak ak ak ak aH ak ak ak ak ak a ak ak aF ak aF ak aF ak ak ak a aF ak F ak aF ak aF ak ak ak a aH ak at ak aF ak aF ak ak ak a ak ak F ob ob ob ob ob ob o o ob aaa ff Global Variables aaa ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o ak ob o ab o o o ob USER CODE BEGIN T01 General unsigned char Timer 0 interrupt counter 0 USER CODE END ff ff Cobb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob e E ob o o o o 8External Prototypes ff Pob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ak ak o o o o o USER CODE BEGIN T01 General 8 USER CODE END s
29. your computer For further information please see your Starter Kit CD and or www infineon com DAS Application Note 61 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book For OnChipFlashProgramming via UART the program XC800_FLOAD EXE could be used instead of the Keil ULINK JTAG Interface or the Infineon USB JTAG Wiggler Box For more information please see your Starter Kit CD Application Note 62 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Utilities Configure Flash Menu Command click Settings VI pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help edd EN AE EA A ah lt gt 1213 49 aa e P qm a Options for Target Target 1 Project Workspace aa Target Device Target Output Listing User C51 AX51 LX51 Locate Lx51 Misc Debug Utilities E amp Dav T Configure Flash Menu Command I as g 8 Use Target Driver for Flash Programming 1 Infineon XC800 ULINK Driver v setwss Update Target before Debugging aA T Init File N Edit C Use External Tool for Flash Programming Command C800 FLOAD EXE E Arguments fer Sh F Run Independent m 000 G Build tart assemb linc compiling compiling compiling Cancel Defaults Help compiling linking Program Size data 9 D xdata 0 code 125 rXCS88 0 Error s O Warningis tput Window Ww Find in Files 4
30. 232 interface Bootstrap Loader BSL Mode via UART Application Note 51 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Listing C Compiler Listing click v Assembly Code Listing Linker Listing click V Linker Code Listing cod Vai pVision3 EM _ x Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help FE 4 SH Jale gt us d m x emm Ini uti MEA IAN nc ei Project Workspace a Target 5 Dav Device Target Output Listing User C51 Ax81 Lx51 Locate LX51 Misc Debug Utilities P as Select Folder for Listings Page Width 120 Page Length os ca E A E X I L M C Compiler Listing X lst BH S T Iv Conditional Symbols include Files v Assembly Code E Usel CPreprocessor Listing i Iv Assembler Listing Ist iv Conditional iv Symbols Macros Final expansion only vw Cross Reference M Linker Listing 1 lt C888 map M Memory Map M Public Symbols M Line Numbers Cross Reference IN M Local Symbols M Comment Records iv Generated Symbols X Build tar v Linker Code Listing cod V Library Symbols t assemb linc compiling compiling sompi line OK Cancel Defaults Help compiling linking Program Size data 9 0 xdata 0 code 125 rXCS88 0 Error s O Warningis Output Window Yv Find in Files gt Note With the cod file you can do the following
31. 8 CIxc8xunin2k exe CIxc8xuninme exe Sl xcSxw2k inf Sl xcSxwdm inf 89 v Go 1KB Configuration 5 22 03 2007 10 55 KB System file 22 03 2007 10 11KB System file 22 13 2007 10 6KB System file 22 03 2007 10 24 KB vxdfile 22058 2007 105 4KB System file 2203 2007 105 88 KB System file 22 03 2007 10 13KB vxdfile 22 03 2007 T1095 30 KB vxdfile 203 007 101 11KB Setup Informati 22 03 2007 10 7 KB System file 22 03 2007 10 6KB System file 22 03 2007 10 8KB Setup Informati 22 03 2007 10 28 KB Application 22 03 2007 10 1KB UK File 22 03 2007 10 1 KB U98 File 22 03 2007 10 47KB Application 22 03 2007 10 16KB Application 22 03 2007 10 5KB Setup Informati 22 03 2007 10 5KB Setup Informati 22 03 2007 10 8KB Setup Informati 22 03 2007 10 28 KB Application 22 03 2007 10 1KB UK File 22 03 2007 10 1KB U98 File 22 03 2007 10 47KB Application 22 03 2007 10 16KB Application 22 03 207 1895 5KB Setup Informati 22 03 2007 10 5KB Setup Informati 22 03 2007 10 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Note Skip this step when the USB driver is auto detected and auto installed Note A default COM Port is generated after the USB driver 1s installed Application Note 90 V2 0 2007 08 Tee AP08067 XC88x Starter Kit Cookery Book Using a Windows 2000 oper
32. 88CLM 8FFA Block Diagram Source User s Manual XC886 888 Internal Bus 12 Kbyte Boot ROM af XC800 Core mari amp T1 varr CN CORDIC UART1 KN KS P00 P07 Port 0 256 byte RAM 64 byte monitor KS P10 P17 Port 1 N 1 5 Kbyte XRAM N ve AN mou ssc KN d E K P20 P27 Vose 24 32 Kbyte Flash or ROM DN WDT Timer2 KY GA ADC XTAL4 Clock Generator N ocps Timer21 KN XTAL2 9 6 MHz en On chip OSC t ccus Ke dh 5 Kr P30 P37 PLL MultiCAN K KS P40 P47 Port 4 KS P50 P57 Port 5 1 Includes 1 Kbyte monitor ROM 2 The 24 32 Kbyte ROM has an additional 4 Kbyte Flash XC888CLM 8FFA functional units Source User s Manual Flash or ROM 24K 32K x 8 Boot ROM Capture Compare Unit E 12K x 8 8 bit Digital 1 O XC800 Core XRAM Compare Unit 8 bit Digital 1 5K x 8 16 bit Analog Input RAM Timero Timer Timer2 Watchdog Or gt 256 x 8 16 bit 16 bit 16 bit Timer E CORDIC MuticAN THE ZT UARTI Port 5 gt 8 bit Digital 1 0 On Chip Debug Support gt 8 bit Digital O Improved functionality in comparison to the XC866 1 All ROM devices come with an additional 4K x 8 Flash 2 Pt Digital 1 0 Note Just by comparing the different sources of block diagrams you should be able to get a complete picture of the product and to answer some of your initial questions Application Note 7 V2 0 2007 08 in
33. Application Note V2 0 August 2007 APO08067 XC886 XC888 XC888 Starter Kit Cookery Book for a Hello world application You Can do ine Hello world example in this document With the evaluation version of the KEIL 100 chain Microcontrollers nn Infineon Never stop thinking Edition 2008 07 11 Published by Infineon Technologies AG 81726 M nchen Germany O Infineon Technologies AG 2008 All Rights Reserved LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND INCLUDING WITHOUT LIMITATION WARRANTIES OF NON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE Information For further information on technology delivery terms and conditions and prices please contact your nearest Infineon Technologies Office www infineon com Warnings Due to technical requirements components may contain dangerous substances For information on the types in question please contact your nearest Infineon Technologies
34. C Use pin P0 2 TXD 1 C Use pin P0 1 RXD 1 C Use pin P5 3 TXD 2 C Use pin P5 2 RXD 2 Enable receiver REN Baudrate Source Mode Control 5M0 SM1 BRG C Mode D 8 hit shift register fixed baud rate fPCLK 2 P imer Mode 1 8 bit shift UART variable baud rate see BRG or Timerl Interrupts Enable interrupt ES C Mode 3 9 bit shift UART variable baud rate see BRG or Timerl Receive interrupt will only be activated if a valid stop bit was received SM 2 C Mode 2 9 hit shift UART fixed baud rate fPCLK 32 or fPCLK 64 Options RXDO Pin Selection Double baud rate SMOD No pins are selected Multiprocessor RECO C Use pin P15 PXDO_0 Enable multiprocessor r ication 52 C Use pin P0 0 PXDO_1 communication SA2 C Use pin B5 4 PXDO_2 XC888CLM new project Note The RS232 serial interface UART pins P1 0 and P1 1 is available via the USB port which converts the TTL UART signals to USB signals using a SILICON LABS CP2102 Single Chip USB To UART Bridge Application Note 23 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book BRG BRG Run Control click check v Enable BRG BRG Fractional Divider Control click check Y Enable Fractional Divider BRG BRG Settings Required baud rate kbaud insert 9 600 ENTER DAVE ES Eile View Options Add Ins Windows 2 6 00 4 fog di DAVE XC888CLM Release v1 2 di UART Serial Interface m eta
35. 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 65 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click MAIN C and insert Global Variables code char menu r n n n n 1 LEDs P3 ON r n 2 LEDs P3 OFF r n 3 LEDs P3 blinking r n Ann code char question your choice code char messagel Anv LEDs ON r n code char message2 Anv LEDs OFF Wn code char message3 Anv LEDs BLINKING r n volatile int xdata RS232_wait 183 183 Timer O overflow 183 5461 333 us 0 9994 s bit blinking ON char select Application Note 66 V2 0 2007 08 Ce AP08067 n fi n eon XC88x Starter Kit Cookery Book v XC888 pVision3 C XC888 MAIN C B File Edit View Project Su Flash Peripherals Tools SvCS Window Help BN ES arti ee ja gt 1139 a aa 14m GGlobal Variables E 3 Target 1 f ff C ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o ob ob ob oo o o o o o B Dave Files 4 START XC a51 USER CODE BEGIN MAIN General 7 A MAIN C code char menu Bloc rin 8 UART C 1 LEDs P3 ON r n 8 TOLC 2 LEDs P3 OFF r n
36. DE END 240 241 MAIN vlInit 242 243 ff USER CODE BEGIN MAIN Main 3 E ff USER CODE END ENS IV 1 AAA Buda j Command A Find M Fires ES Application Note 68 V2 0 2007 08 nn AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click MAIN C and insert the following code in the main function P3 DATA LED OFF while RS232 wait Double click MAIN C and insert the following code in the main function into the while 1 loop printf menu select input switch select case 1 blinking OFF P3_DATA LED_ON printf messagel break case 2 blinking OFF P3_DATA LED_OFF printf message2 break case 3 blinking ON printi message3 break VEG pVision3 C XC888 MAIN C NT leni x E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ES IES asugi tel oc EEs AAA a 9 ela NE sra g LE Bex Target 1 Jaag Project Workspace x 235 void main void N f Target 1 2360 f 2 5 Dave Files 237 USER CODE BEGIN MAIN Main 2 A START 238 3 MAIN C 239 USER CODE END 3 IO C 240 a A UART C 241 MAIN vInit pi 242 m U 243 USER CODE BEGIN MAIN Main 3 did 244 P3 DATA LED OFF d 245 while RS232 wait eI INSELLLLLLLLLGDLZLL1 246 USER CODE END 247 248 whileil 249 250 251 ff USER CODE BEGIN MAIN Main 4 252 printf menu 253 select input 254 255 switch select 256 257 c
37. File Exit Application Note 17 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book 5 Using the Simulator first we will test our program with the Keil Simulator V Start Keil u Vision and open our Keil Project If you see an open project close it Project Close Project Project Open Project Select Project File Look in choose CAXC888 Select Project File Files of type choose Project Files uv2 choose XC888 Uv2 Open Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help esha eeloclee rere a Wl ajla GIS eN m iei gea xl aa a Select Project File Look in xc888 y Eh E3v History u Desktop uw e a My Computer E File name caae uve Files oftype Project Files uv2 v tput Window Find in Files Qu Note From now on just open your u Vision project not the DAVE project u Vision will automatically recognise if there has been a code regeneration done by DAvE Application Note 78 V2 0 2007 08 Ce AP08067 n fi n eon XC88x Starter Kit Cookery Book Check the configuration of the u Vision simulator mouse position Project Workspace Files Target click right mouse button Options for Target Targetl Vh pVision3 V E uVision3 File Edit View Project en Flash Peripher File Edit VieWAProject Debug Flash Perip Sch a CMM R Target 1 Options for
38. Office Infineon Technologies Components may only be used in life support devices or systems with the express written approval of Infineon Technologies if a failure of such components can reasonably be expected to cause the failure of that life support device or system or to affect the safety or effectiveness of that device or system Life support devices or systems are intended to be implanted in the human body or to support and or maintain and sustain and or protect human life If they fail it is reasonable to assume that the health of the user or other persons may be endangered O AP08067 n fi n eon XC88x Starter Kit Cookery Book AP08048 Revision History 2006 07 V2 0 Previous Version none Page Subjects major changes since last revision We Listen to Your Comments Any information within this document that you feel 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 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Table of Contents Page Note Table of Contents see page 8 Introduction This Appnote is an Infineon Hands On Training Cookery Book step by step book It will help inexperienced users to get an XC88x Evaluation Board Starter Kit Board up and running With this step by step bo
39. S Rs AR Zu 17 32 27 07 RX lt CR gt mr Double click to add new sequence P3 ON lt CR gt P3 OFF lt CR gt P3 blinking lt CR gt vour choice Application Note 114 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert LEDs BLINKING Edit Send Sequence Sequence Definition 2 Sequence insert 3 EEN US Eosen OOOO OF 2 e s Application Note 115 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Click t LEDs ON or click 3 result on your Evaluation Board 5 Docklight V1 7 File Edit Run Tools Help Stop Communication F6 Da E gt AT a Commmunication port open Colors amp Fonts Mode COM16 9600 None 8 1 Send Sequences Communication Sequence ASCII HEX Decimal Binary lt CR gt lt LF gt lt CR gt lt LF gt gt ee lt CR gt lt LF gt LEDs BLINKI 3 1 LEDs P3 ON lt CR gt lt CR gt lt LF gt 2 LEDs P3 OFF lt CR gt lt CR gt lt LF gt 3 LEDs P3 blinking lt CR gt lt CR gt lt LF gt lt CR gt lt CR gt lt LF gt your choice 27 08 2007 17 45 45 13 TX 1 27 08 2007 17 45 45 14 RX lt CR gt lt LF gt Active Name Sequence Answer lt CR gt LEDs ON lt CR gt lt CR gt lt LF gt lt CR gt lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt 1 LEDs P3 ON lt CR gt lt CR gt
40. Size Limit 2k OK v XC888 pVision3 C 1XC8881MAIN C B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help l x IE ENEE DA vial ula lal TE e P m I a THT SE SOERRD 235 void main void 2360 237 ff USER CODE BEGIN MAIN Main 2 238 239 USER CODE END 240 57241 MAIN vInit 242 243 USER CODE BEGIN MAIN Main 3 244 P3 DATA LED OFF 245 while R5232 wait 246 USER CODE END 247 while 1 USER CODE BEGIN MAIN Main 4 printf menu select input switch select MAIN C UART C B Toc B MANH XlLoad C 11XC88811XC888 4 gt ASM ASSIGN BreakDisable BreakEnable BreakKill BreakList BreakSet a ARIRIBEI Ready Simulation H 0 00046803 sec ndow Application Note 80 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Start program execution Debug Run View Serial Window UART 0 Peripherals I O Ports Port3 Peripherals Timer TimerO v XC888 pVision3 UART 0 5 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help m IES Asg telae EA X ah S a TE em Sl Oh v 70 g2 Port 3 Timer Counter 0 Bits 0 Mod 1 LEDs P3 ON P3_DATA OxFF 22222 QUR 2 LEDs P3 OFF N T 3 vs P3 DIR xFF ll 9 gd mal 1 al 7 1 16 Bit Timer Counter LEDs P3 blinking your choice P3 0D 0x00 rrrrrrrr Timer v LEDs ON P3 PUDSELIDEF qr mviviveiviviv TCON
41. Tool for Flash Programming Command C800 FLOAD EXE EN Arguments en t WIDE F Run Independent XiBuild tart assemb linc compiling ili e cancel Deru Help compiling linking E Program Size data 9 0 xdata 0 code 125 XC888 O Error s O Warningis 3 v a U U 3 Command 4 Find in Files 4 Application Note 99 V2 0 2007 08 AP08067 XC88x Starter Kit Cookery Book Infineon Note For OnChipFlashProgramming and OCDS Debugging we are going to use the ULINK Keil ULINK JTAG Interface Therefore we selected the Infineon XC800 ULINK Driver A XC888 pVision3 af ES E Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help asugi ite E E 4 SH q cJ gt 8 Sins ER Options for Target Target 1 amp 3 Target w I madh da E amp aa 0 em Device Target Output Listing User C51 4x51 LX51 Locate Lx51 Misc Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Infineon C800 ULINK Driver M et Update Target before Debugging LPC300 EPM Emulator Programmer Infineon XC600 ULINK Driver uncut OS Use Externd Infineon DAS Client for XC800 Command 7 C800_FLOAD EXE SN Arguments pen IN yyy F Run Independent Build tart assembling compiling compiling Cancel Defaults compiling compiling TO1 C 3 linking ellProgram Size
42. Tools JD evice Manager O m Computer a dy Storage FH Disk drives e B Disk Defragmenter Display adapters a Services and Applications 3 Hay DVD CD ROM drives IDE ATA ATAPI controllers E 4 IEEE 1394 Bus host controllers Infrared devices ge Keyboards Mice and other pointing devices Modems Monitors Bg Network adapters d POMCIA adapters 9 Ports COM amp LPT mq Sound video and game controllers MI System devices ES Universal Serial Bus controllers Application Note 94 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Expand Ports COM amp LPT Expand Universal Serial Bus controllers C Computer Management EB E x Action View Tres Ea IEEE 1394 Bus host controllers Computer Management Loc Infrared devices a System Tools i Pe ne 22 Device Manager E AER a 3 Storage 3 Mice and other pointing devices lj Disk Defragmenter dame E Services and Applications T 4 MJ Monitors BE Network adapters PCMCIA adapters _W Ports COM amp LPT E Communications Port COMI COM16 4 Printer Port LPT1 9 XC800 Eval Board COM16 QE Sound video and game controllers Wi System devices Universal Serial Bus controllers Intel R 82801CA CAM USB Universal Host Controller 2482 Intel R 82801CA CAM USB Universal Host Controller 2487 Keil ULINK USB Mass Storage Device USB Root
43. ase l blinking OFF P3 DATA LED ON printf messagel break 258 case 2 blinking OFF P3 DATA LED OFF printf messageZ break 259 case 3 blinking 0N printf message3 break a 260 261 USER CODE END gt n j SUN MAIN C Bua A Command Find M Pres BR Application Note 69 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click Main h and insert the following Defines define OFF 0 define ON 1 Zdefine LED ON OxFF define LED OFF 0x00 W XC888 pVision3 C XC888 MAIN H B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help _ el x ol ee ocius At e gt 118 a BA sere Oe we x waltagti v 4 044 ES Target 1 045 amp 3 Dave Files 046 USER CODE BEGIN MAIN Header 3 9 START XC 047 e 048 USER CODE END 049 050 051 ff ff RC bbb ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob oo ob o o aaa 052 GDefines 53 ff ff Pb bob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob k o o o o o 054 055 USER CODE BEGIN MAIN Header 4 056 define OFF 0 eM TO1 C 057 define ON 1 3 User Files 058 define LED ON OxFF 059 define LED OFF 0x00 060
44. ased on these step by step books Application Note 117 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book 7 Feedback XC888 Your opinion suggestions and or criticisms Contact Details this section may remain blank should you wish to offer feedback anonymously If you have any suggestions please send this sheet back to email mcdocu comments infineon com FAX 43 0 4242 3020 5783 Your suggestions Application Note 118 V2 0 2007 08
45. ating system we are now going to search for the COM Port which was generated after connecting our XC888 Evaluation Board Start Settings Control Panel G EB De 2 8 Se My show My Network File Explorer Mozilla Internet Tunes QuickTime Windows Musicmatcl Computer USB_C Places Firefox Explorer Player Media Player JUKEBOX E L v ge 5 4 TT Word Excel PowerPoint NetMeeting GINA Aironet PowerDVD Zu an M EN n BE 7 PA Paint Shop view exe Calculator MapSource mi Business Applications gt Es MS E m Install Remove gt 4 gt fre ie WZ Ls aa Offi ice Applications K Visual Easy CASE 9600 MTT TY Docklight Garmin Studio 20 C TERMINAL Shortcut to explorer exe HITOP TriCore Starter Kit DAZ Word 54600 Programs Toolbar Documents Settings El Control Panel X Search zl Network and Dial up Connections Lal Printers Help i Taskbar amp Start Menu nu Log Off brezovit Shut Down g A I ae A u XU CER 4 APO Yixcss amp LEO W Paint ale n Application Note 91 V2 0 2007 08 Infineon AP08067 XC88x Starter Kit Cookery Book Double click Administrative Tools E Control Panel File Edit View Favorites Tools Help Back gt QSearch Golders E X Ey Address Control Panel v Go A Name T AN Yad 2 Options Customizes accessibil Add Remove Hardware Installs removes an Control Pa
46. d Ins Windows 6 sata A ani E GNE P rt Vus P K M s ae d bo MGE N T M rm onn fr 800 Core CA KA 1 Bo 1 N 5 a XC888CLM new project Note The LEDs on IO_Port_3 will be blinking if selected in the main menu with a frequency of about 1 second done in the Timer_0 Interrupt Service Routine Therefore we have to configure Timer_0 Application Note 29 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book TimerO Timer Mode click Mode 1 16 bit timer Timer0 Timer Options click Y Turn on timer TRO Timero0 Interrupt Control click Y Enable interrupt of timer ETO DAVE lax Eile view Options Add Ins Windows 80 007 003 DAvE XC888CLM Release v1 2 14 Timer 0 1 129 i BA D Timer Mode TMOD TOM Timer Options C Mode D 8 bit timer THO with a divide by 32 prescaler TLO M Enable counter operation on C Pin P44 10_0 Mode 1 16 bit timer THO TLO Pin P11 1071 SE Enable Gating Control Timer 0 C Mode 2 8 bit timer TLO with 8 bit auto reload THO is enabled only while pin EXINTD is high GATEQ C Mode 3 8 bit timer TLO and second 8 bit timer THU 7 Tum on timer TRO Timer Registers EE 0x00 Lower byte of 16 bit timer TLO Interrupt Control Higher byte of 16 bit timer THO 0x00 Enable interrupt of timer ETO Timer overflow us TF0 15461 333 XC888CLM new project Note We need 183 Timer_0 overfl
47. e project Save in C XC888 create new directory File name XC888 Elle View Options Add Ins Windows jea2 Ose fos History Desktop My Computer E My Network Pla w Save as type Dave project file das v Cancel File name XC888 J XC888CLM new project Save Application Note 43 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Generate Code File Generate Code DAVE will show you all the files he has generated File Viewer opens automatically y DAVE Generated Files in C XC888 l5 File View Options Add Ins Windows e x o Oe8 Z fius DAvE s Project Documentation Project XC888 dav Controller XC888CLM 8FF Compiler Keil Memory Model SMALL Date 23 08 2007 12 10 55 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 START XC A51 IO H lO C UART H UART C T01 H T01 C XC888 ASM Mi XC888CLM CA XC8881XC888 dav File Exit Save changes click Y ES Application Note 44 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book 4 Using the KEIL u Vision 3 Development Tools Install the Tool chain You can download the Keil Development Tools http www keil com demo eval c5 1 htm
48. e v1 2 E Is i BA AAA Parameters P3_0 E351 Rave aed P3_4 ts P3_6 P3 XC888CLM new project Notes If you wish you can insert your comments here Exit this dialog now by clicking 55 the close button Application Note 41 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Functions Initialization Functions click v IO_vlnit Functions Function Library click v IO ubReadPin Functions Function Library click v IO vSetPin Functions Function Library click v IO vResetPin Functions Function Library click v IO ubReadPort Functions Function Library click v IO vWritePort Functions Function Library click v IO vTogglePin 4 DAVE Eile View Options Add Ins Windows Deu fus DAVE XC888CLM Release v1 2 Nt Initialization Function Source File IO sinit O_vinit File Name IO C Function Library v o ubReadPin IO ubReadPin F 10_vSetPin IO vSetPin v O vResetPin lO_vResetPin 10_ubReadPort O ubReadPot lO w vritePort lOwWritePot IO vSetlnput O vsetinput IO vSetOutput O vSetouput 10_vTogglePin O_vTogglePin XC888CLM new project Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking Es the close button Application Note 42 V2 0 2007 08 etc AP08067 n fi n eon XC88x Starter Kit Cookery Book Save the project File Save Sav
49. egister Px_OD Open Dram Control Register Px_DIR Directon Register Px ALTSELO H A ernate Select Register Px ALTSEL1 Aternate Select register 1 Px Data Data Register AkDatalr Pul Down Chance Application Note 37 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Ports click Configure Port 3 DAVE Bl Eile View Options Add Ins Windows 2 on Dau hus di DAVE XC888CLM Release v1 2 3 GPIO cl i AA M 2 Configure Port 0 Configure Port 1 Configure Port 2 Configure Port 3 Configure Port 4 Configure Port 5 XC888CLM new project Application Note 38 V2 0 2007 08 AP08067 XC88x Starter Kit Cookery Book Infineon Port 3 Port Function click v Use P3 0 as general IO Port Direction click Out Port 3 Port Function click V Use P3 1 as general IO Port Direction click Out Port 3 Port Function click V Use P3 2 as general IO Port Direction click Out Port 3 Port Function click V Use P3 3 as general IO Port Direction click Out Port 3 Port Function click v Use P3 4 as general IO Port Direction click Out Port 3 Port Function click Y Use P3 5 as general IO Port Direction click Out Port 3 Port Function click v Use P3 6 as general IO Port Direction click Out Port 3 Port Function click V Use P3 7 as general IO Port Direction click Out ad DAVE Eile View Options Add Ins Windows e D
50. fir AP08067 n fi n eon XC88x Starter Kit Cookery Book Cookery book For your first programming example for the XC 888 Starter Kit Board ram TERMINAL EXE E LEDs P3 ON LEDs P3 OFF 3 LEDs P3 blinking your choice I i 4 P UN a AA Step 1 XC888 Starter Kit Board Power Supply via USB Jumper Setting Serial Connection via USB to the notebook 2 DAVE program generator DAVE Installation mothersystem DAVE Update Installation XC888 DIP for XC888 Using DAvE Microcontroller initialization for your programming example Using the KEIL Development Tools C Compiler Programming of your application XC888 with KEIL tool chain uVision3 Compiler V8 09a_ first steps with the Simulator Using the simulator Using real hardware OnChipFlash Programming Feedback Feedback Application Note 8 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book 1 XC888 Starter Kit Board a 2 2 0009440000000 a edm IH SINE III A E ICICI m a E I n 10000 ERE Ordering information Starter Kits Type uC Order No SK XC886 888LM u SAK XC888CM B158 H8743 X X 7600 SK XC886 888CLM Easy Kit SAK XC888CM B158 H8744 X X 7600 Distribution Worldwide http www infineon com cms en corporate company location index
51. g Options Flash Download Options LOAD Erase Full Chip Program Erase Used Sectors Verity C Do not Erase Reset and Run omen He O wid oe 0 gt D Draw lg AutoShapes NO OYJ EU i 23 8 A DZ A EM Page 73 Sec 5 73 77 At38m Lni Col56 REC TRK EXT OVR English us Uk OK OK Note 1 When the ULINK is already connected to the XC888 Starter Kit Board the Starter Kit Board must be supplied with power for the ULINK to work properly If the power supply 1s not connected to the Board you will see no information in the JTAG Device Chain window Application Note 100 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Note Now we need a terminal program which is able to handle COM16 As an example of any terminal program we are going to use Docklight Docklight can be downloaded http www docklight de Now start Docklight gt Docklight V1 7 ES je x File Edit Run Tools Help DS rs 8 AR 1083 Dto Commmunication port closed Colors amp Fonts Mode COM16 9600 None 6 1 send Sequences Communication Send Name Sequence _ASCI HEX Decimal Binary Receive Sequences Active Name Sequence Answer Application Note 101 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Click Project Settings EF Dockh t V1 7 lll AG KET P AE 7 ww Project Settings Communication Set
52. he known drivers for this device so that can choose a specific driver c Back Cancel If so click Next Application Note 86 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Found New Hardware Wizard Locate Driver Filez Where do you want Windows to search for driver Files Search for driver Files for the following hardware device oy C800 Evaluation Board The wizard searches for suitable drivers in its driver database on pour computer and in any of the following optional search locations that you specify To start the search click Nest IF you are searching on floppy disk or CD ROM drive Insert the flappy disk or CO before clicking Next Optional search locations Floppy disk drives CD ROM drives Specify a location Microsoft Windows Update Back Cancel If so please insert the XC88x Starter Kit CD check M CD ROM drives and click Next Found New Hardware Wizard Driver Files Search Results Ca a The wizard has finished searching for driver files for pour hardware device SS The wizard found a driver for the following device oy C900 Evaluation Board Windows found a driver for this device To install the driver Windows found click Next lose d sdreers cexbus int If so click Next Application Note 87 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Found New Hardware Wizard E Completing the Fo
53. i n eon XC88x Starter Kit Cookery Book 3 DAvE Microcontroller Initialization after Power On Start the program generator DAvE and select the XC888CLM microcontroller File New 8 Bit Microcontrollers select XC888CLM Create Eile View Options Add Ins Windows 2 Id Dar til 03 EL DAvE New Project 4 C513 BE C513A M C513AO 4 C515 Bt C515A ii C515C 4 C858 Bt XCSb5b G XC885CLM mv Y Application Note 15 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Choose the Project Settings as you can see in the following screenshots General Controller Details Device check select XC888CLM SFF General For the KEIL Compiler check choose 9 Keil in the Compiler Settings DAVE Eile View Options Add Ins Windows Ea Dau us di DAVE XC888CLM Release v1 2 ex 09 i BA 2 2 system Clock Global Settings Notes Controller Details Device xC888CLM BFF Device Type FLASH Flash Memory BM Size Max System Clock po MHz ROM Size F Frequency Main Source File Main Header File File name MAIN C File name MAIN H Compiler Settings Keil Enable Startup File Generation Memory Model SMALL BZ C Tasking C SDCC XCB888CLM new project Application Note 16 V2 0 2007 08 Infineon AP08067 XC88x Starter Kit Cookery Book System Clock do nothing DAVE File View Options Add Ins Windows 2 on DG 003
54. ication at Startup Iv Run to main M Load Application at Startup Runto main Initialization File Initialization File Restore Debug Session Settings J Restore Debug Session Settings M Breakpoints M Toolbox M Watchpoints amp PA Iv Memory Display M Breakpoints iv Toolbox M Watchpoints V Memory Display CPU DLL Parameter Driver DLL Parameter 58051 DLL matsiEW 58051 DLL Las Dialog DLL Parameter Dialog DLL Parameter X Build tar DCores1 DLL Fexcess TCares1 DLL Frxces x assembling compiling compiling pane Cancel Defaults Help compiling linking E Program Size data 9 D xdata 0 code 125 eirxcsss O Erroris O Warningis 3 v l 3 Command Find in Files 4 Note First we are going to use the simulator Application Note 98 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Utilities Configure Flash Menu Command click 9 Use Target Driver for Flash Programming Select Infineon XC800 ULINK Driver Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help E gs X ae 9 c amp mx e Y m m ane ada ea Device Target Output Listing User C51 Ax51 LX51 Locate LX51 Misc Debug Utilities Configure Flash Menu Command Use Target Driverfor Flash Programming Infineon XC800 ULINK Driver M Settings Update Target before Debugging Init File AN Edit C Use External
55. interrupt routine 19 no longer in progress then pops the two top bytes from the stack and reloads the PC Execution of the interrupted program continues from the point where it was stopped Note that the RETI instruction is important because it informs the processor that the program has left the current interrupt priority level A simple RET instruction would also have returned execution to the interrupted program but it would have left the interrupt control system on the assumption that an interrupt was still in progress In this case no interrupt of the same or lower priority level would be acknowledged Application Note 34 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking 5 the close button Application Note 35 V2 0 2007 08 O AP08067 n fi n e 0 n XC88x Starter Kit Cookery Book Configure Port 3 to Output DAVE Eile View Options Add Ins Windows CERCA E di DAVE XC888CLM Release v1 2 re Y XC888CLM new project Note The LEDs are connected to IO Port 3 Application Note 36 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Additional information Parallel Ports General Structure Source User s Manual Px PUDSEL W Pul up Pul down Select Register rtamal Bus Px PUDEN Pul ugp Pul down Enable R
56. m Sseblal sBealnc oO 5g O a Project Workspace a Target Device Target Output Listing User C51 axs1 LX51 Locate LX51 Misc Debug Utilities 2 79 Dav gs Preprocessor Symbols amp 8 N Define A amp 8 T a 8 L Undefine Code Optimization E User Warnings Waminglevel 2 v Level 8 Reuse Common Entry Code v Bits to round for float compare 3 x Emphasis F d Global Register Colorin lid ad T 3 3 Iv Interrupt vectors at address nxonon Linker Code Packing max AJMP ACALL m 2 are Don tuse absolute register accesses M Enable ANSI integer promotion rules Include Paths Misc aaa 4 Controls JZ U Compiler OBJECTADVANCED BROWSE DEBUG CODE PR control XiBuild tart string assembling compiling compiling compiling Cancel Defaults Help compiling linking E Program Size data 9 D xdata 0 code 125 XC888 O Error s O Warningis ww 2 2 Command Find in Files Application Note 54 V2 0 2007 08 etc AP08067 n fi n eon XC88x Starter Kit Cookery Book AX51 do nothing WEG pVision3 Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help asugi tB EEE m zalm gt 113 d BA e FE es Cee Wage T Options for Target Target 1 x 9 Target Device Target Output Listing User C51 4 51 Lx51 Locate LX51 Misc Debug Utilities Conditional Assembl
57. m e ge x 5 AlTarget 1 ja 9 3 3 Target 1 5 8 Dave Files 8 START XC a51 A MAIN C 5 IO C A UART C BB TOL C User Files Build target Target 1 SX assembling START XC as51l compiling MAIN C compiling IO C compiling UART C compiling TO1 C linking Program Size data 9 0 xdata 0 code 125 E XCo885 O Erroris O Warningis w 4 4 gt P Build Ki III Application Note 47 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Configure Compiler Assembler Linker Locater Hex Converter Build Control Simulator Debugger and Utilities mouse position Project Workspace Files or click Target click right mouse button Options for Target Targetl X Axcss88 pVision3 VV Cor uVision3 File Edit View Project Debug Flash Peripher File Edit VieWAProject Debug Flash Perip E ub gis no Target 1 Options for Target aselatBbelsz FE i Target 1 Project Workspace Options for Target Target 1 Device check XC888CLM 8FF Options for Target Target 1 Device click v Use Extended Linker LX51 Options for Target Target 1 Device click v Use Extended Assembler AX51 VEO pVision3 B o _ amp x File Edit View Project Debug Flash Peripherals Tools SvCS Window Help asg irele a BIA mr em Device Target Output Listing User C51 AX51 LX51 Locate LX51 Misc Debug Utili
58. nel Fy Add Remove Programs Installs and removes Administrative Tools Configures administr Administrative Tools Automatic Updates Configures Automatic Configures administrative SGE Administrator Configures the Borlan settings for your computer Date Time Sets the date time a Windows Update Display Customizes your des Windows 2000 Support Fax Fax Properties Folder Options Customizes the displa Fonts Displays and manage Gaming Options Adds removes or ch Internet Options Configure your Inter Java Java TM Control Panel 2 Java Plug in 1 3 1_05 Java Plug in Control Keyboard Customizes your key Mail Microsoft Office Outl Mouse Customizes your mo Network and Dial up Connections Connects to other co amp Phone and Modem Options Configures your telep WPower Options Configures energy sa Printers Adds removes and G QuickTime Configures QuickTim RealPlayer Configures RealPlaye Regional Options Customizes settings f W SAP Configuration SAP Visual Design Se BSAPConsole Administrator Maintain SAPConsole Scanners and Cameras Configures installed s Scheduled Tasks Schedules computer t y Configures administrative settings for your computer wi My Computer Application Note 92 V2 0 2007 08 Infineon AP08067 XC88x Starter Kit Cookery Book Double click Computer Management F Administrative Tools File Edit View Favorites Tools Help
59. nk 0 is mapped to 70004 7FFFy and A000y AFFFH D Flash Bank 1 which is only available in the 32 Kbyte Flash device is mapped to 60005 6FFFy In general the lower address spaces 60004 6FFFy and 70004 7FFFp should be used for D Flash bank s contents that are intended to be used as program code Alternatively the higher address spaces A0004 AFFFy and B0004 BFFFp should be used for D Flash bank s contents that are intended to be used as data Application Note 90 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Output click Y Create HEX File File Edit View Project Debug Flash Peripherals Tools SvCS Window Help Q O E EA 7 Y zan gt alela EA e m mm Hug iee m Device Target Output Listing User C51 AX51 x51 Locate Lx51 Misc Debug Utilities Select Folder for Objects Name of Executable ces Create Executable XC888 Iv Debug Information V Browse Information Merge32K Hexfile Create HEXFile ex Format HEX 80 y Offset C Create Library XXC888 LIB Create Batch File XiBuild tart assemb lint compiling ne OK Cancel Defaults Help compiling linking Program Size data 9 0 xdata 0 code 125 rXCS88 O Error s O Warningis Output Window ww Find in Files 4 gt Note The HEX File could be used while working with the program XC800_FLOAD for OnChip Flash Programming via RS
60. ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob o oe E o o o o o ob E START XC 604 GProject Includes d A MAIN C 605 ff ff Pb E ak sb ob ob ob ob ob ob ob ob ob ak ob ak ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ob ok ob ob ob ob o o o 606 607 608 609 include lt intrins h gt 610 611 include IO H 612 include UART H amp UART C 613 include T01 H User Files 615 616 617 618 619 620 621 USER CODE BEGIN MAIN Header 11 622 include lt stdio h gt 623 include lt ctype h gt 624 USER CODE END 625 626 ES 627 fendif ifndef MAIN H z 4 ulm S MAIN C EIN IE HA LA Bund A Command A rind IN Files ES Application Note 72 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click UART C Insert code into the UART vInit function to start printf Tl 1 v XC888 pVision3 C XC888 UART C B Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help A x cH EN EE AE ul ah gt alala aa e m em fH E x5 AlTarget 1 ja 9 on 148 MODPISEL amp ubyte 0x01 configure peripheral input select regist Es Target 1 149 BCON 0x00 reset baudrate timer reload register amp
61. ok you should be able to get your first useful program in less than 2 hours The purpose of this document is to gain know how of the microcontroller and the tool 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 Starter Kit Board You are also able to benchmark any of your algorithms to find out if the selected microcontroller fulfils all the required functions within the time frame needed Note The style used in this document focuses on working through this material as fast and easily as possible That means there are full screenshots instead of dialog window screenshots extensive use of colours and page breaks and listed source code is not formatted to ease copy amp paste Have fun and enjoy the XC88x microcontrollers Application Note 4 V2 0 2007 08 AP08067 XC88x Starter Kit Cookery Book neon f In V2 0 2007 08 The New XC800 Family Designed to Make the Difference SS a Application Note O AP08067 n fi n eon XC88x Starter Kit Cookery Book XC888CLM SFFA Block Diagram Source Product Marketing Multi CAN 12 KB Boot ROM 24 KB 32KB Flash 256 Bytes RAM System Control Unit EVR POR Brownout XC888CLM 8FFA Block Diagram Source DAVE XC888CLM Application Note 6 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book XC8
62. ows to achieve an approximate 1 second delay This will be handled in the Timer_0 interrupt function 183 5461 333 us 0 9994 s Application Note 30 V2 0 2007 08 Infineon AP08067 XC88x Starter Kit Cookery Book Timerl do nothing not used DAVE Eile View Options Add Ins Windows l D 003 di DAVE XC888CLM Release v1 2 Timer Mode TMOD T1M Mode 0 8 bittimer TH1 with a divide by 32 prescaler TL1 C Mode 1 16 bittimer TH1 TL1 C Mode 2 8 bittimer TL1 with 8 bit auto reload TH1 C Mode 3 Timer holds its count Timer Registers 5 bit prescaler TL1 0x00 8 bittimer TH1 Dx00 Timer overflow us TF1 1682667 lex Timer Options Enable counter operation on Pin P45 M_0 PnPIs M_1 Enable Gating Control Timer 1 is enabled only while pin EXINT1 is high GATET Turn on timer TR1 Interrupt Control Enable interrupt of timer ET1 XC888CLM new project Application Note V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Interrupts do nothing DAVE lE x Eile View Options Add Ins Windows 2 9 DER Z fus di DAvE XC888CLM Release v1 2 0 Priorit P Level 12 CCUG Node 1 MultiCAN Node 5 Interpts Level 13 CCUG Node 2 MultiCAN Node B Interpts Level 14 CCUG Node 3 MultiCAN Node Interpts Priority 0 Priority 1 Priority 2 Priority 3 Highest
63. quest a quote for the full version of the tools Contact Site Map Press Keil An ARM Company All rights reserved v BR Execute C51V809A EXE or any higher version Application Note 45 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book v 51 vea Start Keil uVision3 and open the DAVE Project If you see an open project close 1t Project Close Project Project Open Project Select Project File Look in choose CAXC888 Select Project File Files of type choose Dave Project Files Choose XC888 dpt pVision3 u S d l x Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help ascuali ejocis ssr ra Wl gt 9 8 a Bla ew m i E gea ua aa a Select Project File lx Look in xc888 y e et Ely History i Desktop My Computer TAS a My Network Pla File name Ces dp v Files oftype Dave Project Files dpt v Cancel 72 Output Window v Find in Files 4 Open Application Note 46 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Project Rebuild all target files M44 C888 pVision2 T lg 5858 5c je AfTargeti Project Wor Rebuild all target files get 1 Dave Files A START XC a51 W XC888 Vision File Edit View Project Debug Flash Peripherals Tools SVCS Window Help asagi eB oc EAA AA U ah lt gt alela El em
64. r manuals CD Free unlimited assembly debugger Evaluation versions of development Tools e g Compiler Debugger DAVE CD To download the latest version of the CD content please click here Order Hr B158 H8743 X X 7600 Price 150 EUR How to order To order your kit please click here 0009000000009 000039000 9 9 9 90 0 09 9 SIR ILL IN AS LILI L JUL ud J Application Note 10 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Overview of the XC888 Starter Kit Board connection to the environment Note Do not connect now This 1s just information We are going to connect the board later Reason When the ULINK is already connected to the Starter Kit Board the Starter Kit Board must be supplied with power for the ULINK to work properly For the power supply we are going to use the USB cable by connecting the USB cable a USB driver is needed USB Cable used for UART communication the RS232 serial interface 1s available via USB the USB connection works also as the power supply Jumper COM select USB to connect the TX and RX pin of USB UART bridge IC Remove jumper J3 BSL gt Open Bootstrap loader is disabled or User mode enabled 3HVAULJOS 77 LS L E gt KEIL ULINK used for On Chip Flash Programming and Debugging Note For further information please refer to the XC888 Board Manual V2 1 Sept 2006 Application Note
65. rgetl VHC pVision3 V E uVision3 File Edit View Project en Flash Peripher as ae T gt EEE A File Edit VieWAProject Debug Flash Perip BERR Bx E Target 1 Options for Target Options for Target Targetl Utilities Configure Flash Menu Command check 9 Use Target Driver for Flash Programming Options for Target Targetl Utilities Configure Flash Menu Command check Infineon XC800 ULINK Driver XC888 pVision3 C XC888 MAIN C B je x B File Edit View Project Debug Flash Peripherals Tools SVCS Window Help e x agg tB oc s eX As gt a a a EA emm Options for Target Target 1 reject Workspace Wl 2 x t3 Target Device Target Output Listing User C51 AX51 LX51 Locate Lx51 Misc Debug Utilities DNO Configure Flash Menu Command N Use Target Driver for Flash Programming I Infineon C800 ULINK Driver M Settings Update Target before Debugging L 1 nit File a Edit C Use External Tool for Flash Programming Command xos00_FLOAD EXE E Arguments per T IRENE Run Independent Cancel Defaults 2 la MAIN C UART C B T0iC B MANH Build Ri AN Application Note 98 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Options for Target Targetl Utilities Configure Flash Menu Command click Settings VEIT pVision3 C XC888 MAIN C no el x B File Edi
66. rtrmri rot _vStartTmrl T i vstapTmri roi _vStop Tmrl XC888CLM new project Note Timer 0 has a dedicated interrupt vector address 000B y interrupt node and its own interrupt status flag TFO The vector is used to service the corresponding interrupt node request when enabled ETO 1 which means the interrupt system will hardware generate an LCALL to the appropriate service routine at 000BH TFO will be automatically cleared by hardware the core once its pending interrupt request 1s serviced Application Note 33 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Additional information Interrupt Handling Source User s Manual The processor acknowledges an interrupt request by executing a hardware generated LCALL to the appropriate service routine interrupt vector address In some cases hardware also clears the flag that generated the interrupt while in other cases the flag must be cleared by the user s software e g see DAvE Source Code The hardware generated LCALL pushes the contents of the Program Counter PC onto the stack but it does not save the PSW and reloads the PC with an address that depends on the source of the interrupt being vectored to interrupt vector addresses see User s Manual Program execution returns to the next instruction after calling the interrupt when the RETI instruction is encountered The RETI instruction informs the processor that the
67. se more than one XC888 Starter Kit at the same time That means every Starter Kit gets its own Virtual COM Port Note For further information please refer to the XC888 Board Manual V2 1 Sept 2006 For further information please refer to the SILICON LABS CP2102 Datasheet Application Note 96 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book 5 y C5 ve0 a Start Keil u Vision and open our Keil Project If you see an open project close it Project Close Project Project Open Project Select Project File Look in choose CAXC888 Select Project File Files of type choose Project Files uv2 choose XC888 Uv2 Open VITE UNS x Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help asualiBejoc 2 a zan 3 S a Ela emm id E gea ua jan a Select Project File 2x Look in C3 C888 4 a amp History E Desktop gt ua My Computer Ec um J My Network Pla J SU File name caea uve y Files oftype Project Files uv2 v Cancel Lo Output Window v 4 4 gt Ph Build NR Application Note 97 V2 0 2007 08 Ce AP08067 n fi n eon XC88x Starter Kit Cookery Book Check the configuration of the Flash Programming Utility mouse position Project Workspace Files or click Targetl click right mouse button Options for Target Ta
68. select USB to connect the TX and RX pin of 2 USB UART ee rue bridge IC Remove jumper J3 BSL aia Connect the KEIL ULINK used for On Chip Flash Programming and Debugging Application Note 84 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book ANO Note A USB driver is needed the first time while connecting the Starter Kit Board via the USB cable with your computer Therefore a pop up window might appear to prompt for a driver Found New Hardware ALB Evaluation Board Please wait Application Note 85 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Found New Hardware Wizard o Welcome To the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next Back Cancel If so click Next Found New Hardware Wizard Install Hardware Device Drivers Ca tae A device driver is software program that enables a hardware device to work with SS an operating system This wizard will complete the installation for this device oy C900 Evaluation Board device driver is software program that makes a hardware device work Windows needs driver files for pour new device To locate driver files and complete the Installation click Nest What do pon want the wizard to da f Search for a suitable driver for my device recommended Display a list of t
69. t lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt lt CR gt lt LF gt 1 LEDs P3 ON lt CR gt lt CR gt lt LF gt 2 LEDs P3 OFF lt CR gt lt CR gt lt LF gt 3 LEDs P3 blinking lt CR gt lt CR gt lt LF gt NS lt CR gt eceive Sequences lt CR gt lt LF gt Active Name Sequence Answer your choice Application Note 110 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert LEDs ON Edit Send Sequence Sequence Definition 2 Sequence insert 1 ten Edit Send Sequence lt gt Control Characters Shortcuts y LEDs ON oi s s ma Delete Sequence OK Application Note 111 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click inside the red box ES Docklig t V1 7 3 MS 2 AR eo sort 07 OM Na 17 32 27 07 RX lt CR gt P3 ON lt CR gt P3 OFF lt CR gt P3 blinking lt CR gt your choice Application Note 112 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert LEDs OFF Edit Send Sequence Sequence Definition 2 Sequence insert 2 f IMEEM oi L L L Application Note 113 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Double click inside the red box ES Docklig t V1 7
70. t View Project Debug Flash Peripherals Tools SvCS wiMElow Help e S c EEN AE A lat e 1 8 d m x 10 a BEA FIERA Options for Target Target 1 Project Workspace ja Target Device Target Output Listing User c51 4x51 LX51 Local LX51 Misc Debug Utilities el Bag Configure Flash Menu Command ES N Use Target Driver for Flash Programming g 8 1 Infineon xC800 ULINK Driver w Settings Update Target before Debugging amp 5 L Let Init File Ta s a Usel C Use External Tool for Flash Programming Command C800 FLOAD EXE SN Arguments pie f RSS Run Independent Cancel Defaults 4 ES EDS EL MAIN C B UART C B TOC B MANH x Build Nee Application Note 99 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Flash Download Options check M Erase Used Sectors Flash Download Options check M Program Flash Download Options check M Verify Flash Download Options check M Reset and Run DuUWdada v amp x 5a amp yo c amp Sum anijuT o e und 44 Normal 12 pt Bl Times New Roman i BZU jF i ULINK USB JTAG Adapter Serial No U0070PSE v ULINK Version ve Device Family ceo Firmware Version ve Max JTAG Clock 1MHz v 0x10120083 Infineon XC886 Automatic Detection ID CODE C Manual Configuration Device Name Add Delete Update Ren Target Debu
71. ties Database Generic CPU Data Base w Vendor Infineon Device XC688CLM 6FF Use Extended Linker L lt 51 instead of BL51 Toolset C51 Use Extended Assembler 4 lt 51 instead of A51 E23 xC885C 6FF 8051 compatible microcontroller with dual DPTR 3 XC886C 8FF CAPCOMB 3 Timers Counters 15 interrupts 4 priority levels 8 channel 10 bit A D Converter 2 UARTs one with LIN support MulitCAN Mulitplication Division Unit MDU 256 byte on chip RAM 1536 byte on chip SRAM 12KB Boot ROM 32 Kbyte on chip Program Flash ROM 4 XC888 8FF 3 XCB88C 6FF 3 XC888C 8FF r assembling compiling compiling compiling Cancel Defaults Help Program Size data 9 0 xdata 0 code 125 rXCS88 0 Error s O Warningis ww Find in Files 4 gt tput Window Application Note 48 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Target click check v Use On chip ROM amp Target click check v Use On chip XRAM i XC888 pVision3 BE e x Eile Edit View Project Debug Flash Peripherals Tools SVCS Window Help SES BOl OclFe ee aneel Aale gt alla mx o em m eme Target a Dav Device Target Output Listing User c51 Ax51 x51 Locate Lx51 Misc Debug Utilities EF c Infineon XC888CLM 8FF ENT Xtal MHz 96 0 V Use On chip ROM 0x0 0x5FFF 0xA000 0xBFFF Memory Model Small variables in DATA v E j lt Code Rom Size Large
72. tings Colors amp Fonts Mode COMIS 9600None81 a Application Note 102 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Project Settings Communication Communication Mode click 9 Send Receive Project Settings Communication Communication Mode Send Receive on comm channel select COM16 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 ignore Project Settings Communication COM Port Settings Data Bits select 8 Project Settings Communication COM Port Settings Stop Bits select 1 Application Note 103 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book trol Support click 9 Off Project Settings Flow Control Flow Con E six Eh Project 9 00 Application Note 104 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Project Settings Communication Filter Contents Filter click Show all original communication data mi E Project Settings OK Application Note 105 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book Click K gt De klight V1 7 lex S s S PAUUO gs rs Start Communication WG ae coe aAA SOO Application Note 106 V2 0 2007 08 O AP08067 n
73. u m 803 2 di DAVE XC888CLM Release v1 2 Port Function Port Direction Push Pull Open Drain Output Value Use P3 0 as general IO Use P3 1 as general IO Use P3 2 as general IO Use P3 3 as general IO Use P3 4 as general IO Use P3 5 as general IO Use P3 6 as general IO Use P3 7 as general IO XC888CLM new project Application Note C In f Out C In f Out C In f Out C In Ef Out C In Out C In fe Out C In fe Out C In fe Out Open drain Open drain Open drain Open drain Open drain Open drain Open drain Open drain 39 High High High High High High High High V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Pull Device do nothing 9 DAVE eni x Eile View Options Add Ins Windows oa Deul fus di DAVE XC888CLM Release v1 2 4 Configure Port 3 x P9 i AA 2 Parameters Notes Pull Device P3 0 pull device Tristate vw P3 1 pull device nisse v P3 2 pull device Tistte vw P3 3 pull device Tristate vw P3 4 pull device Tristate vw P3 5 pull device nisse y P3 6 pull device Tristate v P3 7 pull device Tristate v XC888CLM new project Application Note 40 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Parameters do nothing DAVE lex File View Options Add Ins Windows 2 oa Deul fus di DAVE XC888CLM Releas
74. und New Hardware Wizard S ALS Evaluation Board Windows has finished installing the software for this device To close this wizard click Finish Back Lance If so click Finish Application Note 88 V2 0 2007 08 Infineon AP08067 XC88x Starter Kit Cookery Book Or select the USB driver from the directory SK88xCLM_CDV3_1 Driver of your XC88x Starter Kit CD D Driver File Edit View Favorites Tools Help Address 31D Driver Folders Desktop 1 29 My Documents amp My Computer x YBDC058071 C Ed SK88xCLM CDV3 1 D CJ Documentation fat Driver Select an item to view its description vive See also amp C3 Examples My Documents amp C1 GettingStarted My Network Places O Images My Computer C ProductInfo C3 RevisionInfo amp C3 Tools C Webpages amp 83 Control Panel amp E My Network Places EM P asa la 28 object s Disk free space O bytes 467 KB My Computer Application Note Back v gt Qsearch BFolders J i X A Er setup ini bl slabbus sys SI slabcm95 sys SI slabcmnt sys is slabcomm vxd SI slabcr sys is slabser sys lslabwed wxd al slabwer vxd Sl slabvxd inf SI slabwh95 sys slabwhnt sys Sl xc8bus inf Alxc8unin exe i xc8unin u2k al xc8unin u98 Mxc8unin2k exe Mxc8uninme exe E xc8w2k inf Sl xc8wdrn inf Sl xc amp xbus inf Cxc8xunin exe i xc8xunin u2k i xc8xunin u9
75. y Control Symbols See o Best Y T Usel Macro processor v Standard MPL 8 88 mm gt E Es 4 Case sensitive symbols Include Paths Misc 4 Controls El U assembler SET SMALD DEBUG EP ee control xl Build tart strin M assemb lint lt compiling compiling compiling Cancel Defaults Help compiling linking Program Size data 9 D xdata 0 code 125 RC555 D Erroris O Varning s put Window Ww 3 i Find in Files 4 gt Application Note 55 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book LX51 Locate do nothing Y a reps Program Size data 9 0 xdata 0 code 125 XC85858 0 Error s O Warning s Application Note 56 V2 0 2007 08 infir AP08067 n fi n eon XC88x Starter Kit Cookery Book LX51 Misc do nothing Y Browse Program Size data 9 0 xdata 0 code 125 xcsss 0 Erroris O Warning s Application Note 57 V2 0 2007 08 O AP08067 n fi n eon XC88x Starter Kit Cookery Book Debug do nothing VZ XC888 pVision3 File Edit View Project Debug Flash Peripherals Tools SvCS Window Help A Ae gt a TT amp gs Project Workspace Device Target Output Listing User C51 AX51 LX51 Locate LX51 Misc Debug Utilities Use Simulator Settings C Use Settings Limit Speed to Real Time Iv Load Appl

Download Pdf Manuals

image

Related Search

Related Contents

2 - ミマキエンジニアリング  最大電力点追従電子負荷装置 MP-410  EXSYS EX-41021  PowerPoint プレゼンテーション  Hunter Fan 44360 Thermostat User Manual  Graseby_Sicherheitshinweis +  

Copyright © All rights reserved.
Failed to retrieve file