SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
ARM based Microcontrollers
& Peripherals
1. Overview on ARM architecture
2. ARM Cortex-M4 and ARM Cortex-M3 Specifications
3. TM4C123GH6PM Microcontroller Peripherals.
4. TIVA TM4C123GH6PM Launchpad kit specifications
5. GPIO Interface with applications
6. Interrupts and exceptions of TM4C123GH6PM.
7. DMA and its applications.
8. UART Interface.
9. SPI Interface with applications.
10. I2C Interface with applications.
11. ADC Interface with applications
12. Timers and PWM interfacing .
Agenda
2
• The point consists of the following topics:
– The Cortex-M Processor family
– The Cortex-M3 and Cortex-M4 processors
features
– Cortex-M4 block diagram
– Cortex-M4 Architecture
– Cortex-M4 Exceptions and interrupts
Outline
3
The Cortex-M Processor family
4
• For general data processing and I/O control tasks, the
Cortex-M0 and Cortex-M0þ processors have excellent
energy efficiency
• But for applications with complex data processing
requirements, they may take more instructions and
clock cycles.
The Cortex-M3 and Cortex-M4 processors
features
5
• Cortex-M3 was released in 2005 and Cortex – M4 was
released in 2010.
• 32-bit registers
• 32-bit internal data path
• 32-bit bus interface
• The Instruction Set Architecture (ISA) is called Thumb ISA.
• Three-stage pipeline design
• Harvard bus architecture with unified memory space:
instructions and data use the same address space
• 32-bit addressing, supporting 4GB of memory space.
6
• On-chip bus interfaces based on ARM AMBA (Advanced
Microcontroller Bus Architecture)Technology, which allow
pipelined bus operations for higher throughput
The Cortex-M3 and Cortex-M4 processors
features
7
• An interrupt controller called NVIC (Nested Vectored
Interrupt Controller)
• supporting up to 240 interrupt requests and from 8 to 256
interrupt priority levels (dependent on the actual device
implementation)
The Cortex-M3 and Cortex-M4 processors
features
8
• • Support for various features for OS (Operating System)
implementation such as a system tick timer, shadowed
stack pointer
The Cortex-M3 and Cortex-M4 processors
features
9
• Sleep mode support and various low power features.
• Support for an optional MPU (Memory Protection Unit) to
provide memory protection features like programmable
memory, or access permission control.
The Cortex-M3 and Cortex-M4 processors
features
Cortex-M4 block diagram
10
Cortex-M4 Architecture
11
• Programmer model
The processors can have privileged and unprivileged
access levels:
• Privileged access level can access all resources in the
processor.
• Unprivileged access level means some memory regions are
inaccessible, and a few operations cannot be used.
• The separation of privileged and unprivileged access levels
allows system designers to develop robust embedded
systems.
Cortex-M4 Architecture
12
• Programmer model
The processor is also has two operational states:
• Debug state: When the processor is halted (e.g., by the
debugger, or after hitting a breakpoint), it enters debug state
and stops executing instructions.
• Thumb state: If the processor is running program code
(Thumb), it is in the Thumb state.
Cortex-M4 Architecture
13
• Register file Due to the limited available space in
the instruction set, many 16-bit
instructions can only access the low
registers.
can be used with 32-bit instructions,
and a few with 16-bit instructions
MSP is the default Stack Pointer.
It is selected after reset, or when the
processor is in Handler Mode.
PSP can only be used in Thread Mode.
The PSP is normally used when an
embedded OS is involved, where the
stack for the OS kernel and application
tasks are separated.
Cortex-M4 Architecture
14
• Register file
Link Register (LR) is used for holding
the return address when calling a
function or subroutine.
At the end of the function or
subroutine, the program control can
return to the calling program and
resume by loading the value of LR
into the Program Counter (PC).
Program Counter (PC) is readable
and writeable: a read returns the
current instruction address plus 4.
Writing to PC causes a branch
operation.
Cortex-M4 Architecture
15
• Instruction Set:
• Classic ARM processors were supporting both ARM-32 bit
Instructions and Thum16 bit instructions
Cortex-M4 Architecture
16
• Instruction Set:
• ARM Cortex Instruction set introduced Thumb-2
technology, the Thumb instruction set has been extended
to support both 16-bit and 32-bit instruction encoding.
Cortex-M4 Architecture
17
• Instruction Set:
• With Thumb-2 technology, the Cortex-M processor has a
number of advantages over classic ARM processors:
1. No state switching overhead, saving both execution time
and instruction space.
2. No need to specify ARM state or Thumb state in source
files, making software development easier.
3. It is easier to get the best code density, efficiency, and
performance at the same time.
4. With Thumb-2 technology, the Thumb instruction set has
been extended by a wide margin when compared to a
classic processor
Cortex-M4 Architecture
18
• Memory System
• The Cortex-M3 and M4 processors themselves do not
include memories.
• they come with a generic on-chip bus interface.
• the microcontroller vendor will need to add the following
items to the memory system:
1. Program memory, typically flash
2. Data memory, typically SRAM
3. Peripherals
Cortex-M4 Architecture
19
• Memory System
• The provided bus interfaces on the Cortex-M processors
are 32-bit, and based on the Advanced Microcontroller
Bus Architecture (AMBA) standard.
Cortex-M4 Architecture
20
• Memory System
• AHB Bus transfer:
Cortex-M4 Architecture
21
• Memory System
• AHB Bus transfer:
Cortex-M4 Architecture
22
• Memory System
• What is Bit Banding?
Bit Banding is a method of performing atomic bitwise
modifications to memory.
• Why Bit banding?
Usually changing a word in memory requires a read-
modify-write cycle. If this operation is interrupted there can
be data loss.
(0x33) data has been lost!
Cortex-M4 Architecture
23
• Memory System
• How is Bit Banding Working?
• Bit-banding uses address space that aliases peripheral or
SRAM address space, allowing a single bit within a word
to be manipulated by a reference to a byte at an aliased
address.
Cortex-M4 Architecture
24
• Memory System
• Bit Banding in ARM Cortex-M4?
• SRAM Bit banding and alias regions
Cortex-M4 Architecture
25
• Memory System
• Bit Banding in ARM Cortex-M4?
• Peripheral memory Bit banding and alias regions
Cortex-M4 Architecture
26
• Memory System
• Bit Banding in ARM Cortex-M4?
How Alias word address calculated to modify a single bit?
alias_word_address =
alias_region_base + bit_band_byte_offset x 32) + (bit_number x 4)
27
• Exceptions and interrupt control
• Exceptions are events that cause
changes to program flow.
• When one happens, the processor
suspends the current executing
task and executes a part of the
program called the exception
handler.
• After the execution of the exception
handler is completed, the processor
then resumes normal program
execution.
Cortex-M4 Architecture
28
 Exceptions and interrupt control
 Nested Interrupt Vector Controller. (NIVC)
 The NVIC handles the exceptions and interrupt configurations,
