XC164CM Series Product Presentation

XC164CM series Product Presentation
February 2006
XC164CM series
Product Presentation
February 2006
V1.1
Page 1
XC164CM series
Product Presentation
February 2006
V1.1
Page 2
Infineon Microcontroller Products –
Competitive Advantage
Cores
C166, XC166
Real-Time
Real-Time
Bus, Interrupts,
DMA
Quality
Flash with ECC
0 ppm target
Peripherals
Peripherals
Interfaces,
PWM, Timer,..
Tools
Tools
XC164CM series
Product Presentation
February 2006
V1.1
Page 3
Starter Kits.
Compiler,..
Benefits
Fast Real-Time Cores with Complex Instruction Set
Fewer Instructions needed to accomplish a given task
Very high Code Density
Wide bus access, Cache based systems
Fast Interrupt System, Fast Context Switching
Direct Transfer of Data without CPU intervention
quality is too valuable to compromise
avoiding field returns
avoiding later cost penalties
Highly Integrated Complex Peripherals
More work done by Peripherals means less work done
by CPU and fewer external devices
Easy to use and install Starter Kits
State of the Art Compiler
On chip Debugging solutions
Reduced System Cost
Microcontroller
Elements
XC164CM series
Features
! Leading 16 Bit Architecture – 200Mpcs+ shipped
! Single cycle instruction execution
! Real time performance – 40 MIPS
! DSP capabilities (MAC unit)
! Enhanced Debugging Concept (OCDS – JTAG)
! Automotive Qualified Embedded Flash with ECC
! Low cost 64 pin PG-TQFP (Green) package
! Rich peripheral set
XC164CM series
Product Presentation
February 2006
V1.1
Page 4
Development/concept
Industrial Drives
TC116x
TC116x
TC179x
TC179x
High-end automotive
Industrial and Networking
TC113x
TC113x
TC176x
TC176x
Mid-range automotive
C165
C165
Mid-range industrial
C167
C167
High-end automotive
C161
C161
Low-end industrial
C164
C164
Low-end automotive
C500
C500 20MHz,
20MHz, 12
12 cycle
cycle
C505
C505
44 pin, CAN
C515
C515
80 pin, CAN
XC800
XC800 26
26 MHz,
MHz, dual
dual cycle
cycle
XC86x
XC86x
38 pin, LIN
XC88x
XC88x
48/64 pin,
CAN, LIN
C868
C868
28/38 pin, lowest cost
series with
eFlash members
Opcode
comp.
XC161
XC161
XC164CM
XC164CM
Low-end
High-end
C166
C166 40
40 MHz,
MHz, dual
dual cycle
cycle
C800
C800 40MHz,
40MHz, 12
12 cycle
cycle
8 Bit
XC164CM series
Product Presentation
February 2006
V1.1
Page 5
XC167
XC164CS
XC167
XC164CS
Mid-range High-end motor ctrl
8051 compliant
5 MIPS
16 Bit
XC166
XC166 40MHz,
40MHz, single
single cycle,
cycle, MAC
MAC
Next generation
TC1
TC1 super-scalar,
super-scalar, 150MHz
150MHz
Opcode
comp.
32 Bit
Volume production
50 MIPS
300 MIPS
Infineon‘s microcontrollers: Outstanding real-time
performance for a wide range of applications
The Evolution from C166 to XC166
C166
C166
22 cycles/instruction
cycles/instruction
maximum
maximum 40
40 MHz
MHz
16x16
16x16 mulitplication:
mulitplication: 55 cycles
cycles
32/16
32/16 division:
division: 10
10 cycles
cycles
C166
C166 Instruction
Instruction Set
Set
ROM
ROM
OTP
OTP
CAN
CAN
PWM
PWM
ADC,
ADC, SSC,
SSC, ASC,
ASC, Timers
Timers
80-pin
80-pin M-QFP
M-QFP
100-pin
100-pin M-QFP
M-QFP
144-pin
144-pin M-QFP
M-QFP
XC164CM series
Product Presentation
February 2006
V1.1
Page 6
XC166
XC166
Core
Core
11 cycle/instruction
cycle/instruction
maximum
maximum 40
40 MHz
MHz
DSP
DSP
16x16
16x16 mulitplication:
mulitplication: 11 cycle
cycle
32/16
32/16 division:
division: 11 cycle
cycle
DSP
DSP Library
Library
Opcode
Opcode
Binary
Binary compatible
compatible Instruction
Instruction Set
Set
Additional
Additional MAC
MAC opcodes
opcodes
Memory
Memory
ROM
ROM
eFlash
eFlash with
with Error
Error Correction
Correction
Peripherals
Peripherals
Packages
Packages
TwinCAN
TwinCAN
CapCom6E
CapCom6E for
for Motor
Motor Control
Control
faster
faster ADC,
ADC, SSC,
SSC, ASC,
ASC, Timers
Timers
64-pin
64-pin T-QFP
T-QFP
100-pin
100-pin T-QFP
T-QFP
144-pin
144-pin T-QFP
T-QFP
XC164CM series – Block Diagram
XC164CM series
Product Presentation
February 2006
V1.1
Page 7
New XC166 Architecture
Core - C166S V2
Op-Code compatible to C166 Architecture
!
The enhanced C166S V2 based architecture offers high
performance at 16 Bit
Nearly all Instructions executed in one CPU Clock Cycle
– single cycle instruction @ 40 MHz CPU clock
– 25 ns multiplication (16 x 16 bit) time @ 40 MHz CPU clock
– 2-stage prefetch pipeline, 5-stage execution pipeline
– DSP support with powerful built in MAC instructions (16-bit
multiplier with 32-bit result generation)
–
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 8
Infineon provides DSP libraries to utilise the MAC
The enhanced C166S V2 based Architecture offers
outstanding Performance at 16 Bit.
XC164CM and XC164CS series
Easy upgrade from low-end to high-end
CM series
LM
eFlash 32/64
RAM
4/6
Pack64
age
Freq.
20/40
[MHz]
TM
SM
CM
4/6
4/6
4/6
4/6
4/6
64
64
64
64
64
N
S
D
CS
64/128/ 64/128/ 64/128/ 64/128/
256
256
256
256
6
6
6
6/12
100
100
100
100
20/40 20/40 20/40 20/40 20/40 20/40 20/40 20/40 20/40
"
"
CAN
XC164CM series
Product Presentation
February 2006
V1.1
Page 9
GM
32/64 32/64 32/64 32/64 32/64
CCU6
ADC
KM
CS series
"
"
"
"
"
"
"
"
"
"
"
"
CM and CS series members
!Opcode compatible: easy upgrade/downgrade
!Allowing optimum application feature fit
!Differentiators: eFlash, RAM, pin count, frequency, application specific peripherals
"
"
"
XC164CM series Family of Products
Main application: Automotive
XC164CM series
Product Presentation
February 2006
V1.1
Page 10
Type
Program
Memory
Clock
Frequency
Temp.
Range
Comments
SAF-XC164CM-8F20F
64K Flash
20MHz
-40 to 85oC
ADC, CCU6, CAN
SAF-XC164CM-8F40F
64K Flash
40MHz
-40 to 85oC
ADC, CCU6, CAN
SAF-XC164CM-4F20F
32K Flash
20MHz
-40 to 85oC
ADC, CCU6, CAN
SAF-XC164CM-4F40F
32K Flash
40MHz
-40 to 85oC
ADC, CCU6, CAN
SAK-XC164CM-8F20F
64K Flash
40MHz
-40 to 125oC
ADC, CCU6, CAN
SAK-XC164CM-8F40F
64K Flash
40MHz
-40 to 125oC
ADC, CCU6, CAN
SAK-XC164CM-4F20F
32K Flash
40MHz
-40 to 125oC
ADC, CCU6, CAN
SAK-XC164CM-4F40F
32K Flash
40MHz
-40 to 125oC
ADC, CCU6, CAN
Package is PG-TQFP-64-16
XC164CM series Family of Products
New!
Main application: Industrial Control with CAN
XC164CM series
Product Presentation
February 2006
V1.1
Page 11
Type
Program
Memory
Clock
Frequency
Temp.
Range
Comments
SAF-XC164GM-8F20F
64K Flash
20MHz
-40 to 85oC
ADC, CAN
SAF-XC164GM-8F40F
64K Flash
40MHz
-40 to 85oC
ADC, CAN
SAF-XC164GM-4F20F
32K Flash
20MHz
-40 to 85oC
ADC, CAN
SAF-XC164GM-4F40F
32K Flash
40MHz
-40 to 85oC
ADC, CAN
Package is PG-TQFP-64-16
XC164CM series Family of Products
New!
Main application: Industrial Control without CAN
XC164CM series
Product Presentation
February 2006
V1.1
Page 12
Type
Program
Memory
Clock
Frequency
Temp.
Range
Comments
SAF-XC164SM-8F20F
64K Flash
20MHz
-40 to 85oC
ADC, CCU6
SAF-XC164SM-8F40F
64K Flash
40MHz
-40 to 85oC
ADC, CCU6
SAF-XC164SM-4F20F
32K Flash
20MHz
-40 to 85oC
ADC, CCU6
SAF-XC164SM-4F40F
32K Flash
40MHz
-40 to 85oC
ADC, CCU6
SAF-XC164TM-8F20F
64K Flash
20MHz
-40 to 85oC
ADC
SAF-XC164TM-8F40F
64K Flash
40MHz
-40 to 85oC
ADC
SAF-XC164TM-4F20F
32K Flash
20MHz
-40 to 85oC
ADC
SAF-XC164TM-4F40F
32K Flash
40MHz
-40 to 85oC
ADC
Package is P-TQFP-100-16
New!
XC164CM series Family of Products
Main application: Industrial Digital Control with CAN
Type
Program
Memory
Clock
Frequency
Temp.
Range
Comments
SAF-XC164KM-8F20F
64K Flash
20MHz
-40 to 85oC
CAN
SAF-XC164KM-8F40F
64K Flash
40MHz
-40 to 85oC
CAN
SAF-XC164KM-4F20F
32K Flash
20MHz
-40 to 85oC
CAN
SAF-XC164KM-4F40F
32K Flash
40MHz
-40 to 85oC
CAN
Comments
Main application: Industrial Digital Control without CAN
XC164CM series
Product Presentation
February 2006
V1.1
Page 13
Type
Program
Memory
Clock
Frequency
Temp.
Range
SAF-XC164LM-8F20F
64K Flash
20MHz
-40 to 85oC
SAF-XC164LM-8F40F
64K Flash
40MHz
-40 to 85oC
SAF-XC164LM-4F20F
32K Flash
20MHz
-40 to 85oC
SAF-XC164LM-4F40F
32K Flash
40MHz
-40 to 85oC
Package is PG-TQFP-64-16
XC164CM series
Product Presentation
February 2006
V1.1
Page 14
XC164CM series
Success Stories
XC164CM: PLC frequency measurement card
XC164CM
XC164CM
XC164CM series
Product Presentation
February 2006
V1.1
Page 15
Frequency measurement card for PLC
! Used for frequency measurement in water
generation motor for Chinese market
Key product features for application
! eFlash
! High MIPS/MHz performance.
Key requirements
! Quick interrupt response time.
! Flexible timer
Key reasons for success
! Reputation for PLC
! Existing business (Eupec)
! Expert support
16 Bit Micro XC164CS in Conveyors
! Keys to Success
– Product with the right features
! Fast Real-Time CPU
! Flexible CAN Interface
! CAPCOM6E and A/D for
Motor Control
! Several XC164CS parts control
BLDC motors at various points along
the conveyor and communicate via
the CAN bus
XC164CM series
Product Presentation
February 2006
V1.1
Page 16
16 Bit Micro C166 / XC166 in High end Printing
! Products: C167CS, XC164CS
! Application: High End Desktop
Publishing (Printing)
! Key Features: CAN, A/D, PWM
! There are up to ~6 microcontrollers per
printer. They handle communication
between various parts of the system and
control key system components such as
stepper motors.
! Keys to success:
– On Site CAN training
– Large Family of 16-bit CAN products
offering full range of price/performance
– Direct technical support
XC164CM series
Product Presentation
February 2006
V1.1
Page 17
16 Bit Micro C166 in Routers
! Product: C167CR
! Application: Backplane (maintenance) bus for
each card/system in a router
! Key Features: CAN, A/D, PWM
! Each card/system in the router (e.g. line card,
fabric cards, cooling fan system, etc.) has a
C167CR for CAN communication. The CAN
bus carries configuration and diagnostic data.
The other features of the microcontroller are
used selectively when required (e.g. PWM for
fan control, A/D for temperature
measurement).
! Keys to success:
XC164CM series
Product Presentation
February 2006
V1.1
Page 18
– Product Features Fitting to customer
requirements
– In-House CAN expertise
– Initial direct technical and marketing support
16 Bit Micro C167CR in Copiers
! Keys to Success
– Product with the right features
! Fast Real-Time CPU
! Low Interrupt Response Time
! CAN, A/D & CAPCOM (PWM
and Pulse width
measurement)
– Long Lifetime
– Ruggedness
! The C167CR controls stepper
motors and communicates to other
modules via the CAN bus
XC164CM series
Product Presentation
February 2006
V1.1
Page 19
16 Bit Micro C166 in Network Monitors
! Products: C163, C165
! Application: High End Monitor for Networks
! Key Features: Low Cost General Purpose
Part with good External Bus Controller
(EBC)
! The microcontroller was designed in due to
poor delivery from our competitors during
the global silicon allocation. The total
design time was 3 weeks.
! Keys to success:
XC164CM series
Product Presentation
February 2006
V1.1
Page 20
– Good EBC to interface to their external
memory
– Intense Direct Technical and marketing
support to help them through their supply
issues in record time.
XC164CM series
Product Presentation
February 2006
V1.1
Page 21
XC164CM series
Compatibility to XC164CS series
XC164CM Deltas to XC164CS
XC164CM series
Product Presentation
February 2006
V1.1
Page 22
XC164CM Deltas to XC164CS
Pins Removed from XC164CS
XC164CM series
Product Presentation
February 2006
V1.1
Page 23
XC164CM Reset Configuration
No Port0 and no Port20 => new scheme for setting configuration modes
XC164CM series
Product Presentation
February 2006
V1.1
Page 24
XC164CM Reset Configuration
No Port0 and no Port20 => new scheme for setting configuration modes
XC164CM series
Product Presentation
February 2006
V1.1
Page 25
XC164CM series
Product Presentation
February 2006
V1.1
Page 26
XC164CM series
Product Overview
XC164CM series System features
! Features
–
–
–
–
–
–
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 27
High performance 16-bit CPU with 5-Stage pipeline
25ns Instruction cycle time @ 40MHz CPU clock
Fast Context switching support
1-cycle Multiply and Accumulate (MAC) instructions
16-priority level interrupt system
On-chip PLL
Peripheral Event Controller (PEC)
Programmable Watchdog Timer and Oscillator
Power saving modes
Package: P-TQFP-64-16 (green)
Temperature range: SAF and SAK (-40oC to 85/125oC)
XC164CM series On-chip memory
! Features
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 28
2 KBytes on-chip Dual Port RAM (DPRAM)
2 Kbytes on-chip Data SRAM (DSRAM)
2 KBytes on-chip Program/Data SRAM (PSRAM)
Up to 64 KBytes on-chip Program memory (eFlash)
PRAM
DPRAM
DRAM
Flash
E0,0000-07FF:2K
F600-FDFF:2K
C000-C7FF:2k C0,0000
XC164CM-8F
2k
2k
2k
64KByte
XC164CM-4F
2k
2k
-
32KByte
XC164CM series On-chip Peripherals
! Features
XC164CM series
Product Presentation
February 2006
V1.1
Page 29
– One 16-channel General Purpose Capture/Compare Units
– CAPCOM6E module with two independent timers
dedicated to PWM generation for AC motor control
– Multi-Functional General Purpose Timer Unit with 5
Timers
– Two Synchronous/Asynchronous Serial Channels
(USARTs)
– Two High-Speed Synchronous Serial Channels
– On-chip Real Time Clock
– Up to 47 General purpose I/O lines
– 14-Channel A/D Converter with programmable 10-bit or 8bit resolution
– TwinCAN module: two full CAN modules with
32 message buffers and gateway function
XC164CM series CPU
XC164CM series
Product Presentation
February 2006
V1.1
Page 30
XC164CM series
Product Presentation
February 2006
V1.1
Page 31
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series CPU
Data RAM
XC164CM series CPU Features (1)
! Summary of features
XC164CM series
Product Presentation
February 2006
V1.1
Page 32
– 2-stage instruction fetch pipeline with FIFO for instruction prefetching
– 5-stage instruction execution pipeline
– Pipeline forwarding controls data dependencies in hardware
– Multiple high bandwidth buses for data and instructions
– Linear address space for code and data (von Neumann
architecture)
– Register based design with multiple variable register banks
(byte or word operands)
– Two additional fast register banks
– Variable stack with automatic stack overflow/underflow
detection
– Fast interrupt and fast context switching features for real time
embedded control applications
XC164CM series CPU Features (2)
! Summary of features
– Most instructions execute in one cycle
– Fast multiplication (16-bit X 16-bit) in one CPU cycle
– Fast background execution of division (32-bit/16-bit) in 21 CPU
clock cycles
– Advanced MAC (Multiply Accumulate) unit:
!
!
!
!
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 33
Single cycle MAC instruction with zero cycle latency
40-bit barrel shifter and 40-bit accumulator to handle overflows
Automatic saturation to 32 bits or rounding included with the MAC
instruction
Fractional numbers supported directly
One Finite Impulse Response Filter (FIR) tap per cycle with no
circular buffer management
– Enhanced boolean bit manipulation
– High performance branch, call and loop processing
– Zero cycle jump execution
XC164CM series
Product Presentation
February 2006
V1.1
Page 34
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series Instruction Processing
Data RAM
XC164CM series Instruction Processing
! Most instructions execute in one cycle
– Special instructions such as SRST or PWRDN take more
than one cycle
– Divide instructions are executed in the background, so
other instructions can be executed in parallel
! Instruction cycle time is dramatically reduced through
pipelining.
– Up to seven stages can operate in parallel
– Two stage instruction fetch pipeline
– Five stage instruction processing pipeline
XC164CM series
Product Presentation
February 2006
V1.1
Page 35
XC164CM series Instruction Processing
! Two stage instruction fetch pipeline
– Pre-Fetch from PMU in predicted order
!
Branch detection unit predicts branches
– Fetch
!
The instruction pointer fetches next instruction according to
the branch prediction rules.
! Five stage instruction processing pipeline
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 36
Decode
Address
Memory
Execute
Write Back
XC164CM series
Product Presentation
February 2006
V1.1
Page 37
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series Address and Data Unit
Data RAM
XC164CM series Address and Data Unit
! Features
– Contains two independent arithmetic units to generate,
calculate and update addresses for data accesses
– The Standard Address Unit
!
!
supports short, long and indirect addressing modes
Supports data paging and stack handling
– The DSP Address Generation Unit
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 38
Contains an additional set of address pointers and offset
registers which are used with the MAC unit instructions
(CoXXX)
XC164CM series
Product Presentation
February 2006
V1.1
Page 39
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series Arithmetic and Logic Unit (ALU)
Data RAM
XC164CM series Arithmetic and Logic Unit (ALU)
! Features
XC164CM series
Product Presentation
February 2006
V1.1
Page 40
– Performs all standard (word) arithmetic and logical
operations
– Optimized to perform operations on either 8-bit or 16-bit
quantities.
– Instructions to provide byte packing in memory
– Sign extensions of bytes for word wide arithmetic
operations
– Flags for branching on specific conditions
– Support for both signed and unsigned arithmetic through
user-specified branch tests.
– 16-bit barrel shifter for multiple bit shifts in single cycle
– Support for rotate and arithmetic shift
XC164CM series
Product Presentation
February 2006
V1.1
Page 41
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series Multiply and Accumulate Unit (MAC)
Data RAM
XC164CM series Multiply and Accumulate Unit (MAC)
! MAC unit provides
–
–
–
–
–
–
–
16-bit by 16-bit signed / unsigned multiplication
multiplication with cumulative subtractions/additions
32-bit additions
32-bit subtractions
right / left shifts
Automatic saturation to 32 bit
40bit accumulator to handle overflow
! 75 % of all MAC instructions executed in one CPU clock
cycle
XC164CM series
Product Presentation
February 2006
V1.1
Page 42
DSP Function Library
# Basic Ideas
XC164CM series
Product Presentation
February 2006
V1.1
Page 43
•
Establishing a commonly used DSP function library
using MAC instruction set in Assembly
•
Making it easy to develop large DSP program and
optimize the DSP routines
•
Introducing the customers how to develop DSP
function on XC166 microcontroller using MAC unit
www.infineon.com/c166dsplib
DSP Library Functions
XC164CM series
Product Presentation
February 2006
V1.1
Page 44
#
Arithmetic functions
#
FIR filters
#
IIR filters
#
Adaptive filters
#
Fast Fourier Transforms
#
Matrix operations
#
Mathematical operations
#
Statistical functions
www.infineon.com/c166dsplib
Features of DSP Library
XC164CM series
Product Presentation
February 2006
V1.1
Page 45
#
For Infineon’s 16-bit Microcontrollers XC166 family
#
Free of charge
#
Including many basic DSP algorithms, e.g. Fir, IIR, adaptive
filters, FFT
#
Hand-coded and optimized assembly modules with MAC
instructions
#
Examples to demonstrate the usage of functions
#
Complete User’s manual covering many aspects of
implementation
#
Version 1.0 and 1.1 released
www.infineon.com/c166dsplib
XC164CM series
Product Presentation
February 2006
V1.1
Page 46
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
Data Management Unit (DMU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
Dual Port RAM
(Global Register Bank)
5-stage
pipeline
Register
File
(GPRs)
Buffer
DSRAM
XC166V2 CPU
Instruction
Fetch Unit
(IFU)
PSRAM
Program Management Unit (PMU)
DPRAM
XC164CM series PMU/DMU
Data RAM
XC164CM series PMU/DMU
! Program Management Unit (PMU)
– Controls access to the on-chip program memory
!
!
ROM/eFlash
Program/Data RAM (PSRAM)
– High performance 64-bit interface between PMU and CPU
– PMU decides if requested instruction is fetched from internal or
external memory
! Data Management Unit (DMU)
– Controls access to
!
!
!
!
on-chip Data RAM (DSRAM)
On-chip peripherals connected to peripheral bus
Resources on external bus
External accesses (including on-chip LXBus) are executed by the
External Bus Controller (EBC)
! PMU and DMU are directly coupled to perform high-speed
cross-over transfers
XC164CM series
Product Presentation
February 2006
V1.1
Page 47
XC164CM series Flash Module
! Up to 64 KByte embedded Flash module
– Any use for instruction code or constant data
– 64 bit read interface
! Single voltage Flash (no external VPP required)
! Integrated Hardware Error Correction Code
– detection and correction of single bit errors during read access
– detection of double bit errors
! Programming time: typical 2 ms per page (128 byte)
! Fast erase per sector: typical 200 ms
! 10.000 programming/erase cycles per sector or wordline
– Data retention 5 years
! 1.000 programming/erase cycles per sector or wordline
– Data retention 20 years
XC164CM series
Product Presentation
February 2006
V1.1
Page 48
XC164CM series Flash Module
! Sector architecture
– Four 8K (also organized as two physical 16K sectors),
and one 32 Kbyte sector
– Each sector separately erasable
– Each physical sector separately lockable for protection
against erase and programming
! Optional read protection for whole Flash
! Password checking for temporary disable of write or read
protection
XC164CM series
Product Presentation
February 2006
V1.1
Page 49
XC164CM series Flash Module
! Operational control per command sequences for
protection against unintended operation
– comfortable User Interface
– command sequences according to JEDEC standard
– Write state machine for automatic programming and
erase
– Efficient programming operation with 128 byte pages to
be written in one step
! Support of in-system and in-operation programming and
erase
! Global and sector status information
XC164CM series
Product Presentation
February 2006
V1.1
Page 50
Injection/
Exception
Handler
Address and
Data Unit
(ADU)
Multiply and
Accumulate
Unit
(MAC)
Arithmetic
and
Logic Unit
(ALU)
2-stage
Pre-fetch
pipeline
Program/Data RAM
Flash/ROM
5-stage
pipeline
Register
File
(GPRs)
Buffer
DPRAM
Instruction
Fetch Unit
(IFU)
DSRAM
XC166V2 CPU
Program Management Unit (PMU)
PSRAM
XC164CM series Dual Port RAM (DPRAM)
Dual Port RAM
(Global Register Bank)
Data RAM
Data Management Unit (DMU)
XC164CM series
Product Presentation
February 2006
V1.1
Page 51
! Dual Port RAM (DPRAM) contains the global register banks
! Directly coupled to CPU to optimize transfers and
performance
XC164CM series Interrupt and Exception Handling
XC164CM series
Product Presentation
February 2006
V1.1
Page 52
XC164CM series Interrupt and Exception Handling
! Four different kinds of exceptions are executed
– Interrupts generated by the Interrupt Controller
!
Suspend current program and branch to interrupt service
routine
– DMA transfers issued from the Peripheral Event
Controller
!
Performs a single byte/word transfer between two memory
locations
– Software Traps caused by the Trap instructions
!
Trap instruction generates a software interrupt
– Hardware Traps issued by faults or specific system states
!
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 53
Class A traps (NMI, Stack-overflow/underflow, SW-break)
Class B traps (Undef. Opcode, PMI Access Error, Protection
fault, Illegal Word Operand Access)
XC164CM series Interrupt and Exception Handling
! 16 Priority Level Interrupt system
– Up to 63 interrupt nodes with separate interrupt vectors
on 15 priority levels, each priority level consists of 8 group
level
– Very short interrupt response time( typ. 8 cycle) in case of
internal program/data execution
– Fast external interrupt
– Programmable location of vector table
– Interrupt arbitration
– Fast bank switching
– Interrupt Jump Table Cache (fast interrupt)
XC164CM series
Product Presentation
February 2006
V1.1
Page 54
XC164CM series Interrupt and Exception Handling
! Single cycle data transfer facilities via Peripheral Event
Controller (PEC)
– 8 PEC channels
– Programmable PEC interrupt request level (level 15 down
to level 8)
– Separate interrupt level for PEC termination interrupts
(end of PEC interrupt) selectable
– Full 24bit addresses for source and destination pointers,
supporting any mapping of source and destination
devices within the total address spaces
XC164CM series
Product Presentation
February 2006
V1.1
Page 55
XC164CM series System Control Unit (SCU)
XC164CM series
Product Presentation
February 2006
V1.1
Page 56
XC164CM series System Control Unit (SCU)
! Clock Generation Control
– The clock generation path is controlled via the PLL control
register PLLCON
– The oscillator delivers the system's clock signal
! external crystal (optimized 4-16 MHz)
! external clock signal up to 40 MHz
– Input clock divider adjusts the system's clock signal to the input
frequency. Range of the PLL (optimized 4 - 35 MHz)
! PLLIDIV
PLL input divider (1:1 to 1:4)
– The PLL multiplies the input frequency by a selectable factor
! PLLMUL
PLL multiplier factor (*8 to * 32)
! The PLL can be bypassed
! For device testing the complete clock generation can be
bypassed by directly driving the system with the Oscillator
! PLL VCO band can be selected in a range of 100 MHz250MHz
– Output clock divider scales the PLL's output frequency
! PLLODIV
PLL output divider (1:1 to 1:15)
XC164CM series
Product Presentation
February 2006
V1.1
Page 57
XC164CM series System Control Unit (SCU)
! Register Security Mechanism
– Some registers which control critical functions and modes
are protected after EINIT.
!
3 Security levels with password protection
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 58
Write Protect Mode - all protected registers are read only
Secured Mode - protected registers can be written if preceded
by a command sequence
Unprotected Mode - no protection, protected registers can be
written
XC164CM series System Control Unit (SCU)
! Watchdog Timer
XC164CM series
Product Presentation
February 2006
V1.1
Page 59
– Watchdog Timer has been designed to recover from
software or hardware failure
– If the software fails to service the Watchdog Timer a timer
overflow generates an internal reset
– The watchdog timer is 16bits wide and can be clocked
with the peripheral clock either divided by 2, 4, 128, 256
– The upper 8 bits can be preset, the lower 8 bits are
cleared upon each service access
– Compatible mode, DISWDT will only be executed before
EINIT, SRVWDT
– Enhanced mode, watchdog timer can be disabled/enabled
at any time
XC164CM series Real Time Clock (RTC)
! Real Time Clock (RTC)
– Two reloadable timers, T14 (16-bit) and CNT (32-bit)
– Both timers can be connected to one 48-bit timer
– RTC can operate in Synchronous or Asynchronous Mode
– Additional prescaler with a factor of 32 for one count input
– RTC can operate independently from the main system
– Optimized for low power consumption
XC164CM series
Product Presentation
February 2006
V1.1
Page 60
XC164CM series
Product Presentation
February 2006
V1.1
Page 61
XC164CM series
Peripherals
XC164CM series ADC
not on XC164LM and XC164KM
XC164CM series
Product Presentation
February 2006
V1.1
Page 62
XC164CM series ADC
not on XC164LM and XC164KM
! ADC features
– 14 channels
!
!
10bit resolution + 2LSB
8bit resolution + 1LSB
– min. 2,15 µs conversion time @ 40 MHz for 8bit resolution
– min. 2,55 µs conversion time @ 40 MHz for 10bit
resolution
– Support of Different Conversion Modes
!
!
!
!
!
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 63
Fixed Channel Single Conversion
Fixed Channel Continuous Conversion
Auto Scan Single Conversion
Auto Scan Continuous Conversion
Wait for Result Read and Start Next Conversion
Channel Injection during Group Conversion
XC164CM series ADC
not on XC164LM and XC164KM
! ADC Features
– Flexible Programmable Conversion and Sample Timing
Scheme
– DMA (PEC) Support for Result Transfer to Memory
Location
– Automatic self-calibration to changing temperature or
process variations
– Auto-Power-Down Feature of the A/D Converter
XC164CM series
Product Presentation
February 2006
V1.1
Page 64
XC164CM series GPT12E
XC164CM series
Product Presentation
February 2006
V1.1
Page 65
XC164CM series GPT12E
! Timer Block GPT1
–
–
–
–
–
fClk/4 maximum resolution (100ns @ fcpu 40 MHz)
clock prescaler support
3 independent timers/counters (T2, T3, T4)
timers/counters can be concatenated
4 operating modes (timer, gated timer, counter,
incremental)
– enhanced incremental interface modes
!
!
rotation detection mode
edge detection mode
– separate interrupt request lines
– auxiliary timer in reload/capture mode
XC164CM series
Product Presentation
February 2006
V1.1
Page 66
XC164CM series GPT12E
! Timer Block GPT2
–
–
–
–
–
–
fCLK/2 maximum resolution (50ns @ fcpu 40 MHz)
clock prescaler support
2 independent timers/counters (T5, T6)
Timers/counters can be concatenated
3 operating modes (timer, gated timer, counter)
Extended capture/reload functions via 16-bit
Capture/Reload register CAPREL
– Separate interrupt request lines
– auxiliary timer in reload/capture mode
XC164CM series
Product Presentation
February 2006
V1.1
Page 67
XC164CM series ASC
XC164CM series
Product Presentation
February 2006
V1.1
Page 68
XC164CM series ASC
! Full-duplex asynchronous operating modes
–
–
–
–
–
8- or 9-bit data frames, LSB first
Parity bit generation/checking
One or two stop bits
Baudrate up to 1.25 Mbaud (@ 40 MHz clock)
Multiprocessor mode for automatic address/data byte
detection
– Loop-back capability
– Support for IrDA data Transmission/reception up to max.
115.2 Kbaud
! Half-duplex 8-bit synchronous operating mode
– Baudrate up to 5 Mbaud (@ 40 MHz clock)
XC164CM series
Product Presentation
February 2006
V1.1
Page 69
XC164CM series ASC
! Data transmission is double buffered
! Autobaud rate detection
! Buffered transmitter/receiver with FIFO support
! Comfortable Interrupt Generation
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 70
on a transmitter empty condition
on a transmission of a last bit of a frame
on a receiver buffer full condition
on an error condition ( receive, parity, overrun error)
on the start and end of a autobaud detection
XC164CM series ASC
Prescaler /
Fractional
Divider
fDIV
Autobaud
Detection
IrDA
Decoding
XC164CM series
Product Presentation
February 2006
V1.1
Page 71
Baudrate
Timer
Asynchronous Mode
Serial Port
Control
Mux
Receive /Transmit
Buffers and Shift
Register
IrDA
Decoding
Mux
TxD
XC164CM series SSC
XC164CM series
Product Presentation
February 2006
V1.1
Page 72
XC164CM series SSC
! Master and slave mode operation
– Full-duplex or half-duplex
! Flexible
–
–
–
–
Programmable number of bits: 2 to 16bits
Programmable shift direction: LSB or MSB shift first
Programmable clock polarity
Programmable clock/data phase
! Max. Baudrate up to 20 Mbaud (@ 40 MHz clock)
XC164CM series
Product Presentation
February 2006
V1.1
Page 73
XC164CM series SSC
fPD
fPD==fPLL/N
fPLL/N
Baudrate
Generator
Clock
Control
SS_CLK
MS_CLK
Shift Clock
Receive Int. Request
Transmit Int. Request
Error Int. Request
SSC Control Block
Status
Control
16-Bit Shift
Register
Transmit
Buffer
Receive
Buffer
Internal Bus
XC164CM series
Product Presentation
February 2006
V1.1
Page 74
Pin
Control
TxD (Master)
RxD (Slave)
TxD (Slave)
RxD (Master)
XC164CM series CAPCOM2
XC164CM series
Product Presentation
February 2006
V1.1
Page 75
XC164CM series CAPCOM2
! Features
– Two 16-bit timers with reload register
– 16 registers individually configurable for capture or
compare function
– 18 interrupts: 16 capture compare interrupts with two
timer interrupts
– Up to 16 software timers
– Programmable clock with multiple sources
XC164CM series
Product Presentation
February 2006
V1.1
Page 76
XC164CM series CAPCOM2
! Features
– 200 ns maximum resolution (@ 40 MHz staggered mode),
compatible to C16x
– 25ns maximum resolution (@ 40 MHz non-staggered
mode), enhanced mode
– Double register compare function
– Primary clock prescaler
– Additional output register
– Single event mode
XC164CM series
Product Presentation
February 2006
V1.1
Page 77
XC164CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
XC164CM series
Product Presentation
February 2006
V1.1
Page 78
XC164CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
! The CCU6 provides two
independent timers (T12,T13)
for PWM generation,
especially for AC motor
control. Support of special
control modes for block
commutation and multi-phase
machines are supported
A
B’
A
C’
C’
B’
T S
C
XC164CM series
Product Presentation
February 2006
V1.1
Page 79
B
N
C’
A’
A’
Induction Motor
BLDC-Motor
T
B’
B
B
C
A
A’
C
Switched
Reluctance
XC164CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
! Timer 12 Features
– Three capture/compare channels, each channel can be used either
as capture or compare channel.
– Generation of a three-phase PWM supported (six outputs,
individual signals for lowside and highside switches)
– 16 bit resolution, maximum count frequency = peripheral clock
– Dead-time control for each channel to avoid short-circuits in the
power stage
– Concurrent update of the required control registers due to
synchronous design
– Center-aligned and edge-aligned PWM can be generated
– Single-shot mode supported
– Many interrupt request sources
– Hysteresis-like control mode (this mode might be used to realize a
simple current regulator in combination with CTRAP)
XC164CM series
Product Presentation
February 2006
V1.1
Page 80
XC164CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
! Timer 13 Features
–
–
–
–
–
One independent compare channel with one output
16 bit resolution, maximum count frequency = peripheral clock
Can be synchronized to T12 (Modulation of Timer 12)
Interrupt generation at period-match and compare-match
Single-shot mode supported
! Additional Features of CCU6
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 81
Block commutation for Brushless DC-drives implemented
Position detection via Hall-sensor pattern
Automatic rotational speed measurement for block commutation
Integrated error handling
Fast emergency stop without CPU load via external signal (CTRAP)
XC164CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
– Multi-channel features: User specific control modes for 4-,
5- and 6-phase drives
– Output levels can be selected and adapted to the power
stage
– Noise filtering for Hall inputs
– Support of sensorless positioning detection of BLDC
!
Timer T12 trigger Timer T13 to generate additional delay for
demagnetization time
– Simple motor control feature (e.g. over current control)
XC164CM series
Product Presentation
February 2006
V1.1
Page 82
XC164 CM series CAPCOM6E
not on XC164LM, XC164TM, XC164KM and XC164GM
compare
1
channel 2
1
multichannel
control
dead-time
control
output select
fper
compare
channel 3
compare
capture
T13
compare
start
trap
control
trap input
channel 1
output select
T12
1
Hall input
address
decoder
channel 0
compare
3
1
interrupt
control
2
2
3
2
1
port control
XC164CM series
Product Presentation
February 2006
V1.1
Page 83
CTRAP
CCPOS2
CCPOS1
CCPOS0
CC62
COUT62
CC61
COUT61
CC60
COUT60
COUT63
capture/compare input / output control
XC164CM series TwinCAN
not on XC164LM, XC164TM and XC164SM
XC164CM series
Product Presentation
February 2006
V1.1
Page 84
XC164CM series TwinCAN
not on XC164LM, XC164TM and XC164SM
! Features
– CAN functionality according to CAN specification V2.0 B
active.
– Dedicated control registers are provided for each CAN
node.
– A data transfer rate up to 1MBaud is supported.
– Flexible and powerful message transfer control and error
handling capabilities are implemented.
– Up to eight individually programmable interrupt nodes can
be used.
– CAN Analyzer Mode for bus monitoring is implemented.
XC164CM series
Product Presentation
February 2006
V1.1
Page 85
XC164CM series TwinCAN
not on XC164LM, XC164TM and XC164SM
! Full-CAN functionality: 32 message objects can be
individually
– assigned to one of the two CAN nodes,
– configured as transmit or receive object,
– participate in a 2,4,8,16 or 32 message buffer with FIFO
algorithm,
– setup to handle frames with 11 bit or 29 bit identifiers,
– provided with programmable acceptance mask register for
filtering,
– monitored via a frame counter,
– configured to Remote Monitoring Mode.
XC164CM series
Product Presentation
February 2006
V1.1
Page 86
XC164CM series
Product Presentation
February 2006
V1.1
Page 87
XC164CM series
Application Examples
The XC164CM series
A platform for Industrial motion control
! Optimized peripheral set for
– DC drives
– AC drives
– Stepper Motors
! Example Applications
–
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 88
Air-condition compressor
CNC Machines
Automated Assembly Systems
Inspection Systems
Labeling Machine
Robotics
Microcontroller peripheral features for your Application
Motor control
ASC
SSC
Twin
CAN
CCU6
CCU12
INT
ADC
MAC
GPT
ROM/
FLASH
RAM
CPU
XC164CM series
Product Presentation
February 2006
V1.1
Page 89
The CCU6 provides two independent timers
(T12,T13) for PWM generation, especially for
AC motor control. Support of special control
modes for block commutation and multi-phase
machines are supported. Special Hardware
trigger allow PWM synchronized ADC
conversion with noise filtering.
The ADC features up to 14 channels on the
XC164CM with 10bit (+ 2LSB) fast conversion
or 8bit (+ 1LSB) resolution. Different kind of
Conversion Modes are supported, such like
Fixed Channel Single/ Continuous Conversion,
Auto scan, wait for read mode and channel
injection mode.
The General Purpose Timer Block GPT12
include 5 independent timers/counters in
different operation modes such as timer, gated
timer, counter, enhanced incremental interface
modes for Encoder Signal decoding (rotation
detection mode, edge detection mode) and
separate interrupt request lines.
Application Example: Brush-Less DC Motor Drive
with Hall Sensors or Sensor less
Low Drop Voltage
Regulator
TLE 7469
Vbat
Power
Supply
Bridge Driver
6 x Power MOSFET
TLE 6280/TLE7183
SPDxx
Twin
CAN
ADC
ASC
Host
SSC
Phase
Inverter
Protection
Diagnoses
Driving
Stages
INT
CCU6
Brushless
Motor
/CTRAP
Emergency stop
MAC
FLASH
RAM
CPU
XC164CM series
Product Presentation
February 2006
V1.1
Page 90
Microcontroller
XC164CM
Hall Sensors
TLE4945
Application Example: Field Oriented Control (FOC)
for Servo drive, Electrical Power Steering
Low Drop Voltage
Regulator
TLE 7469
Vbat
Bridge Driver
TLE 6280 / TLE 7183
Power
Supply
Power MOSFET
SPDxx (160A)
Protection
Diagnoses
ASC
Driving
Stages
Twin
CAN
CCU6
CCU12
Host
Via
INT
ADC
MAC
GPT
ROM/
FLASH
RAM
CPU
XC164CM series
Product Presentation
February 2006
V1.1
Page 91
3 Phase
PMSM
SSC
Microcontroller
XC164Cx / XC167CI
/CTRAP
Emergency stop
Current mesurment
Signal
conditioning
1 to 3
amplifier
Position
Sensor
Industrial Motor Drive
powered and controlled by Infineon
! Motor:
– AC induction motor up to 15 kVA
! Power:
– EconoPIM™ FP75R12KE3
!
!
easy to use
high reliability
!
!
!
high isolation capability
small size
low cost
– EiceDRIVER™ 2ED020I12-F
! Control:
– XC164CM Microcontroller with
MAC unit enables Field oriented
Control (FOC)
!
!
!
!
!
XC164CM series
Product Presentation
February 2006
V1.1
Page 92
high dynamic behavior
constant torque over speed
less noise
versatile interface due to galvanic
isolation
Demo Software and Application
Notes available
Complete
Completeand
andeasy
easy
totouse
usesolution
solution
XC164CM series
Product Presentation
February 2006
V1.1
Page 93
XC164CM series
Tools & Software Overview
Development Tool Partners (Headquarters): Debugger
USA :
16-bit
Compiler/Debugger Solutions
TASKING (NL)
NOHAU
KEIL (GER)
COSMIC (FRA)
KPID (IND)
Europe:
16-bit
Lauterbach
16-bit
HITEX
16-bit
PLS
16-bit
iSYSTEM
Asia / Pacific:
XC164CM series
Product Presentation
February 2006
V1.1
Page 94
All TPVs are globally positioned with offices for sales/support
in all regions.
Foil only shows headquarter locations
16-bit
Wave
DAvE & XC164CM series
! DAvE now supports the XC164CM series !!
– DAvE let’s you ….
!
!
!
Configure your system!
Auto-Generate your driver source
Fully supported by KEIL/TASKING Compiler technologies
– DAvE is a “Expert Wizard”, a tool for configuring your
system and generating your initialisation code and will
you up-to-speed in your development cycle
– See www.infineon.com/dave
XC164CM series
Product Presentation
February 2006
V1.1
Page 95
DAvE & XC164CM series
XC164CM series
Product Presentation
February 2006
V1.1
Page 96
XC164CM Easy Kit
Board details
For the XC164CM series the Easy Kit is soldered only with the
XC164CM.
! Components:
–
–
–
–
–
XC164CM
TLE 7469 (2.6V/5V)
TLE 6250 G (CAN)
TLE 7259 G (LIN)
8 general purpose LED
! Features
–
–
–
–
–
XC164CM series
Product Presentation
February 2006
V1.1
Page 97
JTAG interface
ASC boot loader
Easy access to all pins
Quick to configure
General purpose power
supply input (9V/400mA)
– Interface to power board
BTS7960
XC164CM Easy Kit
Package
USB Wiggler +
Cable
CD
Easy Kit Board
! Online order: www.infineon.com/xc164cm
! Price: € 99
Note: Additionally, you will need a DC power supply (7-12 Volts, min 400mA
ensure correct polarity) which is not included in the Easy Kit!
XC164CM series
Product Presentation
February 2006
V1.1
Page 98
XC164CM Easy Kit
CD content
! Getting Started to install the Software and
execute the first Demo Project
! Compile/Debugger Demo Versions
– Tasking Altium
– Keil Software
– Cosmic
! Development Tools
– DAvE for all members of the XC164CM series
– Memtool for Flash programming
! Demo Programs with a well structured guidance for a step by step
setup with DAvE for Keil and Tasking Software
! Complete working projects for the Demo Programs
XC164CM series
Product Presentation
February 2006
V1.1
Page 99
! All necessary Documentation to start your project (User Manuals,
Data Sheets,…)
XC164CM series
Product Presentation
February 2006
V1.1
Page 100