Home
AP08073 - Infineon
Contents
1. F Docklight V1 7 X File Edit Run Tools OSES G Zap LOH IP eee CA Laffey Commmunication port closed Colors amp Fonts Mode COM 9600 None 8 1 Send Sequences Communication Send Name Sequence Ascu HEX Decimal Binary gt 1 LED Port 1 Pin 5 ON Double click to add new sequencelon USCALE XC800 hello world zz ote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller we LED Port 1 Pin 5 OFF 3 LED Port 1 Pin 5 blinking your choice Receive Sequences Active Name Sequence Answer Application Note 111 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 2 LED Port 1 Pin 5 OFF Edit Send Sequence Sequence Definition 2 Sequence insert 2 2 LED Port 1 Pin 5 OFF HE Deci Binar OK Application Note 112 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click inside the red box 5 Docklight V1 7 ew File Edit Run Tools Help OSO xs CAD USS Send Sequences Send Name SSC 1 LED Port 1 Pin 5 ON Communication ASCII HEX Decimal Binary gt 2 LED Port 1 Pin 5 OFF ersion USCALE XC800 ann hello world Double click to add new sequence he Debugger must be permanently connected to the USCALE XC800 g opera
2. Application Note 28 V2 0 2008 05 et AP08073 In fi neon XC800 USCALE start kit Cookery Book Additional information Clock System Source User s Manual Clock Generation Unit CGU Block Diagram osc fail detect OSCDISC NDIV VCOBYP Note fsys fosc N P K 9 6 MHz 20 1 2 96 MHz Application Note 29 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Additional information Clock System Source User s Manual Clock Generation from fsys FCCFG 48 NU 48 fsys 4 FCLK CLKREL Multi AN PCLK24 y Penpherals SCLK24 CCLK24 CORE 9 6 A fos 96MHz FLASH Interface 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 28 is inclusive the fixed divider factor of 2 Application Note 30 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Global Settings do not change configuration File View Options Add Ins Windows oa Dau oa E DAVE XC888CLM Release v1 4 Si Project Settings 19 dea 2 Global Interrupt Enable Interrupt Structure 2 Mode Select o I Enable global interrupt IENO EA IMODE 0 Ga C IMODE 1 Interrupt
3. HIE HEEL e wA AE MIAMI ANDAN P DUU P adgo HI LAA ID OS E EE EE gon EN EA TT pectrTEa BN PTT Seege e F EN ON G aem esch VU any de i y E q a K N E e eli maen AR RRR A e ALL S SS 4 v EN S Se T1 pE La i z BIG x Es ol be i cee sy E A new d fem F OC 1 i E A M MM m m i dg MOTA a Er pw EL de a 1 3 FS E ez d d SN EE Pg g ECH XC888 Run LED green XC866 XCS886 when the XC888 is selected by the debugger the LED is lit Application Note 6 V2 0 2008 05 AP08073 XC800 USCALE start kit Cookery Book Used selected microcontroller SAF XC888CM 8FFI Block Diagram Source Product Marketing 12 KB Boot ROM 24 KB 32 KB Flash 256 Bytes RAM XCESSBCLM Application Note 7 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book XC888CM Block Diagram Source User s Manual XC886 888 Internal Bus 12 Kbyte Boot ROM af XC800 Core mari amp T1 varr 7 CN CORDIC UART1 KN Ki P00 P07 Port 0 256 byte RAM 64 byte monitor KS P10 P17 Port 1 om 1 5 Kbyte XRAM N vir H mou ssc KN Sch E K P20 P27 Vose 24 32 Kbyte Flash or ROM CH wt Timer2 KY GA ADC XTAL4 Clock Generator YN ocps Timer21 KN XTAL2 9 6 MHz Se On chip OSC t ccus vi Ach E Kr P30
4. xternai Prototypes if EEEE o n EE n n eee eee er eee ee ee eee ee ee ee G Be ee d ee Se ee ee ee ee ee Se 9 3 6 ee ee ee ee Se 98 0 9 ee 0 BG G 9 0 9 9B8 eS USER CODE BEGIN T01 General 8 USER CODE END LL RRA ARREARS AEE RAE EAE EAE ERE EERE SRE ERED EDD Prototypes Of Local Functions Lf PAPAS ode heec obedece EE E E EE E E EE E EE E E EE E EE EE EE E dee eode oe EE E ode oo e ee E EE E ee ee ee USER CODE BEGIN T01 General Sai USER CODE END AMARA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA dese Funetion void T01 vInit void b A A eE LA ee DNA EA A pp E c ww e ss 11 a Simulation 80 z L 77 C 43 1 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book Double click TO1 C Insert code for TO interrupt service routine Timer 0 interrupt counter if RS232 wait R5232 wait 183 Timer O overflow 183 5461 333 us 0 9994 if Timer 0 interrupt counter2 2183 A 183 Timer_0 overflow 183 5461 333us 0 9994s Timer_0_interrupt_counter 0 if blinking IO vTogglePin Pl 5 VE pVision3 C 1XC8881T01 C E e x O File Edit View Project Debug Flash Peripherals Tools SVCS Window Help GETT RAL 22 FE Suns si as Target 1 ja m i3 Target 1 2 23 START XC a51 4 MAIN C IOC 4 UART C ATOLC User Files sal CON o EA Jelx 208 USER CODE BEGIN TO1 IsrTmr0 2 203 Timer 0 interrupt counter
5. Configure Flash Menu Command Use Extemal Tool for Flash Programming Command f lt C200_FLOAD EXE Run Independent Build target Target 1 SECH e e oss po compiling MAIN C compiling IO C compiling UART C compiling TO01 C linking VARNING LiG UNCALLED SEGNENT IGMOGTD FOR OVERLAY PROCESS SECHENT PhORAIN ORAIN VARNING L16 UNCALLED SEGNENT IGMOGTD FOR OVERLAY PROCESS SECRENT PR TO1 VINITO TO Program Size data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m IODA CT 1 ye l Simulation ORR Click OK Note First we are going to use the simulator we will do the flash programming later Application Note 70 V2 0 2008 05 Ce AP08073 In fi neon XC800 USCALE start kit Cookery Book Insert your application specific program Note DAVE doesn t change code which is inserted between USER CODE BEGIN and 4 USER CODE END Therefore whenever adding code to DAvE s generated code write it between USER CODE BEGIN and USER CODE END If you wish to change DAvE s generated code or add code outside these USER CODE sections you will have to insert modify your changes each time after letting DAvE regenerate code Application Note 71 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click MAIN C and insert Global Variables code char men
6. TO1 viTmrO F I01 vilmr1 TO1_vilmrt I 101 vStartImrl ror vStartTmr1 TC T0T vStopImri ro _vStopTmr1 Timer O interrupt service routine XC888CLM new project A 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 44 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start 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
7. XC000 O Error m 2 Varnimg m 1 mu 3 lt lt gt gt Build Command J Find in Files Le gt Application Note 66 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book LX51 Locate do nothing XC888 pVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help PETT ree ociees lt a reel Jpug 35 al ere coo EX Jam da Target 1 amp Dave Files 3 3 START XC a51 i RER Options for Target Target 1 3 UART C 3 TO1 C User Files Device Target Output Listing User c51 Ax51 151 Locate Lx51 Misc Debug Utiities E Use Memory Layout from Target Dialog m TA EH HDATA COFO XFSF CODE CoO COSFF COxA000 C Ox a Al C00 C 05FFF COxA000 C O BFFF HCONST C00 C 06FFF C 0xA000 C OxBFFF al Bifana target Target 1 C i Defaut neblina START XC a 1 oe cw ps Lone rr VARNING LiG UNCALLED SEGNENT IGNORED FOR OVERLAY PROCESS SEGEENT PhORAIN ORAIN VARNING L36 UNCALLED SEGRENT IGNOGED FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m 1 mu 3 lt lt gt gt Build Command J Find in Files Le gt Application Note 67 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book LX51 Misc do nothing XC888 pVision3 File Edit View Pr
8. i3 Target 1 586 5 Dave Files 57 USER CODE BEGIN MAIN Header 9 3 START XC a51 4 MAIN C 569 USER CODE END 580 3 main h 591 4 intrins h sop h u a KARA AA AAA AAA Oe eee eee ET EE EE EE EE EE EE E EE IERT RT TEST EE EE 3 io h 93 Interrupt Vectors RP be bee e eo e e LALA 2 SSR SSS SSS SSS AAA AAA AAA AAA EE E EE EE RSS SPER SPSS PRPS See EE uart h 94 3 tO1 h 3 3 1IO C 5 UART C i TO1 C User Files s USER CODE BEGIN MAIN Header O s USER CODE END 2 Project Includes geg 603 AAA cs HA nin ee ee ee eee E 607 include lt intrins h gt 603 finclude IO H 610 include UART H 611 include TO1 H 19 USER CODE BEGIN MAIN Header l11 9 finclude lt stdio h gt 621 include lt ctype h gt 622 USER CODE END 623 lendif ifndef MAIN H n MAIN C B MAINH Simulation L 611C 82 C RW Application Note 78 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click UART C Insert code into the UART vInit function to start printf C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help BEIEN EU MAD rr anal Alea aa lgl er e dex i ax Target 1 jaam Project Workspace xj 134 if i3 Target 1 135 Pin TXD P1 1 is selected for s Dave Files 136 Pin RXD o P1 0 is s ct for reception 23 START X
9. 167 USER CODE END 191 End of function VART vInit 1 2H USER CODE BEGIN UART General 10 v4 USER CODE END Simulation L 166 C 8 T T NW Application Note 79 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book Double click TO01 C Insert the following global variable unsigned char Timer 0 interrupt counter O0 j XC888 uVision3 C 1XC8881T01 C C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help BSVA TWEET EH AH JA ra a ER sere d Project v i3 Target 1 062 s Dave Files 063 Imported Global Variables eS che cde hehehe eode be decode obe dece he ode be ode debe ode oe e be ode obe eode oe eee eee H 39 START XC a51 064 MAIN C 06 e BIO 2 UART C 53 TO1 C 065 User Files 070 071 072 Application Note e e i ax Target jaam Workspace Ji we de obe de hehe dee ehe ode he eode be ode ee be de obe ede he ee E E EE E EE E E EE E EE E dece eee obedece E E EE E EE ve oe on o vn n v B B t ff USER CODE BEGIN T01 General 6 USER CODE END ff eee eee re ee ee ee ee EE EE EE EE c Il EE E E EE EE EE E EE E EE EE EE EE EE lll llc ll Global Variables FO EE E EE E e o dn EE E EE EE EE e o n EE E EE eee eee USER CODE BEGIN T01 General 7 unsigned char Timer D interrupt counters USER CODE END VEDA a a a a a a a a a a a a a a a A a a a a a a a a A a a a a a a a a a a a a a a dfat ag 3 Ya o
10. Open Project Select Project File Look in choose CAXC888 1 Select Project File Files of type select Dave Project Files 2 Choose click XC888 dpt 3 Select Project File History e De kt op My Computer Yao My Network Pla File name C888 dpt m Files of type Dave Project Files dpt Cancel E Click Open Application Note 57 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Project Rebuild all target files Vi XC888 uVision3 File dit View ee Debug a J g 5 92 SS 8 IE HW TEM j XC888 uVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help lasag EEES fa 3 4 a sxj erem ICO TS 9t Ax Target 1 amp m a Target 1 amp Dave Files START XC 351 4 MAIN C B AIOC B 4 UART C Bg 2701 User Files Build target Tar at Lat STANT Sc asi omnes compiling MAIN C compiling 10 compiling UART C compiling TO01 C linking VARNING L16 UNCALLED SEGRENT IGNOGT OR OVE ROC SEGRENT O E VARN EGRET IGMOGTD FOR OVE ROC ENT ll KL onm To1 Program cea Ly a 0 code 12 XC 00 cia 2 im T CIAO Ol een l Simulation CI T OVRR W Note ote This step generates a makefile and shows the include files Application Note 58 V2 0 2008 05 e fe AP08073 In fi neon XC800 USCALE start kit Cookery Book Configure Compiler Assembler Linker Locate
11. 8FF General For the KEIL Compiler check choose Keil in the Compiler Settings 9 DAVE File View Options Add Ins Windows n DEB fus 2 3 Project Settings Ia ea 2 Controller Details Device XC888CLM 8FF v Device Type FLASH Flash Memory p2 K Size Max System Clock po MHz ROM Size E Frequency Main Source File Main Header File File name MAIN C File name MAIN H Compiler Settings FE Keil Iv Enable Startup File Generation Memory Model SMALL Y C asking C SDCC XC888CLM new project A Application Note 27 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book System Clock do nothing 9 DAVE File View Options Add Ins Windows je Du ui fica Si DAvE XC888CLM Release v1 4 Si Project Settings WE ek Clock Source Control C Prescalar Mode VCO Bypass PLL Mode Clock System P 1 fSYS fOSCXNAPxK N 20 y k 2 Clock Output Control T Use Pin P0 0 as CLKOUT Use Pin P0 7 as CLKOUT CLKOUT fOSC C CLKOUT is Selected by COREL and TLEN bits Clock Divider fSYS 2 e ESEAS AADI X TC Enable Toggle Latch COCON TLEN CLKOUT MHz fra Clock Source Selection OnChip OSC C External OSC fOSC MHz 550 System Frequency fSYS fSYS ThAH 71 Clock Management Clock divider fSYS 4 v CKkACITNI CI KDEI PCLK SCLK CCLK MHz 4 00 FCLK MHz 8 00 XC888CLM new project E Note CPU clock is 24 MHz
12. AP08073 In fi neon XC800 USCALE start kit Cookery Book s XC888 pVision3 C XC888 MAIN C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help x Asg iltre E EEE N DC o 6 fal sara AOPE er m ARS Kr BAA gt MAIN vInit 20 USER CODE BEGIN MAIN Main 3 248 while RS232 wait 243 USER CODE END 250 5 while 252 253 Penpneral SFR 254 USER CODE BEGIN MAIN Main 4 5 BB urnamed Ap 255 printf menu Runtime Library 286 select input al C_STARTUP Mo 257 213 10 Mo 258 switch select LJ MAIN Mo 259 9 TO1 Mo 260 case 1 blinking OFF IO vResetPin P1 5 printf messagel break LJ UART Mo case 2 blinking 0FF IO vSetPin P1l 5 printf message2 break case 3 blinking 0N printf message3 break 4 iem CODE END B VARTCIA TOIC f MAINH Bitearching for DAS Server JTAG over USB Chip a FADAS Server JTAG over VSD Chip is installed DAS Server JTAGO over TSB Chip is not started yet Trying to start it mow DAS Server JTAG over VIR Chip has been started successfully Losa C XCEBSS AI 13058588 Al H ASH ASSIGN Preaktisebie BreakEnable PreakKill BreakList BeeakSet BreakAccess COVERACE DEFINE DIR Display Enter EVALuate EXIT FUNC Go INCLUDE KILL LogicAnalyse LOAD LOG MAP NODE Ostep PerfotmanceAnalyze Pstep RESET SAVE SCOPE SET AID Iv Build Command Find in Files 4 Ready XI t3 Infineon DAS Client
13. END Simulation 1 236 C 2 Application Note 74 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click MAIN C and insert the following code in the main function 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 d case 1 blinking OFF IO vResetPin P1 5 printf messagel break case 2 blinking OFF IO vSetPin P1 5 printf message2 break case 3 blinking ON printf message3 break j V pVision3 C XC888 MAIN C l ell C file Edit View Project Debug Flash Peripherals Tools SVCS Window Help E x ADO LVS OC FKL Ja QE er m nes OG Target jaam SH 223 l Progect Workspace J i3 Target 1 230 printf question 5 Dave Files 231 while RI 33 START XC a51 232 RI 0 t 4 MAIN C 29 AR A D em gt 310 234 while in 1 amp amp in 2 amp amp in Le s 235 return in 4 UART C 236 ij TO1 C ep USER CODE END User Files 238 233 void main void 240 241 E E BEG fAIN Ma 242 243 SER Le DL 244 245 MAIN vlInit 246 247 USER CODE BEGIN N 248 While RS232 wait 243 USER CODE E 250 281 while 252 253 254 USER CODE BEGIN MAIN Main 4 255 printf menu 5 selecteinput 257 258 switch select case i blinking OFF IO vResetPin Pl 5 printf messagel br
14. Edit View Project Debug Flash Peripherals Tools SVCS Window Help lasag IEA Ju a 9 ail ere coss EX Jam t3 Target 1 amp Dave Files 2 START XC a51 RER Options for Target Target 1 B UART C TO1 C User Files Device Target Output Listing User cs1 Ax51 L51 Locate Geet Misc Debug Utiities EE Caen TI a oos Kess BiBuild target Target 1 C i Defaut i neblina START XC a 1 ox c ps Lov rr VARNING LiG UNCALLED SEGNENT IGNORED FOR OVERLAY PROCESS SEGEENT PhORAIN ORAIN VARNING L36 UNCALLED SEGRENT IGNOGED FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m 1 mu 3 lt lt gt gt Build Command J Find in Files Le gt Application Note 64 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book C51 Code Optimization click Y Linker Code Packing max AJMP ACALL WA XC888 uVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help CITT TEE EEGEN Da ma a EIS ere ooo EX Jam 3 Target 1 Dave Files 3 START XC a51 E Options for Target Target 1 1 UART C TO1 C User Files Device Target Output Listing User C51 ax51 L51 Locate Get Misc Debug Utiities Favor speed E E 3 NEEN 00000 E Linker Code Packing m
15. Ins Windows a EEA a s Ka enn y ESO SS 15k S Pe m ANS uH i 5 d Lf Zi 5 y M L P aN APO P2 zh Ad e ILE vg oni avers erg m ns N 2 T Am i wi E GH AER Vey ran M SX SD pasase ve CI WS ae et CAEN KA SE D Wi de C na XC888CLM new project E Application Note 33 V2 0 2008 05 Infineon AP08073 XC800 USCALE start 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 File View Options Add Ins Windows n Oe fus d DAvE XC888CLM Release v d Transmitter C No pins are selected F Use pin P1 1 TXD_0 C Use pin P0 2 TXD_1 C Use pin P5 3 TXD 2 Mode Control SMO SM1 Receiver C No pins are selected FJ Use pin P1 0 RXD 0 C Use pin P0 1 RXD 1 C Use pin P5 2 RXD 2 Receiver Enable Enable receiver REN Baudrate Source BRG C Mode 0 8 bit shift register fixed baud rate fPCLK 2 C Timer 1 Mode 1 8 bit shift UART variable baud rate see BRG or Timer1 c Mode 2 9 bit shitt UAR I fixed baud rate ITPCLK 32 or fPCI K 64 C Mode 3 9 bit shift UART variable baud rate see BRG or Timer1 Interrupts r Enable interrupt ES Receive interrupt will only be I acti
16. NET Framework 1 1 Wizards SMicrosoft NET Framework 2 0 Konfiguration Manages disks and P Microsoft NET Framework Configuration provides access to Microsoft MET Framework Wizards other tools to V Performance manage local and Services remote computers Telnet Server Administration Modified 12 11 2007 18 21 Size 1 52 KB Attributes normal 4 Sie Type Modified 1KB Shortcut 08 05 2008 10 26 2 KB Shortcut 12 11 2007 18 21 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 1KB Shortcut 12 11 2007 14 58 1KB Shortcut 12 11 2007 14 58 2KB Shortcut 20 11 2007 16 30 1KB Shortcut 12 11 2007 14 56 1KB Shortcut 12 11 2007 14 56 2 KB Shortcut 08 05 2008 10 26 2 KB Shortcut 12 11 2007 13 40 2 KB Shortcut 12 11 2007 13 40 Manages disks and provides access to other tools to manage local and remote computers 1 52 KB E My Computer Application Note 20 V2 0 2008 05 e t AP08073 In fi neon XC800 USCALE start kit Cookery Book Click Device Manager a Computer Management Action View Sim d Tree Computer Management Local Y Disk Defragmenter Services and Applications EJ Disk drives Display adapters aria drives Us Human Interface Devices E IDE ATA ATAPI controllers amp Q IEEE 1394 Bus host controllers ER Keyboards Mice and other pointing devices Modems Monitors BI
17. Network adapters PCMCIA adapters Ports COM amp LPT JB secure Digital host controllers Me Smart card readers GE sound video and game controllers System devices Universal Serial Bus controllers Application Note 21 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Expand Ports COM amp LPT Expand Universal Serial Bus controllers EI Computer Management Action View gt SI m EN B EN E Bau EDS 7 Tree LW Vien0026 Computer Management Local System Tools 2 Device Manager amp Storage amp Disk Defragmenter Services and Applications 1 Batteries 43 Biometric m Computer E Disk drives a Display adapters E DVD CD ROM drives 4 Human Interface Devices 3 IDE ATA ATAPI controllers ep IEEE 1394 Bus host controllers ge Keyboards he Y Mice and other pointing devices Modems a Monitors a Network adapters e PCMCIA adapters A Ports COM amp LPT A Communications Port COM1 A Infineon XC800 USB COM Port COM5 A Printer Port LPT1 B Secure Digital host controllers Gei Smart card readers HE Sound video and game controllers W System devices Universal Serial Bus controllers Ex Generic USB Hub Infineon XC800 USB COM Port gt Infineon XC800 USB Debug Intel R ICH8 Family USB Universal Host COWroller 2830
18. Options for Target Target 1 B UART C TO1 C User Files Device Targat Output Listing user cs1 Ax51 LX51 Locate Geet Misc Debug utiities ewm 2 eem i F Conditional r Symbols FT include Files BP Assembly Code E Conditional F Symbols Macros Final epansonony zl r Cross Reference RH Linker Listing 00388 map F Memory Map F Pubic Symbols F Une Numbers F Cross Reference F Local Symbols F Comment Records F Generated Symbols E Unkor Code Listing cod F Library Symbols i on OK Cancel Defauits Help assembling START IC a 1 compiling MAIN C compiling IO C compiling UART C compiling TO01 C linking VARNING LiG UNCALLED SEGHENT IGMOGTD FOR OVERLAY PROCESS SECRENT MAIN MAIN VARNING LiG UNCALLED SEGRENT IGMOGTD FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m T 3 lt lt gt Build Command Find in Files Le gt Simulation 1 ORR Note With the cod file you can do the following 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 63 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book User do nothing XC888 pVision3 File
19. P37 PLL MultiCAN EZ KS P40 P47 Port 4 a gt P5 0 P5 7 1 Includes 1 Kbyte monitor ROM E 2 The 24 32 Kbyte ROM has an additional 4 Kbyte Flash XC888CM functional units Source User s Manual Flash or ROM 24K 32K x 8 Boot ROM Capture Compare Unit BEZE 12K x 8 8 bit Digital I 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 TR Gane CORDIC MuticAN TEr21 UART Port 5 8 bit Digital UO On Chip Debug Support 8 bit Digital 1 O Improved functionality in comparison to the XC866 1 All ROM devices come with an additional 4K x 8 Flash 2 Pt Digital VO 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 8 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Cookery book For your first programming example for the XC800 USCALE start kit Your amp Docklight V1 7 program File Edit Run Tools Help Stop Communication F6 Cae S gt ale Aem Ves Sus os Commmunication port open Send Sequences Communication Send ASCII HEX Decimal Binary Version USCALE XC800 hello world Note The Debugger must be permanently connected to the USCALE XC800 during operation to select the XC888 microc
20. Pin 5 OFFAn 3 LED Port 1 Pin 5 blinking n n code char question your choice 3 code char messagel AnXr LED Port 1 Pin 5 ON n 3 code char message2 n ct LED Port 1 Pin 5 OFF n code char message3 Anir LED Port 1 Pin 5 BLINKING An volatile int xdata RS232 wait 193 183 Timer overflow 183 5461 333 ps 0 9994 s bit blinking ON char selects USER CODE END f L RAAARRARAAAREAARAARAAARAAARAARAAARAARAAARAAAAAAARAAAAAARAAARAAAAAARAARAAARA A Application Note 73 V2 0 2008 05 o AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click MAIN C and insert the function input char input void char in do printf question while RI RI 0 in SBUF while in z 1 amp amp in 2 amp amp in 3 return in NV XC888 pVision3 C XC888 MAIN C EE MES Bs tha nc re e Dl Ja 3 6 QGP sere SAAE A a Project workspace 8L Ll L n i3 Target 1 5 Dave Files 9 START XC aS1 l 224 USER CODE BEGIN MAIN Main 1 a MAIN C 25 char input void 226 BIOC 227 char in 3 UART C 228 do 41 TO1 C 223 User Files 230 printf question 23 while RI 232 RI Q 233 in SBUF 234 wh le n 1 amp amp n 2 amp amp in 3 235 return in 23 E E BE MAIN Main 2 E E E vInit f USER CODE BEGIN MAIN Main 3 ER DE ENL ER E BE da IN Ma 4 SER CODE
21. Service Routine Type Select C CHOICE1 ISRs Push and Pop SYSCON to prevent register mapping RMAP problems CHOICE2 Global Interrupts EA are disabled in Functions Macros that modify RMAP to avoid mapping issue Shared Interrupt Message Box Enable iv Enable shared interrupt message box XC888CLM new project E Note Source DAVE You have two choices for Interrupt Service Routine Type Select 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 SSC CCU6 Flash MDU CORDIC and MultiCAN interrupt sources There is a slightly different behavior between MODE 0 and MODE 1 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 31 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start 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 y Project 5 Application Note 32 V2 0 2008 05 f AP08073 In fi neon XC800 USCALE start kit Cookery Book Configuration of the UART le View Options Add
22. XC800 hello world 4 ote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller LED Port 1 Pin 5 LED Port 1 Pin 5 OFF LED Port 1 Pin 5 blinking your choice 1 Receive Sequences Active Name Sequence Answer 244 LED Port 1 Pin 5 ON 44 ersion USCALE XC800 ant hello world 4 ote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller LED Port 1 Pin 5 ON LED Port 1 Pin 5 OFF LED Port 1 Pin 5 blinking your choice and check the result on your XC800 USCALE start kit d nn m Qm FL LET BIS DT Lei i ri SET asas as BERR EBERLE k n 1 r F j i z S un Ld k H i LEET AENA a E y LER S SES oe ee ut 1 A Port 1 Pin 5 Application Note 115 V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Conclusion In this step by step book you have learned how to use the XC800 USCALE start kit 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 XC800 USCALE start kit 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 the X
23. calling the interrupt when the RETI instruction is encountered The RETI instruction informs the processor that the interrupt routine is 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 45 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking D the close button Application Note 46 V2 0 2008 05 AP08073 XC800 USCALE start kit Cookery Book Configure Port 1 Pin 5 to Output DIS File View Options Add Ins Windows on Dem fus UE a T Um em XE i3 e l A uw wy i Li D ee E AS a EN d XC888CLM XC888CLM iow DIRGEE QN EE NR E EN SESS UA E Note The User LED red is connected to Port 1 Pin 5 jer mg Application Note 47 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit
24. click right mouse button Options for Target Targetl MEXCSES pVision3 Eile Edit View Project Debug Flash Peripher dB gg SPO Lt k CH A Target 1 Application Note or click NU Co pVision3 Project Debug Flash Perip E A TEM 2 53 Target 1 a p Es Man Eilac 102 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Options for Target Targetl Debug click Use select Infineon DAS Client for XC800 S P Ka B zing H 5 gt M 2 USER CODE BEGIN MAIN Main 2 USER CODE lOptions for Target Target 1 SET E pee que EMILE de sus Locate uS Msc OR Jus li i MAIN vInit USER CODE while RS232 w USER CODE while 1 USER CODE 24085 20 242 243 244 245 286 24 248 243 250 251 282 253 254 255 256 257 258 258 260 261 262 26 264 USER CODE Bo POTTS SL zs omm te Click OK Application Note 103 V2 0 2008 05 o AP08073 In fi neon XC800 USCALE start kit Cookery Book M XC8f pVision3 1XC888 MAIN C lex Y c Ble Mew pe Flash Peripherals Tools SVCS Window Help ell EU O C Ru Aa a a BR cars sspe Bees jaa m Project Werkepece _ MAIN vInit ia Target 1 Dave Files 27 USER CODE BEGIN MAIN Main 3 23 START XC a51 248 while RS232 wait 9M AIN C 243 USER CODE END BIOL el while 1 23 UART C 262 4 TO1 C 253 User F
25. for XCSCt1 0 00000000 sec d ARE ES a Debug Run Application Note 106 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book 5 x I XC888 pVision3 C XC888 MAIN C Je m MAIN vInit USER CODE BEGIN MAIN Main 2 while RS232 wait USER CODE END while USER CODE BEGIN MAIN_Main 4 printf menu select input switch select case 1 blinking OFF IO vResetPin Pl 5 printf messagel break case 2 blinking 0FF IO vSetPin Pl 5 printf message2 break case 3 blinking ON printf message3 break USER CODE END y End of function main r TEES 2nG USER CODE BEGIN MAIN General Io 272 3 USER CODE END 274 B wANC EB UARTC B TOIC E MANH Searching for DAS Server JTAG over USB Chip DAS Server JTAG over VID Chip is installed DAS Server JTAO over USB Chip is not started yet Trying to start it now DAS Server JTAG over USD Chip has been started successfully Lead C 11XC8881 1 105888 y T T I Bald Command Find n Fes Application Note 107 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Go back to Docklight and see the result amp 7 Docklight V1 7 Edit Rur Stop Communication F6 a bel c gt se CAAD ee Le y Commmunication port open Colors amp Fonts Mode COM5 9600 None 8 1 Send Sequences C
26. going to use Docklight Docklight can be downloaded http www docklight de Now start Docklight F Docklight V1 7 ell File Edit Run Tools Help Dauid rs CAAD Zay Leo Commmunication port closed Colors amp Fonts Mode COM10 9600 None 8 1 Send Sequences Communication ASCII HEX Decimal Binary Application Note 95 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Click Project Settings F Doch Jbt V1 7 Application Note 96 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Project Settings Communication Communication Mode click 9 Send Receive Project Settings Communication Communication Mode Send Receive on comm channel select COM5 Project Settings Communication COM Port Settings Baud Rate select 9600 Project Settings Communication COM Port Settings Parity select None Project Settings Communication COM Port Settings Parity Error Char select 1gnore Project Settings Communication COM Port Settings Data Bits select 8 Project Settings Communication COM Port Settings Stop Bits select 1 E7 Docklight V1 7 E lei xi File Edit Run Tools Help Dauid FAN VOSS LA Commmunication port closed Colors amp Fonts Mode COM10 9600 None 8 1 Send Sequences Communication re Project Settings Ixi Communication Mode 2 Send Receive Ln be H Send Receive on comm channel cow
27. release Please report problems with the latest DAS release to das support infin on com Download Service das product brief pdf 132 KB DAS Edition v2 6 4 zip 7 36 MB JTAG JDR Y LPT Server v2 4 0 zip 4 01 MB Note The DAS Server must be installed on your host computer The goal of the DAS software 1s to provide one single interface for all types of tools The USB Device driver communicates with the XC800 USCALE start kit when connected to the host computer The USB Device driver for the XC800 USCALE start kit USB interface 1s included in the DAS software A virtual COM port driver is also included Application Note 13 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Download The latest release version for download DAS Edition v2 6 4 Saving das edition 264 zip from wew Infineon cor Estimated time left Not known Opened so far 600 EE Download to das edition v64 zip Transfer rate 300 KB sec I Close this dialog box when download completes Open Open Folder Cancel Unzip das_edition_v264 zip and Application Note 14 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book execute DAS_v264_setup exe to install the DAS Server InstallShield Wizard Preparing to Install DAS Setup is preparing the InstallShield Wizard which will guide you through the program setup process Please wait Configuring W
28. 210 2 if RS232 wait 212 RS232 wait 183 Timer 0 overflow 461 333 ps 0 9994 213 214 if Timer 0 interrupt counter 1 83 Timer 0 overflow 183 5461 333u3 394 215 216 Timer O0 interrupt counter 0 217 if blinking 218 IO vTogglePin Pl 5 ER CODE E 1 1 T iTmro E Ti nera 10 END T b B m U ww 9 IB MAIN C B MAIN H B UART C Toi x Infineon DAS Client for XC8C L 219 C 29 R W Application Note 81 V2 0 2008 05 f AP08073 In fi neon XC800 USCALE start kit Cookery Book Generate your application program Project Rebuild all target files A XC866 4FR pVisic File Edit View Project Deb M XC888 pVision3 C XC888 MAIN C C file Edit View Project Debug Flash Peripherals Tools SVCS Window Help eis Bt tO Of EE ASS s X a DC DKW Qe 53 5 X reve jan m Workspace Project 233 void main void i3 Target 1 5 Dave Files 5 START XC a51 5S MAIN C 310 C MAIN vInit 5 UART C 24 ATOLC 247 SER CODE BEGIN MAIN Ma User Files 248 while RS 232 wait 243 SER CODE END 250 251 while 252 253 254 USER CODE BEGIN MAIN Main 4 255 printf menu 256 select nput 257 2 switch select case 1 blinking OFF 10 vResetPin Pl 5 printf messagel break case 2 blinking OFF IO vSetPin P1_5 printf message2 break case 3 blinking 0N printf message3 break ua darta 32 xdata 2 constr441 code 1471 e fi le t ro
29. 6 3 MultiCAN Node 3 C XC888CLM new project Interrupt of Timer 0 is enabled ETO 1 Note Source User s Manual 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 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 1s a second priority structure determined by a polling sequence as shown in the User s Manual and above Application Note 43 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Functions Initialization Function click Y TO1_vInit File View Options Add Ins Windows 6n Ose 4 Hog E DAVE XC888CLM Release dia 3 Timer 0 Timer 1 Interrupts Functions Parameters Notes Source File File name To1 C Initialization Function Function Library T TO1 vStartImr 1 vstatTm T TO1 vStopImr fo1_vStopTmr I TO1_vClearTmr TO1_vClearTmr TO1_ReadTmr T01_ReadTmr T T01_vLoadTmr TO1_vLoadTmr Iv TOT vitmr
30. AA BIO 2 UART C s77 USER CODE BEGIN MAIN Header 8 i TO1 C 573 extern bit blinking User Files 573 extern volatile int xdata RS232 wait se USER CODE END 581 582 583 J Perea eee eee eee eee ee ee ee ee eee ee eee ee ee ee ee ee eee Y A sua QPrototypes Of Global Functions 585 LER EAA AERA AERA AERA RARER AAA JJ EAE RAMEE ERR RAR 556 587 USER CODE BEGIN MAIN Header 9 505 583 USER CODE END 599 591 59 f SHARMHA EAT ee ee ee eee Rs rem Uae wa 583 BInterrupt Vectors 594 f fL PAA eA ae eae ea ae ea Ae eA eA AeA Aaa aA RAN RA ea RAK RR RAR AR eR Rae E 595 5 USER CODE BEGIN MAIN Header 10 597 rprICE D Aro ENT si USER CODE END 583 601 ferret rete eee ee ee ee ee ee ee ee ee ee H EE jEr f n A Project Includes 603 SRA eee eee eee eee eee eK ee ee eee eee eee ee eee AAA AAA AAA b es ww fa manc RAR OOO Simulation L 579 C 38 xg ES E Application Note 17 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click Main h and insert include files include lt stdio h gt include lt ctype h gt Vo pVision3 C XC888 MAIN H C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help 5 x BSAA ce 2c Fe 493K e JA ra 6 Qa ste Suea i ax Target 1 jaam Project Workspace sa D CZE EZE RR LAA EE E EZE ee eee eee E EE E o n EE E B G EE EE B G B EE E EE T2 2222 22 dt o o AAA AAA
31. Application Note V2 0 May 2008 AP08073 XC888 XC800 USCALE start kit Cookery Book for a hello world application using the KEME Woo chain Microcontrollers gt Infineon Never stop thinking Edition 2008 07 16 Published by Infineon Technologies AG 81726 M nchen Germany O Infineon Technologies AG 2008 All Rights Reserved LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND INCLUDING WITHOUT LIMITATION WARRANTIES OF NON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE Information For further information on technology delivery terms and conditions and prices please contact your nearest Infineon Technologies Office www infineon com Warnings Due to technical requirements components may contain dangerous substances For information on the types in question please contact your nearest Infineon Technologies Office Infineon Technologies Components may only be used in life support devices or sy
32. AvE XC888CLM i d e gt SN condi t X LR Sin ee ee gt SS ees Een w Avs Ge s 7 Ze Wu dy A Hi ES KI FF Jm TE n y D lh Ho SS dk pote Ta 28 ill as e s RYE E ARKA V ee ET E XC888CLM new project 7 Note The LED on Port 1 Pin 5 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 O0 Application Note 40 V2 0 2008 05 AP08073 XC800 USCALE start kit Cookery Book Infineon Timer0 Timer Mode click Mode 1 16 bit timer Timer0 Timer Options click Y Turn on timer TRO Timero0 Interrupt Control click v Enable interrupt of timer ETO File View Options Add Ins Windows on Ose 4 003 2 Timer Mode TMOD TOM Mode 0 8 bit timer THO with a divide by 32 prescaler TLO Mode 1 16 bit timer THO TLO Mode 2 8 bit timer TLO with 8 bit auto reload THO Mode 3 8 bit timer TLO and second 8 bit timer THO Timer Registers Lower byte of 16 bit timer TLO 0x00 Higher byte of 16 bit timer THO Hat Timer Options IT Enable counter operation on C Pin P4 4 TO 0 C PinP1 1 10_1 Enable Gating Control Timer 0 IT is enabled only while pin EXINTO is high GATEO 7 Turn on timer TRO Interrupt Control Enable interrupt of timer ETO Timer overflow us TFO 461 333 XC888
33. AvE update file DIP for the required microcontroller http www infineon com DAVE Title Version Size Development Tools CA A CoaoacLM DIP file for DAVE Microcontroller Configuration Toolt Jatezt version 08 Feb 2006 v1 4 MCBBSCLM vi A zmpi Unzip the zip file XC888CLM_v1 1 4 zip and save XC888CLM DIP e g DADAvEAXCS88 2008 05 26 XC888CL M dip Application Note 24 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start 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 2008 05 26 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 25 V2 0 2008 05 Ce AP08073 In fi neon XC800 USCALE start 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 gi DAVE File View Options Add Ins Windows e Dad Anom DAVE New Project Application Note 26 V2 0 2008 05 infir AP08073 In fi neon XC800 USCALE start kit Cookery Book Choose the Project Settings as you can see in the following screenshots General Controller Details Device check select XC888CLM
34. BOOOyg BFFFp should be used for D Flash bank s contents that are intended to be used as data Application Note 61 V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Output click Y Create HEX File V3 uVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ETT IAEA ln al ere 2804 gvrlfTarget 1 amp m i3 Target 1 3 Dave Files 2 START XC a51 RER Options for Target Target 1 1 UART C 4 TO1 C User Files Device Target Output Listing User Leet Ax51 LX51 Locate Lx51 Misc Debug Utiities Vane ct rectis OE Create Executable 000988 F Debug Information F Browse Information Tier EJ create HEX Fie HEX F nex 80 C Create Library 0833 LIB T IP Lee o A A a bel e AY Note The HEX File could be used while working with the program XC800 FLOAD for OnChip Flash Programming via RS232 interface Bootstrap Loader BSL Mode via UART Application Note 62 V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Listing C Compiler Listing click v Assembly Code Listing Linker Listing click Y Linker Code Listing cod V3 pVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help KEITT teva rc ere 9 7 a Dan am 4 a UA ere ouer mi amp Tanget lA mM BR a Target 1 s Dave Files 3 3 START XC 351 u eir
35. C a51 137 Receiver enabled e D 136 Mode I 8 bit data 1 start bit 1 stop bit variable baud rate i ipid 133 ff BRG is selected for baudrate generation 145 5 UART C 141 SFR PAGE pp2 noSsT switch to page 2 without saving 5 TO1 C 142 Pl ALTSELO amp ubyte 0x02 configure alternate function register 0 a 143 Pl ALTSEL1 Le ubyte 0x02 configure alternate function register 1 Gei 7 144 SFR PAGE ppd noSST switch to page 0 without saving 14 P1_DIR ubyte 0x02 set output direction 146 147 145 MODPISEL amp ubyte 0x013 configure peripheral input select register 143 BCON 0x00 reset baudrate timer reload register 150 SCON 0x50 load serial channel control register 151 152 FR 153 Baudrate generator settings 154 a e e e e e e e e o e cD 2 Un CD o e CD E E E e e e e e aD aD a a a aD 155 input clock fPCLK 156 Fractional divider is enabled 157 baudrate 9 6004 kbaud 158 153 FDSTEP 0xD5 load fractional divider reload register 160 BG 0x81 load baudrate timer reload register 161 FDCON 0x01 load Fractional Divider control register 162 ECON 0x01 ff load baud rate control register 163 164 165 USER CODE BEGIN UART Init 3 166 TI 1
36. C800 USCALE start kit Note There are step by step books for 8 bit microcontrollers e g XC866 and XC88x 16 bit microcontrollers e g Cl6x XC16x XE16x and 32 bit microcontrollers e g TC1796 and TC1130 All these step by step books use the same microcontroller resources and the same example code This means configuration steps function names and variable names are identical This should give you a good opportunity to get in touch with another Infineon microcontroller family or tool chain There are even more programming examples using the same style available e g ADC examples CAPCOM6 examples e g BLDC Motor playing music Simulator examples C examples based on these step by step books Application Note 116 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book 7 Feedback XC800 USCAL E start kit Keil tools Your opinion suggestions and or criticisms Contact Details this section may remain blank should you wish to offer feedback anonymously If you have any suggestions please send this sheet back to email mcdocu comments infineon com FAX 43 0 4242 3020 5783 Your suggestions Application Note 117 V2 0 2008 05
37. CLM new project 7 Note We need 183 Timer 0 overflows 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 41 V2 0 2008 05 e t AP08073 In fi neon XC800 USCALE start kit Cookery Book Timerl do nothing not used E DAVE Belt File View Options Add Ins Windows n Dei Hos si DAVE XC888CLM Release v1 4 Si Timer 0 1 Ia dta Timer Mode TMOD T1M Timer Options c ips 0 8 bit timer TH1 with a divide by 32 prescaler T Enable counter operation on Pin P4 5 T1 0 C Mode 1 16 bit timer TH1 TL 1 3 in rla tr Mode 2 8 bit timer TL 1 with 8 bit auto reload Enable Gating Control Timer 1 TH1 T is enabled only while pin EXINT1 is high GATE1 C Mode 3 Timer holds its count T Turn on timer TR1 Timer Registers 0x00 5 bit prescaler TL 1 Interrupt Control 8 bittimer TH1 0x00 Gage interrupt of timer Timer overflow us TF1 682 667 XC888CLM new project 7 Application Note 42 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Interrupts do nothing File View Options Add Ins Windows e Di fis Si DAVE XC888CLM Relea m Priority O Priority 1 Priority 2 Priority 3 Taa meom E ls T Get Twweimem i tu wu 7 DER Lee Semester 1 E mete teg External
38. Cookery Book Additional information Parallel Ports General Structure Source User s Manual Px PUDSEL Pul up Pul down Select Register rtamal Bus Px PUDEN Pul ugp Pul down Enable Register 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 Dewce Application Note 48 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Ports click Configure Port 1 9 DAVE File View Options Add Ins Windows oo Obs al s 9 GPIO HCH ek Ports Functions Parameters Notes Configure Port 0 Configure Port 2 Configure Port 3 Configure Port 4 Configure Port 5 XC888CLM new project AL Application Note 49 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Port 1 Port Function click v Use P1 5 as general IO Port Direction click Out Si DAVE nix File View Options Add Ins Windows n Oe 1803 2 ff DAVE XC888CLM Release v1 4 Port Function Port Direction Push Pull Open Drain Output Value F Use P1 0 as general IO In Out I Open drain TC High l Use P1 1 as general IO In Out T Open drain F High I Use P12 as general IO amp in Out I Open drain r High r Use P1 3 as general IO in Out TC Open drain r High IT Use
39. DAVE Generated Files in C XC888 E nx l File View Options Add Ins Windows X n Oe 4 4103 2 JaA A amp DAvE s Project Documentation sss Project XC888 dav Controller XC888CLM 8FF Compiler Keil Memory Model SMALL Date 26 05 2008 16 38 46 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 10 H IOC UART H UART C T01 H T01 C XC888 ASM Project Settings XC888CLM CAXC8881XC888 dav File Exit Save changes dick Y eS Application Note 55 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start 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 c51 htm ES C51 Version 8 12 Evaluation Software Request Infineon Te T File Edit View Favorites Tools Help Back v 9 3 2 Search Folders Favorites S Gl Sv Se 334 BB By Address a https Jwww kell com demoJeval c51 htm zlogs Links Evaluation Software JKEIL An ARM Company Home Products Events Support search Keil cor Product Informatio C51 Evaluation Software Software amp Hardware Pre Development tools for Classic and Extended 8051 Why Buy Tools From K
40. FF Ed XC888CLM BFF EX XICS88 CLM SFF Ed XC888CM BFF Application Note 99 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Target click check v Use On chip ROM Target click check Y Use On chip XRAM V XC888 pVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ETT EAS Ju y 4 a sgx eres ctas es e ARfTarget jaan t Target 1 Dave Files i53 START XC 351 i B Options for Target Target 1 i See Device Target Output Listing User Leet Ax51 LX51 Locate Lx51 Misc Debug Utiities User Files Infneon X C888CLM BFF Xtal MHz fe 0 EJ Use On chip ROM 0x0 OxSFFF 0xA000 Ox8FFF Memory Modet Small variables in DATA e Code Rom Size Large 64K program FP Use On chip XRAM 0xF000 0xF5FF Operating system None e rnultiple DPTR registers Stat in Stat Sze Eprom y Ram aaf Oooo r Code Banking End V far memory type support Banks Bank Area M o EC Save address extension SFR in interrupts MIR PUT Tdi SC i Dotes Hop compiling MAIN C compiling IO C WARNING L16 UNCALLED SEGRENT IGMOGTD FOR OVERLAY PROCESS SEGEENT PhORAIN RAIN VARNING LiG UNCALLED SEGHENT IGMOGTD FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varning s 3 4 gt Build C
41. Locate Geet Misc Debug utimes User Files Use Simulator Settings Use settings F Limit Speed to Real Time F Hasse anie m RE Restore Debug Session Settings D denken BEN Restore Debug Session Settings F Run to main F Run to main E Breakpoints E Toolbox d F Breakpoints E Toolbox E Watchpoints amp PA HH E Watchpoints Fe DLL s051EW l Fa DLL cores DLL fexcess Toores DLL kees Build Tar aM ess biing START 2c e51 _ ox Cancel Defauts Help compiling MAIN C VARNING L16 UNCALLED JEGRENT IGNOGEXD FOR OVERLAY PROCESS SECHENT PhORAIN ORAIN VARNING L16 UNCALLED SEGNENT IGMOGTD FOR OVERLAY PROCESS SECRENT PR TO1 VINITO TO Program Size data o xdata O code 12 XC000 O Error m 2 Varnimg m Note First we are going to use the simulator we will use the debugger later Application Note 69 V2 0 2008 05 Ce AP08073 In fi neon XC800 USCALE start kit Cookery Book Utilities do nothing XC888 pVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ITT LUH E EE la mm 4 a Ip a 2804 grlfrarget i amp m t Target 1 Dave Files 3 3 START XC 351 i RER Options for Target Target 1 B UART C i TO1 C User Files Device Target Output Listing User c51 Ax51 UxS1 Locate Get Misc Debug Utihes
42. NG Go INCLUDE KILL Logicinalyse LOAD LOG MAP NODE Ostep PerformanceAnalyse Pstep RESET SAVE SCOPE SET k all Build Command Find in Files 4 gt Ready qup Simulation Note By activating clicking the UART 1 window you can then type 1 2 or 3 and see the result in the Parallel Port 1 window Pin 5 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 87 tl 192 09960811sec ES ees ESNE V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Note Since our program runs as expected in the simulator we can now use real hardware Application Note 88 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book 6 Using real hardware OnChipFlash Programming Make sure that the XC800 USCALE start kit 1s still connected to the host computer par re BH o 17 27 XC800 Bit ic Family Ji ek GR URP eB E gt USB Connection used for UART communication the UART RS232 serial interface 1s available via USB as a virtual COM port of the second USB channel of the FTDI FT2232 Dual USB to UART JTAG interface used for On Chip Flash Programming and Debugging first USB channel of the FTDI FT2232 Dual USB to UART JT AG interface the USB connection works also as the power supply App
43. P1 4 as general lO In Out TC Open drain F High 7 Use P1 5 as general IO In KF Out M Open drain High IT Use P1 6 as general IO n Out TC Open drain High T Use P1 7 as general IO In Out TC Open drain F High XC888CLM new project E Application Note 90 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Pull Device do nothing File View Options Add Ins Windows 3 Du m 1003 2 d Pull Device P1 0 pull device Pull up device y P1 1 pull device Pull up device P1 2 pull device Pull up device P1 3 pull device Pull up device y P1 4 pull device Pullup device y P1 5 pull device Pullup device y P1 6 pull device Pull up device v P1 7 pull device Pull up device v XC888CLM new project A Application Note o1 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Parameters do nothing File View Options Add Ins Windows ta Du m 1003 2 Parameters P1_0 PI PT P13 P1_4 PIS P16 PIT XC888CLM new project A Notes If you wish you can insert your comments here Exit this dialog now by clicking s the close button Application Note 52 V2 0 2008 05 infir AP08073 In fi neon XC800 USCALE start kit Cookery Book Functions Initialization Functions click Y IO vlInit Functions Function Library click v IO vSetPin Functions Function Libra
44. SCALE kit ks a low cosi USB stick providing full evaluation eapabilety for the SC CREE and CEE t Farbe of mierccondr lier all on a sighs plal Thor lei inches derclopimen lcolchains demos ed dul criada far TO Select a Calegory Mienpeomirollera Homs Simp ZGeiech Language Logn quick installation and 0450 of use ae well ap aec To Um kou features ad Tear dwar e signals el erch ot Um Uu en mi crocontrolher amp for more extensive benchmarking acd evaluation The CE USCALE siad kii is priced ei MSRP ESA Tur oben pinasa cich un len bellu eh EMEA C800 USCALE Ki Features 5 Lire Cost LED sbck Pond provides A Single evaluabon plattorm Tor the KOSSE CAS and CRES Bhi mernconiroller Complete loikan appa dor Le SCHO Pari of products m Accent to hardware signals through a 15 pin connector Tor sre lhe key features of each God 0300 8051 mierocontroler CAN ADO CAPOONGE Timani and Victor Computer Tor FOC motor control Easy riaan veil deeg arid baborssils for este of user ar quack evr 04 k y T stur t CDD Family of products a High pertonmance Ubi UST m Emis Fins m Pirerier Tul peripheral rei a Ucht and Evi m Full locichain support e eiir ia ei Adore oz Thus XE CAL E ki suappenrta the following three Bb miereenniroeliers e 1EKPrytes Flash e Feet 1064 AD a High performance DNA ARCA wm br t sving modes m 32st Flach start O ADE m Victor Corpuber Tor FOC motor control 8 High pe
45. Si DAVE File View Options Add Ins Windows d 070 103 2 3 UART Serial Interface KE ek Initialization Function Source File FJUART_vinit UART vinit File name JUART C Miscellaneous Functions 8 Bit Data Units I UART_vilsr UART vilsr I UART ubGetData8 UART ubGetData8 I UART vRxEnable UART vRxEnable I UART vSendData8 UART_vSendData TI UART_vRxDisable UART vRxDisable FT UART bRxReady UART_bRxReady 9 Bit Data Units r UART_bTxReady UART_bTxReady I UART_uwGetData9 UART uwGetData9 F UART vSendData9 JUART_vSendData9 Multiprocessor Communication F UART vSendAddr UART_vSendAddr F UART_bOwnAddress UART_bOwnAddress F UART_wWakeUp UART wWakeUp FT UART vGotoSleep UART vGeteSleep XC888CLM new project 7 Note You can change function names e g UART vlInit and file names e g UART C anytime Application Note 38 V2 0 2008 05 infir AP08073 In fi neon XC800 USCALE start kit Cookery Book Parameters do nothing Si DAVE MX File View Options Add Ins Windows u Dg 4 103 2 Header File File name UART H XC888CLM new project E Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Eai the close button Application Note 39 V2 0 2008 05 AP08073 XC800 USCALE start kit Cookery Book Configure Timer TO Si DAVE File View Options Add Ins Windows E Se m is INNEN E D
46. ax AJMP ACALL Fe Z are gt Qont uso absolute cogisler accesses F Enable ANSI integer promotion rules EM rre me SS 8 ECTADVANCED BROWSE DEBUG CODE a E i Compier control string T EIBuild target Target 1 C i Defaut astesbling START XC a 1 oe cw ps me rr VARNING LiG UNCALLED SEGNENT IGNORED FOR OVERLAY PROCESS SEGEENT PhORAIN ORAIN VARNING LiG UNCALLED SEGRENT IGNOGED FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m mu 4 gt gt Build H gt La a rl aca Sana en an A A aa an ER H Application Note 65 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book AX51 do nothing XC888 pVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help CITT xem oce eo Dan ma a EIS ere coo EX Jam ta Target 1 amp Dave Files 9 START XC a51 RER Options for Target Target 1 Y UART C s 4 TO1 C User Files Device Target Output Listing User 1 asp Jaen Locate Geet Misc Debug Utiities KIBui1d target Target 1 a texbiing START XC a 1 rr VARNING LiG UNCALLED SEGNENT IGNORED FOR OVERLAY PROCESS SEGEENT PhORAIN ORAIN VARNING L36 UNCALLED SEGRENT IGNOGED FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12
47. bug Session Debug Session EVALUATION VERSION Running with Code Size Limit 2k OK VE pVision3 C XC888 MAIN C C file Edit View Project Debug Flash Peripherals Tools SVCS Window Help ls DO iw HESE rir na Jan e a Da 6 GR aere P uO MEP vy siu ARTs Oe mes A 29 void main void 240 241 USER CODE BEGIN MAI N Main 2 242 209 USER CODE END 244 45 MAIN vIn t H 20 USER CODE EUN MAIN Main 3 EN Penpheral SFR 248 while RS 232 wait B raros Ap 249 USER CODE END amp Runtime Library 250 D C STARTUP Mo 251 while 10 Mo es MAIN Mo 253 sz lg TO1 Mo A USER CODE BEGIN MAIN Main 4 D UART Mo 255 printf menu 256 selectzinput 25 switch select case 1 blinking OFF IO vResetPin P1 5 printf messzagel break case 2 blinking OFF IO vSetPin Pl 5 printf message2 break case 3 blinking ON printfi meszage3 break I Lee C XCHSE ncssa a 1 ASH ASSIGN Preokbisoble BreakEnable SreakKill BreakList Break er PreokAccess COVERAGE DEFINE DIP Display Enter EVALuate EXIT FUNC Go INCLUDE KILL LogicAnalyze LOAD LOG MAP NODE Ostep PerfotmanceAnalyze Potep RESET SAVE SCOPE SET i lt gt gt Build Command Find in Files Ready AA e O ee TAM MAL EIE ERSTE CERE Application Note 86 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book Start program execution Debug Run View Ser
48. eak case 2 blinking OFF IO vSetPin P1 5 printf message2 break case 3 blinking ON printf message3 break Be BJs ua we D MAINC 4 lt gt Build Command Find in Files E gt Simulation L 267 C 6 R W Application Note 75 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click Main h and insert the following Defines define OFF 0 define ON 1 Vo pVision3 C XC888 MAIN H C ile Edit View Project Debug Flash Peripherals Tools SVCS Window Help Jelx SSAA lta Sl eesrreal J e 3eoa 8j erm ismex g ltageii zl zs Project Workspace 8 i3 Target 1 s Dave Files 23 START XC a51 gt 5 MAIN C 3 main h 3 intrins h J io h uart h USER CODE BEGIN MAIN Header 3 USER CODE END be EE EE EE E EE EE EE EE EE EE EE EE E E EE E E EE E EE E E EE E E EE E EE E E 1l EE E ll E EE E E EE E E EE E EE E Defines f SPAS ee ee eee eee eee ee eee Ke ee See ee Ke ee eee ee eee ee ee eS USER CODE BEGIN MAIN Header 4 3 tO1 h rigidi 3IOC 057 S define ON 1 5 UART C el USER CODE END i TO1 C 053 User Files e define bool bit 061 fdefine ulong unsigned long 062 define uword unsigned int 063 define ubyte unsigned char 882825233 33 063 ff neben t e ole e e ve le ele n e n AANA SS Ree ve Se eee ee ee eee n e v f n n ee See ln nt ee Rbratr e AF Eln 3 eg d de we GPrototypes Of Global Function
49. ei Microcontrollers Contact Version 8 12 Ordering Instructions Product Information Reque Pricing Information Request The Keil C51 Evaluation Kit allows you to create programs for all 8051 derivatives Product Brochures a Review the hardware requirements before Newsletters installing this software Device Database Note the limitations of the evaluation tools Device List what is the Device Databas Why isn t a Device Listed To install the Keil evaluation tools Adding to the Device Datat Searching the Device Da I EE Right click on C51V812 EXE and save it to your Search by Vendor computer Parametric Search PDF files may be opened with Acrobat Reader Problem Report a ZIP files may be opened with PKZIP or WINZIP Feedback e Evaluation Softwar Overview Requirements Limitations CD ROM Request Downloads ARM Evaluation Software NE E ELO Be sure to request a quote for the full version of C251 Evaluation Software the tools C51 Evaluation Software Compliance Testing ISO ANSI Compliance Validation and Verificatic Distributors Overview D DEES SE Execute C51V812c EXE or any higher version Note Version 8 12c or higher is needed for the XC800 USCALE start kit Application Note 96 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Start Keil u Vision3 and open the DAVE Project If you see an open project close it Project Close Project Project
50. heck M Erase Used Sectors Flash Download Options check M Program Flash Download Options check M Verify Flash Download Options check M Reset and Run XC888 V XC888 pVision3 C XC888 MAIN C ENS xl C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ex SAT INES A O CITA ESA onune wifTarget jaam co Si 2 char input void i3 Target 1 2260 5 Dave Files 22 char in do 3 START XC a51 H i r E printf Options for Target Target 1 x whi z UART C Ps NE Infineon XC800 ULINK Driver Setup x 5 TO1 C 233 in User Files 234 while DAS Client Setup Se i return Host Computer flacamast 1 Automatic Start Stop USER COD E Start with Debugger ng DAS Server JTAG over USB Chip lt 233 void main v F Stop with Debugger 208 Device XC800 F amily 241 USER C 243 USER C ze MAIN vIni Target Debug Options Flash Download Options 247 USER C 3 re 243 while RS2 Full Chip Prog cs USER C e Erase Used Sectors CG Verify E FOE Donot Erase F Reset and Run 263 264 USER C printf select Build Command Find in es W o S e b Simulation L 231 C 1 E R W Click OK Click OK Application Note 94 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Note Now we need a terminal program which is able to handle our virtual COM port COM5 As an example of any terminal program we are
51. ial Window UART 1 Peripherals I O Ports Port Peripherals Timer TimerU W XC888 pVision3 UART 1 lt File Edit View Project Debug Flash Peripherals Tools SVCS Window Help a g tease OH re AO la e b a AAA sera SS amp Qn P Ra AB TAO GH 2 Kj Version USCAL XC5OO hello world ote The Debugger must be permanently connected he U ALE XCH uring operation to select the XCB88 mierocost O EEUU ERO fb Port 1 Pin Off Ce ED Po 1 5 blink SE Pompe rrerrrer T LES P LP Li El Penpheral SER P1 0D P00 WNNNNNENNN But p P1_PUDSEL bar VRRP RPP 2 3 Runtime Library tom USCALE XCA beilo world 4 C STARTUP Mo The Debugger be permanentiy nected he USCALI X P1 PUDEN xt F PRPRERPRPRPRP LJ IO Mo g ope to the XCBS5 i vi al MAIN No ED Port 1 Pin 5 CN P1_ALTSELO 00 rrrrrrrr i TOI Mo D Port 1 Pin Off L UART Mo PLALTSELT P02 rrrrrrer your choice zs LED Pore 1 Pin 5 OFF Pins D GREBRRRTE Version USCALE XC O0 hello world t The Debugger m b manent ly eted the USCALE XCBOO ing operati to be X mi stro t ice MAINC UARTC E TOC MAIN H ART 1 oa Ch cass CARA te vim CHE Parallel Port 1 roller Parallel Porti 27 x fi 16 Ba Timer Counter X Tamer TCON x10 mop et gt 1 ASH ASSIGN breoxbisable BreakEnable SreakKill BreakList BreakSet PreokAccess COVERAGE DEFINE DIR Display Enter EVALuate EXIT FU
52. iles 264 USER CODE BEGIN MAIN Main 4 255 printf menu 256 select input 257 268 switch select case 1 blinking OFF IO vResetPin Pl 5 printf messagel break case 2 blinkingsOFF IO vSetPin Pl 5 printf message2 break case 5 blinking ON printf message3 break SR ls 1a target Target 1 assexbling START TC ant compiling SAIN see compiliag IO compiling UAKT C compiling TOJ C linking Program Site data 33 2 x data 2 const 441 code 1471 creating hex file from XcCOos0 csse D Errors O Varning s Load SCT ICAA Searching for DAS Server AT over USB Chip DAS Server JTAG over TSB Chip is installed DAS Server JTAG over USD Chip is not started yet Trying to start it nov DAS Server JTAO over TSB Chip has been started successtul ly Erasing Bank Sectors O Erase Done Programming Sone Verity Done Application running gt LODO Build Command Find in Files H InfineonDASClientforXCE L 231C 1 Application Note 104 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book UL Note The debugger selects the XC888 microcontroller in the XC800 USCALE start kit Therefore we are going to run our program with the debugger Debug Start Stop Debug Session ow Hel mm 8 flia erm Start Stop Debug Session Application Note 105 V2 0 2008 05 See
53. indows Installer Cancel i DAS InstallShield Wizard EM x Welcome to the InstallShield Wizard for DAS The Install amp nielatR Wizard will install DAS on your computer To continue click Next DAS any tool Ant WARNING This program is protected by copyright law and a ny WIFE international treaties any device 2 Cancel Application Note 15 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book j DAS InstallShield Wizard Wa InstallShield Wizard Completed The InstallShield Wizard has successfully installed DAS Click Finish to exit the wizard Cancel Click Finish Application Note 16 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Connect the XC800 USCALE start kit to the host computer gt Bi gt 28 HI 7 27XC8008 5it DE Family d USB Connection used for UART communication the UART RS232 serial interface 1s available via USB as a virtual COM port of the second USB channel of the FTDI FT2232 Dual USB to UART JTAG interface used for On Chip Flash Programming and Debugging first USB channel of the FTDI FT2232 Dual USB to UART JT AG interface the USB connection works also as the power supply Found New Hardware a DAS JTAG over USB USCALE XCSUD Note A USB driver is installed the first time while connecting the XC800 USCALE start kit via USB to your host compu
54. it View Favorites Tools Help Back v amp Search Folders 3 4 X Dw el a Address Control Panel v Go 112 ps it M SH y o 2 A Accessibility Add Remove Administrative Automatic Date Time Display Fax Folder Options Fonts Gaming Options Control Panel Options Hardware Programs Tools Updates Use the settings in Control Panel to Sa e ch oo personalize your EB P iu D 3 BB eu Y computer Internet Options Java Keyboard Mail Mouse Nero BumRights Network and NVIDIA nView Phoneand Power Options Printers Dial up Co Desktop Ma Modem Options view its description 9 9 9 s U a e Windows 2000 Ki gt Support QuickTime Regional SAP SAPConsole Scanners and Scheduled Tasks Sounds and Speech System Text Services ThinkPad Options Configuration Administrator Cameras Multimedia Configuration ThinkVantage Users and Wireless Link Active Prot Passwords i 36 object s Am Computer Application Note 19 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book Double click Computer Management t Administrative Tools File Edit View Favorites Tools Help Back v 3i ASearch Folders 4 33 X 9 Me i Tools Computer Management Shortcut Administrative Address Administrative Tools Component Services Computer Management Data Sources ODBC Event Viewer S Local Security Policy B Microsoft MET Framework 1 1 Configuration Microsoft
55. lication Note 89 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book 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 select Project Files uv2 click XC888 Uv2 click Open Wark File Edit View Project Debug Flash Peripherals Tools SVCS Window Help osag Ra oce Jan esaa a DA saumuex is vj amp m Select Project File Boso E Files of type ropa be Co e ll uv2 mew p ui D I e EE 8 eS Ac AA EE E AVR RTW Application Note 90 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Check configure the configuration of the Flash Proerammine Utility and select the correct microcontroller XC888 on the XC800 USCALE start kit mouse position Project Workspace Files or click Target click right mouse button Options for Target Target Viva pVision3 l4 XC8 3 pVision2 Elle Edit View Project Debug Flash Peripher File Edit vie project Debug Flash Perip Pe i A Sm A S cn FECA i Target gt JETA AED Y AE ce A Project Worispace 2 E e iX Target 1 ONE ee pr ptions tor Targe Ez CH Application Note 91 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Options for Ta
56. lick right mouse button Options for Target Target VEI pVision3 V cS pVision3 File Edit View Project SN Flash Peripher ER seed e s Se A T mm 1 File Edit Vie Project Debug Flash Perip Gal T MP c EE A 3 9 Target 1 O Options for Target C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help _ 5 x TT WK EE E EK An e ra 6 QB sere e 3 amp 5 e X Target 1 jan m 3 1 void main void i3 Target 1 Dave Files 241 USER CODE BEGIN MAIN Main 2 3 START asi 2 zs USER CODE E 5 MAIN C ech Options for Target Target 1 FR ze MAIN vInit l UART C 245 Device Target Output Listing User c51 Ax51 Lx51 Locate Get Misc Debug utiities TO1 C sel USER CODE Simulator Settings E Settings User Files 248 while RS232 w Eluse _Sottngs dires _Sotngs 243 USER COD E r Limit Speed to Real Time j 259 251 while 1 E AEO P Run to man P Load Application at Startup F Run to main 252 253 254 USER E 255 printf men 256 select inp 257 258 switch se 253 case case case uma BM Q e Br MAINCIIS UARTC B TO C E MAIN H lt lt gt gt Build Command Find in Files a Simulation L 239 C 1 OK Application Note 85 V2 0 2008 05 o AP08073 In fi neon XC800 USCALE start kit Cookery Book Start the u Vision Simulator Debug Start Stop Debug Session ERRELE Start Stop De
57. me XC see ae a trocis O Varning s fan Build Command Find in Files IK Simulation L 101 C 1 Application Note 82 V2 0 2008 05 Cinfineon AP08073 XC800 USCALE start kit Cookery Book Now we close our project and u Vision 3 Project Close Project File Exit Application Note 83 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book 5 Using the Simulator first we will test our program with the Keil Simulator 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 select Project Files uv2 click XC888 Uv2 click Open e x Die Edit View Project Debug Flash Peripherals Tools SVCS Window Help SRA alos ers a j 50010 EIS cars LL jam MM Select Project File P x Look in 30583 e sr 50450 e i I Buid Command Fmdinrles 4 l d 0o RRN 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 84 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Check the configuration of the u Vision simulator mouse position Project Workspace Files Target c
58. oject Debug Flash Peripherals Tools SVCS Window Help CITT xem oce eo Dan ma a EIS ere coo EX Jam da Target 1 amp Dave Files 3 3 START XC a51 i RER Options for Target Target 1 3 UART C 3 TO1 C User Files Device Target Output isting User c51 4x51 L51 Locate Lt Misc Debug Utities Warnings MI ewo F use linker control file Geste Browse Edt F Create relocatable output file LINKONLY r Case sensitive symbols seg TI Overlay Mise Bifana target Target 1 C i Defaut neblina START XC a 1 oe c ps Lone rr VARNING LiG UNCALLED SEGNENT IGNORED FOR OVERLAY PROCESS SEGEENT PhORAIN ORAIN VARNING L36 UNCALLED SEGRENT IGNOGED FOR OVERLAY PROCESS SECRENT PR TO1 VINIT TO Program Site data 9 0 xdata O code 12 XC000 O Error m 2 Varnimg m 1 mu 3 lt lt gt gt Build Command J Find in Files Le gt Application Note 68 V2 0 2008 05 o AP08073 in fi neon XC800 USCALE start kit Cookery Book Debug do nothing b XC888 uVision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help ETT IAEA Ju a al ere i peseaex 7 lfrarget i Jam rop works t4 Target 1 amp Dave Files 3 3 START XC 351 B MAIN C e BIOC Options for Target Target 1 g Device Target Output Listing User c51 Ax51 O51
59. ommand 1 Find in Files gt Simulation 1 ORR FFFF 4 In 24 Kbyte Flash devices the upper 2 Pat Kbyte of Banks 4 and 5 are not available FOCO Indirect Direct Address Address FE 8n TF 0000 DO ama Kee ep Program Space External Data Space Internal Data Space Application Note 60 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Additional information Flash Memory Map Source User s Manual C000 D Flash Bank 1 data 4 Kbytes D Flash Bank 0 data D Flash Bank 0 data 4 Kbytes 4 Kbytes D Flash Bank U D Flash Bank 0 program 4 Kbytes program 4 Kbytes D Flash Bank 1 program 4 Kbytes _ F Flash Banks 4 and 5 F 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 2x4 Kbytes 2x4 Kbytes P Flash Banks D and 1 P Flash Banks O and 1 2 x 4 Kbytes 2 x4 Kbytes 0000 24 Kbytes 32 Kbytes Note Source User s Manual The D Flash bank s in the XC886 888 Flash devices are mapped to two program memory address spaces D Flash Bank 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
60. ommunication Send Name Sequence ASCII HEX Decimal Binary ersion USCALE XC800 hello world lote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller LED Port 1 Pin 5 ON LED Port 1 Pin 5 OFF LED Port 1 Pin 5 blinking your choice Receive Sequences Active Name Sequence Answer Application Note 108 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click inside the red box S Docklight V1 7 File Edit Run Tools Help Sao rn SS AB ve Commmunication port open Send Sequences Send Name op Communication F6 Communication Sequence ASCII HEX Decimal Binary ersion USCALE XC800 ann hello world ote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller LED Port 1 Pin 5 ON we LED Port 1 Pin 5 OFF LED Port 1 Pin 5 blinking your choice Application Note 109 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 1 LED Port 1 Pin 5 ON Edit Send Sequence Sequence Definition 2 Sequence insert 1 Ina Edit Send Sequence 2 v ASC Du OK Application Note 110 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click inside the red box
61. ontroller 1 LED Port 1 Pin 5 ON 2 LED Port 1 Pin 5 OFF 3 LED Port 1 Pin 5 blinking your choice Step DAS Installation Connecting the XC800 USCALE start kit DAVE program generator DAVE Installation mothersystem DAVE Update Installation X C888 DIP for XC888 Using the KEIL Development Tools C Compiler Programming of your application X C888 with the KEIL tool chain uVision3 Compiler V8 12c_ first steps with the Simulator Using the simulator Using real hardware OnChipFlash Programmin 3 Using DAvE Microcontroller initialization for your programming example Feedback Feedback Application Note 9 V2 0 2008 05 f AP08073 In fi neon XC800 USCALE start kit Cookery Book 1 DAS Installation Connecting the XC800 USCALE start kit Application Note 10 V2 0 2008 05 Infineon Screenshot of the XC800 USCALE start kit homepage AP08073 XC800 USCALE start kit Cookery Book ttp www infineon com cms en product channel html channel db3a304312fcb1bc01130bbf1ed50 9c3 amp navigation menu p USB Kit XC800 Infineon Technologies Infineon Technologies File Edit View Favorites Tools Help Back e OB Search Folders IFavorites d Gi Ze Ae nO e X fix D He Address http www infineon com cms en product channel html channel db3a304312fcb1bc01130bbfied509c3 amp navigation menu Infineon Never stop thinking Get Product information USB Kit XC801 The CBE DE
62. r Hex Converter Build Control Simulator Debugger and Utilities mouse position Project Workspace Files Target click right mouse button Options for Target Target AXC8SS Vision V o pVision2 File Edit View Project Debug Flash Peripher i Pk gis BOB OSE Cw File Edit Vie Project Debug Flash Perip AR zl B d Options for Target Target 1 Options for Target 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 Options for Target Target 1 Device Target Output Listing User c51 amp xe Lx51 Locate Lx51 Misc Debug Utilties Database Generic CPU Data Base ww vendor Infineon Device XC888CL M SFF Use Extended Linker L lt 51 instead of BL5 1 Toolset Ch Use Extended Assembler A551 instead of amp 51 d XC8s6C 6FF 6091 compatible microcontroller with dual DPTR l XC886C 8FF CAPCOMB 3 Timers Counters 15 interrupts 4 priority levels CO xCSSBCLM BFF 5 channel 10 bit A D Converter 2 UARTs one with LIN support 1 xCS88BCL M 8FF Multi AN Mulitelication Division Unit M DIJ 206 byte on chip RAM 1936 byte on chip XRAM 12KB Boot ROM Ed XC8386CM 6FF 3 XCB86CM 8FF 32 Kbyte on chip Program Flash ROM fa XC885LM BFF fa XC88BLM SFF fa XC888 BFF Ed XC888 8FF fa XC888C B6FF Ed XC888C 8
63. rfomance CAPCOM HUECAN oH cm HOS Fl J2WBybes Flach start 1004 ADE m Vector Compiler Tor F T molior contend m High peer fortc CANC OM MuAH LE Ira m CORDIC m Breet partaj ees Appliearionsr m Mote Sonal morada Rey mS goods m Transportation e iiig dorado AAA AN rider Mumba KIT wC8DD LEECALE USB D UscALE CAN Hands On Training USCALE CAN HOT D n GP SCALE GC Hands On Training SCALE SOET IF ESA A Ee Application Note T6 Mary 2007 16 May 2007 7 Search Pat W e IT ge 11 Gi Print E V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Note For further information please refer to the USCALE XC800 System Description Application Note 12 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Install the Infineon DAS DeviceAccessServer Server Go to www infineon com DAS E DAS Tool Interface Infineon Technologies Infineon Technologi File Edit View Favorites Tools Help Back v 9 3 2 Search Folders Favorites 4 Gl aw Se Saw ndis Address e http www infineon com cms en product promopages das index html M Go e X Links p Our Products Infineon Never stop thinking DAS Product Brief 3 Print Page Send Page Latest release version for download DAS Edition v2 6 4 Latest LPT server for download JTAG JDR LPT Server v2 4 0 Note Please use always the latest DAS
64. rget Targetl Utilities Configure Flash Menu Command check click Use Target Driver for Flash Programming Options for Target Targetl Utilities Configure Flash Menu Command check select Infineon DAS Client for XC800 printf while RI 0 A in SEIN while in 3 return in USER CODE ENIM SIRSPSURSEUSSS 13 void main void 33 4 2893295792993333323523233 USER CODE USER CODE MAIN vInit USER CODE while 1 USER CODE printf men select inp Application Note 92 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Options for Target Targetl Utilities Configure Flash Menu Command click Settings printf OPtions for Target Target 1 while PA 7 3 mm L Debua RI 0 Vee Target VUPU USING User Ve V LA po Sn PROV Jegen A in E jwhile in return in c PERT ESRSESEE USER CODE EN e Up void main void USER CODE Mi USER CODE pin f MAIN_vInit s USER CODE while RS232 w USER CODE while 1 USER CODE printf me select inp ALE ELE RE ELLE suitch se case l DUARTCD TOC B MAIN H Application Note 93 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Infineon XC800 ULINK Driver Setup DAS Client Setup DAS Server select JTAG over USB Chip USCALE Device select XC888 Flash Download Options c
65. riority 3 KL KL lala a D XC888CLM new project A Note For the serial communication with a terminal program running on your host computer the printf function is used The printf function uses Software Polling Mode therefore we do not need to configure any interrupts Application Note 36 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Interrupt Priorities Note Source Application Note APO8053 There could be six interrupt priorities These priorities with 6 beeing the highest are as follows Interrupt Priority o o Y M A Interrupt Priority 3_ _ Interrupt Priority 2_ _ Interrupt Priority 1 _ Interrupt Priority O 1 WEM Main 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 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 In any case the NMI always has the highest priority above level 3 and its priority cannot be programmed Application Note 37 V2 0 2008 05 e t AP08073 In fi neon XC800 USCALE start kit Cookery Book Functions Initialization Function click v UART vlnit
66. ry click v IO vResetPin Functions Function Library click v IO vTogglePin 9 DAVE File View Options Add Ins Windows n bee fus 2 ei DAVE XC888CLM Release v1 4 GPIO jg da 2 Ports Functions Parameters Notes Initialization Function Source File 7 IO vlnit IO vinit File Name IOC Function Library T IO ubReadPin O ubReadPin IO vSetPin lO vSeiPin IO vResetPin lO vResePin F IO ubReadPort Io ubReadPot T IO vWritePort lo vwritePot T IO vSetlnput lo vSetinput IT IO vSetOutput Io vSetOutput IO vTogglePin IO vTogglePin XC888CLM CAXC888XC888 dav E Parameters do nothing Notes If you wish you can insert your comments here Exit this dialog now by clicking Ls the close button Application Note 93 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Save the project File Save Save project Save in C XC888 create new directory I Create New Folder File name XC888 Save project Saye in c 0888 e History f De m op E My Computer Tao My Network Pla File name cess Save Save as type DAVE project file day Y Cancel Save Application Note 54 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Generate Code File or click r Generate Code DAVE will show you all the files he has generated File Viewer opens automatically E
67. s 071 SARAAA RA AAA AERA AAAS EARS REESE eRe Hee ee ee d 072 fi p none pa rar E O74 USER CODE BEGIN MAIN Header 5 on USER CODE END 077 00 Declaration of SFRs 09 Notes You can avoid the problem that your compiler does not yet support Af the latest derivatives if you use the SFR definitions generated by DAvE instead of those that come along with your compiler in M k d the bariatar Fila 4 b B Q am D MAIN C B MAINH EE ValL RNA RIJSH DEG S eee Simulation 1 57 C 13 I NW Application Note 76 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Double click Main h and insert extern declarations Global Variables extern bit blinking extern volatile int xdata RS232 wait VE uVision3 C XC888 MAIN H m x C File Edit View Project Debug Flash Peripherals Tools SVCS Window Help MES CTT WT WEE E KH H zan a 6 a GR sere Gene si as Target jan m Project Workspace RI 56 UIT i3 Target 1 5 5 Imported Global Variables x Dave Files 56 jj toe obe e AAA he le AAA RAE oe obe eve ole e e ole e eoe oe e AAA AAA AAA n n v v c o ot nt START_XC a51 57 a z y y gt 4 MAIN C 5601 USER CODE BEGIN MAIN Header 7 3 main h 2 intrins h 571 J io h 572 3 uart h 73 EWEIIIIIIISISSSSSSISSSSSSSSSSSSSSSSSSSSSSSJSSSSSSSSSS ss AAA AAA AAA AAA AAA INES 3 t01 h 5741 Global Variables 575 LLP EEE EEE EE ee ee ee ee
68. s 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 XC800 USCALE start kit 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 XC800 USCALE start kit Application Note 4 V2 0 2008 05 AP08073 XC800 USCALE start kit Cookery Book Application Note 5 V2 0 2008 05 f AP08073 In fi neon XC800 USCALE start kit Cookery Book The XC800 USCALE START KIT includes 3 XC800 XC866 XC886 XC888 microcontrollers Only one microcontroller can be active at any given time The other 2 will remain in reset Therefore the debugger must be permanently connected to the XC800 USCALE START KIT during operation to select the active microcontroller The active microcontroller will be indicated by one of the 3 yellow LEDs In this document we are going to use the XC888 microcontroller T LJ Cove ee COMPLETI ITI oon L 7
69. s y Choose a COM port from the list of available devices or type a COM port from COM1 to COM256 COM Port Settings Baud Rate beo v Data Bits b z Receive Sequences Parity None DN Stop Bits fi DN Active Name Sequence Answer Parity Error Char ffignore k Application Note 97 V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Project Settings Flow Control Flow Control Support click 9 Off Application Note 98 V2 0 2008 05 ee AP08073 In fi neon XC800 USCALE start kit Cookery Book Project Settings Communication Filter Contents Filter click Show all original communication data OK Application Note 99 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Click gt Application Note 100 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book F Docklight V1 7 l Xx Ale Edit Run Tools Help Stop Communication F6 Cedo FAA ZAS Doy Commmunication port open Colors amp Fonts Mode COM 9600 None 8 1 Send Sequences Communication Send Name Sequence Ascu HEX Decimal Binary Receive Sequences Active Name Sequence Answer Note Docklight is now ready for serial communication Application Note 101 V2 0 2008 05 Cinfineon AP08073 XC800 USCALE start kit Cookery Book Go back to u Vision Configure select the debugger mouse position Project Workspace Files Target
70. stems with the express written approval of Infineon Technologies if a failure of such components can reasonably be expected to cause the failure of that life support device or system or to affect the safety or effectiveness of that device or system Life support devices or systems are intended to be implanted in the human body or to support and or maintain and sustain and or protect human life If they fail it is reasonable to assume that the health of the user or other persons may be endangered See AP08073 In fi neon XC800 USCALE start kit Cookery Book AP08048 Revision History 2008 05 V2 0 Previous Version none Page Subjects major changes since last revision We Listen to Your Comments Any information within this document that you feel is wrong unclear or missing at all Your feedback will help us to continuously improve the quality of this document Please send your proposal including a reference to this document to mcdocu comments infineon com Application Note 3 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Table of Contents Page Note Table of Contents see page 9 Introduction This Appnote is a Hands On Training Cookery Book step by step book It will help inexperienced users to get the XC800 USCALE start kit up and running With this step by step book you should be able to get your first useful program in less than 2 hours The purpose of this document i
71. ter Note A default virtual COM Port is generated Application Note 17 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Using a Windows 2000 operating system we are now going to search for the virtual COM Port which was generated after connecting our XC800 USCALE start kit Start Settings Control Panel a fF aJ 8 P d d My Computer My Network File Explorer Outlook Internet Windows Media iTunes Nero Burning PowerDVD Places Explorer Player Rom Word Excel PowerPoint Microsoft Office Gina Start Defrag Communicat e m 3 Paint Shop Pro 5 i view WinMerge Calculator Macmillan MapSource tei Vergleich English Europe 2008 777 Business Applications gt aT J ma Install Remove W s Office Applications U2CAN Visual Studio EasyCASE C Docklight XC888 v1 1 2005 file explorer H D gt tj Winzip Bx es es Ee z explorer exe UDE 2 02 03 DAS Server DAS Basic Client REMOVE DAS Show Delete Control Panel COMs Control Panel Network and Dial up Connections gt A Printers 3 Taskbar amp Start Menu z 4 g B 2 HiTOP52 U CA XC164CM CAN CCleaner Profile Space Recycle Bin Monitor at 1 Cleaner BA Start APO807 89 Pant sh j Dic S5qmaigeme24 e Application Note 18 V2 0 2008 05 Infineon AP08073 XC800 USCALE start kit Cookery Book Double click Administrative Tools amp Control Panel File Ed
72. tion to select the XC888 microcontroller i mob 4e Gb GR d dd GR GA G GR d Go mem Ge UR UR d d dA UR dA db d d de dL GR d ZR GR d db d R db G UR UR de A dA Ub b d R db db AP G JR GR AS dh de Gh RR d Re 3 LED Port 1 Pin 5 blinking your choice Application Note 113 V2 0 2008 05 ur AP08073 In fi neon XC800 USCALE start kit Cookery Book Edit Send Sequence Sequence Definition 1 Name insert 3 LED Port 1 Pin 5 blinking Edit Send Sequence Sequence Definition 2 Sequence insert 3 Go Edit Send Sequence Mode ASC HE o Binar OK Application Note 114 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Click 2 LED Port 1 Pin 5 OFF 3 LED Port 1 Pin 5 blinking or click or click s Ale Edit Run Tools Help Stop Communication F6 e Ma rn FAAB IS Lee Commmunication port open Colors amp Fonts Mode COMS 9600 None 8 1 Send Sequences Communication ASCII HEX Decimal Binary LED Port 1 Pin 5 ON 5 2m LED Port 1 Pin OFF gt 3 LED Port 1 Pin 5 blinking ersion USCALE XC800 hello world ote The Debugger must be permanently connected to the USCALE XC800 luring operation to select the XC888 microcontroller LED Port 1 Pin 5 ON LED Port 1 Pin 5 OFF LED Port 1 Pin 5 blinking your choice 2 244 LED Port 1 Pin 5 OFF ersion USCALE
73. u Anu Version USCALE XC800 hello world n Note The Debugger must be permanently connected to the USCALE XC800Wn during operation to select the XC888 microcontroller n LED Port 1 Pin 5 ON n 2 LED Port 1 Pin 5 OFF n 3 LED Port 1 Pin 5 blinking Ma code char question your choice code char messagel Anv LED Port 1 Pin 5 ON Ap code char message2 Anv LED Port 1 Pin 5 OFF n code char message3 Anv LED Port 1 Pin 5 BLINKING 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 72 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book M XC888 pVision3 C 1XC8881MAIN C A npr USER CODE BEGIN MAIN General 6 33 START XC a51 USER CODE END DOC UART C ATOLC User Files f f edet eee te e e fe fele e e ln f e lef e lel e fe hn e e e ln e e e e e e le f e e e t re fe e e e ve o PP Global Variables Jf ff COR o ke ke e e e fe e o e e e e oe eo e e eoe e e oye eoe USER CODE BEGIN MAIN General 7 code char menu n n n Version USCALE XC800 hello world in Note The Debugger must be permanently connected to the USCALE XC800Xn during operation to select the XC888 microcontroller n aan ssassn n l LED Port 1 Pin 5 ONAn 2 LED Port 1
74. vated if a valid stop bit was received SM2 Options RXDO Pin Selection Double baud rate SMOD Note Only in Mode 2 No pins are selected Multiprocessor C Use pin P1 5 RXDO_0 C Use pin P0 0 RXDO_1 C Use pin P5 4 RBXDO 2 Enable multiprocessor communication 5M2 XC888CLM new project 7 Note The RS232 serial interface UART pins P1 0 and P1 1 is available via the USB port as virtual COM port e g COM5 which converts the TTL UART signals to USB signals Application Note 34 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start 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 lt ENTER gt File View Options Add Ins Windows en Deur 103 2 BRG Settings Prescaler BRPRE ON fPCLK y STEP Value Required baud rate 9 6000 Actual baud rate kbaud 96000 kbaud Min baud rate 22 8882 Percentage of baud deviation Max baud rate 747 0703 Reload Value kbaud BG XC888CLM new project E Note Validate each alphanumeric entry by pressing ENTER Application Note 35 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Interrupts do nothing File View Options Add Ins Windows Dez 4103 2 Si UART Serial Interface KR a 2 Priority O Priority 1 Priority2 P
75. zi Intel R ICH8 Family USB Universal Host Controller 2831 Intel R ICH8 Family USB Universal Host Controller 2832 Intel R ICH8 Family USB Universal Host Controller 2834 Intel R ICH8 Family USB Universal Host Controller 2835 e Intel R ICH8 Family USB2 Enhanced Host Controller 2836 Intel R ICH8 Family USB2 Enhanced Host Controller 283A USB 2 0 Root Hub USB 2 0 Root Hub USB Composite Device E E AAA RUSSES Hm Note USB Composite Device As We can see USB Mass Storage Device OUT Virtual COM Port for USB Root Hub UART RS232 communication with the USB Root Hub XC800 USCALE start kit via USB is USB Root Hub COMS USB Root Hub USB Root Hub Application Note 22 V2 0 2008 05 Ce AP08073 In fi neon XC800 USCALE start 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 Tool Package DAVE Mothersystem latest version 0S Feb 2007 W21 r24 DAVE Mothersystem 04 Jul 2006 421123 and execute setup exe to install DAVE Note Abort the installation of Acrobat Reader Application Note 23 V2 0 2008 05 See AP08073 In fi neon XC800 USCALE start kit Cookery Book Install the XC888 microcontroller support update XC888CLM DIP file 1 Download the D
Download Pdf Manuals
Related Search
Related Contents
災害・BCP対策支援ビデオ会議システム EPOXIMERX 1203 La renaissance d`un vaisseau fantôme AROMA AWK-260 Use and Care Manual Copyright © All rights reserved.
Failed to retrieve file