0 ratings0% found this document useful (0 votes) 49 views15 pagesEmbedded Controller - Chapter 3
Introduction to embedded system notes
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
Dota Type ond Tiane selory IN BSc oS
VA A AR es
Each vorioble 1M G hos om O88 OCIOFed data i
1p,
LL specter fae expe of doto drat Hu vonage
Shove Vee Takegeys chevackers floating ,ctowle eto,
Gach doko type pe anies different ornounkt of
memory ond post Som gpectfic OPLTOMOMA Whig,
Con be perfowared OVLY Th. dhe dake C4 Pe M4 a
Collectiom of data worth Valeees howing xed
Voters, meeming Of euelt O& 18 characte shes,
*
Ty pes a Deseacipnon
Paraninve | Preant true GoArT4ped ore Themes! boxie
Do Lo ty py doto-tupes trot one used for vepresembing
q gianple volutes uch of Tarteger, flook thane
LeteyR ebc-
USer dehmed [Bre wser-debred water types Oe defined
Ootatypes | py the ser hienself
Sued
D he datatypes thot ore eeu
share Foroenn Hox Pacderni Bue OF butik im dete
ty pes Oe ederred bo 08 Derfued
Dototy pes.
Oy Doko Types 3 -
Disleverd doa types alo hove diferent ™
Up to Udlhfen COM Rhoye meu bev S«Tinese on gs
emouy Vorvy faom Compiler to conmpi lor. BOW
PS O& Ut of cromges olomg with the prarnon
requirement amd Foremat Bpeipevs on Ht
BQ-b34t free Lonm pPley,Ta ri
Gige (a7 Biss
poke Pes
ensign" chor] B- bth 6 ihe Ge —
gternee) a 3 ~btt 19340 +1 09 fo
asigned {1 he poe
pensigned f° 16-bit © lo 6SC3E
gtgared) FU = 32969 fo 132768
—— ee
So btt : GPR bit-Oddressoble only
RAM bi addtenobh only |
~ bt atk,
oe peetod oe
Sit 1S aed) B-btt |fam addyeies 2o-PFH only
punetvon
7p wunsiganesl CETOCke & -
As Gosh tS ON Bbit HC, fn enorolter dato
dype ts He amos moafurat chotee For Teeny -apol?
_tpboms. ‘She Unnsiganed che 1% om B-b% dare
ype toler o Value TA Ling, TONGL OF O- AES €
Coon- PEM) Od He amost wotdely ised data
Ly She umsigeed Chovy date tre
ton be wed 1M gituotioms seen og Sothmg
TT Chovrn thers, i rukend
: gpeckfy Pus (ceyword
UMAomed TM ‘Seromé of. tan Choy eise loamPttey
wey we tHe Muy Stgned ahorr 05, Fer depos.
DS Qos hod & Linneted mum ber of TOStors
ond data RAM .loter OMS, VINE fixe Pmt tra
Place of Chay Com lend to oO! Conger ¢,
hent file. Shes f° Mot o Sigenth come Pte
tm high levet lomguoge
Stenton ombigmed Chay
Vane momme +
ERS vMaigmtd éhav'a
‘Choy C+ id of
i Bho UnrsiGored Prk 7% oe 16-brt dota.
by pe thot tates a Voltee to the vomge
OF 0 do 68535 CO000 ~ RREPH). ThE FS Used
to defyme 1b-brt VasObleA Sach OF Memory
Gd dresser, Set Counter Valeres Of Tore than
QE. Simee VegPstey4” omd memory acceper
Ore Pm B-bit Cham«s He Misuse of. emt,
Vorabies wk cresult im a Lowgey heréile.
However, Sor 8061 Progeiremning, do mote
“MB Gmad TOE Fen Glace’ wWheve, ensigmed chon
WU do He Job. Al4o' Por 8Ftuatons where there
1 a rnd or gma nto Se
pages Raat! imglead Of Sigmed Fmt, Pere
eee ta A USes Bigmed.imt D4 defawlt
FS Undigmed Keywoorg fS Mot Bed.
Stgened fk Ps 16-bf dota taupe Hobs
fie mie Dig 18 epee aon 4 Vole, Wepom 15 bits Jog fue mogeni fu ce 8) iis HERS
bet Aco 32968 to +32963
syn —————
fomsigmed (oe vor -rnevs|
[oe
bit (simgle bes -.
he S-be KeyPoerd eh oO votdely wed 8051 ¢ ond 44 Pes
cy Gh Ghed €0 acters atengle bey addresoble. vegister
gle biv of He SER Gegiefoy.
Ghudred , Sorne OF Pas SF Re one
wre wrdely
@
;
wnt
t plows aleeys to Hut Gf
Hs aot Kmow Od hore
be, addvevsoble. Aamearg Hur QSPRS Fok o
wed ove also OFF addrevsable pork Po- Pa.
Syarton 5
@ bet g S4r!-
ane be}
bis, of o%}-addrertoble wmemort
ae a cgers, Hu byte Me BPR POGPRHAA » US
dR Bh dota fupe ee
Symtones — | brf Ik Sources |
Sh
Yala type elves acres to srngle
Bence Qo-aFH.
ute He9 cron an
wating o Stemple oe Pawns
ae
Shi ane Ene bo oh QOS) C~PaPY MOM 7g |
déimebede 4 Oe Ubaory Fle 96th Coens
ue Qpeotok fumeHony Oty,
Hus dehimttrom of au 4
Od thory bYS
RO waste om osl c Paogeror9 pie von,
oon - ofA do Pott
Hincluded reggihs
Notd Maim2 volds
umsigmed Chan 22
Son (2:0: 23190! 244).
Prz2t
j
HOLES - oY @rzeuhiong us, paogaurn fer Vole 00H &o oBhi
LRU be Aikploued OM port 4.
Enxorne(D) watts on, gos CPAGrem g serd hens
r Fouaer dor PSC Chamacks of ©, 1,8 Suis, 8h!
Gnd ® £0 port 4
tem ule & Hebden KvegBr.s
Word mod Cvord)
Umbigened Chad mymumf : to 2gusABeD
Consigmed Choy 25
fov(220) 22=l01 244)
3 Pe mumum 124)(@ date or BOS) & PHogrom) (og
‘ ju bls of PL confienuously,
c
pe Tenebuds 6TH ET >
ord moly CUDed )
ood
: Aoy lit) // Cry gle doy eer.
‘ Piz 0X 6S3
e, OHA
4
4
bk gw Wahoo BOS epargaomm ¢0 gond vole! of
2S
-y bo +4 fo: port Pi. :
petntlards £468 514 .
yord maim évotd )
Chor snyerurn( = 4 aa e 2st eed ey ads
Up sigened Cert ee f
Aov(r 295 rAIBS rer)
Py * mymun[2 1
4 ays sasale 2,
Noks. qlegohus yobusrr well de aneloyed Levee Tots
Comper FOX he RPM, dr PEK, 82 POM tHTran Delays > ~ aN
A wb { :
Shure ove 4w0 eoasy’S 0 Creape G Gane delay fa
Rosie ¢
@ Using doc Boss taners
@ v3iar9 ec Sianple Foy. oP.
fen estoy Cose,-ble deloy tam be observed Cl Hwy
om okcfloStore of WAIN o Simulator. Here ont,
ine dimeusiom of Game delay using for loop i4
tarvaied but. Im ereahmng & astinne deloy Ubing
Gov loop twree Focsors to be Comsider ed. Hook
com. ecfheck, dix acomiaty of H+ deloy.
(1) Awmber of Mactine Ciekes Ord number of
Cho els Pertdod Per mathink cycle. 5
® Corysht Foreauenty Coed molled bl-2. XTAL1. xT Aly,
Dura on of fis chorte Persad Foy Machine Uycle
fx dur function of ery stot freeeniey, |
@® Coomejler chotees Shi Lnidd fachy thot after
—bhet He aceeraty of fire trae deboty 78 the Comriby
Used to Compile fre C Program. 5m ovembly
lomguope Pero gman ng; We Com Lemow ond
Comtnvt fis delay Femevoted, Of foe marr ov of
instruch'on’ ond fle cycles Poy insbreckon
& temovwm & U8. tm lose of C-Paega7om. the
C- Wormpfler ustlt tomuert $i. & gioterrents ond
Sunch ons © attemply lonpuage Rndhreeehions:
Roe different ComPlleys Parvdecte Liferent- ON BOS. CRIPEY corvy
sgn mM fo toggle oi of
6 poorer ereeous Hd Goreme’ woPlto one delay, oe
pe tndads £09 SINS
yord mein evord )
UNsgmed IM 5
for 0:3)
Piz ox E35
fory (% 20), H
9 < 500005 2++)
Sor (203
4
mypiT 205
MyBiT? 15
5
fto adpe om BOS! C- pavgaom fo toggle loin bog
Pr toarbinuos ly Lota Qdvns \deloy,
He imcuds ATCAS(HS
Vold ms delay Cumstgned int)
Not d moda twotd)
Uohile UW)
t
Ps 20x S55
WS Delay (200) UL] asoms tion detoy
P12 OXxBAS
Mm ¢ Delory (Qs) £ atone Kine deloy
se ald
4 ;
is i
AIP d MS Pelouy Cwunsigand Font i bend)
wn signed fort 154
AovCisos feteanes tan
Bor (S20 5551078 4 J++) 5
5gto Paogeramamyny I) #5! ©
Sige blo. Pork Po
gute Side -P, fA oded which oyte
ans
byte accesible.
29, wake om Bost Progorn bo Geb & byte doth
fran tind 14 & Fa.
a
oa) Py, post Va Second, ond
d
Ab itanclude (409 51-45
Yortd Mo deloy Cumstgened ib).
Votd main tuord)
enay mybybe:
4
unsigansd
smput Por
p, > omrk “/mare Pi
while CD
{
mybybe = Pre
ms pelo (600) :
Pos mybylts
1 ;
b get & byte of
4 eparogroy
100, Send th FAs
He * woke
op th 6 ws Pon
Ofna wthe, 3M
: pein cede
Yo%d mormtuord)
d
Leg hycunsigned opor myby le’
Pp rOmPl 5 UW Po on puk Perf
wohtle Cb)
q.
myby}e, cto t [goto by Le fro Po
Tf Cmy bye d 100) ‘
P, 2 Mybywes Hf Send TF (oP,
ese :
Po > mybyse s /fsend Tf fe Pa,
5
af
Ei uerenek Nero
She To POYK Of Po-Py' Wve 2p addvenol.
WEA MAM’ or Single |b of tle “pork com be actu
~ed wWPhrout dtihevbing flr ofmer bth, che bir am
be aceemed Wing fis dola 4xPe gbir, ome 2%
» bdo dust w% to use “fea ferenet Poy, wore’
XFS due POTKO, 1,2, 3 and’ oR dee Bey 0-9 of
Wits Eee Grommets Pay P othe, ahicgs dy tt
feed Srompler wo8tt he ietine oS oe ‘yo
Le us becomes ‘oymetad
tu Sy mbout. 3| i
yoo Ory) ROH1, Ce Pewgaorn to 4o0qghe only
ae of dex GPs of Pa
eff INCU AA EAS AS
dT] MYbIE = Porgy
Votd maimeuotd)
Po.4 Combronnous ly wo Mriouk USA Ging fu
4
tonite (1)
ye
mubskh2ls U tuym am Pau
POY Sf} >0 5 Uf hurr ed} Part
Horlogerie loa loa t carat S
Cx® Waste OM BOS! ¢- prrogeran £0 monnley OF
pha. Pert. Ligh, Sung B54 40, fo.2 Pingel
gone ann & Pa.
ephincds£ weg ciins ;
Zor my bik > PAs 5
yord main) (V0Pd)
4 bpp ee Mee ie
wn? le OU
4 Gf (ry bit >= dD
ie = 0x SS*
4
3 Bes OxbR Sslog UC
Toon geod, THO 2E OS”
© BoG{ hod {wo 16 biks Raness Vo 47), toile, "4
os Up Coumfers, To &T% £4 hui divided Fert!
Qx-btt of regrsperA THo- Ti TLp Od THI 4 TE,
*T4 To 47, Coun
TE PA Atamner,
MoT. £7, Counts entevmod Lock Pp
1A toute.
* Timex acon ?s Comdaolled bY THM 470d
Vegrs Heys.
@ Leon Vegsster 4 Bit addveu Feory, ~ Teorieh
eo TES
os
K TEs omaTFo - Tienes. ous flow lag,
© SET He 1 > when 4oamnL7 4 ocd Bamero overflow,
when mer mou over to att o's,
» Cemiz0 2 When Perocemor bneeroles ' Gch oFles.
overflow, | For Tirnest ISR Qddvess f4 004 BH ore
9rme27 o ESR addvest 4 O00 BHF
tnbymos Clout Pulse fr,
Whe, Hert;
# TRF TRE - Timey yum Comet bt
* SETA > Star} Counhng, ts mov.
+ chavo: Hats kHmer.
TE, 4 160s Greteymod imtevaupt bit
' SET1> When eo emlev. fom iN
iaie, ? yup
puree”oro: when FSR enmeceted, 4 Pov Ev, TSR addve
’ 4A,
iw
isk an
ts ool’ d TNT) TSR Addves TR MOOZH 3
qn ong 8 - Enechermok ENhevreph ty Pe b*t
ne.
WAT, oma TNTo MU be
—Ve edge tg
a.
7 gerse
. Cleovy 0 + BMT) ond JrIo MUS! bre’ 4c {Oto (EVEL toh9 9 ey
d 1S astra eds fo tornk rod nS
oe ee eeleeloel let
Teme a Timwo
2 ¢(t- counter | Tramey -tup] iF
ae 1 ;
+ gET1> Acts o counter sh Crema 5 jase on 71 4793
+ Cleo * Bch. qin or fimlermot fereanenes ose)
ao HATE = thofe emotole Lom ROLE es
mos = Teme corn ferebled by Rardworr. GanTx Signor s
Cray o: DO ponds perder om BoTx Signor.
eM, | Mo - MOS comberot b&B :
mo Giimey Mode Opetaton —
> | timer mod © [g-bit TMT
' Fimev mode) 16. bIE TEM
1 o Fimey mods % gvbtt Auto reload
[OE ae a a ad
L \ Wner Mode 3 Opt Te mer mod
1Timet perogecorntnd caN
\ f{ post Tim
pha. perogerornenin te ° or ik
be dome by Ussarg eLney poling Met,
nA by using irierarurl,
polling: meted ity,
She mire tot alley Keeps Mom! toon,
the Qos of Ticney Flog. while doing o,
dou M0 o}ter operation ond CoPAtrmny,
ol w pao esp Bene 1 Cheesy
he Eloy Hoy unfile Ph PS OLE gm,
ADUBULY.
pevternupt (etned '-
She myorecomfewl er ens pond 4s fo omy vie
etna Gromer flop £5 eyokSed. She Pm#eVrwe}
mutrod cocakoro der Prredeméd fhe woshrge
of Comtrvllerts ProleMyrF Hone unite
fo img, metnod. : :
Moles. polumrg ps £5 mostly used dor Home dist
ee vets antevyupt Metrod tf amore het
mana Ze
Sore actYon hos a eee ed
elon, ‘ ns 3 = Peet