prioritization, and interrupt masking.
 The NVIC has the following features:
1. Flexible exception and interrupt management
2. Nested exception/interrupt support.
3. Vectored exception/interrupt entry.
4. Interrupt masking.
Cortex-M4 Architecture
1. Overview on ARM architecture
2. ARM Cortex-M4 and ARM Cortex-M3 Specifications
3. TM4C123GH6PM Microcontroller Peripherals.
4. TIVA TM4C123GH6PM Launchpad kit specifications
5. GPIO Interface with applications
6. Interrupts and exceptions of TM4C123GH6PM.
7. DMA and its applications.
8. UART Interface.
9. SPI Interface with applications.
10. I2C Interface with applications.
11. ADC Interface with applications
12. Timers and PWM interfacing .
Agenda
29
30
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
31
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
32
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
33
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
34
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
35
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
36
Microcontroller Features
TM4C123GH6PM Microcontroller
Overview
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Interrupts for PIC18
Interrupts for PIC18Interrupts for PIC18
Interrupts for PIC18raosandy11
 
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...jycazihi6460
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionanand hd
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
Computer architecture the pentium architecture
Computer architecture the pentium architectureComputer architecture the pentium architecture
Computer architecture the pentium architectureMazin Alwaaly
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersMohamed Tarek
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Mahmoud Sadat
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptHAriesOa1
 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programmingVajira Thambawita
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architectureDr.YNM
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 

