introduction to microcontroller world
TRANSCRIPT
![Page 1: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/1.jpg)
Introduction to Microcontroller World XMCTM Microcontrollers March 2016
![Page 2: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/2.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
2 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 3: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/3.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
3 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 4: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/4.jpg)
Microcontroller
What is a Microcontroller?
CPU ARM®
Cortex®
Memory (Flash / RAM)
Drivers › Gate Drivers
› MOSFETS
› IGBT's
PWM Timers
Interconnect Matrix
Co-Prozessor
ADC
Comparators
Position Interface
DAC Sensors
› Temperature, Pressure, Acceleration,…
ΔΣ-Demodulator
Feedback Loops
› Hall Sensors
› Encoders
› Current Measurement
USB Ethernet
SDIO/Memory Interface
SPI, UART, I2C
Ethernet CAN
Connectivity
› Connect your module to the external world (IOT)
Processor + Peripherals
4 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 5: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/5.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
5 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 6: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/6.jpg)
CPU
What is the role of CPU in a Microcontroller?
› CPU stands for Centre Processing Unit which is the brain of the overall Microcontroller system.
› The CPU will execute instruction sets (software) from the memory (Flash/RAM) and command other peripherals for specific tasks or process incoming data.
› For embedded system of this generation CPUs are considered to be 32-bit. This means that the related instruction sets, address and data bus are accessed in 32-bit format.
› There are various CPU processing speed to cater for different needs and the CPU speed is specified in MHz frequency.
› The CPU needs to be driven by an external or internal oscillator also known as the clock source.
CPU ARM®
Cortex®
Memory (Flash / RAM)
Microcontroller
Peripherals
Software
Infineon XMCTM Microcontroller speed
Available from 48 MHz to 144 MHz
6 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 7: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/7.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
7 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 8: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/8.jpg)
Co Processor
What is the role of the Co Processor?
› The Co Processor is a computer processor used to supplement the functions of the primary processor (the CPU).
› Operations performed by the Co Processor may be floating point arithmetic, graphics, signal processing, string processing, encryption or I/O Interfacing with peripheral devices.
› This has the advantage of off loading the CPU to perform time critical task.
› Low end microcontroller does not come with Co Processor, hence complex software algorithm needs to be implemented which makes the overall system less efficient.
Microcontroller
CPU ARM®
Cortex®
Co-Processor
Memory (Flash / RAM)
Math
Tasks
Infineon XMC4000 The XMC4000 ARM® Cortex® M4 has got a built in Digital Signal Processor (DSP) or Multiply Accumulate (MAC) to take care of complex arithmetic calculation
8 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 9: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/9.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
9 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 10: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/10.jpg)
On chip Memories
What is Flash memory?
› Flash is used for the storage of software or commonly known as the firmware in an embedded system.
› Hence firmware can be updated into the flash memory with a newer version by the process of electrically erasing and reprograming the flash.
› Flash memory space range from 64 KB to 2 MB for Infineon XMCTM Microcontrollers.
What is RAM?
› RAM stands for Random Access Memory
› RAM is used as temporary storage of data variables. Unlike flash which contains mostly static instructions or data, RAM data can be frequently changing.
› Example, the below RAM data “Counter” is doing an incrementing operation. And its updated with a different value each time it is incremented.
Counter++;
Microcontroller
CPU ARM®
Cortex®
Memory Flash
Software
Memory
RAM
Data
10 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 11: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/11.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
11 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 12: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/12.jpg)
Communication Peripherals
Communication Peripherals
Why MCU needs communication?
› The MCU needs to interact with other external device just like human beings who need to speak different languages.
› Hence there are many different communication protocol (USB, CAN I2C etc.)
Types of Communication Protocol
› In modern communication, Ethernet and USB can be found in most high end microcontroller. (e.g. XMC4000)
› Standard communication protocol such as UART, SPI, I2C or EBU can be found in most general microcontroller.
› For Automation purposes, CAN bus is usually used.
› Lately Ethernet is used in Automation for better performance, therefore EtherCAT® (Ethernet for Control Automation Technology) is introduced in Infineon XMC4800.
USB Ethernet SDIO/Memory
Interface
SPI
EtherCAT CAN
Internet Of Things
Standard COMMS
Automation COMMS
UART I2C
12 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 13: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/13.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
13 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 14: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/14.jpg)
Analog Peripherals
What are the Analog Peripherals?
› The Analog Peripherals refers to the Analog to Digital Converter (ADC), Digital to Analog Converter (DAC) and Comparator.
Analog to Digital Converter (ADC)
› ADC is used to convert analog voltage level to digital data. Such that this data can be used by the software to determine the next course of action.
› Usually sensors (e.g. temperature sensor) can be connected to a ADC channel as a close loop feedback system.
Digital to Analog Converter
› The DAC is function that convert digital data into an analog signal usually a specific voltage level.
Comparator
› The comparator is used to compare 2 analog voltage input. The result is an output voltage level high or low.
Analog Peripherals
ADC
DAC
Comparator
SW read AD result
SW process AD result
0101011001
0101011001
Analog signals
Memory (Flash / RAM)
CPU ARM®
Cortex®
14 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 15: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/15.jpg)
Agenda
What is a Microcontroller
CPU
Co Processor
On Chip Memories
Communication Peripherals
Analog Peripherals
Timers with pulse width modulation capability
1
2
3
4
5
6
7
15 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 16: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/16.jpg)
Timers with pulse width modulation capability
What is the purpose of the PWM timer?
› The timer can be figured to output square waveforms with defined period and duty cycle, allowing for use in motor control applications, for example.
› It is also able to measure a PWM Frequency/Period and Duty cycle base on the rising and falling edge of the waveform.
What is a Position Interface?
› Position interface is used to interface with a rotary Encoder to understand precisely the angular position or motion example of a motor.
Analog Peripherals
PWM Timer Output
POSIF
SW read Duty Cycle /Period
SW read position
Memory (Flash / RAM)
CPU ARM®
Cortex®
PWM Timer Input
Infineon XMC is using the Capture and Compare Unit (CCU) as a PWM timer.
Note:
PWM stands for Pulse Width Modulation, it is a modulation technique used to encode a message into a pulsing signal.
16 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 17: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/17.jpg)
› Product Briefs
› Selection Guides
› Application Brochures
› Presentations
› Press Releases, Ads
› Application Notes
› Technical Articles
› Simulation Models
› Datasheets, MCDS Files
› PCB Design Data
› Technical Videos
› Product Information
Videos
› Forums
› Product Support
Support material
Collaterals and
Brochures
Technical Material
Videos
Contact
› www.infineon.com/XMC
› www.infineon.com/XMC
› Kits and Boards
› DAVETM
› Software and Tool Ecosystem
› Infineon Media Center
› XMC Mediathek
› Infineon Forums
› Technical Assistance Center (TAC)
17 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 18: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/18.jpg)
Glossary abbreviations
› ADC Analog to Digital Converter
› DAC Digital to Analog Converter
› PWM Pulse Width Modulation
› CPU Central Processing Unit
› RAM Random Access Memory
› I/O Input and Output Port
› UART Universal Asynchronous Receive and Transmit
› USB Universal Serial Bus
› I2C Inter-Integrated Circuit
› CAN Controlled Area Network
18 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 19: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/19.jpg)
Glossary abbreviations
› EtherCAT® Ethernet for Controlled Automation Technology
› SPI Serial Peripheral Interface
› IoT Internet of Things
19 Copyright © Infineon Technologies AG 2016. All rights reserved.
![Page 20: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/20.jpg)
The information given in this training materials is given as a hint for the implementation of the Infineon Technologies component only and shall not be regarded as any description or warranty of a certain functionality, condition or quality of the Infineon Technologies component.
Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind (including without limitation warranties of non-infringement of intellectual property rights of any third party) with respect to any and all information given in this training material.
Disclaimer
![Page 21: Introduction to Microcontroller World](https://reader030.vdocuments.us/reader030/viewer/2022012706/61a79fc8d87a4700986498b6/html5/thumbnails/21.jpg)