Grrr eS
“Basics_of - MicxopxocesGo- elk 4
_and 80S] mMicsocontsolles
State fmpomtant Fectunes of 8061. micocontxolles._|
>| Featuxes of 8061 micnocontsolles @ —________
“D)g- bt data bus and @ = bit ALU ae
| 2) 16-bit addseas bus - Can access maximum “64RB
___of Rar! and Rarl =
| 3) on-chip RAM -198 bytes COata memozy )
| 4) on-chip Ror) - HRB “(Progzam memory )
| 5) Foun £- bt bi-disectional input /autput Poxt:
4to_accegs 4 kB OF RAT
>| 12'addxess lines wequized +n acess 4kB of RAK) as
~Micwocontzolles - tt
=> BUS ¢ A_Bus $6 a S6tof Physical Connections used
—— foo Communication _bekneen CPU “Snel Ban pent
|
~—| diferent | buses used fn micsocontvolley axe ®
ex _@ :
Hi faddneee bus| Compare _addaxess bus and.
data bu6 used in 806), ~~
[oa [a bus that te used to | @.bus that te used dp [+
| pecify o. Phy ical adds-| 4+aansmit data among_|
| tn. memosy = Components
r 43
[| 9. isectonal | Bidirectional
Te Hebs to taonsfes memo! Heipa +o Send and
| Ty addwess of data and! seceives Data Se
I/O 7
|
114 16 hit addaese bus ¢n | 8 bit data bug in |
8061 | 8061
—S\icalculate the numbex of addxess |fnes sequined 40
access |16kQ RO]
LIA addvess [ine
= 16kB
meqUEIed +0 acces
I6RB OF Ron] cB ~Page No zx
Hh
=
va _
Compass dala memory and Pxogzam memoxy
—
52-00] Pogsam Memosy _ Data Memovy “
a Tt is used Fo Stoving | This used fox stoas
ITs. fmal_c. asiobie |
| of the Prognam to he data_and_inieamediate | __
—— '
| xecuted 7.2. instsuction Sus -
fa | Pxoqam memory of Data memony of Gos) |
| va
80S) ig ARR $3 128 bytes
D/¢tate the altemnatfve functions of Port B OF 805)
| Micwacontraller.
=
P3.0 | RxD | > Used Low sental i Pom
Ps.) = Used For Serial o/P Pox
1 p3.2 2 Used for extesnal intey: wet
P3.3 2 used fox extesnd) intessupt d
P38. 4 2 Times_o edesnal efput
P3.5 > Times t extesnal tn put
al P3.6 | WIR |> eternal dato memozy write Stauke
bie P3.7 | RO | exiesnal date memany tread _
nf ef Stxbe: ‘i 2 between Haw
ee _awchtieciiZe-
T von=neuman_aachiteotuse,
vand_ Achiteciuae an |
| —“0ate.
1 cpu!
— AddsesS
| Psogsam_|
uss 7 memoxy Fos
2. |The Von Neumann axchitecisary
| The Nanvasd Bachiterhine |
uses PhySically Sepesare
thets insdsuctions and dada}
| memasies Fou theiy |
instwuctions and data
3. | Reg 7 oF
eo hh ff and d
LI
[14 |Ts design ie Simpler
TT ac
5. | In, iG d. J
to be fetched fn Sequencia|
atsuctions data can
orders limiting the openation Las theoy
be fetched Simultane
bancdudid-th
£6 Seperate buse+—~
Fos Snatsuctian and data—
6.
Progra Seaments. Amenony =k
data & Slacks have |
| blocks fos
| Seperate sets of Add 635 §
Which increasin oper
|_bandaridth_sant SRC
__ J] Plicvopmocessos and _tifeaocontwoll es 8 \_ srt vena :
.
. MicvoPxocesgoo___| _cvocontvallex | |
Vu $$} ____—. ooo
1 No. of instouc-|_Many instauctiong | Few fnstsuctions
| [P yone used |e eee a
2. rlemaxy Do ned have inbuilt | Tnbuilt RAI 6% RaId
| RAN os Ror ig
\1g. Times Oo not have fn built Tn built time iE
|
| times r
iy
[le. Zio Port: | Sie, Posts ame _net | Z/o Poxts ase
| available | available
| |
[ls. Sestal Powt | Do not have inbuilt | In built Semxial Powt
Senfal Pow | u
+
6. Applications | Grenewal Puxpase _| Single Pi at
ke —DhSCrti‘éei'c'’ETCNS
a fare 8965) and 803/ dexfvelves of Sosi_on the basis_
11 Ram tn bytes —__i*] Timew6 used,
Pasametes 895! | 803) =
| flan in bytes | 198 bytes (28 bytes ff —_—
|| “mes used | Tino to bit 42mesS_| Two Io bit dimes | ——__We: TS}
==
~W| Desewtbe Powers down mode and_ideal “mode_oF 805) any
____| ciscutt_diagram. which SER 18 tn ete
___fand daw the Same
te Powes Oown Mode 2 —__—
1) Compare ae devivatfues of 805) pntcnocontsallea_on the
__| basis of RAM, Ror, Times and Inteosupts _
= ] SgvsIRe
Featises | 806i | 8052 | 89c52 goa1_| 876). : Pav! RO
stunes fos) 5
Rar we | ase | 256 | 12g | 128
for ax | gx | gk | o | 4x 7 xa]
Time 2 |3 1/3 [2
___|ltnewuois|_6 | @ 2 | 6 _ g |
mime.) O51 mt. OcesSo
2 805] Poocessos 7S a CPU that can Pesfoxm Som
-|—openation on a data and gives the outpue =
+ 8051 Processas Contains, a_Complete Aoolgan Podcessot —-
Foss ingle - bit_opesastong
e The intesnal RAM contains 128 addressable bits anit —|
the SER Sea Suppor
UP Jo 128 othes gad vessabk—~
_ bits
are st [Snes
‘Begsable, --and_each_can-be—
—}Hssoiel aa Sepeaale Single a Cost
a
|
}| Diagzam_< Set
eae Bit addaess in
b1 66 b5 b4 63 b2 bI bo ptay i:
——| Fh
| Genesal_Puspose \ Tae :
| RAM qxca ate a
| Bo_butes ale
| 30h 1/47 18
[2h [91 To zal
26h |6F 63| 8
20h 161 60} 19
[2 cal
ach 1sF s8| le Intesnal
26h |5A 601 1& wemosy
| le rR
2Att |4F 48 | FR:
ash lat 4o! 1% | ooh
28h fF 33) | % | Interna) bid!
aa 34 80! 1-0 RA
zo S :
j2F 28 ~
b ar o oe ;
ah 21 20! és /
23h LE ig
| 22h 4 10
2tb tf
| oF 8 |
| O7 oo
igh Regs o...1 (Bank +) f
| 1B Regs 0-1 (Bank £)
—| oh _|Regso..-1 CBank#) | fo
o8
Regs 0.1 (Banko)ocean eee oeesermerae apa earota gg ‘
| Discatbe the Following Pins ™ Bos! i fe |
____|T] Poot o tJ Poot rel ri] Poot 21 WJ foot 3 “I PSE
| vil Ea vii] Ale / PROG =
4 “Post o 1s an 8 bt Post_ancdl_can_be used ag
“puis, outfuiS.o# 45a bi-dizectional low
[omen adds ond data buS F073 extesna)
— 8) et gs OR
| memo
LT Poot 1 2 Part 4 ts can he used 468 bit infut
a 2S ~
Besistoss Gince f+ alsieady has Pull-up
Besigtoas indesnally
sit] Post 2 2 Th omles to use Poot 2 as an fnput, the fox
thust be Poogsammed by @oting 1 40 all
the bits fost 2 {8 also used aS highes
odes Adal se bus
SE
LN] PSEN £ This 13 an owlput Pen and Ss
ode ites Progam me
2 | } felching code _exlesna)
PSE becomes low
Ihe a nected 10 Hey
Of Pin Gf the ROM edhen the 85) fs felchil~
cole mowy, PSEN iS —-
high ie. deacttyated and “hen ha dedce 1
P20gaM_memoxy ——>
—EP_€ach_machine cycle —~
Z
subi 7
~
liv] Powt 2 2 Post 2 haS the allesnale Function Such as —
| intensupiS, Sesial Zo, +mex coundey are! —
Bead Lersite Contra) fox _extesng/ memo -~
NKi] Ef: EA_must_be connected! don
40 -8051_Jo_felch code som extesnal. Paagxam_
“ee |
Pin {5 us.
Page No.
___memoxy fom -the location Started Ot,
om de-mutiPlexing. the add sessecl_ane
_ clata_by Connecting fe the 1415%1%
Lech —
si f U
ocessaz-
‘] fFastex speed of execution
i Micsocomsolless ane Compact a5 $+ has on-chip
RAK] And Ror io
: fi] No need! of extesnal Pesiphewal inlen Faces :
——— i) % has inbuilt mews
Y]_ $3 snexpensive
counter:___1)| Daw the fosmat of
e6_and_explain tt.
[ex | ac] Fe [ rot[ rsofov | - 1°
| cy psw.7_ ___Carsny Flag. —
| pe paw.6 Au xtliasy case Flag—
Fo Ssh. 5 Available +0 the uses Foe g
| Pur pe __—
enesa}
Teen apne Registen beak Selectox bit
Roo __ PW. 8 Register bank selectos bit 0 __
ON PSW. 2. overflow Plagq —_—___
| - PBW.t _Usew - definable bit. _
e. PSA). 0 Pasty Flag
{
|
2 Cl Fla
laa
(o" OM
pend wegiates of 8084 miCcen,
—____| algo be 6+ to 4 67 0 of
2. Ae t Ayxtit
2. Ac + Buxtitayy Cammy Flag
“SETAC” and “Cia c” hese “SETRC” Stands fos “Set
Tf these fa a Cans Poom O38 and O04 dust; _an 0D 02
SUB opesation, this bit ta Set; eb 3 ees
7 Hi if 18_cleaned. Thie Flag is —
imecHy ba inskauckions uch os
—___|_use, i medic
tse by inétauction® that Posten BCO anithmelic..
— (= ————— ~
pr fet failable do the Wen Fox genesal Purpose
__|4. Rap + Reglaton hank Selecia big
A 7 ROL R eqistes bank Selects hig es
op Tiese to bis ce_useu 4e Select one of the fous 26g!ee ey default, bank 0 geto- selected. HPL y
Ts ov £ overflow F143
four Bi
|The ovesFlow Flag i6 only to defect ea7078 in signed
_aaithmelic opesatio NS. x 4
( { { Lill fA.
nee pany eae th nes of do in the A
a mregisieo_anly
Explain lesb) Paognam Countes_¢) DPTR
(a) SP Regigtes & Tr ts Used to Point TepioP tha seiack
cations Used
Stoadge The fnsdeructions POSH, por
_ Peegnan_cesunies =
ine sam __
TT tentlin ate! todiaaien dhe coddnena tn memosy
_— | pram tohich next te}nuction 19 de be fetched. oo
ane itt
1 DPTR 2 The data Pointes DPTR | ‘DerR 8s used fo “Poin ot
—€xAtennal RAM locations and Some ingtauctions wn
—Code memoay. 80 the value of OpTR wanges _
—fx0r _ooooy - FEFFH mM hexadecimal_and o +o —
- —66535 fn decimal.
an
fe| Explain Poa 6 esith thets ack'uesS—
is
a
rst _ ~~
unctions Such_9S_ intesaupig
ol /wxwite Contza| ~~
|
-
i.
___| Post % has the alesnale F
___|Senial T/o, +mex /counteo and wea
___| fou external memory 2
TT Ae a
|| Pin Name Alesnate Functfon Add 2esse5
mn
[Tpao | exp | Sewial input Pin
|| Pat TxD | Seviql_outPut Pio |
3.2 INTs | Futennal inlexxupt o input |
pin
i} 3.3 INTL | Extesnal intenoupt + input 83H
Pn
03,4 To Timen o extexngl input Pin BAH |
|
P3.5 Ts Times 1 external fnput Pr O54 4
pa | WR HEatennal_daia. memeny wnite| a6H |
t A E |
+ 1 P37 Ro Exteonal data Memory sead S/g a
tion | Gate4 ]c7ra | tara
bid bits bis2. 8051 Tnetouctton. Set
and. Pogsammming
LD €qu .oRG
>) far Feu dizective '6 used +e define a Constant
_ —| 8 sith menany Lomita 15 net aiocaed bythe
. assemblez. é
— | 5) ORG This dfscctive fa used 4 dePine_locedton tn
____ Program memory be est Paagheen ands} — -
—_____dimective 8 Ja be Placed.: fon S of
3 Desentbe the FuncHon oF Potlowen g “mnsyauct 89°
SE i Pe ORo w)
>|) swap At) Mave A,@oeteR ti ) ADD Tay
ay ) Swag ‘ CCUImu. lator -
| 3 nibbles within the Ac
ae nie mle to highes nibble. and: Vice Vern”
R= Move. byte vastable Fa0m Sou,”
a: “D_Mow A, @nere 2
cotthout modifying Gousce. -
to _destinatfon —
7 s9 18 Addt oF Gource byte cotth Accumden
——_t)_A00 A, @Ro_# Addition 8 .
49) Tne @Qo # Inewement byte by 1. —_______
gr A a
: ——_—_
teal deccanstnae ign “aanatnhytimgdoge. pacysaneee
Bight Foxmat go that the assembles will traglate _
iy Sian fasting Longunge.£0.feu con — _
——-#9P€ your paogoam -uging editoe_ —
——D -Aasemblen i Ane Assembles ts_Pmgzam that
y —teanslaie assembiy_| men guage Pyog7am_to_the
————Comtec+ binary Cade Pox Lach ingtouction i
i ischiae- code tnol_genewate the File called ——~
—88_object File cot extension. obj.
—— fin_assemble_ fox 8051 axe AsEn1s) , ASL_€ ee
{_ A
~
ee oeit) Compile? A compiles 18a Computex Progxam
ee _of Pxogzam] that +zans forma Sounce —
Code woltten mM_a_pwrogsamming language —
Che Souxce language) inlo_anothes Computes.
__languege Cthe lasget language, often having.
___a._ binaxy_foxm known _as_ob,
pect code).
a jst omy two instauctfons cahich makes accumu
licHes zewa Mdlividualiy
O mov A, # oH
tJ _c.lR A
Uist out any two fnstauctions oF following
taliesaing mades~ é
2354;
i) Registes _addsessing
a
Mov A, #264
#1 Mov DPTR , 3000 :
tt) Register addresi ng i ity
dMov A, Ro cs Siglo
2] Mov k7, A 7 jt— = r
al aes
ane ee a ace a
a list any oo logical snstouction._ of 7 MicDo Ont
Eo ea mode
_ 5/0 Registes addsessing ma
e daxessing
| 4d) ammediate_ad :
| ay vrsect Addvessing mode A
e_Pwogeam CALP] 40 Find the
ock of lo NuMbexS Stowey
mnteonal RAMI.
~ §] Develop assembly langvag
| taxgest numbex in a_block—
at location 40H onwards in
= ORG 000 H
Moy 1 #0AH 3 Jnitiglize Ayre Countes
Mov Ro # 40H 3 Initialize Soume Pointer |
Ro to 40H = 3
CINE A, 60h, ON > Compare the First too yymbes —
fe not equol foo Dn ——
LAR 3 DORGE
On: Jl LARGE 5 Check Corey
—iMov_6oH, 5 Stere largest numhes 40 oth
- Larne; PINZRI,UP 5 decxement 4te_countes_by-—
__| OE, FF Count #0, they
i
leanne ge
ENO g uP. >
—lasgest no. +g Saved %y, yneme pe
¢ a TY 6OH_ NM
—-MY—locgtion 49 Steae the ae ae C
Music Theory - From Beginner To Expert - The Ultimate Step-By-Step Guide To Understanding and Learning Music Theory Effortlessly (Essential Learning Tools For Musicians Book 1)
Music Theory - From Beginner To Expert - The Ultimate Step-By-Step Guide To Understanding and Learning Music Theory Effortlessly (Essential Learning Tools For Musicians Book 1)