Was ist angesagt? (20)

8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Interrupts for PIC18
Interrupts for PIC18Interrupts for PIC18
Interrupts for PIC18
 
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and ...
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introduction
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Computer architecture the pentium architecture
Computer architecture the pentium architectureComputer architecture the pentium architecture
Computer architecture the pentium architecture
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
06. thumb instructions
06. thumb instructions06. thumb instructions
06. thumb instructions
 
Ec8791 lpc2148
Ec8791 lpc2148Ec8791 lpc2148
Ec8791 lpc2148
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programming
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architecture
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
ATMEGA 328
ATMEGA 328ATMEGA 328
ATMEGA 328
 
Architecture of pentium family
Architecture of pentium familyArchitecture of pentium family
Architecture of pentium family
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 

Ähnlich wie 02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC

PPT MES class.pptx
PPT MES class.pptxPPT MES class.pptx
PPT MES class.pptxkavithadcs
 
ES Module_1.pptx
ES Module_1.pptxES Module_1.pptx
ES Module_1.pptxsarala9
 
Arm Processors Architectures
Arm Processors ArchitecturesArm Processors Architectures
Arm Processors ArchitecturesMohammed Hilal
 
15CS44 MP & MC Module 4
15CS44 MP & MC Module 415CS44 MP & MC Module 4
15CS44 MP & MC Module 4RLJIT
 
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuu
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuuARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuu
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuuvenur239
 
EC8791 ARM Processor and Peripherals.pptx
EC8791 ARM Processor and Peripherals.pptxEC8791 ARM Processor and Peripherals.pptx
EC8791 ARM Processor and Peripherals.pptxdeviifet2015
 
MODULE 1 MES.pptx
MODULE 1 MES.pptxMODULE 1 MES.pptx
MODULE 1 MES.pptxManvanthBC
 
Computer organization & ARM microcontrollers module 3 PPT
Computer organization & ARM microcontrollers module 3 PPTComputer organization & ARM microcontrollers module 3 PPT
Computer organization & ARM microcontrollers module 3 PPTChetanNaikJECE
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberasodariyabhavesh
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armPrashant Ahire
 
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...Shrishail Bhat
 
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)Shrishail Bhat
 

Ähnlich wie 02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC (20)

MPU Chp2.pptx
MPU Chp2.pptxMPU Chp2.pptx
MPU Chp2.pptx
 
PPT MES class.pptx
PPT MES class.pptxPPT MES class.pptx
PPT MES class.pptx
 
MES PPT.pptx
MES PPT.pptxMES PPT.pptx
MES PPT.pptx
 
ES Module_1.pptx
ES Module_1.pptxES Module_1.pptx
ES Module_1.pptx
 
Arm processor
Arm processorArm processor
Arm processor
 
Archi arm2
Archi arm2Archi arm2
Archi arm2
 
Arm Processors Architectures
Arm Processors ArchitecturesArm Processors Architectures
Arm Processors Architectures
 
15CS44 MP & MC Module 4
15CS44 MP & MC Module 415CS44 MP & MC Module 4
15CS44 MP & MC Module 4
 
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuu
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuuARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuu
ARM Introduction 1.ppthhhhhhhhhhhhhuuuuuuu
 
EC8791 ARM Processor and Peripherals.pptx
EC8791 ARM Processor and Peripherals.pptxEC8791 ARM Processor and Peripherals.pptx
EC8791 ARM Processor and Peripherals.pptx
 
MODULE 1 MES.pptx
MODULE 1 MES.pptxMODULE 1 MES.pptx
MODULE 1 MES.pptx
 
Computer organization & ARM microcontrollers module 3 PPT
Computer organization & ARM microcontrollers module 3 PPTComputer organization & ARM microcontrollers module 3 PPT
Computer organization & ARM microcontrollers module 3 PPT
 
Arm arc-2016
Arm arc-2016Arm arc-2016
Arm arc-2016
 
