background image

XC164CM

XC164CM Board

Memory Models

XC164CM series Board Manual

18

V 1.0, 2006-01

 

4

Memory Models 

The memory space of the XC164CM is configured in a “von Neumann” architecture. This 
means that code and data are accessed within the same linear address space. 
Attached there are two examples for memory mapping of the XC164CM Board.

4.1

Internal Flash

The XC164CM incorporates 64 Kbytes of embedded Flash memory (starting at location 
C0’0000H) for code or constant data. It is operated from the 5 V pad supply and requires 
no additional programming voltage. The Flash array is organized in five sectors of 4 × 8 
Kbytes, and 1 × 32 Kbytes1). It combines the advantages of very fast read accesses with 
protected but simple writing algorithms for programming and erasing. The 64-bit code 
read accesses realize maximum CPU performance by fetching two double word 
instructions (or four single word instructions) in a single access cycle.
Data integrity is enhanced by an error correction code enabling dynamic correction 
ofsingle bit errors. Additionally, special margin checks are provided to detect and correct 
problematic bits before they lead to actual malfunctions.
The On-chip programming can be done either with a utility program, so called “Memtool” 
or with several other Toolchains of our Tool vendors. Memtool is using the ASC 
bootstrap Loader. The latest version can be found on the Infineon web side. Other tools 
are using the OCDS interface. 

Figure 7

Example for memory mapping (internal flash)

Summary of Contents for XC164CM Series

Page 1: ...N e v e r s t o p t h i n k i n g Microcontrollers XC164CM series Board Manual V 1 0 Jan 2006 XC164CM series Easy Kit Board REV V2 0 and V2 1 ...

Page 2: ...e 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 ...

Page 3: ...s 12 3 2 1 RS 232 Connector ASC0 P101 12 3 2 2 CAN1 P102 12 3 2 3 CAN2 X103 12 3 2 4 LIN Header X104 13 3 2 5 OCDS Interface 13 3 2 6 Power Headers optional 14 3 3 Pin Definition and Location 15 3 4 Zero Ohm Resistors 17 4 Memory Models 18 4 1 Internal Flash 18 4 2 Internal PRAM 19 5 Quick Start Up 20 5 1 Power Supply 20 5 2 OCDS debugging interface 21 5 3 RS232 Interface 21 5 4 MemTool 22 5 5 ASC...

Page 4: ...XC164CM XC164CM Board XC164CM series Board Manual 4 V 1 0 2006 01 ...

Page 5: ...ection to the environment There is also an interface for the On Chip Debugging Features OCDS1 For programming of the embedded Flash Infineon provides a tool called MEMTOOL The Evaluation Board allows easily the development of XC164CM family applications with the corresponding tools Subsequently the applications can be downloaded and can be tested with the powerful debugger software For detailed te...

Page 6: ...ART RS232 8 Low Power Status LEDs Easy access to all pins Connectors The XC164CM Board offers a wide variety of connectors SUB D9 connector for ASC0 Interface via RS 232 port 4 pin header for LIN Transceiver ASC1 16 pin header for JTAG interface OCDS SUB D9 connector for CAN High Speed Transceiver CAN1 10pin 2x5 Header for CAN High Speed Transceiver CAN2 Easy access to all pins Components Dual Low...

Page 7: ... the XC164CM series Easy Kit Board XC164CM series Board Manual 7 V 1 0 2006 01 2 2 Block Diagram Figure 1 Block diagram of XC164CM Easy Kit X C 164C M C P U OCDS1 twinCAN XT AL 8 L ED s Transceiver TxD 0 TxD 1 R xD 0 R xD 1 LIN R S 232 ...

Page 8: ... Features of the XC164CM series Easy Kit Board XC164CM series Board Manual 8 V 1 0 2006 01 2 3 Layout Overview Figure 2 Top view Figure 3 Bottom view OCDS1 Reset Infineon XC164CM RS232 Power CAN1 1 CAN2 1 LIN1 1 Config 1 4 ...

