0 ratings0% found this document useful (0 votes) 2 views12 pagesMicrocontroller Module 1 Notes
Microcontroller controlle module 4 notes 4th sem these are handwritten imp questions with answers
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
michocoutho lle
Moule -L
Oxplain ke ARM lose dataflo.s modes «uth o
Cat i .
n cbagrass woe
+ te Aem cose clataPlow* Suows how data wove s
ALL
luide Ww» procesgos betweer vegigters ,
aud weuory aLlsle execut ing jugt Auction?
Data
ti (fuzesuct” p Decoder \
vel | a
UWdyite
it eal
Ib | —
Regis 'Ster Pie Rd
[ralvass registel ¢+--—
L_. Geena}
L |
AdelHe ss
kegigkey Pile (Re-Fis)
Stoveg olata teuporarily
ARM hag 746 Kegisters (3a
. It hag we oOperaudg Rn >
Resut '8 Stosed io Rd
bits)
A bug Rm>8 busTugtsuction decoder - Decode§ uStAuction before
Cxeeution, It aleciclag operation Like Sub,addt?
Fign extend - Couversts 8/4e bit olata > 39 6
>
On8ure8 ConHect pho ce&sing un 82 bit 8y8tem
Banecl Phifter- BhiPtS or Sotateg data before
Alv
Ex- lePt Shift, sight ShiPE
Helpg iu Pat Civaulation
Alv - performe operation adolt?, Subg, aud, or ete
Takes i/p A aud Ghilts &B
* mac- pePorms multiplication
Aol ln ese Regigtey - Heldg memory add Hess
Por Load Steve operation
+ Incrementer - updates aaddrege ov prog hau
counter , Helpg in Sequential xeceut! on
WorKing
— TuStauction if Petcled 4 Decocled
— Operaudg are Sead Phom Magi ¥ter (Re, Roo)
Rn pases through basse ShiPE er
Aluymac perkormg peratton
ReSult 18 Stored in Fol Hegi8ter(9) Pxplotuation of pipeliue
+ A pipeluwe iga tecliniq
to execute multiple dv gthuction§
ye wuGeol iu RIPC psocesse
Gira ultasteou ly
by cliviclirg evecstion psocess ecto Stages
cue iwetsuction Puley
oue , theo proce Sbor
executes clipeescet
Tustead of courpseting
before Starting next
Poteliag, decodes awd
ditinotin at Sie time
ARM 7 Turee Stage pipeline
* Fateh ch tuhia~ 1f Petclied Fsom MeHory
* Decode (D) - Tusts” 13 uuterrupled
+ Execute (E)- operation 19 perkermed aud
Segult 18 Stored
(rem )—> (Dacoxl) —7 (TExenstel)
wosking of pipeline
(OnSider 3 un¥tauctiong
ugele Petcht Decode execute
4 ADD _—
2 SUB ADD S
3 cme FOR ADD
dS ete - ADD iH Poreuied
9” wyele - ADD if decoded, Sup '$ Fetched
a gcle - ADD ik Crecured , SuB is clecoded
aud CmP 18 Petched
APter Pite .
dling , 6 j
Cubrtyy Cycle a7 c2 | Cometetcs
Tr
MPYOVCS PerformanceAdvautages - Fagter Execution, Better (Pv
*
utilization, Higher operating Faequeucy %
Limitations o
° Pipaliue Lateucy ducseafes - tue of one .
inBtruction i8 t couplele é
Data clepeuclen '8ue - cue sugtrt? depeud 8 o
2 on auother 6
* plpelius hazard¢ é
| o
fem q_ Five 8tage pipeluw oe
Twproves perfor mauce by increasing Stages 2
Stages -> [Jfetch () — (Bacal) —> (JExeautief) > well > TRE) @
recess wine @
Advautages a ae eee
ie +0 éj
* Higher performance than ARM? sequited register @
* AAouud 13) impsroveneut
Arm jo six Stage pipeliew
Our mose Stage 18 adlele of
(Fea + (inal > (PEED
8tages - [Fetch () — (Essel - +> [Becel) >
| Prepare
Adwautages —Togtn For
° Jucseafes penformauce
About S4Hy, higher Mae ARM?
Inchease Latery
2622202922090 909300009090POSESSSECEEUELELEGULELEOELEL
Micho pho ce8Sor
* A MP 18 CPO on
Binge cup wed
to perform processing
task
* Coutaiug only CPo
External menwory k
T/yp devicee are
yequited
USed vin comp .Japtep
ConSwue more
Power
More expensive
cue externas
Cow ponents
Ex intel cove procesSoy
RiBC
ugee Small aul
Simple TuSthuction
Micyocoutso Ley
* Amc if Smal
Componaus on Single
Chip that. include
CPL, meutor, 4 Jp
Sle part?
= coudaung CPU RAM+
Rom + T/o poatS
on Some Lup
+ U8ed un Embedeled
Syeteus UK
waghin machine ,
Oven » etc
+ Con8ume 4C5S
Power
2 cheaper becaufe
Compo net 8 axe
integ fated
ex Ay cliuino
Cigc
* vgeg Jasge aud
Set of Instt®
» Tabee multiple
Takes only ou
cfock cycle clock cycle
Psogvess ig longer Shorter
Simple H/o des gn - Complex H/w
Faster Execution a.
+ Slowey Execution
ex: ARM en
Compiler complexity Fu: Intel x8e
Gn) ae
eras"
Code
General”
Ca4. Along with neat Uagrasu of 4m bagod I
Em bedded 8y8tem . Explain 4 main Compeneuts ¥
an j
Arm ;
ProceSSor Memory om
wotreljer ‘seam ©
Intervup & FlaGhroee |
Contveller BAB Teer I~ Deam
AHB jE] bridge Ethernet
arbiter ele = phy x
AHB- APB sae) a !
(Reartine _,}—| Ethernet L externas &
a [specs eae /oels, Bus ww
7 o
é Seria ona} (counter/timers ) es |
| wy |
aa r ¢
Cam) (lontwiere) [Reicteng 80 &
wx
Four meen Componeut
i. ARM psoce 8Soy - Act? a¥ bratn of Sy&tem
* yecutes In8tructione and proceSseg dala
congigtg of Core ClPL) > execution Unie
Cache and in berface 4ogic e
Contvole eutive ES 7
i, ContsollerS ~ Mauages aud Coordinate System s
Operations
. Interrupt controller — HaudleS interrupts e
peripherals , Decides priority and
Prom
ve Sporse
+ memory Contredier - Manages dale transFer
béaen CPv Quel merry, Con Ervels
Ram, FlaSh
accegg =f ROM,iii, peviphoralS - provide i/p [lp function TO
jot@vact utith externas world
uuters, Etherret Controliey, RTE
f Ex- UART, Tmer8/ co
i. BOS - Communit? pathwoy couuecting a compalS
- Types
Ci a. AHB (Advauced High per Fornatuce Bus)
- & Rigu Speed Commt? btwn CPU 4A memory
i b. ApR CAdwauced peripheras BuSd
- ly Lo Speed counut? bron CPO 2 peri pheras
; c¢. AHB- APB BAidge
. Ly Connect high - Speed & Low
4 & Digeuge ARM Design philofophy
2 ARm proce 88078 are de Signed ain Ler For
EG FocmuFing 0? dow power» high epRicienay
aud fow Cost
i. dow power Conguniptre - E§ kun on
Geer gua & power
- ARm
CPE icicut
L ra Helps e?,
gpeed 648eS8
battery
is desigued to be
ex beudinrg battery Life
hi Eg “ave Hmited memory
r - ARM psourdles Cow pact in gtauction
- Move fuuctionality Car be etored
Mautory &pace
wn Coge Seusitivity, ES must
- using Blow aud Low cogk MeUOry
in L083
bo 1ow cost
devices
= Reducing ip §i7e
ww. GPR VeLt penPormance -
RBC aycitecture
ARM ig uot Strict,comm |
oe bagel ES ugeg au bus te connect
4S ats meusory aud Pe@riphoraly
"THB buS euable? (emmtn btwn all
CompouadS InSicle chip
Typee oF dewes on bus
There ap two ClaSgeog of dAeuice$s
+ ARM pdoce8Sry Core (Bus Master)
- Tuitiates data trau®Pe,
On the bus
Coutrol Communication
* Peripheraig (Bug Slaves)
- ReSpoudle te 4equest Pron ma&ter
a Camnot tnikiate Communical?
@) Sxplain tle AiPPeyeut psoceBSes modes prowickd
by ARm #
> There ae Seven procesSor modes
i Abort
ji. fagt aLnterrupt vequest
hii, Interrupt request
iu SuperviSor
Vv. Sygtem
Vii Undefined
vil. U8e@y
i Above
- occu7g athenr there iF a Failed altempr to
accegse = meulery
- USed to handle memory PaultS
invalid memory access
Such aS
SPOR HAKRKKKKREO KE OAOOKKEE GH bb biwLE
|: Fagt interrupt Sequedt (FT)
ne wutwn fage ipterrupt PequaSt OCcary
‘ed Por high - priority auc time critical interrupts
HaS Adelitionas baukCel HOD Fre to Keds
Coudert Switching Lime “
uii-
Interrupt Request
Used Lor Geueras ue/Crrupt handle
louser priority Cousparecl to FIO
Supervi Sor
Eutered uthen the psoce
uthen a SoPtware ‘utervupt OcaLsS
TeEiF a utete thal au o-.§ Keroe! operates hin
Et #8 a. privileged usode
or i¢ VCSEL oF
System
Tt iP a Special verSion of uSer mode
Allows Full gucad- wrvr"Ee access to Du CpSr
undeFined
Ruteves ile te psoce&Sor eucoust ere
au undefined du Pt Auction
USad for hauling unSup posted iu gtauction §
or Sektware emulation.
USer
Wormal mode Por executing uSer pogvou®
vupsivileged usode
Appuicati ong nor mally AP in tts mode3. Thee 4 Core design ales
i. Tn@trul”- RIB pAoces$or
clageeS, InStcad of uSing coup lex cSt but?
Simple eperatien uSualty Complated
they uge
io. ai agele
- Couples operath created by combining rrultiple
Simple duStruction
— In8truction
proceSSor
deco cling
i. pipetime - Te
pave corSiSteud Si2e,
to fet mext ingtruction
ugsee Aecluced no of
Thi§ alloc
athich
cstreut one C&beutias for Spoce
maximize fue Up ths Ingtaucir
bsoke down iuto Smaller aud pavallel
aut called
— uulike ci8c& Rige
Cucugh
address acting
meoy
area For
= ca&e proce S8or
igteet Spedbic
Ase ACG
pao ceS8o>
Pipelize
fuSthuction cre Simple
to decede eLivectty |o Single
pipeline Stage
o Pteu u&ese 7%egiStere that
taSk,
lu. toadeBtovewAschitectuns The paoce8io, Onty
duto pAocedkSing
=RISC i$ a Simple but Power PW
peyPormS
already
crsc
de
V “Cenevat”
Greater
Compiexity
clata Or
pseseut +? ingke that feast? within a Binge
RISc
a GreolPast clock vate
CorapiRRe usgtinction
Code |
sso)
|
|
|
cycle at high clock Speed
* PeguttS in SimpJe deSign 4
CIGC implemen tS RISC Conce’
Four major design rules ares
3. InStruel?
in. Pipetine
in. Register
jv. load Steve Architecture
Be ee & ©
Se ReEKEEE
Segiste, lan hold Cither clata ov
ag local Storage
ee8666
s
blura because @
Pts @
@
@
@
é@. .
o an iu deta aboul Cryeus Program
atus . Regift2, _CCPSR)
|
er aL ae 2938
AEC 4
oO
i> lely |
[F/T] mode
Functian —\
=
Condti tion True
a moshe| ProceSSo~
ae Thurn & le
Stato
cep eR)
ee prog vam Status Regi eter
18 a BO-bit Aegieten din the ARM psocef&sor
thay Kteves the curvent State of the
procesSor and Control8 1t3 operatters
CPER Con tains,
ation flags (Bre 3l- 983)
dis ACGuLt a)
I. Con
+N Cnagativ®) : Set wher
negative
* 2(Zere: Ser uthen te seoult 1S zero
C (carry: Gok archer o carry 07 borrow
Occurs
+ v (overPsew)' S04 athen arithme be
OverPlew occuyS
2. Interrupt masks ;
IRQ pierre pt uhen S&
. I bit : Disables
dderupts rer Se
Disables FIg
- Ff bIES
3. Thumb State Ct Bi
+ Deter mi PeS pacceSoo7 state: :
T:0 > ARM State (39-b)e ingeruction)
El > Thumb state C16 - bit tnetruct”)
yu. mode Bits (Mu- Mo)
die Curent operating mode oF He
ondefin
«S|
trea? Proce) sgor
‘cease, =O)
User, FIG, IRQ. SupereiSer (Sv0, Abort , Syster(10: Explain tus core Extensions OF ARM pAoce Sor
with neat block cliagram.
—
3
i
~ ww
(tie 2
ar eee seers seett Cet wa
| a
| w
| a
a
@
—=, @
—_— {ama bus interac) memory |) af
vy Dar @
On-chip AMBA bus , — w#
(ose exterSionS ase harekoare Components added «
aseund the Akm cose to impsove pesformance,
memory management & Fanctionality . :
Alm provides © thxee major core © LEN Gi0r
Cache & Tem, Mewusory Matiagerscnt
Cephoce8Ses IntesFate
1. Cache & Tighly Coupled! Meuiery ~ Cache "8 9
hi gh -Speed memory Placed between Lhe
ARM core Gnd tain rmerro7y i
+ 24 SecluceS memory BecCeeS dime
O7% France
im paoves System per +.
* Tem i9 a fast SRAM decated close 70
PAocessor Core
2. Meuwory Management - Tt hae Dn2e AYyees
Ss t
of Memory rmnanageHern \
7. Mor -psotected memery - Simple ES
with no protection , 7 pu) - Divide remo l
ii, Memory Prctection Unit (M i
d tt (mmo) - FeoudeS
i Memery Meageuttr F Uni ee
virtual - to- physice! a
3. CopsoceSSer Interface. Thee are attached to: ORM
Core to extend 4S capabilities @
They phouide = addlit/onas dngte & configura!” seg
CoprecesSv JS if Cormmmoniy used to cntsor §
Cache, TOM
and