Introduction to ARM Architecture
Introduction to ARM ArchitectureIntroduction to ARM Architecture
Introduction to ARM Architecture
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_arm
 
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
ARM Microcontroller and Embedded Systems (17EC62) – ARM – 32 bit Microcontrol...
 
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
Embedded Systems (18EC62) - ARM - 32-Bit Microcontroller (Module 1)
 
ARM UNIT4 PPTold.pptx
ARM UNIT4 PPTold.pptxARM UNIT4 PPTold.pptx
ARM UNIT4 PPTold.pptx
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 

Kürzlich hochgeladen

UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 

Kürzlich hochgeladen (20)

UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 

02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC

  • 2. 1. Overview on ARM architecture 2. ARM Cortex-M4 and ARM Cortex-M3 Specifications 3. TM4C123GH6PM Microcontroller Peripherals. 4. TIVA TM4C123GH6PM Launchpad kit specifications 5. GPIO Interface with applications 6. Interrupts and exceptions of TM4C123GH6PM. 7. DMA and its applications. 8. UART Interface. 9. SPI Interface with applications. 10. I2C Interface with applications. 11. ADC Interface with applications 12. Timers and PWM interfacing . Agenda 2
  • 3. • The point consists of the following topics: – The Cortex-M Processor family – The Cortex-M3 and Cortex-M4 processors features – Cortex-M4 block diagram – Cortex-M4 Architecture – Cortex-M4 Exceptions and interrupts Outline 3
  • 4. The Cortex-M Processor family 4 • For general data processing and I/O control tasks, the Cortex-M0 and Cortex-M0þ processors have excellent energy efficiency • But for applications with complex data processing requirements, they may take more instructions and clock cycles.
  • 5. The Cortex-M3 and Cortex-M4 processors features 5 • Cortex-M3 was released in 2005 and Cortex – M4 was released in 2010. • 32-bit registers • 32-bit internal data path • 32-bit bus interface • The Instruction Set Architecture (ISA) is called Thumb ISA. • Three-stage pipeline design • Harvard bus architecture with unified memory space: instructions and data use the same address space • 32-bit addressing, supporting 4GB of memory space.
  • 6. 6 • On-chip bus interfaces based on ARM AMBA (Advanced Microcontroller Bus Architecture)Technology, which allow pipelined bus operations for higher throughput The Cortex-M3 and Cortex-M4 processors features
  • 7. 7 • An interrupt controller called NVIC (Nested Vectored Interrupt Controller) • supporting up to 240 interrupt requests and from 8 to 256 interrupt priority levels (dependent on the actual device implementation) The Cortex-M3 and Cortex-M4 processors features
  • 8. 8 • • Support for various features for OS (Operating System) implementation such as a system tick timer, shadowed stack pointer The Cortex-M3 and Cortex-M4 processors features
  • 9. 9 • Sleep mode support and various low power features. • Support for an optional MPU (Memory Protection Unit) to provide memory protection features like programmable memory, or access permission control. The Cortex-M3 and Cortex-M4 processors features
  • 11. Cortex-M4 Architecture 11 • Programmer model The processors can have privileged and unprivileged access levels: • Privileged access level can access all resources in the processor. • Unprivileged access level means some memory regions are inaccessible, and a few operations cannot be used. • The separation of privileged and unprivileged access levels allows system designers to develop robust embedded systems.
  • 12. Cortex-M4 Architecture 12 • Programmer model The processor is also has two operational states: • Debug state: When the processor is halted (e.g., by the debugger, or after hitting a breakpoint), it enters debug state and stops executing instructions. • Thumb state: If the processor is running program code (Thumb), it is in the Thumb state.
  • 13. Cortex-M4 Architecture 13 • Register file Due to the limited available space in the instruction set, many 16-bit instructions can only access the low registers. can be used with 32-bit instructions, and a few with 16-bit instructions MSP is the default Stack Pointer. It is selected after reset, or when the processor is in Handler Mode. PSP can only be used in Thread Mode. The PSP is normally used when an embedded OS is involved, where the stack for the OS kernel and application tasks are separated.
  • 14. Cortex-M4 Architecture 14 • Register file Link Register (LR) is used for holding the return address when calling a function or subroutine. At the end of the function or subroutine, the program control can return to the calling program and resume by loading the value of LR into the Program Counter (PC). Program Counter (PC) is readable and writeable: a read returns the current instruction address plus 4. Writing to PC causes a branch operation.
  • 15. Cortex-M4 Architecture 15 • Instruction Set: • Classic ARM processors were supporting both ARM-32 bit Instructions and Thum16 bit instructions
  • 16. Cortex-M4 Architecture 16 • Instruction Set: • ARM Cortex Instruction set introduced Thumb-2 technology, the Thumb instruction set has been extended to support both 16-bit and 32-bit instruction encoding.
  • 17. Cortex-M4 Architecture 17 • Instruction Set: • With Thumb-2 technology, the Cortex-M processor has a number of advantages over classic ARM processors: 1. No state switching overhead, saving both execution time and instruction space. 2. No need to specify ARM state or Thumb state in source files, making software development easier. 3. It is easier to get the best code density, efficiency, and performance at the same time. 4. With Thumb-2 technology, the Thumb instruction set has been extended by a wide margin when compared to a classic processor
  • 18. Cortex-M4 Architecture 18 • Memory System • The Cortex-M3 and M4 processors themselves do not include memories. • they come with a generic on-chip bus interface. • the microcontroller vendor will need to add the following items to the memory system: 1. Program memory, typically flash 2. Data memory, typically SRAM 3. Peripherals
  • 19. Cortex-M4 Architecture 19 • Memory System • The provided bus interfaces on the Cortex-M processors are 32-bit, and based on the Advanced Microcontroller Bus Architecture (AMBA) standard.
  • 20. Cortex-M4 Architecture 20 • Memory System • AHB Bus transfer:
  • 21. Cortex-M4 Architecture 21 • Memory System • AHB Bus transfer:
  • 22. Cortex-M4 Architecture 22 • Memory System • What is Bit Banding? Bit Banding is a method of performing atomic bitwise modifications to memory. • Why Bit banding? Usually changing a word in memory requires a read- modify-write cycle. If this operation is interrupted there can be data loss. (0x33) data has been lost!
  • 23. Cortex-M4 Architecture 23 • Memory System • How is Bit Banding Working? • Bit-banding uses address space that aliases peripheral or SRAM address space, allowing a single bit within a word to be manipulated by a reference to a byte at an aliased address.
  • 24. Cortex-M4 Architecture 24 • Memory System • Bit Banding in ARM Cortex-M4? • SRAM Bit banding and alias regions
  • 25. Cortex-M4 Architecture 25 • Memory System • Bit Banding in ARM Cortex-M4? • Peripheral memory Bit banding and alias regions
  • 26. Cortex-M4 Architecture 26 • Memory System • Bit Banding in ARM Cortex-M4? How Alias word address calculated to modify a single bit? alias_word_address = alias_region_base + bit_band_byte_offset x 32) + (bit_number x 4)
  • 27. 27 • Exceptions and interrupt control • Exceptions are events that cause changes to program flow. • When one happens, the processor suspends the current executing task and executes a part of the program called the exception handler. • After the execution of the exception handler is completed, the processor then resumes normal program execution. Cortex-M4 Architecture
  • 28. 28  Exceptions and interrupt control  Nested Interrupt Vector Controller. (NIVC)  The NVIC handles the exceptions and interrupt configurations, prioritization, and interrupt masking.  The NVIC has the following features: 1. Flexible exception and interrupt management 2. Nested exception/interrupt support. 3. Vectored exception/interrupt entry. 4. Interrupt masking. Cortex-M4 Architecture
  • 29. 1. Overview on ARM architecture 2. ARM Cortex-M4 and ARM Cortex-M3 Specifications 3. TM4C123GH6PM Microcontroller Peripherals. 4. TIVA TM4C123GH6PM Launchpad kit specifications 5. GPIO Interface with applications 6. Interrupts and exceptions of TM4C123GH6PM. 7. DMA and its applications. 8. UART Interface. 9. SPI Interface with applications. 10. I2C Interface with applications. 11. ADC Interface with applications 12. Timers and PWM interfacing . Agenda 29