Page 9: ...own in Table 1 All DIP Switch are OFF The XC164CM execute a standard start from internal Flash Table 1 Default configuration The pull ups on the configuration pins are activated while TRST 1 and the hardware reset signal is active shown in the Table 2 below Table 2 Basic Startup Configuration via External Circuitry For more detailed information aboute the DIP switch setting please refer to Chapter...

Page 10: ... series Easy Kit Board XC164CM series Board Manual 10 V 1 0 2006 01 2 5 Power Supply The XC164CM Board needs an external power supply A regulated DC power supply with max 12 Volts 400mA can be connected to the power connector Figure 4 Power Supply ...

Page 11: ...witch S102 Note For debugging purpose OCDS the standard start from internal Flash configuration must be used Table 3 DIP Switch Settings for S102 Name in schematic Default configuration Description S102 Startup configuration Standard start from internal Flash OFF OFF OFF OFF S102 Startup configuration Bootstrap loader ASC ON ON OFF OFF S102 Startup configuration Bootstrap loader CAN ON OFF ON OFF ...

Page 12: ...es XC164CM series Board Manual 12 V 1 0 2006 01 3 2 Headers and Connectors 3 2 1 RS 232 Connector ASC0 P101 3 2 2 CAN1 P102 3 2 3 CAN2 X103 6 7 8 9 1 2 3 4 5 GND RxD0 TxD0 6 7 8 9 1 2 3 4 5 GND CAN1L CAN1H VDDP GND 2 4 6 8 1 3 5 7 9 10 GND GND CAN2L CAN2H VDDP ...

Page 13: ...s Board Manual 13 V 1 0 2006 01 3 2 4 LIN Header X104 3 2 5 OCDS Interface On board header X501 1 2 3 4 GND Vs Bus VBat T D O 2 4 6 8 1 3 5 7 9 1 0 1 2 1 4 1 6 1 1 1 3 1 5 C P U C L K T D I T R S T T C L K T M S G N D G N D M R G N D V cc B R K _ O U T O C D S _ E B R K _ IN ...

Page 14: ... be mounted if a power inverter board for electrical motor drive application is used 2 4 6 8 1 3 5 7 9 10 12 14 16 11 13 15 P1L 0 P1L 6 P1L 7 P1L 5 P1L 4 P1L 3 P1L 2 P1L 1 BUX101 P1H5 P9 4 P9 5 P1H 3 P3 2 P3 8 P3 9 P3 13 2 4 6 8 1 3 5 7 9 10 12 14 16 11 13 15 P5 0 P1H 4 P3 4 P3 6 P5 4 P5 3 P5 2 P5 1 BUX102 VDDP JP101 Vbat GND VAGND VAREF P1H 0 P1H 1 P1H 2 ...

Page 15: ... 19 20 21 22 23 24 25 26 27 28 29 30 31 32 P9 5 CC21IO P9 4 CC20IO P9 3 CC19IO C P9 2 CC18IO C P9 1 CC17IO C P9 0 CC16IO C P3 15 CLKOUT FO VSSP VDDP P3 13 SCLK0 E P3 11 RxD0 E P3 10 TxD0 E P3 9 MTSR0 P3 8 MRST0 P3 7 T2IN BRKIN P3 6 T3IN P1H 0 C6P0 CC23 EX0IN P1H 1 C6P1 MRST1 EX1IN P1H 2 C6P2 MTSR1 EX2IN P1H 3 T7IN SCLK1 EX3IN E P1H 4 CC24 EX4IN P1H 5 CC25 EX5IN VSSP VDDP P5 0 AN0 P5 1 AN1 P5 2 AN2...

Page 16: ...oard Description of Connectors and Switches XC164CM series Board Manual 16 V 1 0 2006 01 Figure 6 Pin connector of the XC164CM Easy Kit Infineon XC164CM X105 15 16 1 2 X106 31 32 17 18 X107 47 48 33 34 X108 63 64 49 50 ...

