Home
TC1766 "Cookery Book"
Contents
1. Application Note 74 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Processor Startup Startup Code do nothing TriCore VX toolset Project Options TC1766 PJT c Processor j Processor Definition a lt i Startup Memory Control Miscellaneous Bus Configuration H C Compiler C Compiler Assembler PCP Assembler H Linker CrossView Pro RB kg omg Gk Application Note 75 V2 0 2008 10 Cinfineon AP32133 TC1766 Cookery Book for a hello world application Processor Startup Startup Code Trap Vectors do nothing Processor Processor Definition Bypasses EStartup Code Trap Vectors Memory Control Miscellaneous Bus Configuration C Compiler C Compiler Assembler H PCP Assembler Linker CrossView Pro Application Note SI SI SS 00 X 4 TriCore VX toolset Project Options TC1766 PJT 76 V2 0 2008 10 AP32133 Jur In fi n eon TC1766 Cookery Book for a hello world application C Compiler Preprocessing deactivate click to untick LJ Automatic inclusion of sfr file TASKING EDE TriCore VX toolset C TC1796 TC1796 pjt EDD x File Edit Search Project Build Text Document Customize Tools Window Help je gt seSsealocl Hese repel RRURTDAR H Processor Preprocessing H C Compiler Store the C compiler preprocess output
2. Project Build Text E Glohal Variables Document Customize rixa d aaa d da La a La a La ALLE LLL LLL caca LL cac LL LL LaL a Loc HALLE aL oa aL Loa a aD IBix Tools MEN AAA ERRE RARA LEELA LALLA ALLAH A RRA RARA RARA AAA RRA RRA RARA RAR RARAS USER CODE BEGIN MAIN General 7 const char menu rr n nn nn UTCl78556 Program execution out of nChipFlash n lo LED 10 Port l1 Pin 0 Nin 2 LED 10 Port 1 Pin 0 OFF n 3 LED 10 Port l Pin 0 hlinking n rr An const char question your choice const char messagel in r r LED is ON YrXn const char messagez Uinyr LED is OFF iryn const char message3 intr LED 18 BLINKING irin volatile int Riese wait lt volatile unsigned int blinking 0 char select Ae UBER CODE END Build A File Find Shell A Symbols EE from the clipboard O Line 106 Col 17 Application Note 115 V2 0 2008 10 AP32133 In fi n eon TC1766 Cookery Book for a hello world application Double click Main c insert User Code function input char input void char in do myprintf question ASCO_RSRC_SRR ASCO_Receive Interrupt Service Request Control Register Service Request Flag ASCO RSRC CLRR ASCO Receive Interrupt Service Request Control Register Request Clear Bit while ASCO RSRC SRR ASCO RSRC CLRR z1 Clear SRR bit in unsigned char A
3. For Help press F1 Sa m RTERHE Application Note 137 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application File New Workspace h UDE Desktop File Edit Show Confia Window Help Bes 05m y Create new UDE Workspace File to store Session Settings TX s Look in arci 766 y eE Et Ejv ae TC1766 CS History i Desktop Hm mer My Documents My Computer AS My Network Pla File name 1 766 wsp A Files of type Storage UDE Workspace Files wsp v Cancel For Help press F1 burgum gs Open Application Note 138 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application h UDE Desktop File Edit Select Target Configuration Last Used Browse Folder to browse crei 7661 y a Files in folder iv Show descriptions i Press Default to use one of the predefined configuration files Press New to create a new configuration file from scratch Default New Copy Edit Remove OK Cancel Help For Help press Fi Eius Pone Es ER IR IZ Click OK Press Default Application Note 139 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application Create or use default Use a default target configuration expand Debugger gt UDE Desktop File Edit Show Confia Window Help esta or use toute ES Last L Folde
4. TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Assembler PCP Assembler Linker Z Output Format 4 Script File CC I Ds M Create file tor each memory chip Miscellaneous CrossView Pro Size Of addresses yes Tor Motorola S records olze oj addresses Dytesj Tor Intel MEX records LI Application Note 87 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Assembler H PCP Assembler Linker Output Format eR y Miscellaneous CrossView Pro Application Note 88 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Linker Script File Special Areas RESET start address insert 0xA0000000 PFLASH Linker Script File Special Areas Libraries start address insert 0xA0080000 PFLASH Linker Script File Special Areas Interrupt table start address insert 0x A0100000 PFLASH Linker Script File Special Areas Trap table start address insert 0xA0102000 PFLASH Linker Script File Special Areas CSA start address insert check 0xD0000000 LDRAM TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas Defines Stack
5. Application Note 37 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Interrupts do nothing File View Options Add Ins Windows n Oe 4 Hos 2 Teneeeeeeenseeeeseneneeneneneneeeenenenes CPU Interrupt max 255 PCP Interrupt max 255 Level 0 non interrupting Note To change the level and the group of an interrupt source click on it drag it to its new position and drop it To set an interrupt source to the non interrupting level Level 0 click on it drag it to the Level O list and dran it TC1766 Masspa OO F GC GG HMM MMM GG i A Note For the serial communication with a terminal program running on your host computer the myprintf function is used The myprintf function uses Software Polling Mode therefore we do not need to configure any interrupts for this task Application Note 38 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Functions Initialization Function tick v ASCO vinit Functions Function Library Part 1 tick v ASCO vSendData Functions Function Library Part 1 tick v ASCO usGetData Functions Function Library Part 1 tick v ASCO ubTxBufFree File View Options Add Ins Windows on Du nus 9 DAvE TC1766 Release v1 0 Pra esu suse nn enun nnns X Initialization Function Source File Eps File name AS 0 0 0 Function Library Part 1 Function Lib
6. 0 8 KB OVRAM System Peripheral Bus SPB Application Note 62 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Install the Tasking Development Tools TriCore v2 3r1 Start Tasking EDE select directory and include the DAVE Files If you see an open project close it File Close Project Space TASKING EDE TriCore VX toolset File Edit Search Project Build Text Document Customize Tools iod Help gl gl No project space is open File Find A Search A Browse A Difference A A IT Application Note 63 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application File Change Directory Select a Directory choose C TC1766 dl TASKING EDE TriCore VX toolset File Edit Search Project Build Text Document Customize Tools Window e j sBBmt m oc ZAA y viue ug No project space is open File Find A Search A Browse A Difference A Shell A Symbols Ces LS RS ERR RR SS OK Application Note 64 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application File New Project Space Create a New Project Space Filename insert TC1766 TASKING EDE TriCore VX toolset File Edit Search Project Build Text Document Customize Tools Window Help Je 9 asasima iocl sale ve cR dcos No project space is open Create a New Project Space x Current Directory
7. 0000 0008 8 x 256 SPBBE SPBBE 7FFF FFFF Mbyte 8 8000 0000 1 5 Mbyte Program Flash PFLASH access 8017 7FFF y 8017 8000 6 5Mbyte Reserved LMBBE amp LMBBE 807F FFFF SPBBE 8080 0000 246 Reserved LMBBE amp LMBBE 8FDF FFFF Mbyte SPBBE 8FE0 0000 16 Kbyte Data Flash DFLASH access 8FEO 3FFF Bank 0 UU Tar mo al Application Note 97 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Program Memory Source User s Manual The on chip PMU PFLASH memory has a capacity of 1 504 KBytes Y Adobe Reader TC1766 um v2 1 0 2007 07 pdf Table 8 2 SPB Address Map of Segment 0 to 14 cont d Seg Address Description Access Type ment Range Write 9 9000 0000 256 Reserved SPBBE SPBBE 9FFF FFFF Mbyte 10 A000 0000 1 5 Mbyte Program Flash PFLASH access A017 FFF A017 8000 6 5 Mbyte Reserved LMBBE amp LMBBE AO7F FFFF SPBBE A080 0000 246 Reserved LMBBE amp LMBBE AFDF FFFF Mbyte SPBBE AFEO 0000 16 Kbyte Data Flash DFLASH access AFEO 3FFF Bank 0 AFEO 4000 48 Kbyte Reserved LMBBE amp LMBBE AFEO FFFF SPBBE AFE1 0000 16 Kbyte Data Flash DFLASH access AFF1 3FFF Bank 1 AFE1 4000 48 Kbyte Reserved LMBBE amp ignore AFE1FFFF ES DBE d 69 HO O 14 4 410 cf 1 Note There is a typing error in Table 8 2 page 8 6 TC1766 User s Manua
8. ME AP32133 In fi neon TC1766 Cookery Book for a hello world application 1 2 Enable On Board Wiggler use parallel on board interface 2 3 Disable On Board Wiggler Application Note 15 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application TC1766 Execution Environment OnChipFlash Jumper Settings HW Configuration DIP Switch O A amp amp SS S BRKIN HWCFG 3 0 Type of Boot PC Start value 1 0000 Serial boot from ASC to PMI OxD4000000 scratchpad run loaded program 1 0001 Serial boot from CAN to PMI OxD4000000 scratchpad run loaded program 1 0010 Start from internal flash OxA0000000 1 0011 Alternate Bootmode from internal flash from Header or OxD4000000 1 1000 Internal Start in EEC SRAM if ED OxAFF20000 1 1111 Serial boot from ASC via CAN pins to from Header or PMI scratchpad run loaded program OxXD4000000 reserved don t use this combination 0 0000 put chip in tristate deep sleep 0 all others reserved don t use this combination 1 all others HW Configuration DIP Switch 1 3 4 6 ON 2 5 7 8 OFF Application Note 16 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Hehe CkGEETEE TTE NAM nn n l muhnn nnnunnnnnnnnhnhnnnnnnann ungnhnn i T tad dd did MAA LUE ELE A E CG I GOL TG LGL 1 4 T N X p 3 10 80 Di3 BHO rre m Avon E ZOC 900191
9. Use a default target configuration cure Si Files C Create a new target configuration step by step Back Finish Cancer Help iE y For Help press Fi PCC CERRY Application Note 140 V2 0 2008 10 T f AP32133 In fi n eon TC1766 Cookery Book for a hello world application Create or use default Use a default target configuration select Triboard with TC1766 JTAG OCDS File Edit ca Create or use default Bas Last L Folde Use a default target configuration Ic ATC C Create a new target configuration step by step E Files 0 B Triboard with TC1762 JTAG OCDS o B Triboard with TC1 762 Starterkit B Triboard with TC1 764 JTAG OCDS E Triboard with TC1 764 Starterkit Bf Triboard with TC1 766 JTAG OCDS B Triboard with TC1766ED JTAG OCDS B Triboard with TC1 766 Starterkit amp amp TC1775 Starterkits Infineon v Triboard with TC1 766 JTAG OCDS EZB E Jl For Help press Fl HF ERE Click Finish Application Note 141 V2 0 2008 10 ur AP32133 In fi neon TC1766 Cookery Book for a hello world application New Target Configuration Save in select CATC1766 1 New Target Configuration File name change insert TC1766 2 A New Target Configuration Save in aros wj TC1766 CS History Desktop ES My Documents My Computer My Network Pla Save as type Target
10. lt file gt pre Et C Compiler FF Automatic inclusion of sfr file e g disable for DAVE projects Preprocessing Language Debug Information Define user macros e g VALUE 100 SERIAL l Code Generation 53 Header Optimization Hy AsC Allocation KD Oh Warnings Include this file before source eB MAIN f MISRA C PO Browse Y STM Miscellaneous Cg Project Assembler E Resour H PCP Assembler rg Other Fi Linker H CrossView Pro Options string Wc no asking sfr Ctcl 796b We c 99 Wic Ax N c g switch auto WYc align 1 Wic O2 Wic t2 inline max incr 35 inline mevesize 10 c N8 I PRODDIR include silicon bug all tc1796 ea h Default Help p File Find A Search A Browse A Difference A Shell A Symbols Le E DES DRE DES 1651 3 ETO ERR Application Note 17 V2 0 2008 10 Infineon C Compiler Language do nothing AP32133 TC1766 Cookery Book for a hello world application Processor C Compiler C Compiler Preprocessing Language Debug Information Code Generation Optimization Allocation E Miscellaneous Assembler PCP Assembler 4 Linker CrossView Pro Application Note TriCore VX toolset Project Options TC1766 PJT M Single precision floating point treat type double as float m M Allow C style comments in source code Iv 78 V2 0 2008 10 infir AP321
11. v b n C Trusted sites Y Application Note V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Connecting the TC1766 Starter Kit 1 Connect a Power Supply The TC1766 Board requires an external power supply A un regulated DC power supply from 5 5 to 60 Volts can be connected to the power connector 500 mA are sufficient for the TC1766 Starter Kit NIN TTT TTT DEEETEETEEETTTETET IITIN 2 Connect a RS 232 Serial Cable 1 1 9 pin Sub D plug 9 pin Sub D connector the Hello World example uses this interface For further information please refer to the TriBoard TC176X User s Manual V1 0 June 2005 Application Note 13 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Jumper Settings Jumper JP501 Source TriBoard TC176X User s Manual V1 0 June 2005 Table 5 4 Jumper for On Board Wiggler Note The shadowed line indicates the default setting Setting On Board Wiggler Disable On Board Wiggler Jumper JP501 1 2 Enable On Board Wiggler use parallel on board interface 2 3 Disable On Board Wiggler use pls Debugger pls Debugger E X804 GPTA MLI X801 Not connected a i LE JP402 JP401 OCDS2 1 pls Debugger see next page TUUM 1 8 Blocs e TC176X XT301 ooooooon RS Reset Clock X803 ADC E PERIPHERALS 1 1 Application Note 14 V2 0 2008 10
12. 3 Using DAvE Microcontroller initialization for your programming example 4 Using the TASKING Development Tools C C EC Compiler Programming of your application with Altium s TASKING TriCore tool chain EDE Locating programs into the 1 5 MByte OnChipProgramFlash PFLASH using OnChipSRAM S Using the pls Debugger Using the pls Debugger to download program into Flash and run your program Feedback Feedback Application Note 10 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application 1 TC1766 Starter Kit Board E D G E T Ee HAN OSTEO GY www infineon com microcontroiler Microcontrollers ine Never stop thinking v 09 Cu ECEEEEEEEEEEEEEEEEEEEEEEEEEEELEELEEH a a UEEEEEEELEECELEELEELELEEEEEETELELETTI 4 lt 0 4801 04140 TURNA ALA LIFE ER EA TETTIE 3111111 111111317 22312211 CLEA TERREA N PIANA TERE HUS H E E n 3 AO bbiiasi ATT raanbkrimiaserrdd Hu HH TT TT 200480144 umi DTEEFEITITHETTTEETITTETECTEETITITEEET ET 1 00 j j 300 e EE ULT 12146937 TRISOARD T101765 3112 OKEIFKT MB 08 07 HE E s ay s AT JE ID Y E Ait o T 3 aaa SERT og IIA 2 ATP nonni c3 AIT Application Note 11 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Screenshot of the TC 1766 Starter Kit homepage http www infineon com cms en product channel html channel db3a3043 12dc768d01 12e71c62
13. Application Note 106 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Reserved do nothing TriCore VX toolset Project Options TC1766 PJT Processor m Reserved Sections eden C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas Defines Stack Heap Internal Memory External Memory Sections Output Sections Map File Libraries Optimization Warnings Miscellaneous CrossView Pro Options string format elf o tc1 66 elf d _tc1 66 IsI Ctc1766b silicon bug all tc1 766 WI M WI mcfkIMoQrSU L PRODDIR lib WI OCLTXY Cancel Default Help Y Application Note 107 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Linker Map File tick v Memory usage info TriCore VX toolset Project Options TC1766 PJT E Processor C Compiler Compiler Assembler PCP Assembler a Linker Output Format a Script File Special Areas Defines Stack Heap Internal Memory External Memory Sections Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous Map File Iv Generate a map file map Map file contains following information C Link info C Locate info Custom Call graph info Processed files info Link result info Locate result info Memory usage info Ov
14. dav Save Application Note 98 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Generate Code File or click r Generate Code DAVE will show you all the files he has generated File Viewer opens automatically Application Note 99 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application 0 2008 10 ep 997 1213997 LO 1XO 997191 y H S9338997L21 60 S9 IJ pojeJeuacy 20 86 21 8002 0L LC Infineon GHuryse L 997 LOL ep 997 LOL uonejueuunooc JOalOld S FAV 180 al 5 99ZTOL 9 Ul Sally payeiouay A x Cota eseejey 992791 aAva O au meug oe SMOPUIM suFppy suondo mel ag 9 Q Jaya amp 2 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application Close DAVE File Exit Save changes dick Y eS Application Note 61 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application 4 Using the TASKING EDE Development Tools al rit ore cul PMI Abbreviations 16 KB SPRAM ICGACHE Instruction Cache SPRAM Scratch Pad RAM LORAM Local Data RAM OVRAM Cverlay RAM BROM Boot ROM FF lash Program Flash DFlash Data Flash PRAMI Parameter RAM in PCP PCODE Code RAM in POP u Depending on the version O or 8 KB of Overlay 16 KB BROM RAM will be guaranteed to be functional 1 5 MB PFlash 216 KB emulated DFlash
15. debug line CA ATC1766 psp El TC1766 1 Project Space spe tc linear 24 TC1766 12 Files Eg Source Files Chip Group Section P og D ASCO c spe PMU PFLASH text libc reset D cstart asm spe PMU PFLASH data libc F lO c spe PMU_PFLASH rodata main tn i spe PMU PFLASH text ascO ASCO usGetData D MAIN c spe PMU PFLASH text ascO ASCO vInit D myprintf c spe PMU_PFLASH text ascO A5CO_ vSendData 1 spe PMU PFLASH text io I0 vInit i D STM c spe PMU_PFLASH text libc csa areas ge Header Files spe PMU PFLASH text main MAIN vlInit n ASCO h spe PMU_PFLASH text main MAIN vWriteWDTCONO spe PMU PFLASH text main input r n IO h spe PMU PFLASH text main main E MAIN h spe PMU PFLASH text myprintf myprintf spe PMU PFLASH text stm STM vlInit rD STM h spe PMU PFLASH text stm STM viSRNO gt D TC1766Regs h spe PMU PFLASH zdata main E Project Files spe PMU PFLASH table i spe PMU PFLASH libraries text libc ram Resources Spe PMU PFLASH libraries text libcs fpu 23 Other Files spe PMU PFLASH int tab text intvec 009 LD tc1766 map spe PMU_PFLASH trap tab text trapvec 000 spe PMU PFLASH trap tab text trapvec 001 spe PMU PFLASH trap tab text trapvec 002 spe PMU PFLASH trap tab text trapvec 003 spe PMU PFLASH trap tab text trapvec 004 spe PMU PFLASH trap tab text trapvec
16. 005 spe PMU PFLASH trap tab text trapvec 006 spe PMU PFLASH trap tab text trapvec 007 spe DMI LDRAM xvwbuffer spe DMI LDRAM ustack spe DMI LDRAM istack Customize 0x00000008 0x00000004 Ox0000011e Ox0000001c 0x00000088 0x000000la 0x000001f4 0x00000008 0x0000016c 0x0000004c 0x00000052 0x000000be 0x0000002e 0x00000058 0x00000072 0x0000004c 0x00000014 Ox000002a0 0x00000014 Ox0D000000c 0x00000014 0x000000185 0x00000018 0x00000018 0x000000185 0x00000018 0x0000000e 0x00000018 0x00000100 0x00002000 0x00000400 0xa0000000 Oxa000002c 0xa0000030 0xa0000150 Oxa0000l 6c 0xa00001f4 0xa0000210 0xa0000404 Oxa000040c 0xa0000578 0xa00005c4 0xa0000618 0xa00006d8 0xa0000708 0xa0000760 0xa00007d4 0xa0000820 0xa0080000 Oxa006802a0 Oxa0100120 0xa0102000 Oxa0102020 Oxa0102040 Oxa0102060 0xa0102080 Oxa01020a0 Oxa01020c0 Oxa01020e0 0xd000104c Oxd0001150 0xd0003150 OxD0000000 OxO0000002c Ox00000030 0x00000150 OxD000016c 0xD000001f4 Ox00000210 0x00000404 Ox0000040c 0x00000578 0xD00005c4 0x00000618 OxD000006ds 0x00000708 0x00000760 0x000007d4 Ox00000820 Ox00080000 Ox000802a0 Ox00100120 0x00102000 0x00102020 0x00102040 0x00102060 0x00102080 0x001020a0 0x001020c0 x 0l020e0 0x0000104c 0xD0001150 0x00003150 Compiling and assembling stm c Compiling and assembling ascO c ctc W560 asc0 c 0 errors 1 warnings Assembling cstart asm E
17. 2 blinking 0FF IU Pl 0 LED OFF myprintf nessage2 break j D ASCOA case 3 blinking 0N mprintf messages break y l eD IO l Ur MAIN h USER CODE END o ro 3TM h return swketurn lt gt 1C1 66Regs h 1 Project Files LOS End of function main 3 Resources Eg Other Files 0D Ite1766 map CATCT17663tc1766 map4 ff USER CODE END Compiling and assembling stm c Compiling and assembling asc c ctc W560 asc U c 262 10 possible truncation at implicit conversion to type shor O errors 1 warnings Assembling cstart asm cEJEOj 20j e Ba 0j BC Build c zm Ins Line 468 Col 3 Application Note 132 V2 0 2008 10 Infineon See Map File AP32133 TC1766 Cookery Book for a hello world application Interrupt Vector Table n File Edit Search Project Build Text Document 2 B5858 amp armuaon i x debug line CA ATC1766 psp B TC1766 1 Project Space spe tc linear 24 TC1766 12 Files de Source Files Chip Group Section i D ASCO c spe PMU_PFLASH text libc reset D cstart asm spe PMU_PFLASH data libc i spe PMU PFLASH rodata main f lO c spe PMU PFLASH text D MAIN c spe PMU PFLASH text ascO ASCO vInit O myprintf c spe PMU PFLASH text spe PMU PFLASH text io I0 vInit E D STM c spe PMU PFLASH text libc csa areas 23 Header Files spe P
18. BROM 2 F RAM will be guaranteed to be functional 1 5 MB PFlash a El E System Peripheral Bus SPB Application Note 6 V2 0 2008 10 oT t AP32133 In fi n eor TC1766 Cookery Book for a hello world application TC1766 Block Diagram Source Product Sheet Abbreviations PMI x ICACHE Instruction Cache 16 KB SPRAM HILUIG Ao SPRAM Scratch Pad RAM 56 KB LDRAM 8 KB ICACHE LDRAM Local Data RAM OVRAM Overlay RAM BROM Boot ROM PFLASH Program Flash DFLASH Data Flash PRAM Parameter RAM in PCP PCODE Code RAM in PCP LFI Bridge Local Memory Bus LMB 16 KB BROM 1504 KB PFLASH 32 KB DFLASH 0 8 KB OVRAM Emulation Memory Interface Interrupt OCDS Debug 8 KB PRAM System Interface JTAG Overlay Mechanism STM FPI Bus Interface Interrupts 12 KB PCODE System Peripheral BUS SPB PLL d Analog Input Assignment Ext MultiCAN HCM MONTIS Bu Unit 64 Buffer MLI1 MLlo Mem Check 1 Depending on the versi o or 8 KB of Overlay RAM will be guaranteed to be functional Application Note i V2 0 2008 10 e tc AP32133 In fi n eon TC1766 Cookery Book for a hello world application TC1766 Block Diagram Source User s Manual PMI DMI 16 KB SPRAM 56 KB LDRAM 8 KB ICACHE Abbreviations ICACHE Instruction Cache SPRAM Scratch Pad RAM LDRAM Local Data RAM Local Memory Bus LMB OVRAM Overlay RAM PMU BROM Boot ROM PFlash Program Fla
19. BYORI Wn EGSFTEI LEE EU T HRT UL iti PT LLL ae EL 1 5i ii ii iii E RB amp iiini i wraetive TELE DELE r PTTL nn pr Lad nas ras ma ie zaa ma rr Ras aa crm r m ore oes E LN NE ME siitti 445444411 te TE he en fe on T H 11114331 ir rr dd 2 35 2525 22525 pee Ree eee eens TI 3323000202 HEIL TC1766 Execution Environment OnChip 10 17 V2 0 2008 Application Note e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Accessories for the TC1766 Starter Kit Extension Boards TriBoard XC16x Adapter Board to have access to all microcontroller pins Stencils are available with the Board Jaj a 4s Lum a gt d m m a 0 T olelelolalelelelalalalelolalalaloalala SUT da A LETRAS ERBEN AAN 611 44 oo Pele TUX od DD DOO 8B HBB Hee Bee eo Be o ols Fu Lu Ordering information Name TriBoard XC16x Adapter Platine The price is approximately 32 per extension board 3 required Purpose extension boards are used for easy measuring of the signals on the extension connectors to have access to all microcontroller pins and or to connect either a part of or the entire application to the TC1766 Starter Kit You can order them at TQ Components GmbH SchulstraDe 29a D 82234 WeBling Deutschland T 49 8153 9308 161 Mr Rolf M ller Appli
20. Col 3 No errors found Application Note 130 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Insert Map File Project Window File View TC1766 Files right mouse button click Add Existing Files Browse Select TC1766 map Imyprintf src 3ITC1766 bak stc1766 m MAIN h sISTM bak sITC1766 dav tc1766 o Imain o EISTM c 3 TC1766 dpt CTC1766 p Imain src ISTM h ltc1766 elf TC1766 p mconfig lstm o ltc1766 err Z TC1766 r I myprintf c istm src tc1766 mak ITC1766 s sImyprintf o 3 TC1766 asm SEIT NUES sltc1766b pu kj File name tol FOG map Files of type A Files r Cancel Heli NS amp Open OK Application Note 131 V2 0 2008 10 e tc AP32133 In fi n eon TC1766 Cookery Book for a hello world application TASKING EDE TriCore VX toolset C 1TC17661 10176600000 m gt 4 File Edit Search Project Build Text Document Customize Tools Window Help _ x 85 8595 saje 5g mum MAIN vIniti cl Ca 4101766 psp l gt E TC1766 1 Project ray 101766 12 Files USER CODE BEGIN Main 9 2 3 Source Files o OLET Pod while 1 np ASCD c P D estart asm EEN myprint f menu E 5 ID c select input i amp D MAIN c SE myprintf c switch select E T1 STM c case 1 blinking 0FF I0 Pl O LED ON myprintf nessagel break 2 3 Header Files case
21. EISTM c 3 tc1766 m imAscoh 9 tc1766 inc sIMAIN bak ISTM h tc1766 0 l ooh tc1766 lsl MAIN c S TC1766 asm CITC1766 p B MANh HASCO c 5l MAIN h 1TC1766 bak TC1766 p HB STMh SASCO h sImconfig slTC1766 dav Z TC1766 rl D TC1766Re Slcstart asm Imyprintf c 21TC1766 dpt ITC1766 s Ca Project Files E TO sISTM bak altc1766 err altci766b 1 2 41 Resources E Other Files Ba File name Imyprintt c Files af type E Files Cancel Helt eFJrEol ojeBlao sc e J e ns Line28 Col 1 Open OK Application Note 126 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Edit File Window Help xl CA ATC1766 psp TC1766 1 Project e 101766 11 Files 543 Source Files HD ASCO c 2 D cstart asm Dr 10 6 Search D MAIN c D Imyprintf c CATC1766 myprintf c Bx Tools en x Project Build Text Document Customize include main h ail include ASCO H void mprintfi const char p while p 1f ASCO ubTxBufFree 11 ASCO vsendData p FE fe Example 1 use of mypri O STM c myprintf Hello World 243 Header Files Ly ASCOA ff Example 2 use of myprintf Po D 10 h Poid ma infroid A f D MAIN char mb 200 message buffer for sprintf 2 O STMh int dummy 2 O TC1766Regs h sprintf mb Variable wait d dummy Write formatted data to string mb E
22. Heap Internal Memory External Memory Sections Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous CrossView Pro H H Application Note Special Areas Start Addresses RESET start address PMU_PFLASH Libraries start address PMU_PFLASH Interrupt table start address PMU_PFLASH Trap table start address PMU PELASH CSA start address DMI LDRAM A0 area start address A area start address A8 area start address AS area start address Options string format elf o tc1766 elf d tc1766 Isl Ctc1766b silicon bug all tc1766 a WI M WI mcfkIMoQrSU L PRODDIR lib WI OCLTXY z Cancel Default Help Wz 89 V2 0 2008 10 e tc AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Program Memory Data Memory The On Chip PMU_PFLASH memory has a capacity of 1 504 KBytes The On Chip DMI_LDRAM memory has a capacity of 56 KBytes PMI DMI LDRAM 16 KB SPRAM 56 KB LDRAM umen 8 KB ICACHE Abbreviations ICACHE Instruction Cache SPRAM Scratch Pad RAM Local Memory Bus LMB ater DUM RAMS BROM Boot ROM 16 KB BROM PFlash Program Flash B Pflas DFlash Data Flash 190 acu PRAM Parameter Memory in PCP LFI Bridge CMEM Code Memory in PCP LMB Local Memory Bus 0 8 KB OVRAM SPB System Peripheral Bus HA Shaded Only available in TC1766ED K 4 8KB PRAM OCDS Debug
23. MAIN h if HD SIM h ff BBrototypes OF Global Functions AAA ARRE AAA AAA a a occa abo a cac aLa oa a Loa a Loa La aca Lo o cac Lo a ac occa a o oc coc La aba a aab aL EE void HAIN wvilriteWDTCOHU uvord uwValus USER CODE BEGIN MAIN Header 8 USER CODE END AAA ARRE AAA a atat o a o oc La abo co La oa o La a ALAS aca Lo co c aL Lo coc oc aca a o oc coc La aba o ab AH Se f Macro MAIN vSsetENDINIT of Build TEE h 119 V2 0 2008 10 rf AP32133 In fi neon TC1766 Cookery Book for a hello world application Double click STM c insert User Code for interrupt service routine STM_CMPO STM_CMP0 20000000 20 000 000 50 ns I s if RS232 wait RS232 wait if blinking IO vTogglePin IO P1 0 File Edit Search Project Build Text Document Customize Tools Window Help _ x 2 8 sBH amp mmo B pg ad CARAS el USER CODE END ih CA ATC1766 psp void INTERRUPT STM INTO STM viSRH0 void E TC1766 1 Project i EB 101766 10 Files f USER CODE BEGIN SEN0 2 Af Source Files D ASCO c HD3 estartasm if STM_ICR_CMPOIR 1 if compare match of CMPO is pending a i E D ID c USER CODE BEGIN 5EN0 3 D MAIN c STM CMPO STM CMPO 20000000 20 000 000 50 ms 1 s n Eg Header Files ff USER CODE END ifiRS232 wait RS232 wait H3 ASCO h m lO h if blinking a IU vlogglePin I0 Pl 0 FD MAIN h ff USER CODE END D STM h 1 TC1766Regs
24. Project Files Aa E O Resources gt L Other Files Build A File Find Shell Symbols cFJEOj 0jeBJeo Bc m D c c 20 xr E EE EN lA E Application Note 127 V2 0 2008 10 rf AP32133 In fi neon TC1766 Cookery Book for a hello world application Double click Main h and insert Prototypes of Global Functions extern void myprintf const char p TASKING EDE TriCore VX toolset C TC1766 T 6 olx File Edit Search Project Build Text Document Customize Tools Window Help X 9 gt 8sb Ss BBQ al 8 al HE f USER CODE BEGIN MAIN Header 7 extern volatile unsigned int blinking extern volatile int ES5z3Z wait ff USER CODE END CA ATC1766 psp El TC1 66 1 Project TC1766 11 Files na Source Files ff SEE dab da doa oo oP a o Labo Loa RR Loo Lo ob La a Lab aa RRA RAR AR RRA RARA Lob a baba fe Prototypes Of Global Functions a ASCO C ERA AREA RRA AAA AAA AREA AAA RARA AAA RRA RARA AR RA ARRE RRA RRA AA HD estart asm Po void HATH wvilriteWDTCOHU uword uvvaluel FA lO c DL MAIN c FD myprintf c E STM ff USER CODE BEGIN MAIN Header 8 D E extern void myprintf const char p 23 Header Files USER CODE END HD ASCO h pu E E ii iia D IO h m n MAIN h Macro MAIN vSetENDINIT fe 0 STM h e eee 2 C TC1 66Regs h f escription This macro sets the EndInit bit which controls access to Lu of system critical registers Se
25. TC1766Regs h Ld Project Files 3 Resources E Other Files endif ss ifndef MAIN H JE Build ES from the clipboard MOR Ins SEE Line 221 Col 30 Application Note 129 V2 0 2008 10 e tc AP32133 In fi n eon TC1766 Cookery Book for a hello world application Generate your application program Build Rebuild or IBix File Edit Search Project Build Text Document Customize Tools Window Help m X e j amp 5885mm yve 88BWIP A Umm m zx CA ATC1766 psp E TC1766 1 Project 54 TC1768 11 Files 54 Source Files HD ASCO c 2 D cstart asm D 10 0 IR MAIN 2 C myprintf c D STM c 2 3 Header Files DO ASCO h D 10 h D MAIN h DL STMh D TCT766Regs h E 5 Project Files E 3 Resources E Other Files ff USER CODE BEGIN Main 9 while R 232 wait while 1 myprint f menu select imput switch select 1 case l blinking FF IO Pl O LED_ON myprintfi messagel break case z blinking FF 10 Pl 0 LED_ OFF myprintf messages break case 3 blinking N myprintf messages break ff USER CODE END returnizwEeturn LOS End of function main Compiling and assembling stm c Compiling and assembling asc c ctc W560 asc U c 262 10 possible truncation at implicit conversion to type shor 0 errors l warnings Assembling cstart asm Compiling and assembling myprintr c or e m lins Line 468
26. assembly optimizations Function inlining Instruction scheduler Loop transformations SIMD Kiki K O KI aa IK K T All addresses available for CSE evaluation Maximum size increment inlining 35 Maximum size for functions to always inline Options string Wc no tasking sfr Ctc1 66b Wc c99 Wc Ax Wo g switch auto We align 1 c O0 inline max incr 35 inline max size 10 Wc N8 I PRODDIR include silicon bug all tc1766 Cancel Default Help Y Application Note 81 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application C Compiler Allocation do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Preprocessing Language Debug Information Code Generation Miscellaneous Assembler H PCP Assembler 4 Linker CrossView Pro Application Note 82 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application C Compiler Warnings do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Preprocessing Language Debug Information Code Generation Miscellaneous Assembler H PCP Assembler 4 Linker CrossView Pro Application Note 83 V2 0 2008 10 AP32133 Ju In fi n eor TC1766 Cookery Book for a hello world application C Compiler MISRA C d
27. h O Project Files 1Resnurces if STM ICR CHPlIR 1 if compare match of CMP1 is pending STM ISBR CMPOIRR 1 Z clear request bit of CMPO e L3 Other Files USER CODE BEGIN SRNO 4 USER CODE END STM ISBB CHPIIBB 1 clear request bit of CMPi y USER CODE BEGIN SEN0 5 ff USER CODE END 1 F End of function SIM visENO wm JE Build Oo o Mod Ins Line 258 Col 31 Note 20 000 000 50 ns 1s To get an STM interrupt every 1 second you must change the Compare Value to STM_CMP0 20000000 Application Note 120 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application August 2003 Reason for myprintf c Unfortunately a low level I O implementation similar to example project IO which consists of serio c and serio h files for generating an output stream for printf using ASCO using tool chain C166 ST10 is currently not available for Tasking TriCore tools For the moment Tasking has only got the following Change Request CR32186 CR Example for _write function implementation using serial interface DESCRIPTION Change request for a low level I O _write function implementation example which does not use simulated I O but uses the real serial interface of the controller EXAMPLE WORKAROUND Application Note 121 V2 0 2008 10 AP32133 In fi n eon TC1766 Cookery Book for a hello world app
28. 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 157 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application 6 Feedback TC1766 Your opinions 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 158 V2 0 2008 10
29. j m IO h D MAIN h gt S a S S S a l a a a l l l a l l a D STM h spe DMI LDRAM 0x0000e000 Ox0000354ec 24 Ox0000aab4 76 Ox0000aabo 76 j i spe PCP CHEN oxO0003000 0xoo0000000 oO OxOODOUSDOOD 100 0x00003000 100 O TC1766Regs h spe PCP PRAM 0x00002000 OXxX00000000 O OxX00002000 100 OxX00002000 100 3 Project Files spe PMI SPRAM OxDO0004000 OxX00000000 oO Ox00004000 100 0x00004000 100 SR spe PMU EROM 0x00004000 Oxo0000000 O Ox00004000 100 0x00004000 100 d b n spe PMU OVRAM OX00002000 OX00000000 O OxODO02000 100 OxD0002000 100 243 Other Files PMU PFLASH 0x00178000 Oxogoo0b9a 1 0x00177466 99 Ox0007fe6c 34 TE tc1 66 map Ei Compiling and assembling stm c Compiling and assembling asc c ctc W560 asc c 262 10 possible truncation at implicit conversion to type short unsigned O errors l warnings Assembling cstart asm Em n and on myprinttf c HE CATC1766 tc1766 map Oo Ins Line 439 Col 86 Application Note 135 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application Now you can close your project and Tasking EDE File Close Project Space File Exit Application Note 136 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Start pls Debugger gt UDE Desktop Elle Edit Show Config Window Help bes a a y
30. 00 Baud 8 bit Data no Parity Bit 1 Stop Bit Xon Xoff Protocol Power On the Board and see the result CXTERMINAL EXE E g x out of OnChipFlash LED IO Port 1 Pin H LED IO Port 1 Pin H LED IO Port 1 Pin BH blinking your choice 1 weet IE Ea TC1766 Program execution out of OnChipFlash LED IO Port 1 Pin H LED IO Port 1 Pin H LED IO Port 1 Pin BH blinking your choice m Application Note 156 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application Conclusion In this step by step book you have learned how to use the TC1766 Starter Kit together with the Tasking tool chain Now you can easily expand your hello world program to suit your needs Y ou can connect either a part of or your entire application to the TC1766 Starter 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 TC1766 Starter Kit Note There are step by step books for 8 bit microcontrollers e g XC866 XC88x and XC878 16 bit microcontrollers e g Cl6x XC16x and 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
31. 000 OxAO03FFFF 128K OxA0040000 OxAO07FFFF 256K Verify General 0xA0080000 OxAOOFFFFF 512K 0xA0080000 0xA00802B3 Protect 0xA0100000 OxA0177FFF 480K 0xA0100120 0xA010012B 0xA0102000 0xA0102013 0xA0102020 0xA0102037 SW Prot Program All 0xA0102040 0xA0102057 v Remove Sel Program Help Info Verify All Sector is protected E SG Controller0 Core UDEMemtool FLASH programming for device 1 5 MByte OnChip Program FLASE A SG Controller0 Core UDEDebugServer Connection to TC1766 target monitor established Tricor SG Controller0 Core UDEDebugServer Program with ID 0x1 code size 2978 bytes was loaded 14 4 gt gt Command For Help press F1 Controller0 Core C TC1766 TC1766 cfg OxA000 Ln 41 Controller0 Core ha y Application Note 153 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application File Edit Debua Show Views Tools Confia Window Macro Help eae Oceeca m xelsEkE oxaugguammmnogm Ros e 29o5 t Execute Memtool Command x FLASH OTP Memory Device fi 9 MByte OnChip Prograr Current FLASH OTP Device n 5 MByte OnChip Program FLASH 0xAO0000000 0xA0000000 0xA00001 0xA0000150 OxA00007 Operation 0xA00007D4A OxA0000 gt 0xA0020000 success 0xA0040000 0xA0080000 0xA0080000 0xA00802 Progress 0xA0100000 0xA0100120 0xA01001 0xA0102000 0xA0102C 0xA0102020 0xA0102C Progra
32. 00018 0x00000018 Ox0000000e 0x00000018 0x00000100 0x00002000 0x00000400 0xa0000000 Oxa000002c 0xa0000030 0xa0000150 Oxa0000l6c 0xa00001f4 Oxa0000210 0xa0000404 Oxa000040c 0xa0000578 0xa00005c4 0xa0000618 0xa00006d8 0xa0000708 0xa0000760 0xa00007d4 0xa0000820 0xa0080000 0xa005802a0 0xa0100120 Oxa0102000 Oxa0102020 0xa0102040 Oxa0102060 0xa0102080 Oxa01020a0 Oxa01020c0 Oxa01020e0 0xd000104c Oxd0001150 0xd0003150 OxD0000000 OxDO000D002c OxD0000030 0x00000150 OxD000016c 0xD00001f4 Ox00000210 0x00000404 0x0000040c 0x00000578 0xD00005c4 OxO00000618 OxD00006ds 0x00000708 0x00000760 0x000007d4 0xD0000820 Ox00080000 Ox000802a0 0x00100120 0x00102000 0x00102020 0x00102040 0x00102060 0x00102080 0x001020a0 0x001020c0 0x001020e0 0x0000104c 0x00001150 0x00003150 Compiling and assembling stm c Compiling and assembling asc O c ctc W560 asc0 c 0 errors l warnings Assembling cstart asm EUNDI ng and odere nyprintf E 262 10 possible truncation at implicit conversion to type short unsigned int File CATC1766 tc1766 map o e amp Ins Line 224 Col 104 Note Click here to see Memory Map Application Note 133 V2 0 2008 10 Trap Vector Table Infineon AP32133 TC1766 Cookery Book for a hello world application k File Edit Project Build Text Document e 2 acdH amp tf amp ao 4
33. 10 AP32133 TC1766 Cookery Book for a hello world application ga MN 1 Lo Fal IB DN 2 mi Fhe Laie E E i d J rx 1 uh fe 1 D PEN Yi SEU Y File Edit Debua Show Views Tools Confia Window Macro Help 5m amp Demaza PDF Viewer Window ga uEEE m Macros Manage Macro Storage Y Run selected Macro Break Macro Et Reload selected Macro ES Execution Time Setup E SG Controller0 Core UAD2CommDev TriCore JTAG OCDS Debug Pra SG Controller0 Core UDEMemtool FLASH programming for devi SG Controllero Core UDEDebugServer Connection to TC1766 tas b id 4 gt Command Open FLASH programming interface Controller0 Core C TC1766 TC 4 Application Note 147 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application FLASH OTP Memory Device check select 1 5 MByte OnChip Program FLASH FLASH OTP Memory Device check tick v Enable gt UDE Desktop C TC1766 tc1766 wsp Controller0 Core Comma File Edit Debua Show Views Tools Confia Window Macro Help ias D szaga 0 8 SEI ADO Bor 299wu vu UDE FLASH OTP Memory Programming Tool FLASH OTP Memory Device 1 5 MByte OnChip Program FLASH v F Enable 0xA0000000 0xA001FFFF 128K Bemove All Erase About 0xA0020000 OxAOOSFFFF 128K 0xA0040000 OXADO7FFFF 256K OxA0080000 OXADOFFFFF 512K 0xA0100000 OxAO177FFF 480K Remove Sel Program Hel
34. 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application Open program file Look in select TC1766 Open program file File name select tc1766 elf Open program file Look in arci 766 y cf Fav TC1766 CS __ tc1766 el My Documents My Computer TA My Network Pla File name rci 766 elf m Files of type Binary target files out elf v a SG Controller0 Core UAD2CommDev TriCore JTAG OCDS Debug Protocol V3 8 4 ID 1 opened SG Controller0 Core UDEMemtool FLASH programming for device 1 5 MByte OnChip Program FLASH SG Controller0 Core UDEDebugServer Connection to TC1766 target monitor established Tricor 4 4 gt Command For Help press Fi Controller0 Core C TC1766 TC1766 cfg Controller0 Core halted by user bre y Open Application Note 152 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Click Program AII i UDE Desktop C TC1766 tc1766 wsp Controller0 Core C T 1176 A File Edit Debua Show Views Tools Confia Window Macro Help xeealnamaugmm xelss acxacsugdaesmmsog sos vlje rator vi dl C TC1766 main c PR UDE FLASH OTP Memory Programming Tool x SwR FLASH OTP Memory Device 15 MByte OnChip Program FLASH v iv Enable OxA0000000 OxAOOTFFFF 128K Remove All Erase About 0xA0000000 0xA000014D 0xA0000150 0xA00007D1 0xA00007D4 0xA0000833 0xA0020
35. 15 0b30 File Edit View Favorites Tools Help E Starter Kit TC176X Infineon Technologies Infineon Technologies Back v gt 9 3 4 Asearch Folders Favorites 4 Gl Sv Av 35 v 8m ER iS Address amp http www infineon com cms en product channel html channel 2db3a304312dc768d01 v Go Links Cinfineon Never stop thinking Get Product information Y Select a Category Microcontrollers MCU Derivates SAK TC1755 192F80HL SAK TC1764 128F80HL SAK TC1752 128F80HL SAK TC1 762 1 28F66HL The Family Starter Kit is equipped with the S4K TC1766 192FSDHL as superset for the TC176x family CPU Clock 80 MHz Includings TriBoard Hardware LISB cable Extension Board Getting Started first 3 Steps to install the Tools set up your Hardware write and debug the first program Technical Documentation e g User manuals System unit and Peripheral unit amp rchitecture manual amp pplication notes Data Sheets Board Documentation pdf version Evaluation Versions of Development Tools e g Compiler Debugger from Tool Partners On Chip Memory 1 5 MByte embedded program flash with ECC 32 KByte data flash for scalable EEPROM emulation 76 KByte on chip SRAM 8 KByte instruction cache Interfaces One USB connector for ASCO Interface via virtual COM port JTAG OCDS Level 16 pin header for JT AG interface OCDS Level 1 2 x 10pin 2x5 header for C
36. 16 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Infineon Double click Main c insert User Code while RS232 wait while 1 myprintf menu select input switch select case 1 blinking OFF IO_P1_0 LED_ON myprintf messagel break case 2 blinking OFF IO_P1_0 LED_OFF myprintf message2 break case 3 blinking ON myprintf message3 break 5 File Edit Search Project Build Text Document Customize Tools Window Help ae e asua aloe CA ATC1766 psp El TC1766 1 Project a TC1766 10 Files 3 Source Files n ASCO c D cstart asm e E IO c D STM B aa Header Files USER CODE BEGIN Main 7 ff USER CODE END default USER CODE BEGIN Main 8 ff USER CODE END MAIN vInit USER CODE BEGIN Main 9 HD ASCO h while RS232 wait D IO h while 1 D MAIN l D STMh n TC1766Regs h Piin Files b 2 Other Files myprintf menu select input switch select case l blinking 0FF IO Pl 0 LED_ON myprintf messagel break case 2 blinking 0FF IO Pl O LED_OFF myprintf message2 break case 3 blinking 0N myprintf nessage3 break USER CODE END return swReturn End of function main Ic from the clipboard o e a Mod Ins ER E Line 468 Col 3 Build Application Note 117 V2 0 2008 10 rf AP32133 In fi neon TC1766 Cookery Book for
37. 33 In fi n eor TC1766 Cookery Book for a hello world application C Compiler Debug Information do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Preprocessing Optimization Allocation Miscellaneous Assembler PCP Assembler 4 Linker CrossView Pro Application Note 79 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application C Compiler Code Generation do nothing TriCore VX toolset Project Options TC1766 PJT Processor eee n Choose most optimal code Compiler Preprocessing E Miscellaneous Assembler PCP Assembler 4 Linker CrossView Pro Application Note 80 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application C Compiler Optimization Optimization level select No optimization TriCore VX toolset Project Options TC1766 PJT Processor C Compiler H C Compiler Preprocessing Language Debug Information Code Generation Optimization Allocation Warnings MISRA C Miscellaneous Assembler PCP Assembler Linker CrossView Pro EH cH EH CH Optimization Optimization level No optimization size speed trade off Custom optimization Coalescer remove unnecessa ry Moves Common subexpression elimination CSE Expression simplification Control flow optimization and code reordering Generic
38. 766 mea baaa S SS SS SS Mn 2 Application Note 34 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Pin Selection Alternate Pin Selection Configure pins ASCO RXDO and ASCO TXDO ASCO TXDO ASCO TXDO Pin Selection click Use pin P3 1 as ASCO output signal File View Options Add Ins Windows da Dau fus Uu 2s NY e0 H e cs yp ASCO TXDO Pin Selection C No pin as ASCO_TXDO selected Use pin P3 1 as ASCO output signal ASCO_TXDO C Use pin P3 13 as ASCO output signal ASCO_TXDO Push Pull Open Drain Driver Mode l Activate open drain function for P3 1 Driver of P3 1 Strong driver sharp edge v M Activate open drain function for P3 13 Driver of P3 13 Strong driver sharp edge y TC1766 Waa SS SS SS SS SS SS SS SS Exit and Save this dialog now by clicking Es the close button Application Note 35 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Control Receiver Enable tick Y Enable receiver REN File View Options Add Ins Windows oa Dau f us Mode Control M C bit data synchronous 8 bit data asynchronous C T bit data parity asynchronous C 9 bit data asynchronous C 8 bit data wake up asynchronous C 8 bit data parity asynchronous Error Check Enable overrun check OEN Enable framing check FEN l Enable parity check PEN Receiver Ena
39. 96 Sector PS11 Sector PS10 Sector PS9 Sector PS8 Sector PS7 Sector PS6 Eccl PS5 PS4 Sector PS3 PS3 a 256 byte Page PP63 ES PS1 256 byte m PPO Sector Application Note 95 480 Kbyte 512 Kbyte 256 Kbyte 128 Kbyte 1504 Kbyte PFLASH Bank Physical Sector 0 PPSO 128 Kbyte V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Program Memory Source User s Manual The on chip PMU PFLASH memory has a capacity of 1 504 KBytes Cached Non Cached Address Range Address Range PFLASH Bank AG 1504 8000 0000 8017 7FFF A000 0000 A017 7FFF Kbyte PFLASH Sectors E T S2 gt S4 2 i E Application Note 96 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Program Memory Source User s Manual The on chip PMU PFLASH memory has a capacity of 1 504 KBytes Y Adobe Reader TC1766_um_v2 1 0_2007_07 pdf File Edit View Document Tools Window Help MSIE 21 c E 8 3 1 Segments 0 to 14 Table 8 2 shows the address map of segments 0 to 14 as it is seen from the SPB bus i masters PCP DMA and OCDS Table 8 2 SPB Address Map of Segment 0 to 14 Seg Address Description Access Type ma Read Wo 0 7 0000 0000 8 byte Reserved virtual address MPN trap 0000 0007 4 space
40. A AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA JE Build a from the clipboard TUTTA Ins EE Line 63 Col 16 Application Note 118 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Infineon Double click Main h and insert Global Variables extern volatile unsigned int blinking extern volatile int RS232 wait Edit File Window e a Aa Help CA ATC1766 psp El TC1 66 1 Project aa 1C1766 10 Files He Source Files 3 TC1766Regs h fi Project Files Resources Other Files a from the clipboard TTD TT Line 136 Col 32 Application Note Search Build Text Customize Document Project 10 X Tools 5 x 4 Fa oe ot oe oe oe AAA AAA AAA AAA AAA AAA AA AAA AAA AA AAA AA AAA AA AAA AAA AAA AAA AAA AA AAA ef Imported Global Variables AAA RARA AAA TRA AREA RARA RRA ld La Loa dL LLL occa Lo o AREA ARA USER CODE BEGIN MAIN Header 6 f f USER CODE END O ASCO c m cstart asm Peet FELLAS AAAS ALAA ALLA o o oc La abo AAA AAS A La La Loa dL aca Lo c ca LL Lo coc occa a o o SAHA AAAS LALA E P 10 Global Variables dE sft SE ESE a 2 oP Er oo 2 oo SE oo a a oo a XXE D MAIN c i iD SIM c J USER CODE BEGIN MAIN Header 7 extern volatile unsigned int blinking nis Header Files extern volatile int R3232 wait O ASCO h USER CODE END D 10 h z n A e e e SHAS RSFSR ee SA e eee i 7
41. A T s S II i Note We strongly suggest that you check first to see if your board is equipped with a 15 MHz Crystal default Note The final result should be 80 MHz CPU Clock and 80 MHz System Clock Application Note 25 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Interrupt System CPU Global Interrupt Enable tick v Enable globally the interrupt system IE File View Options Add Ins Windows on Oe us Renee neun einn inh hh n hh hh ahhh n eaa ene h n haa oan ha an eoa enhn nnn nn CPU Global Interrupt Enable 7 Enable globally the interrupt system IE Number of Arbitration Cycles CARBCYC Four arbitration cycles max 255 interrupt sources C Three arbitration cycles max 63 interrupt sources C Two arbitration cycles max 15 interrupt sources C One arbitration cycle max 3 interrupt sources Number of Clocks per Arbitration Cycle CONECYC Two clocks per arbitration cycle C One clock per arbitration cycle for low frequency TC1766 AES IIS Application Note 26 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application PCP System do nothing File View Options Add Ins Windows ea Da a 003 PCP Enable Control l Enable globally the PCP system EN Number of Arbitration Cycles ARBCYC Four arbitration cycles max 255 PCP channels C Three arbitration cycles max 63 PCP chann
42. AN High Speed Transceiver CANO and CANT Four 80 pin connectors male four 80 pin connectors female with all I O signals 2 x SUB D9 Plug connector for FlexRay optional ETK connector optional Components Infineon s Next generation micro controller supply TLE 7368 G Three LEDs to validate power supply SVolt 3 3 Volt 1 5 Volt 2 x Infineon s High Speed CAN Transceiver TLE 6250 G33 USB to UART bridge FT2232D FTDI SPI EEPROM Atmel LED indicating HDRST ESRO active state LED indicating active mini MVigaler LED switched via DAS software 8 general purpose LEDs Reset switch 8 pin Dip switch Hardware Boot Configuration Infineon s FlexRay Communication Controller S amp K CIC310 optional 2 x FlexRay Transceiver 458221 4MS or TJ amp 1080 NXP optional Order Hr KIT TC176x SK Price 400 EUR How to order GE or please contact your local distributor http www infineon com distribution recommended retail price Home Sitemap Select Language Login About Infineon gt Search Website Go Search Part unter T60 c Print Page L amp I Send Page Ask Infineon International Toll Free 0 0 800 951 951 951 Direct amp ccess Infineon is happy to help you gt Infineon Service Center Where to buy Please use our location finder to get in contact with your nearest Infineon distributor or sales office b Find a locatior el CC
43. Application Note V2 0 October 2008 AP32133 1C1766 1C1766 Starter Kit Cookery Book for a hello world application using Attium s TASKING TriCore toolset Microcontrollers nn Infineon Never stop thinking Edition 2008 11 14 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
44. CATC1766 Filename TC1766 v Look in same directory for external workspace Workspace Type F Auto sync workspace Browse OK Cancel Help A Application Note 65 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application Click eu Add new project to project space TASKING EDE TriCore v olset File Edit Search Project Build Text ent Customize Tools Window Help e gt 8 e HZ vom mla o PATA sk A wo cae oA uu ini MB M AA C ee ee n Project Properties CA ATC1766 psp E TC1766 0 Projects i Default Settings Directories Members Tools Filters E TC1766 0 Projects Project Space C A TC1 66 TC1 6t Projects E j X m E Add new project to project space Alt N T Hide projects already in project space External Workspace E u lt none gt E Application Note 66 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Add New Project to Project Space Filename insert TC1766 B TC1766 0 Projects Default Settings TC1 66 0 Projects ajx m m Add New Project to Project Space x TC1766 Iv F Auto sync makefile OK Application Note 67 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application Click Add existing files to project TASKING EDE TriCore VX to l 1 File E
45. Config Files cfg y OE ancel ForHelp press EP ai DIS Corny Save Application Note 142 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Select Target Configuration Last Used Browse File Edit lt Poems Folder to browse care 7661 v i Files in folder M Show descriptions Triboard with TC1 766 JL AG OCDS WEA Fes Lt New Copy Edit Remove Cancel Help For Help press F1 pum MSS HESS OK Application Note 143 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application X 2E UDE Desktop C 1TC17661tc1766 wsp Controller0 Core Command View Views Tools Confia Window Macro Help e Osgrsa xealgE uxauggdgaumnumgnos l e 0 2 amp 4 Controller0 Co Workspace Workspace file C i1TC17661tc1766 wsp used Workspace Actual ude release version 2 02 03 Workspace Additional ude update version none Workspace Target configuration file C i1TC17661TC1766 cfg used Controller0 Core UAD2CommDev Wait for restart UAD2 4 sec Controller0 Core UAD2CommDev TriCore JTAG OCDS Debug Protocol V3 8 4 ID 1 opened Controller0 Core UDEMemtool FLASH programming for device 1 5 MByte OnChip Program FLASH ready Controller0 Core UDEDebugServer Connection to TC1766 target monitor established TriCore Core ID 200DB083h 4 4 gt gt h Comma
46. CrossView Pro Application Note 104 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Sections do nothing TriCore VX toolset Project Options TC1766 PJT Processor Sections o Tapa ompiler Assembler PCP Assembler Linker Output Format Script File Special Areas Defines Stack Heap Internal Memory External Memory Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous CrossView Pro Options string format elf o tc17606 elf d _tc1 66 IsI Ctc1766b silicon bug all tc1766 WI M WI mcfkIMoQrSU L PRODDIR ib WI OCLTXY Cancel Default Help Y Application Note 105 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Output Sections do nothing TriCore VX toolset Project Options TC1766 PJT Processor Mine i C Compiler Sections Location Type Fill Assembler PCP Assembler c Linker Output Format E Script File Special Areas Defines Stack Heap Internal Memory External Memory Sections Reserved Map File Libraries Optimization Warnings Miscellaneous CrossView Pro Options string format elf o tc17606 elf d tc1766 Isl Ctc1766b silicon bug all tc1766 WI M WI mcfkIMoQrSU L PRODDIR lib WI OCLTXY Cancel Default Help Y
47. Interface JTAG PCP2 Core Overlay Mechanism FPI Bus Interface Interrupts Li 2 12 KB CMEM DMA Bus co a o o 2 ea T i 0 XL a o a E I o o gt 109 Analog Input Assignment Multi CAN 2 Nodes Mem MLI1 MLIO Application Note 90 V2 0 2008 10 e tc AP32133 In fi n eon TC1766 Cookery Book for a hello world application Memory Map On Chip Program Flash PMU PFLASH 10xA017 7FFF l Size i 483 072 Bytes 471 75 KBytes i l NOT ALLOCATED l l 0xA010 2100_ _ _ oxA01 0 20FF I l Trap Vector Table Size 8 8 Words 8 32 Bytes 256 Bytes 0 25 KBytes 0x100 Bytes 1 5 Mbytes OnChip BTV gt 10xA010 2000 PFLASH 0x4010 1 FFF I I Interrupt Vector Table Size 256 8 Words 256 32 Bytes 8192 Bytes 0x2000 Bytes 8 KBytes BI V gt 0xA010 0000 OxAOOF FFFF Libraries start address 0xA007 FFFF I I Reset start address Application Note 91 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Interrupt Vector Table Remember File View Options Add Ins Windows 2 n OH Hos Y DAVE TC1766 Release v1 0 4 System Timer STM CPU Interrupt max 255 PCP Interrupt max 255 Level 16 Level 15 Level Note To change the level and the group of an interrupt source click on it drag it to its new position and dr
48. M NM MM I LI Application Note 110 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Warnings do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas BDefines Stack Heap Internal Memory External Memory Sections Output Sections Reserved e Map File Libraries Optimization Warnings Miscellaneous E CrossView Pro Application Note 111 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Miscellaneous do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas BDefines StacK Heap Internal Memory External Memory Sections Output Sections Reserved e Map File Libraries Optimization Warnings 4 CrossView Pro im K a lt OK Application Note 112 V2 0 2008 10 etc AP32133 In fi n eon TC1766 Cookery Book for a hello world application Insert your application specific program Note DAVE doesn t change code which is inserted between USER CODE BEGIN and USER CODE END Therefore w
49. MHz v TC1766 SESS QQ UUI U I Application Note 32 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Pin Selection Alternate Pin Selection click Configure pins ASCO_RXDO and ASCO TXDO File View Options Add Ins Windows on Dem Gow Jm ota 2 Module Clock Pin Selection Control Baud Rate Interrupts Functions Parameters Notes General Operating Mode M Full duplex asynchronous operating modes C Half duplex 8 bit synchronous operating mode Alternate Pin Selection TC1766 Heu palati rS SS gt Application Note 33 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Pin Selection Alternate Pin Selection Configure pins ASCO RXDO and ASCO TXDO ASCO RXDO0 ASCO RXDO Pin Selection click Use pin P3 0 as ASCO receive input signal Pin Selection Alternate Pin Selection Configure pins ASCO RXDO and ASCO TXDO ASCO RXDO Pull Device P3 0 pull device select Tristate File View Options Add Ins Windows n Dum 4 Hos DAVE TC1766 Release v1 0 ASCO RXDO Pin Selection C No pin as ASCO_RXDO selected Use pin P3 0 as ASCO receive input signal ASCO_RXDO C Use pin P3 12 as ASCO receive input signal ASCO_RXDO Pull Device Driver Mode P3 0 pull device Driver of P3 0 Strong driver sharp edge v P3 12 pull device Pun up device Y Driver of P3 12 Strong driver sharp edge y TC1
50. MU PFLASH text nain MAIN vInit D ASCO h spe PMU PFLASH text E spe PMU PFLASH text main input n IO h sSpe PMU PFLASH text main main Py MAIN h spe PMU_PFLASH text myprintf myprintf spe PMU PFLASH text stm STM vlInit m STM h spe PMU PFLASH text stm STM viSRNO gt D TC1766Regs h spe PMU PFLASH zdata main a Project Files spe PMU PFLASH table La spe PMU_PFLASH libraries text libc rca Resources spe PMU PFLASH libraries text libcs fpu 2 3 Other Files spe PMU PFLASH int tab text intvec 009 LD tc1766 map spe PMU PFLASH trap tab text trapvec 000 spe PMU PFLASH trap tab text trapvec 001 spe PMU PFLASH trap tab text trapvec 002 spe PMU PFLASH trap tab text trapvec 003 spe PMU PFLASH trap tab text trapvec 004 spe PMU PFLASH trap tab text trapvec 005 spe PMU PFLASH trap tab text trapvec 006 spe PMU PFLASH trap tab text trapvec 007 spe DMI LDRAM xvwbuffer spe DMI LDRAM ustack spe DMI LDRAM istack ascO ASCO_usGetData ascO ASCO vSendData nain MAIN viriteWDTCONO Customize 0x000007ad 0x00000000 0x00000008 0x00000004 0x000001le 0x0000001c 0x00000088 0x000000la 0x00000lf4 0x00000008 Ox0000016c 0x0000004c 0x00000052 0x000000be Ox0000002e 0x00000058 0x00000072 0x0000004c 0x00000014 Ox000002a0 0x00000014 Ox0000000c 0x00000014 0x00000018 0x00000018 0x00000018 0x000
51. PO Number of bits for compare insert 25 ENTER CMPO0 Compare Register 0 Required compare value CMPO insert 20000000 ENTER File View Options Add Ins Windows o Dg firms Start Bit Location of CMPO Lowest bit number 0 to 24 of STM which is compared with the content of register CMPO bit 0 MSTARTO Compare Register Size of CMPO Number of bits 1 to 32 in register CMPO starting from 0 which are used for the compare operation with STM MSIZED Compare Register Hequired compare Heal compare value x01312D00 value CMPO HIS TED dependent of MSIZE0 TC1766 new project A Note 20 000 000 50 ns 1s Application Note 44 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application CMP1 do nothing File View Options Add Ins Windows n Dg Ez 4103 9 DAvE TC1766 Release v1 0 9 System Timer STM al ea 2 Start Bit Location of CMP1 Lowest bit number 0 to 24 of STM which is compared with the content of register CMP1 bit 0 MSTART1 Compare Register Size of CMP1 Number of bits 1 to 32 in register CMP1 starting from 0 which are used for the compare operation with STM MSIZET1 Compare Register 1 Required compare oxo0000000 Heal compare value 00000000 value CMP1 EAS dependent of M3SIZET1 TC1766 new project A Application Note 45 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a
52. SCO_RBUF while Gn 1 amp amp in 2 2 amp amp in 3 return in dl TASKING EDE TriCore VX toolset C 1TC17661TC1766 p t CAT C1 i olx E File Edit Search Project Build Text Document Customize Tools Window Help l xj 85u amp xmmo e vvesBMbesmmSSu USER CODE BEGIN Main i a CA ATC1766 psp Drama a TC1766 1 Project Ace 3 TC1766 10 Files do Source Files myprintf question D ASCO c D cstart asm ASCO RSRC SRR ASCO Receive Interrupt Service Request Control Register Service Request Flag i D lO c ASCO RSRC CLRR ASCO Receive Interrupt Service Request Control Register Request Clear Bit MAIN while SCO RSRC SRR n ASCO RSRC CLRR 1 Clear SRR bit ty STM c in unsigned charjASCO_RBUF while in l amp amp in 2 amp amp in 3 a Header Files ORO r ASCO h D 10 h USER CODE END i D MAIN h sword main void RD STM h LD TC1766Regs h sword swReturn ac Project Files USER CODE BEGIN Main 2 E Resources E Other Files ff USER CODE END swReturn 0 switch RESET INDICATUR case WATCHDOG RESET the last reset was a watchdog triggered hardware reset USER CODE BEGIN Main 4 ww JE Build A File Find A Search A Browse A Difference A Shell A Symbols from the clipboard or e a Mod Ins E Line 401 Col 2 Application Note 1
53. SPRAM OFF PCP PRAM ON PCP CMEM ON PMU PFLASH ON ROM RAM RAM RAM PCPRAM PCPCODE ROM 16k OxAFFFCOOO Sk OxCOO00000 o6k OxDOO00000 16k OxD4000000 Sk OxFOOSO000 12k OxFOOQ6O000 1504k 0xA0000000 Options string format elf o tc1 66 elf d tc1766 Isl Ctc1766b silicon bug all tc1766 WI M WI mcfkIMoQrSU L PRODDIR lib WI OCLTXY oa 101 Default Help Wz El V2 0 2008 10 eT t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Linker Script File Internal Memory Name PCP_PRAM Alloc select OFF Linker Script File Internal Memory Name PCP_CMEM Alloc select OFF TriCore VX toolset Project Options TC1766 PJT Processor Internal Memory ipe d ji Pind cd PMU BROM OFF ROM 16k OxAFFFCOO0 T PMU OVRAM UFF RAM 8k OxCOO00000 qr sper DMI_LDRAM ON RAM 56k 0xD0000000 Linker PMI SPRAM OFF RAM 16k OxD4000000 Output Format PCP_PRAM OFF PCPRAM 8k 0xF0050000 cz Script File PCP CMEM OFF PCPCODE 12k OxF0060000 Special Areas PMU PFLASH ON ROM 1504k 0xA0000000 Defines Stack Heap External Memory Sections Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous CrossView Pro Options string format elf o tc17606 elf d _tc1 66 IsI Ctc1766b silicon bug all tc1766 WI M WI mefklMoQrSU L PRODDIR Aib WI OCLTXY Cancel Default Help Y Application Note 102
54. V2 0 2008 10 etc AP32133 In fi n eor TC1766 Cookery Book for a hello world application Additional information Memory Source User s Manual PMI DMI 16 KB SPRAM 56 KB LDRAM 8 KB ICACHE Abbreviations ICACHE Instruction Cache SPRAM Scratch Pad RAM Local Memory Bus LMB ede Overlay RA M BROM Boot ROM PFlash Program Flash DFlash Data Flash 1504 KB Pflash Ecu PRAM Parameter Memory in PCP 32 KB DFlash LFI Bridge CMEM Code Memory in PCP LMB Local Memory Bus EE MANNIN SPB System Peripheral Bus Emulation Memory Interface Shaded Only available in TC1766ED Y 8KBPRAM OCDS Debug Interface JTAG 16 KB BROM Overlay Mechanism PCP2 Core iT 4 12KBCMEM FPI Bus Interface Interrupts DMA Bus Ser PLL f frou co a D u 2 ea w i o lt a Oo a oO uN gt 09 Analog Input Assignment Multi CAN 2 Nodes 64 Buffer MLI1 MLIO Application Note 103 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File External Memory do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas BDefines Stack Heap Internal Memory Sections Output Sections Reserved e Map File Libraries Optimization Warnings Miscellaneous
55. a hello world application Double click Main h and insert the following Defines define OFF O define ON 1 define LED ON 0 Zdefine LED OFF 1 IBix File Edit Search Project Build Text Document Customize Tools Window Help Hm eee amp 5 olco Lx dob L4 dk d a a Ld La a LL LL LL Lalo aL Loa LL LLL oc AAA RARA ARA PX ff Macros Pee ARRE AA AAA AE ARRE AAA AAA AAA AREA AA CA ATC1766 psp El TC1766 1 Project Ea TC1766 10 Files ge Source Files JS USER CODE BEGIN MAIN Header 3 ff USER CODE END n ASCO c HD cstart asm i 3 lO sft EE SE aE oF oP ob obo ab abo ob ab ota aba a aab oc La a o o oc a aa a a o a La aa o a aca aba a ab ot aac aa a ab ot aa a o a ab oc La a a o ab a a La E pe C E f Defines FT MAIN ec CARRER AER ARA RRA ARA ARRE LLL LH LX RAR ARA RRA ARA AAAS Ee Ty STM c fdefine TASKING pes Header Files ff compiler dependent names of builtin functions ASCO h define MTCR mtcr T define ISYNC isync IO h define DISABLE disable D MAIN h define ENABLE _ enable Ty SIM h define INTERRUPT interrupt 3 TC1766Regs h E 3 Project Files Resources E Other Files JS USER CODE BEGIN MAIN Header 4 define OFF define ON 1 deCine LED ON define LED OFF 1 S USER CODE END AAA ARRE AAA acababa o o o oc La abo b coca o o Loa ARA c c cac Lo a aac aca a o o co La aba a aac aL E ff lypeders eS oe ot oe oe oe oe oe oe oe oe ER
56. a hello world application File Save all Project Window File View TC1766 Files right mouse button click Add Existing Files Browse TASKING EDE TriCore VX toolset Ever ue _ mu X File Edit Search Project Build Text Document Customize Tools Window Help us X EEE include main h include ASCD H CA ATC1766 psp E TC1766 1 Project EB DIS void myprintf const char p 5 Sour Add New File 2 n AS Add Existing Files d Browse rD es Include Sub Project Scan DMA Remove from Project Space firir 3 Heac Project Options o Zu io Build ntf DME Rebuild age buffer for sprintf Version Control d ait 02 dummy s Write formatted data to string mb Properties Edit this menu cEJEOj 20j e BJ a 0j BC Build lo o ns Line 28 Cok 1 Application Note 125 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Select myprintf c LA LI CI IO Y GI TASKING EDE TriCo t X File Edit Search Project Build Text Document Customize Tools Window Help S E x e 2 8 E Ej amp amp Had x include main h A include ASCO H Fu CA ATCT766 psp El TC1766 1 Project 1 c 1 1766 10 Files while p ES Source Files void myprintf const char rp HDI ASCO c FA estart asir lt Q 10 0 D MAIN c ede File 1TC1766 CS SIOR
57. alog now by clicking Es the close button Application Note 49 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Port Confieuration File View Options Add Ins Windows 3 DuxW nus E TR a ae M y rer Jeu NP in Note The User LED orange is connected to Port_1 Pin O Application Note 90 V2 0 2008 10 Infineon plication TC1766 Cookery Book for a hello world application Ports click Configure Port 1 File View Options Add Ins Windows 80 070 s DAVE TC1766 Release d Parallel Ports al da Ports Functions Parameters Notes Configure Port 0 Configure Port 2 Configure Port 3 Configure Port 4 Configure Port 5 TC1766 HB praise SNNT S SS A Application Note o1 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Ports Configure Port 1 Port 1 Functionality tick v Use P1 0 as general IO General Direction click Out File View Options Add Ins Windows ou Dee fus e DAVE TC1766 Release v1 0 9 Parallel Ports p ea 2 Ports Functions Parameters Notes 129 i BA Functionality General Direction Push Pull Open Drain Output Value F Use P1 0 as general IO In EJOut T Open drain high F Use P1 1 as general IO ein Out T Open drain I high r Use P1 2 as general IO In Ou
58. ample 2 use of myprintf void main void char mb 200 message buffer for sprintf int dummy sprintf mb Variable wait d dummy Write formatted data to string mb myprintf mb n Application Note 123 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application TASKING EDE TriCore VX toolset C TC1766 TC1766 ox File Edit Search Froject Build Text Document Customize Tools Window Help AS X B mesxsmmoc 8 2 ye Seen sm mum m A include main h CA ATC1766 psp El TC1766 1 Project 24 TC1766 10 Files 53 Source Files D ASCO c 2 D cstart asm n lOc n D STM c ES Header Files D ASCO h 2 0 10 h AD MAIN h ED STM h 0 TC1766Regs h E Project Files E Resources E Other Files include ASCO H alih void myprint f const char p while p 1 if ASCO ubTxBufFreei ASCO vsendData p FE fe Example 1 use of myprintf void main void i myprintf Hello World rin 1 ff Example 2 fuse of myprintf void main vord r char mb z00 message buffer for sprintf int dummy sprintf mb Variable wait d dumny lt Write formatted data to string mb myprintf mh 1 zd Build File Find Shell Symbols e from the clipboard dl SUN oe Line 26 Col 1 Application Note 124 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for
59. and PDT nyprintf il 262 10 possible truncation at implicit conversion to type short unsigned int omi CATC1766 tc1766 map lo fe a ins gt Line 232 Cor 114 Note Click here to see Memory Map Application Note 134 V2 0 2008 10 fs AP32133 In fi neon TC1766 Cookery Book for a hello world application Memory Usage IBix File Edit Search Project Build Text Document Customize Tools Window Help x e s 2 B5 fo i ell uw oriri ndr cn nir nn nr nr nr re i nr nr rrr cr rr nr n nr nr nr nr rrr n ir n rn nr rcr n nr nr nr nr nr nr i ni nr rr cnr cr cr cr rr a nnn Memory Usage A ale CA ATCTZ66 psp El TC1766 1 Project E a 1C1766 12 Files ag Source Files Address range usage at space level FD ASCO c spe tc absl8 0x0000a000 Ox00003474 39 Ox0000628c 6l Ox000037cc 34 DO cstart asm spe tc absz4 OxO018d000 Ox000040e6 2 x Dl88fla 98 OxX0007fe c 32 D Oc spe tc csa Oxo000e000 OxX0000354e 24 Ox0000aabd 76 Ox0000aabO0 76 i spe tc linear 0x00195000 0x000040e6 2 Ox00l90fla 98 Ox0007fe6c 31 eO MAIN c spe tc pcp code Ox00001800 OxO0000000 oO Ox00001800 100 0x00001800 100 TE myprintf c spe tc pcp data Ox00000800 OxX00000000 O 0x00000800 100 OxX00000800 108 A STM c nis Header Files
60. ble Loopback Mode 7 Enable receiver REN l Enable loopback mode LB Stop Bit Selection STP Parity Selection ODD One stop bit Even parity C Two stop bits C Odd parity Interrupts Enable transmit interrupt TSRC Enable transmit butter interrupt TRSRCI Enable receive interrupt RSRC I Enable error interrupt ESRC TC1766 Tue ra CW Y gt Application Note 36 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Baud Rate Baud Rate Required baud rate kBaud insert 9 600 lt ENTER gt Baud Rate Baud Rate Selection Bit Fractional Divider tick Y Use fractional divider File View Options Add Ins Windows on Dau fus 3 DAvE TC1766 Release v1 0 m Beeene unen hen rra rn nnn hn nna nnn nnn nnn Baud Rate Selection Bit BRS Fractional Divider FDE Baud Rate Generator Run Control R Additionally reduce serial clock to 2 C Disable baud rate generator C Additionally reduce serial clock to 3 c Use tractional divider as prescaler tor baud rate timer Enable baud rate generator FOF Baud Rate Required baud rate Kbaud 9 600 Real baud rate kbaud 600 Fractional divider n 512 bs Percentage of deviation 0 001 Min baud rate baud i 192 Reload value RL 0x003A Max baud rate Mbaud 000 TC1766 EETA NNT S V CF MS M M M M MM T MEE S Note Validate each alpha numeric entry by pressing ENTER
61. cation Note 18 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application a VevyvvevvyveyvevenvvyvrvryveuvvYvSvvvYvYETITT ALA A LAA E EE OR DU ORE ereere DIGAN MAUI E Baf am uui Hd Ted ll ouf Ru a aH eei ed AA mem FELELET t Beta A qmm Sm ns IA CRM 12146937 TARAR T1768 22 OKETFKT BB DEDT a LL AENA MAMA LAA L E eee a E 10 V2 0 2008 19 Application Note infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application 2 DAvE Installation for TC1766 microcontrollers Install DAvE mothersystem Download the DAVE mothersystem setup exe O http www infineon com DAVE Title Date Version Size Tool Package DAVE Mothersystem latest version 05 Feb 2007 2 1 r24 14 8 MB DAVE Motherzystem 04 Jul 2006 WoT r23 15 1 MB and execute setup exe to install DAvE Note Abort the installation of Acrobat Reader Application Note 20 V2 0 2008 10 e tc AP32133 In fi neon TC1766 Cookery Book for a hello world application Install the TC1766 microcontroller support update TC 1766 DIP file 1 Download the DAvE update file DIP for the required microcontroller http www infineon com DAvE Title Version Development Tools Cal TO1 79 Family DIP files for DAvE Microcontroller Configuration Tooll latest version OF Jul 2008 TC173x Series _ v1 1 Zip TCA 75x DIP file for DAVE Micro
62. controller Configuration Tool latest version OF Jul 2008 TC17B5x Series wvl D zip Fal TO116 family DIF file for DAE Microcontroller Configuration Tooll latest version 19 Jun 2006 TC115x Series zip Unzip the zip file TC176x series v1 0 zip and save TC176x Series dip e g DADAvENTCI766N TC176x Series dip Application Note 21 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application 3 View Setup Wizard Default e Installation Forward gt Select e I want to install products from the DAvE s web site Forward gt Select D DAVE TC1766 Forward gt Select Available Products click v TC176x_Series Forward gt Install End 4 DAVE 1s now ready to generate code for the TC1766 microcontroller Application Note 22 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application 3 DAvE Microcontroller Initialization after Power On Start the program generator DAvE and select the TC1766 microcontroller File New 32 Bit Microcontrollers TC1766 Create File View Options Add Ins Windows Oe Du c sd 32 Bit Microcontrollers 16 Bit Microcontrollers 8 Bit Microcontrollers Create Application Note 23 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Choose the Project Settings as you can see in the screenshots General Compiler Se
63. devices or systems with the express written approval of Infineon Technologies if a failure of such components can reasonably be expected to cause the failure of that life support device or system or to affect the safety or effectiveness of that device or system Life support devices or systems are intended to be implanted in the human body or to support and or maintain and sustain and or protect human life If they fail it is reasonable to assume that the health of the user or other persons may be endangered e tc AP32133 In fi neon TC1766 Cookery Book for a hello world application AP32110 Revision History 2008 10 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 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application Table of Contents Page Note Table of Contents see page 10 Introduction This Application Note Appnote is a Hands On Training Cookery Book step by step book It will help inexperienced users to get the TC1766 TC176x TC116x Family Starter Kit up and running With this step by step book you should be abl
64. dit Search Build Text Docurnt Rea ES Sl Project gi a AAC Project Properties CA ATC1766 psp B Default Settings Directories Members Tools Errors ters EJ TC1766 1 Project OS E1766 0 Files Project CATC176611C1766 pjt Files E TC1766 0 Projects a x m m M GS M Add existing files to project Alt O T Hide files already in project External Makefile lt none gt E YCS Project none gt F Add project files to VCS Project A Application Note 68 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Select One or More Files to Add to Project select ASCO c Select One or More Files to Add to Project select ASCO h Select One or More Files to Add to Project select IO c Select One or More Files to Add to Project select IO h Select One or More Files to Add to Project select MAIN c Select One or More Files to Add to Project select MAIN h Select One or More Files to Add to Project select STM c Select One or More Files to Add to Project select STM h Select One or More Files to Add to Project select TC1766Regs h TC1766 0 Projects Default Settings TC1766 1 Project m 1 C1766 0 Files a s s x m m STM h TC1766 rtf 8 TC1766 asm J TC1766Regs h 1TC1766 bak ITC1766 dav 2 TC1766 dpt CTC1766 pjt TC1766 psp A
65. e to get your first useful program in less than 2 hours The purpose of this document is to gain know how of the microcontroller and the tool chain Additionally the hello world example can easily be expanded to suit your needs You can connect either a part of or your entire application to the TC1766 Starter 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 TriCore Application Note 4 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application CHHEELELEEEELELEETEEEETELEELELEETELUELHH a os ITN Application Note 5 V2 0 2008 10 oT t AP32133 In fi n eon TC1766 Cookery Book for a hello world application TC1766 Block Diagram Source Product Marketing PMI DMI Abbreviations 16 KB SPRAM i ICACGHE Instruction Cache B KB ICACHE SPRAM Scratch Pad RAM LORAM Local Data RAM OVRAM Overlay RAM BROM Boot ROM FPF lash Program Flash DF lash Data Flash PRAM Parameter RAM in PCP PCODE Code RAM in PCP u Depending on the version 0 or 8 KB of Overlay 16 KB
66. els C Two arbitration cycles max 15 PCP channels C One arbitration cycle max 3 PCP channels Number of Clocks per Arbitration Cycle ONECYC Two clocks per arbitration cycle C One clock per arbitration cycle for low frequency TC1766 new project A Application Note 27 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Pad Driver do nothing File View Options Add Ins Windows ea Da ul Anal Pad Driver Temperature Compensation Clock Divider Temperature Clock divider xC6 fref KHz o1 010 TCDIV Temperature Compensation 0 Source TCSO Temperature compensation logic 0 is controlled by the temperature control hardware c Temperature compensation logic 0 is controlled by software via bit field TCCO Compensation 0 Enable for GPIO Outputs l Enable temperature compensation TCEO Minimum threshold loxFF CT LAK AINIOYY Medium threshold loxFF CTLAK AE TOY Maximum threshold loxFF CTLIKAANOY TC1766 Mp prae SS SS rrr sr Application Note 28 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Startup Configuration Hardware Booting Scheme Boot type external pins CFG 3 0 select Normal Internal Start Jump to internal flash CFG 3 0 2 0010 File View Options Add Ins Windows oa Dum 1003 t3 DAvE TC1766 Release vi Project Settings a da Hardware Boot
67. ere Exit and Save this dialog now by clicking Eai the close button Application Note 55 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Functions Initialization Function tick v IO vlInit Functions Function Library Part 1 tick v IO vSetPin Functions Function Library Part 1 tick v IO vResetPin Functions Function Library Part 1 tick v IO vTogglePin File View Options Add Ins Windows je Ose 4 css Initialization Function Source File lO vinit File name IO c Function Library Part 1 lO ubReadPin TC1766 PnpwpmlBB QQ SS S S Vi Application Note 96 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Parameters do nothing File View Options Add Ins Windows on Dem 7 fus Header File File name IO h TC1766 new project A Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking s the close button Application Note 57 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Save the project File Save Save project Save in C TC1766 create new directory I Create New Folder 1 File name TC1766 2 Save Project As Soave I e TCI 766 E31 Histo y u De z kt op M M Documents My Computer My Network Pla File name Save as type DAVE project file
68. erlay info O Module local symbols Cross reference info O Processor and memory info CrossView Pro Options string format elf o tc17606 elf d tc1766 Isl Ctc1766b silicon bug all tc1766 WI M WI mcfkimoQrSU L PRODDIR ib WI OCLTXY Cancel Default Help Ya Note Click here to see Memory usage info Application Note 108 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Libraries do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas BDefines Stack Heap Internal Memory External Memory Sections Output Sections Reserved Map File Optimization Warnings Miscellaneous E CrossView Pro Application Note 109 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Optimization do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker e Output Format B Script File i e Special Areas BDefines Stack Heap Internal Memory External Memory Sections Output Sections Reserved e x Map File Libraries Warnings Miscellaneous CrossView Pro L
69. hello world application Interrupt Control Compare Register CMPO Interrupt Control tick v Enable request on compare match with CMPO Interrupt Control Interrupt Control of STMIRO tick v Enable SRCO interrupt File View Options Add Ins Windows eta Oe 003 2 9 DAVE TC1766 Release v1 0 Compare Register CMPO Interrupt Control Compare Register CMPO Interrupt Output Selection CMPOOS d Enable request on compare match Select interrupt output 35 TMIRO unt aM C Select interrupt output STMIR1 Compare Register CMP1 Interrupt Control Compare Register CMP1 Interrupt Output Selection CAMP 105 Enable request on compare match Selectinterrupt output S TMIEO viN CMF IEM TEN C Select interrupt output 5 ThE Interrupt Control of STMIRO Interrupt Control of STMIR1 F Enable SRCO interrupt SRE FP Enable SECA interrupt SRE TC1766 new project A Application Note 46 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Interrupts drag and drop STM SRN 0 from Level 0 to CPU Interrupt Level 9 File View Options Add Ins Windows o Dg 11803 9 DAvE TC1766 Release v1 0 9 System Timer STM a ea p CPU Interrupt max 255 PCP Interrupt max 255 Level O non interrupting Note To change the level and the group of an interrupt source click on it drag it to its new position and drop it To set an interrupt source to the non interru
70. henever 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 113 V2 0 2008 10 e tc AP32133 In fi neon TC1766 Cookery Book for a hello world application Double click Main c insert User Code Global Variables const char menul an n n n TC1766 Program execution out of OnChipFlash n LED IO Port 1 Pin 0 ON jn LED IO Port 1 Pin 0 OFF Wn LED IO Port 1 Pin 0 blinking 4n n const char question your choice Us const char messagel n r LED is ON r n const char message2 n r LED is OFF r n const char message3 n r LED is BLINKING r n volatile int RS232 wait 2 volatile unsigned int blinking 0N char selects Application Note 114 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application TASKING EDE TriCore VX toolset C TC1766 TC L File Edit Window Help gt 18 5 Ca ATC01766 psp E TC1 66 1 Project EH T C1766 10 Files des Source Files D ASCO c n cstartasm D IO c n jM STMe C 2S Header Files n ASCO h D IO n MAIN h 2 n SIM h D TC1766Regs h E TJ Project Files Resources 3 Other Files Search
71. ing Scheme Normal boot mode external pin BRKIN 1 C Emulator mode external pin BRKIN 0 Boot type external pins CFG S 0 Normal Internal Start Jump to internal flash CFG S 0 0010 v TC1766 new project A Application Note 29 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking 55 the close button Close this window Application Note 30 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Configuration of the ASCO Note ASCO is used for the serial communication with a terminal program running on your host computer Application Note 31 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Module Clock Module Disable Request untick LJ Disable the ASCO module Module Clock Module Run Mode Clock Control choose System clock 1 280 0000 MHz Module Clock Sleep Mode Enable Control tick v Disable the sleep mode File View Options Add Ins Windows je 020710032 3 DAVE TC1766 Release v1 0 M Module Disable Request Sleep Mode Enable Control F Disable the ASCO module Disable the sleep mode for the ASCO module DISR EDIS Module Run Mode Clock Control Clock divider for normal operation mode RMC System clock 1 80 0000
72. l System Units Vol 1 of 2 The correct address range for the 1 504 Kbyte PMU PFLASH is A000 00005 A017 7FFFH Application Note 98 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Script File Defines Stack Heap do nothing TriCore VX toolset Project Options TC1766 PJT Processor amp C Compiler amp C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas lnternal Memory External Memory Sections Output Sections Reserved e Map File Libraries Optimization Warnings Miscellaneous CrossView Pro A I of mp cC D GI A o Application Note 99 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Linker Script File Internal Memory change from brom to PMU BROM Linker Script File Internal Memory change from ovram to PMU OVRAM Linker Script File Internal Memory change from Idram to DMI LDRAM Linker Script File Internal Memory change from spram to PMI SPRAM Linker Script File Internal Memory change from pram to PCP_PRAM Linker Script File Internal Memory change from pcode to PCP_CMEM TriCore VX toolset Project Options TC1766 PJT E Processor C Compiler C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas Defines Stack Heap Internal Memory E
73. lication File New Open a New File for Editing Filename insert myprintf c PIA vel Bx File Edit Search Project Build Text Document Customize Tools Window Help Hm X e 2 8B8 H 8 X amp amp 2 o JAA c mE CA NTC1766 psp USER CODE BEGIN Main 7 th E TC1766 1 Project Mu cn E TC1766 10 Files default 2 3 Source Files 4 ASCO c Open a New File for Editing D cstart asm O lO c Current Directory n CATC1766 E STM c Filename Eg Header Files m i FD ASCO h whil F RD ID h iu M eate new window RD MAIN h E STM h Browse pw Cancel Help D TC1766Regs h l 29 Project Files switch select E Resources i y Oth Fil case l blinking FF IO Pl O LED_ON myprintf messagel break ther Files case 2 blinking 0FF IO Pl O LED OFF myprintfimessage2 break Case S blinking 0N myprintf messagesi break USER CODE END returnisuvReturn Z End of function main fe USER CODE BEGIN MAIN General idj v Build GEH Ins Line 468 Col 3 OK Application Note 122 V2 0 2008 10 AP32133 nn In fi neon TC1766 Cookery Book for a hello world application Insert User Code for myprintt include main h include ASCO H void myprintf const char p while p if ASCO ubTxBufFree ASCO vSendData p 4 j j ho Example 1 use of myprintf void main void myprintf Hello World Wn Ex
74. m All 0xA0102040 0xA0102C Verify All Sector is protected SG Controller0 Core UDEDebugServer Connection to TC1766 target monitor established TriCorea SG Controller0 Core UDEDebugServer Program with ID 0x1 code size 2978 bytes was loaded SG Controller0 Core PFLASH Program sections succeeded 4 4 gt gt Command For Help press F1 Controller0 Core C TC1766 TC1766 cfg OxA000 Ln 41 Controller0 Core ha 7 Exit Exit Application Note 154 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application File Close Workspace v C TC1766 main c USER CODE END swReturn 0 switch RESET_INDICATOR case WATCHDOG RESET the last reset was a watchdog triggered hardware reset USER CODE BEGIN Main 4 USER CODE END case SOFTWARE RESET UdeSessionManager x 2 Save changes of current workspace e coma a SG Controllero Core UDEDebugServer Connection to TC1766 target monitor established TriCore a SG Controller0 Core UDEDebugServer Program with ID 0x1 code size 2978 bytes was loaded SG Controller0 Core PFLASH Program sections succeeded S 4 4 gt gt Command For Help press F1 Controller0 Core C TC1766 TC1766 cfg 0xA000 Ln 41 Controller0 Core ha 7 Yes File Exit Application Note 155 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Execute any terminal program 96
75. nd For Help press F1 ontroller0 Core C TC1766 TC1766 cfg Controller0 Core halted by user break Function disabled 7 Application Note 144 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Config Add In Components FAI UDE Desktop C TC1766 tc1766 wsp Controller0 Cor File Edit Debua Show Views Tools Confia Window Macro Help o j Hl up MO ap E Rs Customize Bars Workbook 3 Target Configuration Setup HTML Browser Add In Components Debug Server Configuration amp Target Interface Application Note 145 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application UDE Add In Components Load State UDE Add In Component Description check tick v FLASH OTP Memory Programming Tool O uC OS Support O CAN Recorder O Case Tools Connection Support O CMX Support O DAYE Version 2 x Support O DMA Ocds L2 Support FL ASH OTP Memory Programming Tool O MCDS Trace Support O PXROS Support O RTI StethoScope Support LJ TriCore OCDSL2 Support L TTF Recorder T Delete stored settings after unload SG Controllero Core UAD2CommDev TriCore JTAG OCDS Debug Pra SG Controller0 Core UDEMemtool FLASH programming for devi SG Controllero Core UDEDebugServer Connection to TC1766 ta SS b 4 4 gt gt Command For Help press F1 Controller0 Core C TC1766 TC OK Application Note 146 V2 0 2008
76. ntrol Clock divider for normal operation mode select System clock 4 2 50 ns File View Options Add Ins Windows o Dg fics Module Disable Request Sleep Mode Enable Control T Disable the STM module DISR E the sleep mode for the STM module Module Run Mode Clock Control Clock divider for normal operation mode RMC System clock 4 20 0000 MHz 50 000 ns gt TC1766 new project Ah Application Note 42 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Resolutions do nothing File View Options Add Ins Windows n Dg Ez 4103 9 DAvE TC1766 Release v1 0 E System Timer STM al ea 2 9b Bit System Timer 56 bit system timer TIMO 6 resolution us range years 114 247 Additional Parts of the System Timer System timer 0 TIMO resolution us range min ig System timer 1 TIMT resolution us range min br200 System timer 2 TIM2 resolution us range h ENS System timer 3 TIM3 resolution us range days 10 181 System timer 4 TIM4 resolution ms range days 162 891 System timer 5 TIM5 resalution ms range years 140 System timer G TIM6 resolution min range years 114 247 TC1766 new project A Application Note 43 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application CMPO Compare Register Size of CM
77. o nothing TriCore VX toolset Project Options TC1766 PJT Processor pono Dese MISRAC code eana C Compiler Preprocessing e Language Supported MISRA C required rules Debug Information Code Generation Optimization Allocation Use extemal MISRA C contigureuorn e Supported MISRA C required and advisory rules P Custom MISRA C comiguration H Assembler M Jum required rule violation into warning H PCP Assembler Tur advisory rule violation into warning Linker Iv Produce a MISRA C report CrossView Pro VMIDRA rules Application Note 84 a Fi Use rile V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application C Compiler Miscellaneous do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Preprocessing Language Debug Information Code Generation Optimization Allocation H Assembler H PCP Assembler H Linker H CrossView Pro Application Note 85 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker do nothing TriCore VX toolset Project Options TC1766 PJT Processor C Compiler C Compiler Assembler PCP Assembler gt CrossView Pro Application Note 86 V2 0 2008 10 oT tt AP32133 In fi n eor TC1766 Cookery Book for a hello world application Linker Output Format do nothing
78. op it To set an interrupt source to the non interrupting level Level 0 click on it drag it to the Level 0 list and dran it TC1 766 new project A Application Note 92 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information Interrupt Vector Table Interrupt Vector Table 0xA010 1FFF 0xA010 1FFF Interrupt Vector Table 296 32 Bytes 0x4010 0120 gt SIM SRN 0 O a NM e e e lt m un 0xA010 0020 BIVe OxAO10 0000 Biv 0x4010 0000 gt eno Note PN Priority Number CPU Interrupt Level Note Click here to see the Map File Application Note 93 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Additional information TRAP Vector Table TRAP Vector Table 0x4010 20E0 gt Vector Table 0x4010 20C0 gt 0x4010 2040 gt 0x4010 2080 0x4010 2060 0x4010 2040 o 0x4010 2020 gt BTV 0xA010 2000 BTv gt 0x4010 2000 gt Note 1 Word 32 Bits 1 Word 4 Bytes 8 Words 32 Bytes Note Click here to see the Map File Application Note 94 V2 0 2008 10 AP32133 ecu In fi neon TC1766 Cookery Book for a hello world application Additional information Program Memory Source User s Manual The on chip PMU PFLASH memory has a capacity of 1 504 KBytes PFLASH 256 byte 4 Page en PP6015 256 byte 4 PP40
79. p Verify General Protect Program All Verify All Sector is protected 5 SG Controller0 Core UAD2CommDev TriCore JTAG OCDS Debug Protocol V3 8 4 ID 1 opened A SG Controller0 Core UDEMemtool FLASH programming for device 1 5 MByte OnChip Program FLASH SG Controller0 Core UDEDebugServer Connection to TC1766 target monitor established TriCore 7 gt 4 4 gt gt Command For Help press F1 Controller0 Core C TC1766 TC1766 cfg Controller0 Core halted by user bre 7 Application Note 148 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Click Setup UDE FLASH OTP Memory Programming Tool FLASH OTP Memory Device 15 MByte OnChip Program FLASH v iv Enable OxA0000000 OxAOO1FFFF 128K 0xA0020000 OxAOOSFFFF 128K 0xA0040000 OxAOO FFFF 256K 0xA0080000 OxAOOFFFFF 512K 0xA0100000 OxA0177FFF 480K Remove All Erase About Remove Sel Program Help i 3833 Verify General Protect SW Prot Program All Info LJ Li El A d EEEF Verify All Sector is protected Application Note 149 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Program tick v Automatic Verify after Program i UDE Desktop C TC1766 tc1766 wsp Controller0 Core Com fi y a I x oS x BE ENE Mapping Driver Program Verity Protec
80. pplication Note 69 V2 0 2008 10 Infineon E TC1766 0 Projects OK Application Note AP32133 TC1766 Cookery Book for a hello world application Project Properties Default Settings E TC1766 1 Project MN TC1766 9 Files CATC17663ASCO h CATC1766M10 c CATC1766N10 h CATC17661MAIN c CATC17661MAIN h CATC1 66 STM c CATC17661STM h CATC17663ASCO c VCS Project nonez I Add project files to YCS Project 70 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application dl TASKING EDE TriCore VX toolset C 1TC17661TC1766 p t File Edit Search Project Build Text Document Customize Tools Window Help e aseeSsealrorcl 8a 98B8B4 wu mu HA AA CA ATC1766 psp TC1766 1 Project eee 1C1766 10 Files ER Source Files AD ASCO c E n cstart asm n MAIN c D STM c ER Header Files D ASCO h 2 n MAIN h n STM h D TC1766Regs h Project Files a Resources 3 Other Files El Application Note 71 V2 0 2008 10 e tt AP32133 In fi n eor TC1766 Cookery Book for a hello world application Configure Compiler Assembler Linker Locater and Build Control Project Project Options Processor Processor Definition Target processor select TC1766B TriCore VX toolset Project Options TC1766 PJT 1 X Processor Processor Definition Processor Definition Ta
81. pting level Level 0 click on it drag it to the Level 0 list and denn it TC1766 new project AL Note The LED on Port 1 Pin 0 will blink after program start and if selected in the main menu at a frequency of 1 second done in the STM Interrupt Service Routine STM_viSRNO Application Note 47 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Functions Initialization Function tick v STM vlnit File View Options Add Ins Windows n Dg Ez 4103 Initialization Function Snurce File ISTM vinit File name STM c Function Library Part 1 IM uwHead5ysImr s STM_viSRNO SIM viSRNI1 STM_ubCheckCompareMatch_0 STM_ubCheckCompareMatch_1 STM_vConfigureCompareOperation TC1766 new project A Note The LED on Port 1 Pin 0 will blink after program start and if selected in the main menu at a frequency of 1 second done in the STM Interrupt Service Routine STM_viSRNO Application Note 48 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Parameters do nothing File View Options Add Ins Windows n Dg Ez 4103 Header File File name STM h Parameters Part 1 STM_TIMER_0 STM_TIMER_1 SIM IIMER 2 ane BIMTMERS BIMTMER4 0 BIMTMERS 00 BIMTMERG BIMTMERT 0 TC1766 new project A Notes If you wish you can insert your comments here Exit and Save this di
82. rary Part 2 rR eoU JASCO_vSendSlaveAdr a Se lt lt JASCO_ubOwnAddress eK SS SS Esc DR S r ASCO ublxDateRendy ASCO vSeBaudrale OOOO mm ma tool da TC1766 HB PROTEGE QQ SS gt A Note You can change function names e g ASCO_vInit and file names e g ASCO c anytime Application Note 39 V2 0 2008 10 infir AP32133 In fi n eon TC1766 Cookery Book for a hello world application Parameters do nothing File View Options Add Ins Windows 90 070 s Header File File name ASCO h TC1766 IDE ee NN SS SM M Sq Notes If you wish you can insert your comments here Exit and Save this dialog now by clicking Ey the close button Application Note 40 V2 0 2008 10 AP32133 TC1766 Cookery Book for a hello world application Configuration of the STM DAVE File View Options Add Ins Windows de Dock f fus ARCU DIC r EE BERETT 3 h Lom A C1766 new project AA Note The LED on Port_1 Pin 0 will blink after program start and if selected in the main menu at a frequency of second done in the STM Interrupt Service Routine Therefore we now have to configure the STM Application Note 41 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Module Clock Sleep Mode Enable Control tick Y Disable the sleep mode for the STM module Module Clock Module Run Mode Clock Co
83. rget Bynasene arget processor Startup Bus Configuration The FPU and MMU options are only relevant for user defined processors C Compiler A possible FPU MMU in the selected CPU will be supported regardless C Compiler Assembler the state of the grayed checkbox PCP Assembler FPU present Linker F MMU present CrossView Pro ces Default Help Wz Application Note 72 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Processor Bypasses CPU Functional Problem Bypasses tick V All bypasses TC1762 TC1764 TC1766 TriCore VX toolset Project Options TC1766 PJT c Processor j i Processor Definition H Startup e Bus Configuration O CPU_TC 013 see note C Compiler amp C Compiler Assembler H PCP Assembler Linker CrossView Pro O CPU TC 048 O CPU TC 060 L CPU TC 065 O CPU TC 068 O CPU_TC 069 O CPU_TC 070 O CPU_TC 071 CPU TC O72 CPU TCO74 O CPU_TC 081 CPU TC 082 Application Note 73 V2 0 2008 10 infir AP32133 In fi n eor TC1766 Cookery Book for a hello world application Processor Startup do nothing TriCore VX toolset Project Options TC1766 PJT c Processor j Processor Definition Startup Code Memory Control Miscellaneous Bus Configuration C Compiler QUe HC Compiler 5001 Memory Assembler Re FULL ore PCP Assembler cH Linker CrossView Pro
84. sh 16 KB BROM 2 DFlash Data Flash 1504 KB Pflash PRAM Parameter Memory in PCP 32 KB DFlash 9 LFI Bridge CMEM Code Memory in PCP Ss LMB Local Memory Bus 0 8 KB OVRAM SPB System Peripheral Bus Emulation Memory Interface Shaded Only available in TC1766ED FPI Bus Interface SSCO DMA Bus SSC1 System Peripheral Bus SPB 1 gt ADCO 32ch gt FADC 2 ch 5 a O o c a Assignment Multi CAN 2 Nodes MSCO 64 Buffer Mem MLI1 MLIO Check Application Note 8 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application TC1766 Block Diagram Source DAvE Note Just by comparing the different sources of block diagrams you should be able to get a complete picture of the TC1766 microcontroller and to answer some of your initial questions Application Note 9 V2 0 2008 10 infir AP32133 In fi neon TC1766 Cookery Book for a hello world application Cookery Book For your first programming example for the TC1766 Starter Kit Board Y our program mna do LED IO Port 1 Pin H ON i LED IO Port 1 Pin H OFF 3 LED IO Port 1 Pin H blinking your choice m Chapter Step Recipes 1 TC1766 Board Power Supply Jumper Setting Serial cable to the notebook pls Debugger 2 DAVE program generator DAVE installation mothersystem DAvE Update installation for TC1766 DIP file
85. t M Open drain F high l Use P1 3 as general IO In Out F Open drain I high Use P1 4 as general IO In Out M Open drain F high r Use P1 5 as general lO In Out I Open drain M high r Use P1 6 as general lO In Out M Open drain I high r Use P1 7 as general IO In Out M Open drain F high l Use P1 8 as general IO In Out M Open drain high r Use P1 9 as general IO In Out M Open drain F high r Use P1 10 as general IO In Out F Open drain I high l Use P1 11 as general IO In Out Open drain I high r Use P1 12 as general IO In Out M Open drain F high l Use P1 13 as general IO In Out Open drain I high Use P1 14 as general IO In Out F Open drain I high TC1766 ENANOS I I I U UI UU I Application Note 52 V2 0 2008 10 e t AP32133 In fi n eon TC1766 Cookery Book for a hello world application Input Characteristic do nothing 3 DAVE LAX File View Options Add Ins Windows a Deu 103 e DAvE TC1766 Release v1 0 9 Parallel Ports 109 ta Ports Functions Parameters Notes 29 PEE Pull Device P1 0 pull device Tristate m P1 1 pull device Pull up device y P1 2 pull device Pull up device y P1 3 pull device Pull up device y P1 4 pull device Pull up device y P1 5 pull device Pull up device y P1 6 pull device Pull up device y P1 7 pull device Pull up device y P1 8 pull device Pull up device y P1 9 pull device Pull
86. tion T Automatic Chip Erase before Program Iv Automatic Sector Erase before Program T Simulate Random Access Mode 7 Automatic Verify after Program T Install global Protection after Program E Sate ABM Header Handling Header 1 File D Header 2 File v pened ogram FLASF v gt Controller0 Core C TC1766 TC1766 cfg Controller0 Core halted by user bre y Application Note 150 V2 0 2008 10 e tt AP32133 In fi n eon TC1766 Cookery Book for a hello world application File Load Program FF UDE Desktop C TC1766 tc1766 wsp Controller0 Core Command View TEX File Edit Debua Show Views Tools Confia Window Macro Help D New Workspace CTRL4N P amp soe amp ED RU ED CP d UU Eg Bem vj 9 959 99290 amp Open Workspace CTRL 0 2t Save Workspace As CTRL S 2t Save Workspace 5 Close Workspace ALT F4 Load Program Connect Target System Ys Disconnect Target System ME Print Setup Print CTRL P Recent Files Recent Workspaces Exit ev TriCore JTAG OCDS Debug Protocol V3 8 4 ID 1 opened A OHntrOIIGFrU COFG UDEMCHLOO1 FLASH programming for device 1 5 MByte OnChip Program FLASH SG Controller0 Core UDEDebugServer Connection to TC1766 target monitor established Tricor 4 4 gt b Command Load program binaries and symbol information Controller0 Core C TC1766 TC1766 cfg Controller0 Core halted by user bre y Application Note 151 V2 0 2008
87. tting the EndInit bit locks L3 Project Files 3 Resources E Other Files F d all EndInit protected registers Build A File Find Shell Symbols ES from the clipboard A Line 149 Col 31 Application Note 128 V2 0 2008 10 rf AP32133 In fi neon TC1766 Cookery Book for a hello world application Double click Main h and insert required Header for sprintf include lt stdio h gt for sprintf for myprintf TASKING EDE TriCore VX toolset C TC1766 TCI 6 SS m x File Edit Search Project Build Text Document Customize Tools Window Help X e z ce s Bar s idi 3 ms mg gg c x FIC dd dd dk app dk dal ld La lxxx xd d RARA ARRE RARA c RRA ARA La LL CA ATCT 66 psp El TC1 66 1 Project El TC1766 11 Files Eg Snurce Files fe lnterrupt Vectors CAREER da Xd a cula c LL La c La La o ob 2 2 Loo La a Loa a ota o oL Loo Loo La o a aa ob ata AR RAR a aba ff USER CODE BEGIN MAIN Header 3 n ASCO c USER CODE END F estart asm TD lO c pete d dx LEAR dd Lx dolar LaL dc aL HALLER LXX ALLEL H ALLL A F SLR aca ALLEL HALAS amp D MAIN c ff Project Includes O myprintf c F eE aa E D SIM c include TCl766Regs h 23 Header Files include I0 h 2D ASCO h include ASCD h PO D IO l include STM h n MAINA ff USER CODE BEGIN MAIN Header i0 E E STM h include lt stdio h gt for sprintf for myprintf USER CODE END o
88. ttings For the Tasking Compiler check choose Tasking in the Compiler Settings File View Options Add Ins Windows ota Du m 6s 4 DAvE TC1766 Release v1 0 amp 3 Project Settings a da 2 Controller Type Type Tc1766 v Max system Bo MHz Main Source File Main Header File File name IMAIN c File name MAIN h Compiler Settings C GNU Erinn Qi TC1766 new project Application Note 24 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application System Clock CPU Clock will be 80 MHz System Clock External Clock Frequency External clock frequency check insert 15 MHz File View Options Add Ins Windows l n Dells fus E DAVE TC1766 Release v1 0 Project Settings m ta 2 General d External Clock Frequency External clock frequency o PLL Bypass operation fcpu fosc MHz pin BYPASS 1 Input divider PDIV fp fosc 1 15 000 MHz Voltage Controlled Oscillator VCO r VCO Bypass mode VCOBYP VCO range 400 MHz 500 MHz y MINMMCLI Y Feedback divider NDIV fuco fosc P 32 480 000 MHz v VCO output 80 000 frequency MHz Output Divider Output divider KDIV tcpu fvco 6 80 000 MHz y sj o 80 00000000 zZ The ratio fepu fsys is 2 1 System Clock 80 00000000 MHz he ratio fcpu fsys is 1 1 TC1766 In ANN KG CE GGG GG AG
89. up device y P1 10 pull device Pull up device y P1 11 pull device Pull up device P1 12 pull device Pull up device P1 13 pull device Pull up device y P1 14 pull device Pull up device y TC1766 SE QQ QQ WCC AAC Q QQQ GCG Gg Application Note 93 V2 0 2008 10 Infineon AP32133 TC1766 Cookery Book for a hello world application Output Characteristic do nothing File View Options Add Ins Windows o Dem fios 9 DAvE TC1766 Release v1 0 4 Parallel Ports Ili s d 2 Ports Functions Parameters Notes 29 i BA 4 Output Control Driver of P1 0 Driver of P1 1 Driver of P1 2 Driver of P1 3 Driver of P1 4 Driver of P1 5 Driver of P1 6 Driver of P1 7 Driver of P1 8 Driver of P1 9 Driver of P1 10 Driver of P1 11 Driver of P1 12 Driver of P1 13 Driver of P1 14 TC1766 Tue pe SN S cssJw Application Note 54 V2 0 2008 10 e t AP32133 In fi n eor TC1766 Cookery Book for a hello world application Parameters do nothing File View Options Add Ins Windows 3 Dm nous 9 DAvE TC1766 Release v1 0 4 Parallel Ports lfa iBA 2 Ports Functions Parameters Notes 119 i BA Parameters A MOP A IO P13 loPt4 0 0 loPt5 0 4 IO P1 6 loP18 IO P1 9 IO P1 10 IO P1 11 IO P1 12 IO P1 13 Eun OPI 44 7 0 TC1766 MSP S N SES Notes If you wish you can insert your comments h
90. xternal Memory Sections Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous CrossView Pro Bb Eb Eb O Application Note Internal Memory PMU_BROM ROM OxAFFFCOOO PMU_OVRAM OFF RAM Sk OxCOO00000 DMI LDRAM ON RAM o6k OxDOO00000 PMI SPRAM OFF RAM 16k OxD4000000 PCP_PRAM ON PCPRAM Sk OxFOOSO000 PCP_CMEM ON PCPCODE 12k OxFOO60000 Options string format elf o tc1766 elf d tc1766 Isl Ctc1766b silicon bug all tc1766 a WI M WI mcfkIMoQrSU L PRODDIR lib WI OCLTXY oa Default Help Y 100 V2 0 2008 10 Infineon Linker Linker Linker Linker Linker TriCore VX toolset Project Options TC1766 PJT AP32133 TC1766 Cookery Book for a hello world application Script File Internal Memory Name insert PMU PFLASH Script File Internal Memory Alloc select ON Script File Internal Memory Type select ROM Script File Internal Memory Size insert 1504k Script File Internal Memory Address insert Ox A0000000 EH 0 A H Processor C Compiler C Compiler Assembler PCP Assembler Linker Output Format Script File Special Areas Defines Stack Heap External Memory Sections Output Sections Reserved Map File Libraries Optimization Warnings Miscellaneous Cro ssView Pro Application Note Internal Memory PMU_BROM OFF PMU_OVRAM OFF DMI LDRAM ON PMI
Download Pdf Manuals
Related Search
Related Contents
Surge Manual 平成27年度市民活動団体データ集『むすぶ』 REPRODUCTOR MULTIMEDIA PORTÁTIL CON TELEVISOR Manual de instruções SPH8-1H7B-EIR User Manual.pmd - Broadata Communications, Inc. 20 À La UnE n°268 - Mai 2012 Ce document est le fruit d`un long travail approuvé par le jury de - OpenPowerNet Manhattan QuickDock Duo Copyright © All rights reserved.
Failed to retrieve file