0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
XC164CM8F40FAAKXQMA1

XC164CM8F40FAAKXQMA1

  • 厂商:

    EUPEC(英飞凌)

  • 封装:

    TQFP

  • 描述:

    IC MCU 16BIT 64KB FLASH

  • 数据手册
  • 价格&库存
XC164CM8F40FAAKXQMA1 数据手册
D a t a S h e e t , V 1 .4 , M a r c h 2007 XC164CM 16-Bit Single-Chip Microcontroller with C166SV2 Core Microcontrollers Edition 2007-03 Published by Infineon Technologies AG 81726 Munich, Germany © 2007 Infineon Technologies AG All Rights Reserved. Legal Disclaimer The information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any information regarding the application of the device, 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. Information For further information on technology, delivery terms and conditions and prices, please contact the 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 the nearest Infineon Technologies Office. Infineon Technologies components may be used in life-support devices or systems only 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. D a t a S h e e t , V 1 .4 , M a r c h 2007 XC164CM 16-Bit Single-Chip Microcontroller with C166SV2 Core Microcontrollers XC164CM Derivatives XC164CM Revision History: V1.4, 2007-03 Previous Version(s): V1.3, 2006-08 V1.2, 2006-03 V1.1, 2005-11 (intermediate version) V1.0, 2005-05 Page Subjects (major changes since last revision) 6 Design steps of the derivatives differentiated. 53 Power consumption of the derivatives differentiated. 54 Figure 11 adapted. 55 Figure 13 adapted. 65 Packages of the derivatives differentiated. 66 Thermal resistances of the derivatives differentiated. all “Preliminary” removed 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 Data Sheet V1.4, 2007-03 XC164CM Derivatives Table of Contents Table of Contents 1 Summary of Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 2.1 General Device Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Pin Configuration and Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Subsystem and Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . Central Processing Unit (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . On-Chip Debug Support (OCDS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Capture/Compare Unit (CAPCOM2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Capture/Compare Unit CAPCOM6 . . . . . . . . . . . . . . . . . . . . . . . . . . . General Purpose Timer (GPT12E) Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . Real Time Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A/D Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Asynchronous/Synchronous Serial Interfaces (ASC0/ASC1) . . . . . . . . . . High Speed Synchronous Serial Channels (SSC0/SSC1) . . . . . . . . . . . . TwinCAN Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LXBus Controller (EBC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parallel Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Instruction Set Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15 18 20 25 26 29 30 34 36 37 38 39 40 41 42 43 44 45 4 4.1 4.2 4.3 4.4 4.4.1 4.4.2 4.4.3 Electrical Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DC Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analog/Digital Converter Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . AC Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition of Internal Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . On-chip Flash Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Clock Drive XTAL1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 48 51 56 59 59 63 64 5 5.1 5.2 Package and Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Flash Memory Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Data Sheet 3 V1.4, 2007-03 16-Bit Single-Chip Microcontroller with C166SV2 Core XC166 Family 1 XC164CM Summary of Features For a quick overview or reference, the XC164CM’s properties are listed here in a condensed way. • • • • • • High Performance 16-bit CPU with 5-Stage Pipeline – 25 ns Instruction Cycle Time at 40 MHz CPU Clock (Single-Cycle Execution) – 1-Cycle Multiplication (16 × 16 bit), Background Division (32 / 16 bit) in 21 Cycles – 1-Cycle Multiply-and-Accumulate (MAC) Instructions – Enhanced Boolean Bit Manipulation Facilities – Zero-Cycle Jump Execution – Additional Instructions to Support HLL and Operating Systems – Register-Based Design with Multiple Variable Register Banks – Fast Context Switching Support with Two Additional Local Register Banks – 16 Mbytes Total Linear Address Space for Code and Data – 1024 Bytes On-Chip Special Function Register Area (C166 Family Compatible) 16-Priority-Level Interrupt System with up to 63 Sources, Sample-Rate down to 50 ns 8-Channel Interrupt-Driven Single-Cycle Data Transfer Facilities via Peripheral Event Controller (PEC), 24-Bit Pointers Cover Total Address Space Clock Generation via on-chip PLL (factors 1:0.15 … 1:10), or via Prescaler (factors 1:1 … 60:1) On-Chip Memory Modules – 2 Kbytes On-Chip Dual-Port RAM (DPRAM) – 0/2/4 Kbytes1) On-Chip Data SRAM (DSRAM) – 2 Kbytes On-Chip Program/Data SRAM (PSRAM) – 32/64/1281) Kbytes On-Chip Program Memory (Flash Memory) On-Chip Peripheral Modules – 14-Channel A/D Converter with Programmable Resolution (10-bit or 8-bit) and Conversion Time (down to 2.55 μs or 2.15 μs) – 16-Channel General Purpose Capture/Compare Unit (CAPCOM2) – Capture/Compare Unit for flexible PWM Signal Generation (CAPCOM6) – Multi-Functional General Purpose Timer Unit with 5 Timers – Two Synchronous/Asynchronous Serial Channels (USARTs) – Two High-Speed-Synchronous Serial Channels – On-Chip TwinCAN Interface (Rev. 2.0B active) with 32 Message Objects (Full CAN/Basic CAN) on Two CAN Nodes, and Gateway Functionality – On-Chip Real Time Clock, Driven by the Main Oscillator 1) Depends on the respective derivative. See Table 1 “XC164CM Derivative Synopsis” on Page 6. Data Sheet 4 V1.4, 2007-03 XC164CM Derivatives Summary of Features • • • • • • • Idle, Sleep, and Power Down Modes with Flexible Power Management Programmable Watchdog Timer and Oscillator Watchdog Up to 47 General Purpose I/O Lines, partly with Selectable Input Thresholds and Hysteresis On-Chip Bootstrap Loader On-Chip Debug Support via JTAG Interface 64-Pin Green LQFP Package for the -16F derivatives, 0.5 mm (19.7 mil) pitch (RoHS compliant) 64-Pin TQFP Package for the -4F/8F derivatives, 0.5 mm (19.7 mil) pitch (RoHS compliant) Ordering Information The ordering code for Infineon microcontrollers provides an exact reference to the required product. This ordering code identifies: • • the derivative itself, i.e. its function set, the temperature range, and the supply voltage the package and the type of delivery. For the available ordering codes for the XC164CM please refer to your responsible sales representative or your local distributor. This document describes several derivatives of the XC164CM group. Table 1 enumerates these derivatives and summarizes the differences. As this document refers to all of these derivatives, some descriptions may not apply to a specific product. For simplicity all versions are referred to by the term XC164CM throughout this document. Data Sheet 5 V1.4, 2007-03 XC164CM Derivatives Summary of Features Table 1 XC164CM Derivative Synopsis Derivative1) Temp. Range Program Memory SAK-XC164CM-16F40F SAK-XC164CM-16F20F -40 to 125 °C 128 Kbytes 2 Kbytes DPRAM, Flash 4 Kbytes DSRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 SAF-XC164CM-16F40F SAF-XC164CM-16F20F -40 to 85 °C 128 Kbytes 2 Kbytes DPRAM, Flash 4 Kbytes DSRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 SAK-XC164CM-8F40F SAK-XC164CM-8F20F -40 to 125 °C 64 Kbytes Flash 2 Kbytes DPRAM, 2 Kbytes DSRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 SAF-XC164CM-8F40F SAF-XC164CM-8F20F -40 to 85 °C 64 Kbytes Flash 2 Kbytes DPRAM, 2 Kbytes DSRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 SAK-XC164CM-4F40F SAK-XC164CM-4F20F -40 to 125 °C 32 Kbytes Flash 2 Kbytes DPRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 SAF-XC164CM-4F40F SAF-XC164CM-4F20F -40 to 85 °C 32 Kbytes Flash 2 Kbytes DPRAM, 2 Kbytes PSRAM ASC0, ASC1, SSC0, SSC1, CAN0, CAN1 On-Chip RAM Interfaces 1) This Data Sheet is valid for: devices starting with and including design step BA for the -16F derivatives, and for devices starting with and including design step AA for -4F/8F derivatives. Data Sheet 6 V1.4, 2007-03 XC164CM Derivatives General Device Information 2 General Device Information The XC164CM derivatives are high-performance members of the Infineon XC166 Family of full featured single-chip CMOS microcontrollers. These devices extend the functionality and performance of the C166 Family in terms of instructions (MAC unit), peripherals, and speed. They combine high CPU performance (up to 40 million instructions per second) with high peripheral functionality and enhanced IO-capabilities. They also provide clock generation via PLL and various on-chip memory modules such as program Flash, program RAM, and data RAM. VAREF VDDI/P VAGND PORT1 14 bit XTAL1 XTAL2 NMI VSS XC164CM Port 3 13 bit RSTIN Port 9 6 bit Port 5 14 bit TRST MCA05554_XC164CM Figure 1 Data Sheet Logic Symbol 7 V1.4, 2007-03 XC164CM Derivatives General Device Information 2.1 Pin Configuration and Definition NMI RSTIN TRST XTAL2 XTAL1 VSS VD DI VD DP P1L.7/CTRAP/CC22IO P1L.6/COUT63 P1L.5/COUT62 P1L.4/CC62 P1L.3/COUT61 P1L.2/CC61 P1L.1/COUT60 P1L.0/CC60 The pins of the XC164CM are described in detail in Table 2, including all their alternate functions. Figure 2 summarizes all pins in a condensed way, showing their location on the 4 sides of the package. E* marks pins to be used as alternate external interrupt inputs. P1H.0/CC6POS0/EX0IN/CC23IO P1H.1/CC6POS1/EX1IN/MRST1 P1H.2/CC6POS2/EX2IN/MTRS1 P1H.3/EX3IN/T7IN/SCLK1 P1H.4/CC24IO/EX4IN P1H.5/CC25IO/EX5IN V SS V DDP XC164CM P5.6/AN6 P5.7/AN7 VAR EF VAG ND P5.12/AN12/T6IN P5.13/AN13/T5IN P5.14/AN14/T4EUD P5.15/AN15/T2EUD VSS V DDI V DDP P3.1/T 6OUT/RxD1/TCK/E* P3.2/CAPIN/TDI P3.3/T3OUT/TDO P3.4/T3EUD/TMS P3.5/T4IN/TxD1/BRKOUT P5.0/AN0 P5.1/AN1 P5.2/AN2 P5.3/AN3 P5.4/AN4 P5.5/AN5 P5.10/AN10/T6EUD P5.11/AN11/T5EUD 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 1 48 2 47 46 3 4 45 5 44 43 6 7 42 8 41 40 9 10 39 11 38 12 37 13 36 14 35 34 15 16 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Figure 2 Data Sheet P9.5/CC21IO P9.4/CC20IO P9.3/CC19IO/CAN1_TxD P9.2/CC18IO/CAN1_RxD/E* P9.1/CC17IO/CAN2_TxD P9.0/CC16IO/CAN2_RxD/E* P3.15/CLKOUT/FOUT VSS 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 mc_xc164cm_pinout.vsd Pin Configuration (top view) 8 V1.4, 2007-03 XC164CM Derivatives General Device Information Table 2 Pin Definitions and Functions Symbol Pin Num. Input Function Outp. RSTIN 63 I Reset Input with Schmitt-Trigger characteristics. A low-level at this pin while the oscillator is running resets the XC164CM. A spike filter suppresses input pulses < 10 ns. Input pulses > 100 ns safely pass the filter. The minimum duration for a safe recognition should be 100 ns + 2 CPU clock cycles. Note: The reset duration must be sufficient to let the hardware configuration signals settle. External circuitry must guarantee low-level at the RSTIN pin at least until both power supply voltages have reached the operating range. NMI 64 I Non-Maskable Interrupt Input. A high to low transition at this pin causes the CPU to vector to the NMI trap routine. When the PWRDN (power down) instruction is executed, the NMI pin must be low in order to force the XC164CM into power down mode. If NMI is high, when PWRDN is executed, the part will continue to run in normal mode. If not used, pin NMI should be pulled high externally. Port 9 43-48 IO P9.0 43 P9.1 44 P9.2 45 P9.3 46 P9.4 P9.5 47 48 I/O I I I/O O I/O I I I/O O I/O I/O Port 9 is a 6-bit bidirectional I/O port. Each pin can be programmed for input (output driver in high-impedance state) or output (configurable as push/pull or open drain driver). The input threshold of Port 9 is selectable (standard or special). The following Port 9 pins also serve for alternate functions: CC16IO: (CAPCOM2) CC16 Capture Inp./Compare Outp., CAN2_RxD: (CAN Node 2) Receive Data Input1), EX5IN: (Fast External Interrupt 5) Input (alternate pin A) CC17IO: (CAPCOM2) CC17 Capture Inp./Compare Outp., CAN2_TxD: (CAN Node 2) Transmit Data Output, CC18IO: (CAPCOM2) CC18 Capture Inp./Compare Outp., CAN1_RxD: (CAN Node 1) Receive Data Input1), EX4IN: (Fast External Interrupt 4) Input (alternate pin A) CC19IO: (CAPCOM2) CC19 Capture Inp./Compare Outp., CAN1_TxD: (CAN Node 1) Transmit Data Output, CC20IO: (CAPCOM2) CC20 Capture Inp./Compare Outp. CC21IO: (CAPCOM2) CC21 Capture Inp./Compare Outp. Note: At the end of an external reset P9.4 and P9.5 also may input startup configuration values. Data Sheet 9 V1.4, 2007-03 XC164CM Derivatives General Device Information Table 2 Pin Definitions and Functions (cont’d) Symbol Pin Num. Input Function Outp. Port 5 9-18, 21-24 I P5.0 P5.1 P5.2 P5.3 P5.4 P5.5 P5.10 P5.11 P5.6 P5.7 P5.12 P5.13 P5.14 P5.15 9 10 11 12 13 14 15 16 17 18 21 22 23 24 I I I I I I I I I I I I I I TRST 62 I Data Sheet Port 5 is a 14-bit input-only port. The pins of Port 5 also serve as analog input channels for the A/D converter, or they serve as timer inputs: AN0 AN1 AN2 AN3 AN4 AN5 AN10 (T6EUD): GPT2 Timer T6 Ext. Up/Down Ctrl. Inp. AN11 (T5EUD): GPT2 Timer T5 Ext. Up/Down Ctrl. Inp. AN6 AN7 AN12 (T6IN): GPT2 Timer T6 Count/Gate Input AN13 (T5IN): GPT2 Timer T5 Count/Gate Input AN14 (T4EUD): GPT1 Timer T4 Ext. Up/Down Ctrl. Inp. AN15 (T2EUD): GPT1 Timer T2 Ext. Up/Down Ctrl. Inp. Test-System Reset Input. For normal system operation, pin TRST should be held low. A high level at this pin at the rising edge of RSTIN enables the hardware configuration and activates the XC164CM’s debug system. In this case, pin TRST must be driven low once to reset the debug system. 10 V1.4, 2007-03 XC164CM Derivatives General Device Information Table 2 Pin Definitions and Functions (cont’d) Symbol Pin Num. Port 3 28-39, IO 42 P3.1 28 P3.2 29 P3.3 30 P3.4 31 P3.5 32 P3.6 P3.7 33 34 P3.8 P3.9 P3.10 35 36 37 P3.11 38 P3.13 39 P3.15 42 Data Sheet Input Function Outp. O I/O I I I I O O I I I O O I I I I/O I/O O I I/O I I/O I O O Port 3 is a 13-bit bidirectional I/O port. Each pin can be programmed for input (output driver in high-impedance state) or output (configurable as push/pull or open drain driver). The input threshold of Port 3 is selectable (standard or special).The following Port 3 pins also serve for alternate functions: T6OUT: [GPT2] Timer T6 Toggle Latch Output, RxD1: [ASC1] Data Input (Async.) or Inp./Outp. (Sync.), EX1IN: [Fast External Interrupt 1] Input (alternate pin A), TCK: [Debug System] JTAG Clock Input CAPIN: [GPT2] Register CAPREL Capture Input, TDI: [Debug System] JTAG Data In T3OUT: [GPT1] Timer T3 Toggle Latch Output, TDO: [Debug System] JTAG Data Out T3EUD: [GPT1] Timer T3 External Up/Down Control Input, TMS: [Debug System] JTAG Test Mode Selection T4IN: [GPT1] Timer T4 Count/Gate/Reload/Capture Inp. TxD1: [ASC0] Clock/Data Output (Async./Sync.), BRKOUT: [Debug System] Break Out T3IN: [GPT1] Timer T3 Count/Gate Input T2IN: [GPT1] Timer T2 Count/Gate/Reload/Capture Inp. BRKIN: [Debug System] Break In MRST0: [SSC0] Master-Receive/Slave-Transmit In/Out. MTSR0: [SSC0] Master-Transmit/Slave-Receive Out/In. TxD0: [ASC0] Clock/Data Output (Async./Sync.), EX2IN: [Fast External Interrupt 2] Input (alternate pin B) RxD0: [ASC0] Data Input (Async.) or Inp./Outp. (Sync.), EX2IN: [Fast External Interrupt 2] Input (alternate pin A) SCLK0: [SSC0] Master Clock Output / Slave Clock Input., EX3IN: [Fast External Interrupt 3] Input (alternate pin A) CLKOUT: System Clock Output (= CPU Clock), FOUT: Programmable Frequency Output 11 V1.4, 2007-03 XC164CM Derivatives General Device Information Table 2 Symbol Pin Definitions and Functions (cont’d) Pin Num. Input Function Outp. PORT1 1-6, 49-56 IO P1L.0 P1L.1 P1L.2 P1L.3 P1L.4 P1L.5 P1L.6 P1L.7 I/O O I/O O I/O O O I 49 50 51 52 53 54 55 56 P1H.0 1 P1H.1 2 P1H.2 3 P1H.3 3 P1H.4 5 P1H.5 6 I/O I I I/O I I I/O I I I/O I I/O I I/O I I/O I PORT1 consists of one 8-bit and one 6-bit bidirectional I/O port P1L and P1H. Each pin can be programmed for input (output driver in high-impedance state) or output. The following PORT1 pins also serve for alt. functions: CC60: [CAPCOM6] Input / Output of Channel 0 COUT60: [CAPCOM6] Output of Channel 0 CC61: [CAPCOM6] Input / Output of Channel 1 COUT61: [CAPCOM6] Output of Channel 1 CC62: [CAPCOM6] Input / Output of Channel 2 COUT62: [CAPCOM6] Output of Channel 2 COUT63: Output of 10-bit Compare Channel CTRAP: [CAPCOM6] Trap Input CTRAP is an input pin with an internal pull-up resistor. A low level on this pin switches the CAPCOM6 compare outputs to the logic level defined by software (if enabled). CC22IO: [CAPCOM2] CC22 Capture Inp./Compare Outp. CC6POS0: [CAPCOM6] Position 0 Input, EX0IN: [Fast External Interrupt 0] Input (default pin), CC23IO: [CAPCOM2] CC23 Capture Inp./Compare Outp. CC6POS1: [CAPCOM6] Position 1 Input, EX1IN: [Fast External Interrupt 1] Input (default pin), MRST1: [SSC1] Master-Receive/Slave-Transmit In/Out. CC6POS2: [CAPCOM6] Position 2 Input, EX2IN: [Fast External Interrupt 2] Input (default pin), MTSR1: [SSC1] Master-Transmit/Slave-Receive Out/Inp. T7IN: [CAPCOM2] Timer T7 Count Input, SCLK1: [SSC1] Master Clock Output / Slave Clock Input, EX3IN: [Fast External Interrupt 3] Input (default pin), CC24IO: [CAPCOM2] CC24 Capture Inp./Compare Outp., EX4IN: [Fast External Interrupt 4] Input (default pin) CC25IO: [CAPCOM2] CC25 Capture Inp./Compare Outp., EX5IN: [Fast External Interrupt 5] Input (default pin) Note: At the end of an external reset P1H.4 and P1H.5 also may input startup configuration values Data Sheet 12 V1.4, 2007-03 XC164CM Derivatives General Device Information Table 2 Pin Definitions and Functions (cont’d) Symbol Pin Num. Input Function Outp. XTAL2 XTAL1 61 60 O I XTAL2: Output of the oscillator amplifier circuit XTAL1: Input to the oscillator amplifier and input to the internal clock generator To clock the device from an external source, drive XTAL1, while leaving XTAL2 unconnected. Minimum and maximum high/low and rise/fall times specified in the AC Characteristics must be observed. Note: Input pin XTAL1 belongs to the core voltage domain. Therefore, input voltages must be within the range defined for VDDI. VAREF VAGND VDDI 19 – Reference voltage for the A/D converter 20 – Reference ground for the A/D converter 26, 58 – Digital Core Supply Voltage (On-Chip Modules): +2.5 V during normal operation and idle mode. Please refer to the Operating Condition Parameters VDDP 8, 27, – 40, 57 Digital Pad Supply Voltage (Pin Output Drivers): +5 V during normal operation and idle mode. Please refer to the Operating Condition Parameters VSS 7, 25, – 41, 59 Digital Ground Connect decoupling capacitors to adjacent VDD/VSS pin pairs as close as possible to the pins. All VSS pins must be connected to the ground-line or groundplane. 1) The CAN interface lines are assigned to port P9 under software control. Data Sheet 13 V1.4, 2007-03 XC164CM Derivatives Functional Description 3 Functional Description The architecture of the XC164CM combines advantages of RISC, CISC, and DSP processors with an advanced peripheral subsystem in a very well-balanced way. In addition, the on-chip memory blocks allow the design of compact systems-on-silicon with maximum performance (computing, control, communication). The on-chip memory blocks (program code-memory and SRAM, dual-port RAM, data SRAM) and the set of generic peripherals are connected to the CPU via separate buses. Another bus, the LXBus, connects additional on-chip resources (see Figure 3). This bus structure enhances the overall system performance by enabling the concurrent operation of several subsystems of the XC164CM. The following block diagram gives an overview of the different on-chip components and of the advanced, high bandwidth internal bus structure of the XC164CM. PSRAM DPRAM 2 Kbytes 2 Kbytes DSRAM 0/2/4 Kbytes ProgMem 32/64/128 Kbytes reduced LXBus Control EBC DMU PMU Flash CPU C166SV2-Core OCDS XTAL Osc / PLL Clock Generation RTC WDT L XBu s Debug Support Interrupt & PEC Interrupt Bus Peripheral Data Bus ADC GPT ASC0 ASC1 SSC0 SSC1 8/10-Bit 14 C hannels T2 (U SAR T) (U SAR T) (SPI) (SPI) T3 CC2 CC6 T7 T12 T8 T13 Twin CAN T4 A T5 T6 Port 9 BR Gen BR Gen BR Gen Port 5 6 B BR Gen Port 3 13 14 POR T1 14 mc_xc164cm_block.vsd Figure 3 Data Sheet Block Diagram 14 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.1 Memory Subsystem and Organization The memory space of the XC164CM is configured in a von Neumann architecture, which means that all internal and external resources, such as code memory, data memory, registers and I/O ports, are organized within the same linear address space. This common memory space includes 16 Mbytes and is arranged as 256 segments of 64 Kbytes each, where each segment consists of four data pages of 16 Kbytes each. The entire memory space can be accessed byte wise or word wise. Portions of the on-chip DPRAM and the register spaces (E/SFR) have additionally been made directly bit addressable. The internal data memory areas and the Special Function Register areas (SFR and ESFR) are mapped into segment 0, the system segment. The Program Management Unit (PMU) handles all code fetches and, therefore, controls accesses to the program memories, such as Flash memory and PSRAM. The Data Management Unit (DMU) handles all data transfers and, therefore, controls accesses to the DSRAM and the on-chip peripherals. Both units (PMU and DMU) are connected via the high-speed system bus to exchange data. This is required if operands are read from program memory, code or data is written to the PSRAM, or data is read from or written to peripherals on the LXBus (such as TwinCAN). The system bus allows concurrent two-way communication for maximum transfer performance. 32/64/128 Kbytes of on-chip Flash memory1) store code or constant data. The on-chip Flash memory is organized as four 8-Kbyte sectors and up to three 32-Kbyte sectors. Each sector can be separately write protected2), erased and programmed (in blocks of 128 Bytes). The complete Flash area can be read-protected. A password sequence temporarily unlocks protected areas. The Flash module combines very fast 64-bit onecycle read accesses with protected and efficient writing algorithms for programming and erasing. Thus, program execution out of the internal Flash results in maximum performance. Dynamic error correction provides extremely high read data security for all read accesses. Programming typically takes 2 ms per 128-byte block (5 ms max.), erasing a sector typically takes 200 ms (500 ms max.). 2 Kbytes of on-chip Program SRAM (PSRAM) are provided to store user code or data. The PSRAM is accessed via the PMU and is therefore optimized for code fetches. 0/2/4 Kbytes1) of on-chip Data SRAM (DSRAM) are provided as a storage for general user data. The DSRAM is accessed via the DMU and is therefore optimized for data accesses. DSRAM is not available in the XC164CM-4F derivatives. 1) Depends on the respective derivative. See Table 1 “XC164CM Derivative Synopsis” on Page 6. 2) Each two 8-Kbyte sectors are combined for write-protection purposes. Data Sheet 15 V1.4, 2007-03 XC164CM Derivatives Functional Description 2 Kbytes of on-chip Dual-Port RAM (DPRAM) are provided as a storage for user defined variables, for the system stack, general purpose register banks. A register bank can consist of up to 16 word wide (R0 to R15) and/or byte wide (RL0, RH0, …, RL7, RH7) so-called General Purpose Registers (GPRs). The upper 256 bytes of the DPRAM are directly bit addressable. When used by a GPR, any location in the DPRAM is bit addressable. 1024 bytes (2 × 512 bytes) of the address space are reserved for the Special Function Register areas (SFR space and ESFR space). SFRs are word wide registers which are used for controlling and monitoring functions of the different on-chip units. Unused SFR addresses are reserved for future members of the XC166 Family. Therefore, they should either not be accessed, or written with zeros, to ensure upward compatibility. Table 3 XC164CM Memory Map Address Area Start Loc. End Loc. Area Size1) Notes Flash register space FF’F000H FF’FFFFH 4 Kbytes 2) Reserved (Acc. trap) F8’0000H FF’FFFFH 508 Kbytes – Reserved for PSRAM E0’0800H F7’FFFFH < 1.5 Mbytes Minus PSRAM Program SRAM E0’0000H E0’07FFH 2 Kbytes – Reserved for pr. mem. C2’0000H DF’FFFFH < 2 Mbytes Minus Flash Program Flash C0’0000H C1’FFFFH 128 Kbytes XC164CM-16F C0’0000H C0’FFFFH 64 Kbytes XC164CM-8F C0’0000H C0’7FFFH 32 Kbytes XC164CM-4F Reserved 20’0800H BF’FFFFH < 10 Mbytes Minus TwinCAN TwinCAN registers 20’0000H 20’07FFH 2 Kbytes Accessed via EBC Reserved 01’0000H 1F’FFFFH < 2 Mbytes Minus segment 0 SFR area 00’FE00H 00’FFFFH 0.5 Kbyte – Dual-Port RAM 00’F600H 00’FDFFH 2 Kbytes – Reserved for DPRAM 00’F200H 00’F5FFH 1 Kbyte – ESFR area 00’F000H 00’F1FFH 0.5 Kbyte – XSFR area 00’E000H 00’EFFFH 4 Kbytes – Reserved 00’D000H 00’DFFFH 6 Kbytes – Data SRAM 00’C000H 00’CFFFH 4 Kbytes 3) Reserved for DSRAM 00’8000H 00’BFFFH 16 Kbytes – Reserved 00’0000H 00’7FFFH 32 Kbytes – 1) The areas marked with “ 100 years) Alarm interrupt for wake-up on a defined time Data Sheet 35 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.9 A/D Converter For analog signal measurement, a 10-bit A/D converter with 14 multiplexed input channels and a sample and hold circuit has been integrated on-chip. It uses the method of successive approximation. The sample time (for loading the capacitors) and the conversion time is programmable (in two modes) and can thus be adjusted to the external circuitry. The A/D converter can also operate in 8-bit conversion mode, where the conversion time is further reduced. Overrun error detection/protection is provided for the conversion result register (ADDAT): either an interrupt request will be generated when the result of a previous conversion has not been read from the result register at the time the next conversion is complete, or the next conversion is suspended in such a case until the previous result has been read. For applications which require less analog input channels, the remaining channel inputs can be used as digital input port pins. The A/D converter of the XC164CM supports four different conversion modes. In the standard Single Channel conversion mode, the analog level on a specified channel is sampled once and converted to a digital result. In the Single Channel Continuous mode, the analog level on a specified channel is repeatedly sampled and converted without software intervention. In the Auto Scan mode, the analog levels on a prespecified number of channels are sequentially sampled and converted. In the Auto Scan Continuous mode, the prespecified channels are repeatedly sampled and converted. In addition, the conversion of a specific channel can be inserted (injected) into a running sequence without disturbing this sequence. This is called Channel Injection Mode. The Peripheral Event Controller (PEC) may be used to automatically store the conversion results into a table in memory for later evaluation, without requiring the overhead of entering and exiting interrupt routines for each data transfer. After each reset and also during normal operation the ADC automatically performs calibration cycles. This automatic self-calibration constantly adjusts the converter to changing operating conditions (e.g. temperature) and compensates process variations. These calibration cycles are part of the conversion cycle, so they do not affect the normal operation of the A/D converter. In order to decouple analog inputs from digital noise and to avoid input trigger noise those pins used for analog input can be disconnected from the digital input stages under software control. This can be selected for each pin separately via register P5DIDIS (Port 5 Digital Input Disable). The Auto-Power-Down feature of the A/D converter minimizes the power consumption when no conversion is in progress. Data Sheet 36 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.10 Asynchronous/Synchronous Serial Interfaces (ASC0/ASC1) The Asynchronous/Synchronous Serial Interfaces ASC0/ASC1 (USARTs) provide serial communication with other microcontrollers, processors, terminals or external peripheral components. They are upward compatible with the serial ports of the Infineon 8-bit microcontroller families and support full-duplex asynchronous communication and halfduplex synchronous communication. A dedicated baudrate generator with a fractional divider precisely generates all standard baud rates without oscillator tuning. For transmission, reception, error handling, and baud rate detection 5 separate interrupt vectors are provided. In asynchronous mode, 8- or 9-bit data frames (with optional parity bit) are transmitted or received, preceded by a start bit and terminated by one or two stop bits. For multiprocessor communication, a mechanism to distinguish address from data bytes has been included (8-bit data plus wake-up bit mode). IrDA data transmissions up to 115.2 kbit/s with fixed or programmable IrDA pulse width are supported. In synchronous mode, bytes (8 bits) are transmitted or received synchronously to a shift clock which is generated by the ASC0/1. The LSB is always shifted first. In both modes, transmission and reception of data is FIFO-buffered. An autobaud detection unit allows to detect asynchronous data frames with its baudrate and mode with automatic initialization of the baudrate generator and the mode control bits. A number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. A parity bit can automatically be generated on transmission or be checked on reception. Framing error detection allows to recognize data frames with missing stop bits. An overrun error will be generated, if the last character received has not been read out of the receive buffer register at the time the reception of a new character is complete. Summary of Features • • • • • Full-duplex asynchronous operating modes – 8- or 9-bit data frames, LSB first, one or two stop bits, parity generation/checking – Baudrate from 2.5 Mbit/s to 0.6 bit/s (@ 40 MHz) – Multiprocessor mode for automatic address/data byte detection – Support for IrDA data transmission/reception up to max. 115.2 kbit/s (@ 40 MHz) – Auto baudrate detection Half-duplex 8-bit synchronous operating mode at 5 Mbit/s to 406.9 bit/s (@ 40 MHz) Buffered transmitter/receiver with FIFO support (8 entries per direction) Loop-back option available for testing purposes Interrupt generation on transmitter buffer empty condition, last bit transmitted condition, receive buffer full condition, error condition (frame, parity, overrun error), start and end of an autobaud detection Data Sheet 37 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.11 High Speed Synchronous Serial Channels (SSC0/SSC1) The High Speed Synchronous Serial Channels SSC0/SSC1 support full-duplex and halfduplex synchronous communication. It may be configured so it interfaces with serially linked peripheral components, full SPI functionality is supported. A dedicated baud rate generator allows to set up all standard baud rates without oscillator tuning. For transmission, reception and error handling three separate interrupt vectors are provided. The SSC transmits or receives characters of 2 … 16 bits length synchronously to a shift clock which can be generated by the SSC (master mode) or by an external master (slave mode). The SSC can start shifting with the LSB or with the MSB and allows the selection of shifting and latching clock edges as well as the clock polarity. A number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. Transmit error and receive error supervise the correct handling of the data buffer. Phase error and baudrate error detect incorrect serial data. Summary of Features • • • • • • • Master or Slave mode operation Full-duplex or Half-duplex transfers Baudrate generation from 20 Mbit/s to 305.18 bit/s (@ 40 MHz) Flexible data format – Programmable number of data bits: 2 to 16 bits – Programmable shift direction: LSB-first or MSB-first – Programmable clock polarity: idle low or idle high – Programmable clock/data phase: data shift with leading or trailing clock edge Loop back option available for testing purposes Interrupt generation on transmitter buffer empty condition, receive buffer full condition, error condition (receive, phase, baudrate, transmit error) Three pin interface with flexible SSC pin configuration Data Sheet 38 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.12 TwinCAN Module The integrated TwinCAN module handles the completely autonomous transmission and reception of CAN frames in accordance with the CAN specification V2.0 part B (active), i.e. the on-chip TwinCAN module can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. Two Full-CAN nodes share the TwinCAN module’s resources to optimize the CAN bus traffic handling and to minimize the CPU load. The module provides up to 32 message objects, which can be assigned to one of the CAN nodes and can be combined to FIFOstructures. Each object provides separate masks for acceptance filtering. The flexible combination of Full-CAN functionality and FIFO architecture reduces the efforts to fulfill the real-time requirements of complex embedded control applications. Improved CAN bus monitoring functionality as well as the number of message objects permit precise and comfortable CAN bus traffic handling. Gateway functionality allows automatic data exchange between two separate CAN bus systems, which reduces CPU load and improves the real time behavior of the entire system. The bit timing for both CAN nodes is derived from the master clock and is programmable up to a data rate of 1 Mbit/s. Each CAN node uses two pins of Port 9 to interface to an external bus transceiver. The interface pins are assigned via software. TwinCAN Module Kernel Clock Control Address Decoder Interrupt Control fCAN CAN Node A CAN Node B Message Object Buffer TxDCA RxDCA Port Control TxDCB RxDCB TwinCAN Control MCB05567 Figure 10 Data Sheet TwinCAN Module Block Diagram 39 V1.4, 2007-03 XC164CM Derivatives Functional Description Summary of Features • • • • • • • CAN functionality according to CAN specification V2.0 B active Data transfer rate up to 1 Mbit/s Flexible and powerful message transfer control and error handling capabilities Full-CAN functionality and Basic CAN functionality for each message object 32 flexible message objects – Assignment to one of the two CAN nodes – Configuration as transmit object or receive object – Concatenation to a 2-, 4-, 8-, 16-, or 32-message buffer with FIFO algorithm – Handling of frames with 11-bit or 29-bit identifiers – Individual programmable acceptance mask register for filtering for each object – Monitoring via a frame counter – Configuration for Remote Monitoring Mode Up to eight individually programmable interrupt nodes can be used CAN Analyzer Mode for bus monitoring is implemented 3.13 LXBus Controller (EBC) The EBC only controls accesses to resources connected to the on-chip LXBus. The LXBus is an internal representation of the external bus and allows accessing integrated peripherals and modules in the same way as external components. The TwinCAN module is connected and accessed via the LXBus. Data Sheet 40 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.14 Watchdog Timer The Watchdog Timer represents one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. The Watchdog Timer is always enabled after a reset of the chip, and can be disabled until the EINIT instruction has been executed (compatible mode), or it can be disabled and enabled at any time by executing instructions DISWDT and ENWDT (enhanced mode). Thus, the chip’s start-up procedure is always monitored. The software has to be designed to restart the Watchdog Timer before it overflows. If, due to hardware or software related failures, the software fails to do so, the Watchdog Timer overflows and generates an internal hardware reset. The Watchdog Timer is a 16-bit timer, clocked with the system clock divided by 2/4/128/256. The high byte of the Watchdog Timer register can be set to a prespecified reload value (stored in WDTREL) in order to allow further variation of the monitored time interval. Each time it is serviced by the application software, the high byte of the Watchdog Timer is reloaded and the low byte is cleared. Thus, time intervals between 13 μs and 419 ms can be monitored (@ 40 MHz). The default Watchdog Timer interval after reset is 3.28 ms (@ 40 MHz). Data Sheet 41 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.15 Clock Generation The Clock Generation Unit uses a programmable on-chip PLL with multiple prescalers to generate the clock signals for the XC164CM with high flexibility. The master clock fMC is the reference clock signal, and is used for TwinCAN and is output to the external system. The CPU clock fCPU and the system clock fSYS are derived from the master clock either directly (1:1) or via a 2:1 prescaler (fSYS = fCPU = fMC / 2). See also Section 4.4.1. The on-chip oscillator can drive an external crystal or accepts an external clock signal. The oscillator clock frequency can be multiplied by the on-chip PLL (by a programmable factor) or can be divided by a programmable prescaler factor. If the bypass mode is used (direct drive or prescaler) the PLL can deliver an independent clock to monitor the clock signal generated by the on-chip oscillator. This PLL clock is independent from the XTAL1 clock. When the expected oscillator clock transitions are missing the Oscillator Watchdog (OWD) activates the PLL Unlock/OWD interrupt node and supplies the CPU with an emergency clock, the PLL clock signal. Under these circumstances the PLL will oscillate with its basic frequency. The oscillator watchdog can be disabled by switching the PLL off. This reduces power consumption, but also no interrupt request will be generated in case of a missing oscillator clock. Data Sheet 42 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.16 Parallel Ports The XC164CM provides up to 47 I/O lines which are organized into three input/output ports and one input port. All port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. The I/O ports are true bidirectional ports which are switched to high impedance state when configured as inputs. The output drivers of some I/O ports can be configured (pin by pin) for push/pull operation or open-drain operation via control registers. During the internal reset, all port pins are configured as inputs. The edge characteristics (shape) and driver characteristics (output current) of the port drivers can be selected via registers POCONx. The input threshold of some ports is selectable (TTL or CMOS like), where the special CMOS like input threshold reduces noise sensitivity due to the input hysteresis. The input threshold may be selected individually for each byte of the respective ports. All port lines have programmable alternate input or output functions associated with them. All port lines that are not used for these alternate functions may be used as general purpose IO lines. Table 7 Summary of the XC164CM’s Parallel Ports Port Control Alternate Functions PORT1 Pad drivers Capture inputs or compare outputs, Serial interface lines Port 3 Pad drivers, Open drain, Input threshold Timer control signals, serial interface lines, System clock output CLKOUT (or FOUT) Port 5 – Analog input channels to the A/D converter, Timer control signals Port 9 Pad drivers, Open drain, Input threshold Capture inputs or compare outputs CAN interface lines1) 1) Can be assigned by software. Data Sheet 43 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.17 Power Management The XC164CM provides several means to control the power it consumes either at a given time or averaged over a certain timespan. Three mechanisms can be used (partly in parallel): • • • Power Saving Modes switch the XC164CM into a special operating mode (control via instructions). Idle Mode stops the CPU while the peripherals can continue to operate. Sleep Mode and Power Down Mode stop all clock signals and all operation (RTC may optionally continue running). Sleep Mode can be terminated by external interrupt signals. Clock Generation Management controls the distribution and the frequency of internal and external clock signals. While the clock signals for currently inactive parts of logic are disabled automatically, the user can reduce the XC164CM’s CPU clock frequency which drastically reduces the consumed power. External circuitry can be controlled via the programmable frequency output FOUT. Peripheral Management permits temporary disabling of peripheral modules (control via register SYSCON3). Each peripheral can separately be disabled/enabled. The on-chip RTC supports intermittent operation of the XC164CM by generating cyclic wake-up signals. This offers full performance to quickly react on action requests while the intermittent sleep phases greatly reduce the average power consumption of the system. Data Sheet 44 V1.4, 2007-03 XC164CM Derivatives Functional Description 3.18 Instruction Set Summary Table 8 lists the instructions of the XC164CM in a condensed way. The various addressing modes that can be used with a specific instruction, the operation of the instructions, parameters for conditional execution of instructions, and the opcodes for each instruction can be found in the “Instruction Set Manual”. This document also provides a detailed description of each instruction. Table 8 Instruction Set Summary Mnemonic Description Bytes ADD(B) Add word (byte) operands 2/4 ADDC(B) Add word (byte) operands with Carry 2/4 SUB(B) Subtract word (byte) operands 2/4 SUBC(B) Subtract word (byte) operands with Carry 2/4 MUL(U) (Un)Signed multiply direct GPR by direct GPR (16- × 16-bit) 2 DIV(U) (Un)Signed divide register MDL by direct GPR (16-/16-bit) 2 DIVL(U) (Un)Signed long divide reg. MD by direct GPR (32-/16-bit) 2 CPL(B) Complement direct word (byte) GPR 2 NEG(B) Negate direct word (byte) GPR 2 AND(B) Bitwise AND, (word/byte operands) 2/4 OR(B) Bitwise OR, (word/byte operands) 2/4 XOR(B) Bitwise exclusive OR, (word/byte operands) 2/4 BCLR/BSET Clear/Set direct bit 2 BMOV(N) Move (negated) direct bit to direct bit 4 BAND/BOR/BXOR AND/OR/XOR direct bit with direct bit 4 BCMP Compare direct bit to direct bit 4 BFLDH/BFLDL Bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 CMP(B) Compare word (byte) operands 2/4 CMPD1/2 Compare word data to GPR and decrement GPR by 1/2 2/4 CMPI1/2 Compare word data to GPR and increment GPR by 1/2 2/4 PRIOR Determine number of shift cycles to normalize direct word GPR and store result in direct word GPR 2 SHL/SHR Shift left/right direct word GPR 2 Data Sheet 45 V1.4, 2007-03 XC164CM Derivatives Functional Description Table 8 Instruction Set Summary (cont’d) Mnemonic Description Bytes ROL/ROR Rotate left/right direct word GPR 2 ASHR Arithmetic (sign bit) shift right direct word GPR 2 MOV(B) Move word (byte) data 2/4 MOVBS/Z Move byte operand to word op. with sign/zero extension 2/4 JMPA/I/R Jump absolute/indirect/relative if condition is met 4 JMPS Jump absolute to a code segment 4 JB(C) Jump relative if direct bit is set (and clear bit) 4 JNB(S) Jump relative if direct bit is not set (and set bit) 4 CALLA/I/R Call absolute/indirect/relative subroutine if condition is met 4 CALLS Call absolute subroutine in any code segment 4 PCALL Push direct word register onto system stack and call absolute subroutine 4 TRAP Call interrupt service routine via immediate trap number 2 PUSH/POP Push/pop direct word register onto/from system stack 2 SCXT Push direct word register onto system stack and update register with word operand 4 RET(P) Return from intra-segment subroutine (and pop direct word register from system stack) 2 RETS Return from inter-segment subroutine 2 RETI Return from interrupt service subroutine 2 SBRK Software Break 2 SRST Software Reset 4 IDLE Enter Idle Mode 4 PWRDN Enter Power Down Mode (supposes NMI-pin being low) 4 SRVWDT Service Watchdog Timer 4 DISWDT/ENWDT Disable/Enable Watchdog Timer 4 EINIT End-of-Initialization Register Lock 4 ATOMIC Begin ATOMIC sequence 2 EXTR Begin EXTended Register sequence 2 EXTP(R) Begin EXTended Page (and Register) sequence 2/4 EXTS(R) Begin EXTended Segment (and Register) sequence 2/4 Data Sheet 46 V1.4, 2007-03 XC164CM Derivatives Functional Description Table 8 Instruction Set Summary (cont’d) Mnemonic Description Bytes NOP Null operation 2 CoMUL/CoMAC Multiply (and accumulate) 4 CoADD/CoSUB Add/Subtract 4 Co(A)SHR (Arithmetic) Shift right 4 CoSHL Shift left 4 CoLOAD/STORE Load accumulator/Store MAC register 4 CoCMP Compare 4 CoMAX/MIN Maximum/Minimum 4 CoABS/CoRND Absolute value/Round accumulator 4 CoMOV Data move 4 CoNEG/NOP Negate accumulator/Null operation 4 Data Sheet 47 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4 Electrical Parameters The operating range for the XC164CM is defined by its electrical parameters. For proper operation the indicated limitations must be respected when designing a system. 4.1 General Parameters These parameters are valid for all subsequent descriptions, unless otherwise noted. Table 9 Absolute Maximum Ratings Parameter Symbol Limit Values Unit Notes Min. Max. TST TJ VDDI -65 150 °C 1) -40 150 °C Under bias -0.5 3.25 V – Voltage on VDDP pins with respect to ground (VSS) VDDP -0.5 6.2 V – Voltage on any pin with respect to ground (VSS) VIN -0.5 VDDP + V 2) Input current on any pin during overload condition – -10 10 mA – Absolute sum of all input currents during overload condition – – |100| mA – Storage temperature Junction temperature Voltage on VDDI pins with respect to ground (VSS) 0.5 1) Moisture Sensitivity Level (MSL) 3, conforming to Jedec J-STD-020C for 260 °C. 2) Input pin XTAL1 belongs to the core voltage domain. Therefore, input voltages must be within the range defined for VDDI. Note: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. During absolute maximum rating overload conditions (VIN > VDDP or VIN < VSS) the voltage on VDDP pins with respect to ground (VSS) must not exceed the values defined by the absolute maximum ratings. Data Sheet 48 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters Operating Conditions The following operating conditions must not be exceeded to ensure correct operation of the XC164CM. All parameters specified in the following sections refer to these operating conditions, unless otherwise noticed. Table 10 Operating Condition Parameters Parameter Symbol Limit Values Min. Max. Unit Notes Digital supply voltage for the core VDDI 2.35 2.7 V Active mode, fCPU = fCPUmax1) Digital supply voltage for IO pads VDDP 4.4 5.5 V Active mode2)3) -0.5 – V VDDP - VDDI4) V Reference voltage Supply Voltage Difference ΔVDD Digital ground voltage VSS IOV 0 -5 5 mA Per IO pin5)6) -2 5 mA Per analog input pin5)6) Overload current coupling KOVA factor for analog inputs7) – 1.0 × 10-4 – – 1.5 × 10-3 – Overload current coupling KOVD factor for digital I/O pins7) – 5.0 × 10-3 – – 1.0 × 10-2 – Absolute sum of overload currents Σ|IOV| – 50 mA 6) External Load Capacitance CL – 50 pF Pin drivers in default mode8) Ambient temperature TA 0 70 °C SAB-XC164… -40 85 °C SAF-XC164… -40 125 °C SAK-XC164… Overload current IOV > 0 IOV < 0 IOV > 0 IOV < 0 1) fCPUmax = 40 MHz for devices marked … 40F, fCPUmax = 20 MHz for devices marked … 20F. 2) External circuitry must guarantee low-level at the RSTIN pin at least until both power supply voltages have reached the operating range. 3) The specified voltage range is allowed for operation. The range limits may be reached under extreme operating conditions. However, specified parameters, such as leakage currents, refer to the standard operating voltage range of VDDP = 4.75 V to 5.25 V. 4) This limitation must be fulfilled under all operating conditions including power-ramp-up, power-ramp-down, and power-save modes. Data Sheet 49 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 5) Overload conditions occur if the standard operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range: VOV > VDDP + 0.5 V (IOV > 0) or VOV < VSS - 0.5 V (IOV < 0). The absolute sum of input overload currents on all pins may not exceed 50 mA. The supply voltages must remain within the specified limits. Proper operation is not guaranteed if overload conditions occur on functional pins such as XTAL1. 6) Not subject to production test - verified by design/characterization. 7) An overload current (IOV) through a pin injects a certain error current (IINJ) into the adjacent pins. This error current adds to the respective pin’s leakage current (IOZ). The amount of error current depends on the overload current and is defined by the overload coupling factor KOV. The polarity of the injected error current is inverse compared to the polarity of the overload current that produces it. The total current through a pin is |ITOT| = |IOZ| + (|IOV| × KOV). The additional error current may distort the input voltage on analog inputs. 8) The timing is valid for pin drivers operating in default current mode (selected after reset). Reducing the output current may lead to increased delays or reduced driving capability (CL). Parameter Interpretation The parameters listed in the following partly represent the characteristics of the XC164CM and partly its demands on the system. To aid in interpreting the parameters right, when evaluating them for a design, they are marked in column “Symbol”: CC (Controller Characteristics): The logic of the XC164CM will provide signals with the respective characteristics. SR (System Requirement): The external system must provide signals with the respective characteristics to the XC164CM. Data Sheet 50 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4.2 DC Parameters These parameters are static or average values, which may be exceeded during switching transitions (e.g. output current). Table 11 DC Characteristics (Operating Conditions apply)1) Parameter Symbol Limit Values Min. Max. Unit Test Condition Input low voltage TTL (all except XTAL1) VIL SR -0.5 0.2 × VDDP V - 0.1 – Input low voltage XTAL12) VILC SR -0.5 0.3 × VDDI V – Input low voltage (Special Threshold) VILS SR -0.5 0.45 × V 3) Input high voltage TTL VIH (all except XTAL1) SR 0.2 × VDDP + 0.9 VDDP VDDP + 0.5 V – Input high voltage XTAL12) VIHC SR 0.7 × VDDI VDDI + 0.5 V – Input high voltage (Special Threshold) VIHS SR 0.8 × VDDP VDDP + 0.5 V - 0.2 3) Input Hysteresis (Special Threshold) HYS 0.04 × VDDP in [V], Output low voltage VOL V VDDP CC – – Output high voltage6) – VOH Series resistance = 0 Ω3) 1.0 V 0.45 V CC VDDP - 1.0 – VDDP - V – V ±300 nA 0 V < VIN < VDDP, TA ≤ 125 °C ±200 nA 0 V < VIN < VDDP, TA ≤ 85 °C12) ±500 nA 0.45 V < VIN < 0.45 Input leakage current (Port 5)7) Input leakage current (all other8))7) Configuration pull-up current9) Data Sheet IOZ1 CC – IOZ2 CC – 10) ICPUH ICPUL11) – -10 μA -100 – μA 51 IOL ≤ IOLmax4) IOL ≤ IOLnom4)5) IOH ≥ IOHmax4) IOH ≥ IOHnom4)5) VDDP VIN = VIHmin VIN = VILmax V1.4, 2007-03 XC164CM Derivatives Electrical Parameters Table 11 DC Characteristics (Operating Conditions apply)1) (cont’d) Parameter Symbol Limit Values Min. XTAL1 input current Pin capacitance12) (digital inputs/outputs) IIL CIO Unit Test Condition Max. CC – ±20 μA 0 V < VIN < VDDI CC – 10 pF – 1) Keeping signal levels within the limits specified in this table, ensures operation without overload conditions. For signal levels outside these specifications, also refer to the specification of the overload current IOV. 2) If XTAL1 is driven by a crystal, reaching an amplitude (peak to peak) of 0.4 × VDDI is sufficient. 3) This parameter is tested for P3, P9. 4) The maximum deliverable output current of a port driver depends on the selected output driver mode, see Table 12, Current Limits for Port Output Drivers. The limit for pin groups must be respected. 5) As a rule, with decreasing output current the output levels approach the respective supply level (VOL → VSS, VOH → VDDP). However, only the levels for nominal output currents are guaranteed. 6) This specification is not valid for outputs which are switched to open drain mode. In this case the respective output will float and the voltage results from the external circuitry. 7) An additional error current (IINJ) will flow if an overload current flows through an adjacent pin. Please refer to the definition of the overload coupling factor KOV. 8) The driver of P3.15 is designed for faster switching, because this pin can deliver the system clock (CLKOUT). The maximum leakage current for P3.15 is, therefore, increased to 1 μA. 9) During a hardware reset this specification is valid for configuration on P1H.4, P1H.5, P9.4 and P9.5. After a hardware reset this specification is valid for NMI. 10) The maximum current may be drawn while the respective signal line remains inactive. 11) The minimum current must be drawn to drive the respective signal line active. 12) Not subject to production test - verified by design/characterization. Table 12 Current Limits for Port Output Drivers Port Output Driver Mode Maximum Output Current (IOLmax, -IOHmax)1) Nominal Output Current (IOLnom, -IOHnom) Strong driver 10 mA 2.5 mA Medium driver 4.0 mA 1.0 mA Weak driver 0.5 mA 0.1 mA 1) An output current above |IOXnom| may be drawn from up to three pins at the same time. For any group of 16 neighboring port output pins the total output current in each direction (ΣIOL and Σ-IOH) must remain below 50 mA. Data Sheet 52 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters Table 13 Power Consumption XC164CM (Operating Conditions apply) Parameter SymLimit Values bol Min. Max. Unit Test Condition Power supply current (active) with all peripherals active IDDI 15 + 2.6 × fCPU mA 10 + 2.6 × fCPU mA – 5 mA 3) – 15 + 1.2 × fCPU mA fCPU in [MHz]2), 10 + 1.2 × fCPU mA 84,000 × e-α mA 128,000 × e-α mA – – Pad supply current Idle mode supply current with all peripherals active IDDP IIDX – Sleep and Power down mode supply current caused by leakage4) IPDL5) – – Sleep and Power down mode IPDM7) – supply current caused by leakage and the RTC running, clocked by the main oscillator4) fCPU in [MHz]1)2), -16F derivatives fCPU in [MHz]1)2), -4F/8F derivatives -16F derivatives fCPU in [MHz]2), -4F/8F derivatives VDDI = VDDImax6) TJ in [°C] α = 4380 / (273 + TJ) -16F derivatives 0.6 + mA 0.02 × fOSC + IPDL α = 4670 / (273 + TJ) -4F/8F derivatives VDDI = VDDImax fOSC in [MHz] 1) During Flash programming or erase operations the supply current is increased by max. 5 mA. 2) The supply current is a function of the operating frequency. This dependency is illustrated in Figure 11. These parameters are tested at VDDImax and maximum CPU clock frequency with all outputs disconnected and all inputs at VIL or VIH. 3) The pad supply voltage pins (VDDP) mainly provides the current consumed by the pin output drivers. A small amount of current is consumed even though no outputs are driven, because the drivers’ input stages are switched and also the Flash module draws some power from the VDDP supply. 4) The total supply current in Sleep and Power down mode is the sum of the temperature dependent leakage current and the frequency dependent current for RTC and main oscillator. 5) This parameter is determined mainly by the transistor leakage currents. This current heavily depends on the junction temperature (see Figure 13). The junction temperature TJ is the same as the ambient temperature TA if no current flows through the port output drivers. Otherwise, the resulting temperature difference must be taken into account. 6) All inputs (including pins configured as inputs) at 0 V to 0.1 V or at VDDP - 0.1 V to VDDP, all outputs (including pins configured as outputs) disconnected. This parameter is tested at 25 °C and is valid for TJ ≥ 25 °C. 7) This parameter is determined mainly by the current consumed by the oscillator switched to low gain mode (see Figure 12). This current, however, is influenced by the external oscillator circuitry (crystal, capacitors). The given values refer to a typical circuitry and may change in case of a not optimized external oscillator circuitry. Data Sheet 53 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters I [mA] -16F IDDImax 140 -4F/8F -16F 120 IDDItyp -4F/8F 100 80 -16F IIDXmax -4F/8F 60 -16F IIDXtyp -4F/8F 40 20 10 Figure 11 Data Sheet 20 30 40 fCPU [MHz] Supply/Idle Current as a Function of Operating Frequency 54 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters I [mA] 3.0 2.0 IPDMmax IPDMtyp 1.0 4 Figure 12 8 12 16 fOSC [MHz] Sleep and Power Down Supply Current due to RTC and Oscillator Running, as a Function of Oscillator Frequency IPDL [mA] 1.5 -16F 1.0 -4F/8F 0.5 -50 Figure 13 Data Sheet 0 50 100 150 TJ [°C] Sleep and Power Down Leakage Supply Current as a Function of Temperature 55 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4.3 Analog/Digital Converter Parameters These parameters describe how the optimum ADC performance can be reached. Table 14 A/D Converter Characteristics (Operating Conditions apply) Parameter Symbol Limit Values Min. Analog reference supply VAREF SR 4.5 Max. Unit Test Condition VDDP V 1) VSS + 0.1 VAREF V – V 2) 20 MHz 3) + 0.1 VAGND Analog input voltage range VAIN Basic clock frequency fBC Conversion time for 10-bit tC10P result4) tC10 Conversion time for 8-bit tC8P 4) result tC8 Calibration time after reset tCAL SR VSS - 0.1 CC 484 11,696 tBC 5) Total unadjusted error TUE CC – ±2 LSB 1) Total capacitance of an analog input CAINT CC – 15 pF 6) Switched capacitance of an analog input CAINS CC – 10 pF 6) Resistance of the analog input path RAIN CC – 2 kΩ 6) Total capacitance of the reference input CAREFT CC – 20 pF 6) Switched capacitance of the reference input CAREFS CC – 15 pF 6) Resistance of the reference input path RAREF 1 kΩ 6) Analog reference ground SR VAGND 0.5 CC 52 × tBC + tS + 6 × tSYS – Post-calibr. on CC 40 × tBC + tS + 6 × tSYS – Post-calibr. off CC 44 × tBC + tS + 6 × tSYS – Post-calibr. on CC 32 × tBC + tS + 6 × tSYS – Post-calibr. off CC – 1) TUE is tested at VAREF = VDDP + 0.1 V, VAGND = 0 V. It is verified by design for all other voltages within the defined voltage range. If the analog reference supply voltage drops below 4.5 V (i.e. VAREF ≥ 4.0 V) or exceeds the power supply voltage by up to 0.2 V (i.e. VAREF = VDDP + 0.2 V) the maximum TUE is increased to ±3 LSB. This range is not subject to production test. The specified TUE is guaranteed only, if the absolute sum of input overload currents on Port 5 pins (see IOV specification) does not exceed 10 mA, and if VAREF and VAGND remain stable during the respective period of time. During the reset calibration sequence the maximum TUE may be ±4 LSB. Data Sheet 56 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 2) VAIN may exceed VAGND or VAREF up to the absolute maximum ratings. However, the conversion result in these cases will be X000H or X3FFH, respectively. 3) The limit values for fBC must not be exceeded when selecting the peripheral frequency and the ADCTC setting. 4) This parameter includes the sample time tS, the time for determining the digital result and the time to load the result register with the conversion result (tSYS = 1/fSYS). Values for the basic clock tBC depend on programming and can be taken from Table 15. When the post-calibration is switched off, the conversion time is reduced by 12 × tBC. 5) The actual duration of the reset calibration depends on the noise on the reference signal. Conversions executed during the reset calibration increase the calibration time. The TUE for those conversions may be increased. 6) Not subject to production test - verified by design/characterization. The given parameter values cover the complete operating range. Under relaxed operating conditions (temperature, supply voltage) reduced values can be used for calculations. At room temperature and nominal supply voltage the following typical values can be used: CAINTtyp = 12 pF, CAINStyp = 7 pF, RAINtyp = 1.5 kΩ, CAREFTtyp = 15 pF, CAREFStyp = 13 pF, RAREFtyp = 0.7 kΩ. RSource V AIN R AIN, On C AINT - C AINS C Ext A/D Converter CAINS MCS05570 Figure 14 Data Sheet Equivalent Circuitry for Analog Inputs 57 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters Sample time and conversion time of the XC164CM’s A/D Converter are programmable. In compatibility mode, the above timing can be calculated using Table 15. The limit values for fBC must not be exceeded when selecting ADCTC. Table 15 A/D Converter Computation Table1) ADCON.15|14 (ADCTC) A/D Converter Basic Clock fBC ADCON.13|12 (ADSTC) 00 fSYS / 4 fSYS / 2 fSYS / 16 fSYS / 8 00 01 10 11 01 10 11 Sample Time tS tBC × 8 tBC × 16 tBC × 32 tBC × 64 1) These selections are available in compatibility mode. An improved mechanism to control the ADC input clock can be selected. Converter Timing Example: Assumptions: Basic clock Sample time fSYS fBC tS = 40 MHz (i.e. tSYS = 25 ns), ADCTC = ‘01’, ADSTC = ‘00’ = fSYS / 2 = 20 MHz, i.e. tBC = 50 ns = tBC × 8 = 400 ns Conversion 10-bit: With post-calibr. tC10P Post-calibr. off tC10 = 52 × tBC + tS + 6 × tSYS = (2600 + 400 + 150) ns = 3.15 μs = 40 × tBC + tS + 6 × tSYS = (2000 + 400 + 150) ns = 2.55 μs Conversion 8-bit: With post-calibr. tC8P Post-calibr. off Data Sheet tC8 = 44 × tBC + tS + 6 × tSYS = (2200 + 400 + 150) ns = 2.75 μs = 32 × tBC + tS + 6 × tSYS = (1600 + 400 + 150) ns = 2.15 μs 58 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4.4 AC Parameters These parameters describe the dynamic behavior of the XC164CM. 4.4.1 Definition of Internal Timing The internal operation of the XC164CM is controlled by the internal master clock fMC. The master clock signal fMC can be generated from the oscillator clock signal fOSC via different mechanisms. The duration of master clock periods (TCMs) and their variation (and also the derived external timing) depend on the used mechanism to generate fMC. This influence must be regarded when calculating the timings for the XC164CM. Phase Locked Loop Operation (1:N) f OSC f MC TCM Direct Clock Drive (1:1) f OSC f MC TCM Prescaler Operation (N:1) f OSC f MC TCM MCT05555 Figure 15 Generation Mechanisms for the Master Clock Note: The example for PLL operation shown in Figure 15 refers to a PLL factor of 1:4, the example for prescaler operation refers to a divider factor of 2:1. Data Sheet 59 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters The used mechanism to generate the master clock is selected by register PLLCON. CPU and EBC are clocked with the CPU clock signal fCPU. The CPU clock can have the same frequency as the master clock (fCPU = fMC) or can be the master clock divided by two: fCPU = fMC / 2. This factor is selected by bit CPSYS in register SYSCON1. The specification of the external timing (AC Characteristics) depends on the period of the CPU clock, called “TCP”. The other peripherals are supplied with the system clock signal fSYS which has the same frequency as the CPU clock signal fCPU. Bypass Operation When bypass operation is configured (PLLCTRL = 0xB) the master clock is derived from the internal oscillator (input clock signal XTAL1) through the input- and outputprescalers: fMC = fOSC / ((PLLIDIV + 1) × (PLLODIV + 1)). If both divider factors are selected as ‘1’ (PLLIDIV = PLLODIV = ‘0’) the frequency of fMC directly follows the frequency of fOSC so the high and low time of fMC is defined by the duty cycle of the input clock fOSC. The lowest master clock frequency is achieved by selecting the maximum values for both divider factors: fMC = fOSC / ((3 + 1) × (14 + 1)) = fOSC / 60. Phase Locked Loop (PLL) When PLL operation is configured (PLLCTRL = 11B) the on-chip phase locked loop is enabled and provides the master clock. The PLL multiplies the input frequency by the factor F (fMC = fOSC × F) which results from the input divider, the multiplication factor, and the output divider (F = PLLMUL+1 / (PLLIDIV+1 × PLLODIV+1)). The PLL circuit synchronizes the master clock to the input clock. This synchronization is done smoothly, i.e. the master clock frequency does not change abruptly. Due to this adaptation to the input clock the frequency of fMC is constantly adjusted so it is locked to fOSC. The slight variation causes a jitter of fMC which also affects the duration of individual TCMs. The timing listed in the AC Characteristics refers to TCPs. Because fCPU is derived from fMC, the timing must be calculated using the minimum TCP possible under the respective circumstances. The actual minimum value for TCP depends on the jitter of the PLL. As the PLL is constantly adjusting its output frequency so it corresponds to the applied input frequency (crystal or oscillator) the relative deviation for periods of more than one TCP is lower than for one single TCP (see formula and Figure 16). Data Sheet 60 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters This is especially important for bus cycles using waitstates and e.g. for the operation of timers, serial interfaces, etc. For all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the PLL jitter is negligible. The value of the accumulated PLL jitter depends on the number of consecutive VCO output cycles within the respective timeframe. The VCO output clock is divided by the output prescaler (K = PLLODIV+1) to generate the master clock signal fMC. Therefore, the number of VCO cycles can be represented as K × N, where N is the number of consecutive fMC cycles (TCM). For a period of N × TCM the accumulated PLL jitter is defined by the deviation DN: DN [ns] = ±(1.5 + 6.32 × N / fMC); fMC in [MHz], N = number of consecutive TCMs. So, for a period of 3 TCMs @ 20 MHz and K = 12: D3 = ±(1.5 + 6.32 × 3 / 20) = 2.448 ns. This formula is applicable for K × N < 95. For longer periods the K × N = 95 value can be used. This steady value can be approximated by: DNmax [ns] = ±(1.5 + 600 / (K × fMC)). Acc. jitter DN K = 12 K=8 K = 15 K = 10 ns ±8 K=6 K=5 ±7 ±6 ±5 ±4 10 MHz 20 MHz ±3 ±2 ±1 0 40 MHz 0 1 5 10 15 20 25 N MCD05566 Figure 16 Approximated Accumulated PLL Jitter Note: The bold lines indicate the minimum accumulated jitter which can be achieved by selecting the maximum possible output prescaler factor K. Data Sheet 61 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters Different frequency bands can be selected for the VCO, so the operation of the PLL can be adjusted to a wide range of input and output frequencies: Table 16 VCO Bands for PLL Operation1) PLLCON.PLLVB VCO Frequency Range Base Frequency Range 00 100 … 150 MHz 20 … 80 MHz 01 150 … 200 MHz 40 … 130 MHz 10 200 … 250 MHz 60 … 180 MHz 11 Reserved 1) Not subject to production test - verified by design/characterization. Data Sheet 62 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4.4.2 On-chip Flash Operation The XC164CM’s Flash module delivers data within a fixed access time (see Table 17). Accesses to the Flash module are controlled by the PMI and take 1+WS clock cycles, where WS is the number of Flash access waitstates selected via bitfield WSFLASH in register IMBCTRL. The resulting duration of the access phase must cover the access time tACC of the Flash array. The required Flash waitstates depend on the actual system frequency. The Flash access waitstates only affect non-sequential accesses. Due to prefetching mechanisms, the performance for sequential accesses (depending on the software structure) is only partially influenced by waitstates. In typical applications, eliminating one waitstate increases the average performance by 5% … 15%. Table 17 Flash Characteristics (Operating Conditions apply) Parameter Symbol Limit Values Min. tACC CC – Programming time per 128-byte block tPR CC – tER CC – Erase time per sector Flash module access time Unit Typ. Max. – 501) ns 22) 5 ms 2002) 500 ms 1) The actual access time is influenced by the system frequency, see Table 18. 2) Programming and erase time depends on the system frequency. Typical values are valid for 40 MHz. Example: For an operating frequency of 40 MHz (clock cycle = 25 ns), the Flash accesses must be executed with 1 waitstate: ((1+1) × 25 ns) ≥ 50 ns. Table 18 indicates the interrelation of waitstates and system frequency. Table 18 Flash Access Waitstates Required Waitstates Frequency Range 0 WS (WSFLASH = 00B) fCPU ≤ 20 MHz fCPU ≤ 40 MHz 1 WS (WSFLASH = 01B) Note: The maximum achievable system frequency is limited by the properties of the respective derivative, i.e. 40 MHz (or 20 MHz for XC164CM-xF20F devices). Data Sheet 63 V1.4, 2007-03 XC164CM Derivatives Electrical Parameters 4.4.3 External Clock Drive XTAL1 These parameters define the external clock supply for the XC164CM. Table 19 External Clock Drive Characteristics (Operating Conditions apply) Parameter Symbol tOSC t1 t2 t3 t4 Oscillator period High time2) Low time 2) Rise time 2) Fall time2) Limit Values Unit Min. Max. SR 25 2501) ns SR 6 – ns SR 6 – ns SR – 8 ns SR – 8 ns 1) The maximum limit is only relevant for PLL operation to ensure the minimum input frequency for the PLL. 2) The clock input signal must reach the defined levels VILC and VIHC. t3 t1 t4 V IHC V ILC 0.5 V DDI t2 t OSC MCT05572 Figure 17 External Clock Drive XTAL1 Note: If the on-chip oscillator is used together with a crystal or a ceramic resonator, the oscillator frequency is limited to a range of 4 MHz to 16 MHz. It is strongly recommended to measure the oscillation allowance (negative resistance) in the final target system (layout) to determine the optimum parameters for the oscillator operation. Please refer to the limits specified by the crystal supplier. When driven by an external clock signal it will accept the specified frequency range. Operation at lower input frequencies is possible but is verified by design only (not subject to production test). Data Sheet 64 V1.4, 2007-03 XC164CM Derivatives Package and Reliability 5 Package and Reliability In addition to the electrical parameters, the following information ensures proper integration of the XC164CM into the target system. 5.1 Packaging These parameters describe the housing rather than the silicon. Package Outlines Figure 18 Data Sheet PG-LQFP-64-4 (Plastic Green Low profile Quad Flat Package), valid for the -16F derivatives 65 V1.4, 2007-03 XC164CM Derivatives +0.07 2) 0.6 ±0.15 C 7.5 7˚ MAX. H 0.5 0.2 -0.03 0.15 +0.03 -0.06 1.6 MAX. 1.4 ±0.05 0.1 ±0.05 Package and Reliability 0.08 0.08 M A-B D C 64x 12 0.2 A-B D 4x 10 1) 0.2 A-B D H 4x D 12 B 10 1) A 64 1 Index Marking 1) Does not include plastic or metal protrusion of 0.25 max. per side 2) Does not include dambar protrusion of 0.08 max. per side Figure 19 PG-TQFP-64-8 (Plastic Thin Quad Flat Package), valid for the -4F/8F derivatives You can find all of our packages, sorts of packing and others in our Infineon Internet Page “Products”: http://www.infineon.com/products Dimensions in mm. Table 20 Package Parameters Parameter Symbol Limit Values Min. Max. Unit Notes PG-LQFP-64-4 Thermal resistance junction to case RΘJC – 8 K/W – Thermal resistance junction to leads RΘJL – 23 K/W – Thermal resistance junction to case RΘJC – 9 K/W – Thermal resistance junction to leads RΘJL – 19 K/W – PG-TQFP-64-8 Data Sheet 66 V1.4, 2007-03 XC164CM Derivatives Package and Reliability 5.2 Flash Memory Parameters The data retention time of the XC164CM’s Flash memory (i.e. the time after which stored data can still be retrieved) depends on the number of times the Flash memory has been erased and programmed. Table 21 Flash Parameters Parameter Data retention time Symbol tRET Flash Erase Endurance NER Data Sheet Limit Values Unit Notes 103 erase/program cycles Min. Max. 15 – years 20 × 103 – cycles Data retention time 5 years 67 V1.4, 2007-03 w w w . i n f i n e o n . c o m B158-H8824-G2-X-7600 Published by Infineon Technologies AG
XC164CM8F40FAAKXQMA1 价格&库存

很抱歉,暂时无法提供与“XC164CM8F40FAAKXQMA1”相匹配的价格&库存,您可以联系我们找货

免费人工找货