Page 17: ...4 R124 R130 R131 R132 connect disconnect CAN1 connect disconnect CAN2 enable disable CAN1 enable disable CAN2 supply Bus voltage internal external CAN1 supply Bus voltage internal external CAN2 connect Bus disconnect Bus CAN1 connect Bus disconnect Bus CAN1 TLE 7469V52 Voltage Regulator R120 R121 R118 R119 R116 disable enable Watchdog input disable enable Watchdog functionality connect disconnect ...

Page 18: ... the advantages of very fast read accesses with protected but simple writing algorithms for programming and erasing The 64 bit code read accesses realize maximum CPU performance by fetching two double word instructions or four single word instructions in a single access cycle Data integrity is enhanced by an error correction code enabling dynamic correction ofsingle bit errors Additionally special...

Page 19: ...6 01 4 2 Internal PRAM The XC164CM provides 2 Kbytes of PSRAM E0 0000H E0 07FFH The PSRAM provides fast code execution without initial delays Therefore it supports non sequential code execution for example via the interrupt vector table Figure 8 Memory mapping for internal PRAM ...

Page 20: ...y Kit the following items should be done Start the index htm on the EasyKit CD and follow the Getting Started 5 1 Power Supply A regulated DC power supply with max 12 Volts 400mA should be connected to the power connector Both green LED s should be active Please Note the power supply is not part of the delivery Figure 9 Power Supply Connector ...

Page 21: ...e pins Within the XC164CM Easy Kit you get the USB Wiggler For installing all the required Hardware and Software please follow the Getting Started on the Easy Kit CD by click on the Logo Figure 10 Getting Started on Easy Kit CD 5 3 RS232 Interface For flashing the program to the microcontroller a serial interface among the PC RS232 COMx interface and the XC164M board ASC0 P101 is needed Figure 11 ...

Page 22: ... bootstrap Loader and can be found on the XC164CM Starterkit CD under Tools 5 5 ASC Bootstrap To establish the connection between the ASC bootstrap loader of the XC164CM microcontroller and the PC MemTool the bootstrap loader mode has to be configured Figure 12 ASC Bootstrap loader mode DIP Switch S102 5 6 Start Memtool Go to Target dialog Target Change and select Generic Target with SAB XC164CM 8...

Page 23: ...press the connect button in Memtool If the software status bar displays Ready for Memtool Command you successfully installed Memtool Figure 14 Successful connection 5 8 Prepare Memtool for programming Check the setup for programming select Automatic Erase before Program and Automatic Verify after Program Open the compiled hex file hex h86 from the project directory and push the Select All and Add ...

Page 24: ...amming Figure 16 Program After the successful program press Disconnect Now 5 10 Execution Mode After the code is programmed in the internal flash the microcontroller has to be configured in the standard start mode Figure 17 Standard start mode DIP Switch S102 After the reset buttom blue is pressed the program is executed from the internal flash 3 2 4 1 ...

Page 25: ...43 0R_opt R144 0R_opt 5V 5V 1 6 2 7 3 8 4 9 5 X1 X2 P101 ASC0 GND D113 BAT42 D114 BAT42 GND R123 0R 5V R142 1K CB113 100n GND C110 22µF 50V GND R101 330R 2V6 GND R103 1K5 5V GND 5V D101 LGT679 CO D102 LGT679 CO R125 0R R134 10K 5V P1H 0 P1H 1 P1H 2 P1H 3 P1H 4 P1H 5 P1L 0 P1L 1 P1L 2 P1L 3 P1L 4 P1L 5 P1L 6 P1L 7 NMI XTAL1 XTAL2 RSTIN TRST C111 1n GND R133 10K 5V R104 1K5 GND D104 LST679 CO 1 3 2 ...

Page 26: ...XC164CM XC164CM Board Schematic XC164CM series Board Manual 26 V 1 0 2006 01 ...

Page 27: ...out 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 dange...

Page 28: ...and clearly defined processes which are both constantly under review and ultimately lead to good operating results Better operating results and business excellence mean less idleness and wastefulness for all of us more professional success more accurate information a better overview and thereby less frustration and more satisfaction ...

Reviews: