You are on page 1of 23

M.I.E.T.

Engineering College, Trichy ME8791 /MECHATRONICS

Lecture No 14
Topic(s) to
becovered
lneduden th PPI
Lecture Outcome (LO0)

At the end of this lecture, students will be able to Bloom's Level

LO1 dostarclig_a PPL


d t ard
LO2
LO3
ananher tte Yeruiemata PrL Remonber
L04

Teaching Learning Material Student Activity

Chalk& Talk/1CT Tool/ Any other Listen/ Participate /Discuss /Peer to Peer
Learning/Quiz /Role Play / Any other

Lecture Notes

Lntroducdion
an inportant role in ang
Memo a davie (Storage) and its
*Momog
hor to istface
micro lomput sypton. This chapter foous
a

sitk micoprocessor
meno chip orte i t and
veguhemert s
*Memoy has certain signal
Similailgs tie micopmesor jiiliatis a
Yead prom i regitos m
Yead from and uorte s
when t sarh to
aat ef signals
MonoryStrulure
and i veguinemerts
te
*The prmma tunkn t monog itoyacig s bat micropraes
should be ahle t vead pom and urite intá gáe regåtr af
a

a monay hip.

Mr.S.SATHISH KUMAR, AP/MECH


*To pertorm aboë required operalions, tte microproesorshould be
Be able t select ke chip.
Ci destt te regitr
ii)Enable to qppride bufer
Adress Derding ALS
AIS MB
Al4
A13 A
ALAE3 to8
A1R- A12 Decaler
Addross oding uss b0D Grate and 3to8 mdar
*The pross of address deding should rosult in jderlidyg a ragite
address
for a fien
l t i an able to gonerae a unlgue pulse fora gen addrass
phs AnoA
Step:1 SoS addes ltnes Anto Ag are onected to
oo menory chip ta adross 4096 regbsba
o decde tour adtes kies As -A
Step:2 The decoder s wel
The output Oo ote decoder s connectal ts to decador cohich
Connected b chp Enable LCE]. CE addess on ANs-A2 á 000

Step3 foy tha EPROM, one connectel Contiol s1gal is menorg


YOad MEMRJ, ä onnectel to OEto enables te outpl
bufo, 0E 2 the sane as RD
Addess 2codig ond Menory e s
he adress range ta minog obtaal
chip is by analyz t
on be 1b address lhe
pogsi ble Aogic level
addres oe ANs-A2 must be o000 ts
The logic laals onto lines An -Ao can abare
and te ddress
48ert te dip enahle),
lombinalions from
al o's to all 13
ang When te ngs
H Aelet te regiser.
oFFF onabled and te
*Thus te address bo i
RPsiznal, he output bus
onthe data
assets te 0FF FHare plaed
Contenits te reyateo
to read
for fo prcessor

ae
Functin o Interdacng deuies
To reliee the processor trpm ine-Consuming aciÍes lke
Koy boand scaning ond diplog ngreshing
and tfe
75) To Tnterkace slos L/0 dosies t the fost microprocessor unlt
more
data tranger betiveen tin can be efeoted efiient
Etampe o feripheral lrtindacing uritk MicroproeMor

PPTI Micro
Tnbit Deuice Outpat rd
LCKey Prard)_ frowsio 8247
2ploy LED
L
M.I.E.T. Engincering College. Triehy MEN791/ MICIATRONICS

Suggested Questions /I Asignments /l1ome works / any otlher

i PTT CNov 'o1)


aywhet re h rras dor Intidric

Text Books / Referenee Books / Any other suggested Materials

S.No Title Author Publisher

MICDECsoy hMkcycCadurlkoshkent hitetHel f hto


2
MKDpaorAvckiteclre ,Aoh
omesh S Phethe Holly rë|
onkar
3

Reader may use the link to listen to the video of this lecture
You Tube

Reader may use the link to assess their understanding of the lecture.
Teachers nmay use the question lor conducting activity in the class

Mr.S.SATHISH KUMAR, AP/MEC 2


M.I.E.T. Engineering College, Trichy ME8791/ MECHATRONICS
Lecture No - 2 0

Topic(s) to
becovered
Archttecure e B255
Lecture Outcome (LO)

At the end of this lecture, students will be able to Bloom's Level

LO1
LO2
Reniae te Aeckitedn hk K2ss|ldsted
LO3
L04

Teaching Learning Material Student Activity

Chalk &Talk/ICT Tool/ Any other Listen/Participate /Discuss /Peer to Peer


Learning/Quiz /Role Play / Any other

Lecture Notes

toalues825S
l t Can be poganmad b transfor da under volaus Condelons gom simple I/o
to interupt T/o.
al Intel and mast ote icopresoa
*lt a Compat.ble, Sitk ales settg ond vexatirg hdiidhuols bitbs f
lt's,bt veat made
setl
portC modes 1 4m Mode2
Can qpnte
n 31lo OMade0, D Made
+ The 825s
Carpletek TTL
lonmpatrlde
le 2s
Archttedure of 8255
a
L/o dauics desgpel for uwe
The 825S is general purppre prgrarmmable
oitk lanelL Micwpmesors. lt Consit t 3-8hit bidkreenel T7o
pat [24 Ilb ines) at can be Conkacnd to met dheontsyto
Llo reeds

Mr.S.SATHISH KUMAR, AP/MECH


1A
dia0y (SV A
Crou
A
Contol
iodonul 7at roup A

2-Blfor 8 8/7
ntevnatonal al|
Bus ooy P 1
orl lnaey
READ Garoup
B
WhWRTE nand
A ConNTROL
ALLDh1C Croup. B PB
PB-PP

X 3 por e Fort A, Port B, Port C


Povt-A Cont ains one 8 hit oulpd Lateh1Buffer and on g hit
Port-A
input Byfer
Port-B b 8ame as Port-A
xPovt-C Canbe splt ito tio parls Prt e (loaer)|Po-PCz] Portd
by Conkiol word
Yper |Port 7- Port 4]
Funclion Periplon
This 3upport chip a yenexal purpoae I/o Covmponendt Intvdae
phori pheral e9aspmert o e miero Coopulr. »plo
l t s pyrammd by e ysbn 2afturahe 30 hat normaly no externl logie
is nacessay ts intefaca ploripheral devias (or) 3buclire
Dat: bus buffey
It b atri-tuke 8bt batfor wed to iabface ta clp to sydandt tes
2h istransi tod (on veceivd by butfer yon exealion f an input to)
Ontpt instrudins by te cpu
Conbral
xConbialwrds and 3tatus infomalion are alsotromteod tororgh be
dalebus budH
* The dak knes are onectel to BDB microprogssor
Kead /W1e ad Logic Corbol
ntornal operalens dte d
The funihions ot has blok a b onbal be
and Conbol tor) Atatius words ton uuw
I t acpti iipils Anm te CPU
and Conbial buses and h
Cormmand to bath tke Conbhol groups

C3-Chip okd
x Aloco on has iäpt solets be chip f enabes tbe Comminicaton between tbe
8255 A ond CPU
b wect cre
l t Connectad to t oulpit f addrass decoder ciratiry
when it RD (Rad)enabes tre
A low on Kia Ept 825s to ed te dabi Cor) stts intorrmalian
to re CPU onte dai bus.
WR-Write wrtë date (o) Contiol words indó 8255
A low on ta pin enabes te CPU to
KESET Conbial reglsb and all por A,B,C]
A frgh on is iput pins clears tk
are jnttiatad to put mode
out f 825s 1his s done s proet
xThas is Connocted to RESET
to
destradtien f raictry Cometed port kra
and one gbit dat inpet lath
One 3bt dati output Latehlbitfor
Port B oulpt LatchlB«ffer
and ore 8 hit dak npet b
Onbit dak
Pot-C undon he mado conbrol
This port Can he dtvidad ito too 4bit pors
latch and & can he sel for ontol
Each 4 bt port Contains a 4 bzt k Port4 48.
2
and stalia signols inputs
1gnas output
M.I.E.T. Engineering College, Trichy ME8791/MECHATRONICS

Suggested Questions/ Assignments /Homeworks /any other

DNane te mats auailole in S?55 Alzntnlexvd brot (Nov'b9,4a


2Wrde donte qucton a e s- OBF (Wov'os)
3 Wie don r e detues a s s

Text Books / Reference Books / Any other suggested Materials

S.No Title Author Publisher


MICopraepor Mpoleribeller Krahnekart_ [Boslie thllotldia
Miuepuesbr AvckikechrefyrPomeh SS rente Hel, onp
3
AdApplicilen th Se ankor

Reader may use the link to listen to the video of this lecture
You ube

Reader may use the link to assess their


understanding of the lecture.
Teachers may use the question for conducting
activity in the class

Mr.S.SATHISH KUMAR, AP/MECH


2
M.I.E.T. Engineering College, Trichy ME8791 / MECIATRONICS
-

Lecture No -21

Topic(s) to
becovered
1Pin Conkiguralan 4 1nqrammiog ood yeralins
Lecture Outcome (LO)

At the end of this lecture, students will be alble to Bloom's Level


LOI
LO2
Ronnertte rolojguretbo gd 82 Korerber
LO3
hdastard te Cualn Moces ef sS uderstor
L04

Teaching Learning Material Student Activity


- -

Chalk & Talk/1CT Tool/ Any other Listen / Participate /Discuss /Peer to Peer
Learning /Quiz /Role Play / Any other

Lecture Notes
n
82SS fas ho pins ad #o
angemot d pins ane shoun figure
RESET
Tho b an adtze ued t6
kigh bput reset 82sS. WWo RESET 2pt a kzk, te
ricl Yegbb b cead 4 al to porls ae
ot t tte iput mede. Uually RESET
OUT signal from 8ugs used to Yeset 825s
PA PAz PA PAo RD C GND A Ao HP% PP4 Po Pe P Pes
Pe. P8, PE
2

A 8255

D
RESET DeP D Ds O% Vec P®; P%
PESPE, P3

Mr.S.SATHISH KUMAR, AP/MECH 1


selacttns et to
Thee pdt sBanals alorg sttr RD 4WR apub Caibol to
word rajtl oe or 3port fKe
Contsclstatis
PAo-PAT (Port A) d.LlD Pa r e Usal to sond dast ts output daice £|
Thse ahe 3 bit bi dtreclial as an &- Lt data oulputlatohl
bedfor
dat tmm oputdeste. lt fuclbns mnde
Yeadiue þuyo, whon usad b nput
h and inpul
ohen usd output mae
PB-PB7(Port B and recet ie da
are usedto rd dot to outt dotte
These 8 hat Ilo pihs
trom oputdake (Plg-Po)4
Po-PCa (Port ) ahe divided intó gaps,
dtrecthonal Tlo p
Thee 8 blt bi Oul bhen prrgramme
dla io (orD
PC-PCA). transyea
Can csualy handahke o r
dtvidaaly
Thse groups cwhen peganned for
hurndsheke signals
Ilo and wad as
pr sirple
b1-dtrelionalmadas
rogra mming and Oeralions
of 82SS
O Mode
DPraemming in ton ofputpoids by itig tt
Pors A,B4C conle nkgurad as siypk iput
antiol wod vegáto
apprpri at Control wod n te
* In s P1 is at to 1 Ph»Ps 4D2 are al set ts o't Conhyore all he pod
n made D. Operaton
x
on dtanine whete to torrapondig pors areo
Statis of bi P, D, 2) 4Pos
beCon gued inpat to) Outpat Pa23,2, adPo datantine lept
Confzuraten tmad: 03 as folbers. B
or Output pors 4á
tt tte bth PaPs rayprds to CnrapabondP) rampordsfop
ls
nput Modt mae 0, CPU con read dab
te put tro
uAt
d t nitnkzalin f 8255 lonmad Yad
iitang pager port thra
te pt pot
Mode 0 Conkiauxalion
A B
CraupooiGup
PortC tB \iLoe
O O0o 0udput|Outpre |0udput|Outpoat|
o/P0PoP E/P
o 0 OoP oP P 0/P
O 0/p 0P/P P
Oo0 P Polp oP
/P /POP 0/P
oP p P 0lp
P|WP|PP
* Kaad ommand adEdies RD 3/gnal. Upon a ufon ot RP3igna, CPU
Teads e daä from to seesel Bput port znt ta CPU reab.
Output Mode; O, CPUcan o r daa nts
t a iittaltzaton a825 to oiaput madeurik
uils conmord pmper portaodrss.
e oatp ut port by initialiaj one
s0ds on te doa bus 4 upon adlisihl7 t WR sizal, dota
CPU dah
on he
soltal oustpat port
bus (data) gat latchel WR.
RD

CA AoA
- -

r-DD --- ---ta -- - -Outat


Tng gan sor mode Oinpt mek Tumg Pagron fr mah0 oaptrwk
D Hrogramning in made1 Tapat/outpotwth Hanslake)
*Dotk Cnup A4B can operate in mado 1,etker togoto andilduallysitk
each port Cpntaning an 3-bit lathd npt|output dal port t 4-nit port
whch 2s usad pr Coitial 4 atatis ot 8bt port
xPort A uo tte ypey 3psignals PCa, PGAPCs aeusd tprCorbul. Yort B
Ue lower 3 814hals Po, PCi P2 re usel for Contral PC&4 PC7 ate nat
wel kcane 1pev oP as programnelby bat Ps teortial cword
au
PA7 ort A
PA lnput

STBA
18FA

L3 TRA
INTEB
TB

L INTRB
PBA PorkB
PE 1opt
Mode 0 Contiguyalion
A B
Cmaupob Gp

|oo 0 |o 0udput|Dulp |output|Otpat


OO O/P oP 0/PI/P
o O 0 oP olp /P 0/P
o o 0/P OP/P P
1
OPolp oP
oD/P|/P CPoP
WPOlP o P P
/ P 1/P P P P
*Kad Comrmand aExdtcs RD 3/gal. Un ac ufon ot RP signal,Cpu
voads te daa fwm ko seledil aput port itb e CPU reabr..
Output Made; i dak nts
ittakzaton of 8285 b oatput made 0, CPUcan
dota
initialing urie Command k proper portadres.
to oatp ut port by WR Signel, data on
he
xCPU 3eds dat onke dii bus 4 pon aihitl1 f
on the sekctaloutput pord
us (data) gd latchal WR
RD

AoA-
-

-Do T-Data- output


Timin iagram for mode oinpdnae Tiwg Aazron for mae 0 oput mek
(1DProgramming in made 1. (CTapit/oulputuwtt Handsake)
Potk. Omop A4 B Can operate in mado 1,either togato (a)ndiiduallypitk
each port ontainig an 8-blt datha input|output dal port f 4-bit port
which 2s uS4 pr loibiul 3talas f 8bit port
xPort
x Port A
Aue
o tho yp 33inals Pes PA#PCsde usd tprGntial. Port B
3 8ifhals PCo, PCi, Pe nd tor lontral. PCs4 PCz are nat
wed ycanhe 1/pev op prgrammedbyblt Ps telontiol wword
LINTE

fort B uith handshake sPontA wstk. hondshake3ignal


Controf word Sans Word
DDEPs D | |
Port Bloput D7D D D4 D3 D D, D
PortB Madel
PbrtA 825s Mode 1 Cordguralion
Mede1 P%, PC7
PortA input 1-TIP, 0 -OP
handshakig has spolosg featars
The made! shich suypporh do pora
Port A &B can he uel g bit Yemaiang 2 3gas
Two porls abhandshake sgoal
3 lines t po1 C
2) tach por uses Lo þor
Can he ued as
Interuptljic a ayporta.
) datá are LatehA
4) Inpat
40utput
nals.
Output Handshakij 8igne
Handshalieg Sy 0 08FEOtput ByferFall]
Unput Bulferfull
LInput
DTBF [3trobed Input (2)ACK fAcknoiludze]
)3TB
(3) INTR [Interrupt reguat]
INTR Llnterrupt reguest] (4) INTE L Interrpt enblej
3) [lhtemypt Enoble]
4) NTE
Mode:2 Prtocan heued yor
ka made
be inilialised
Only grap o
can

handshake dati
tronyor onbesane zhtknes
bdiveclonal Lor) oitput Ponto
tat doihe input
can
eusedas
hardshake Lenes toe
*Ths means
Ps-PCq ioput/0utput lines
(Pebo-Pab7).
Pas be wad as

[Po-PCe) can
port C
The vernainng ittakselbmade O.
b hus to
to aa alae
alaue micoPoes
microprey
ghopB tesyen hus
ma be wa to eztend dok Controlea
The 825s b ad tom alpz
transfer dati bytes
ts
Bit ot7Reet [B3R] monemode is plicable to pod o Fach lrs
The Bt Sot lReset [B3R i Conkel sod
stlreset bg sahg laudrg
ofPort C [Plo-PC] Can he
BR, mode doas not aHat
Yegisla 4 lehion of
made are depedest
Ilo
BSR mds 4 I/0 made
ofo prti n
te operalion ef BSR mode
Jr
h i t à alup 0a e dont Cae bit.
brt
Bib Po,sD y last ke pins af t o r t
Pe,P?are usad to soledtd pinse
BL usd to ot/ed ko.

x B2 e B9/R 9at/Kat
O o xx
BSRmae Dort CaePoxt BitGt
Pe be st, then à be Conkal syste
naded et
an wnpe, t a
Since itb BSR made, Pg=o. o
w mat uwal, assne tHn be
Sme P, Ps,24 arehene,Ds -1, D2=0, P=1.
PUs as bo be soloteal, = 1. erbal arodFyaa
hahe st, henee loded t o
Pls atoe Valiea, OB LHex)
wrtlbe
Thus, @pe
D7PAPs2D222

O
M.I.E.T. Engineering College, Trichy ME8791/ MECHATRONICS

Suggested Questions/ Assignments / Home works /l any other

Ezpla #. 0Perdnj modes ) 825S PPLHay d6, 01,'13, 4 sov ,1


2 Norebe modes ava:l oHe in 82SS A Cortolwordt matt(Novva,3 un 3)
a t e brbel aerd jcimot g8Sin 89R modedeteJApr
9peral~n d d2sSin
A Erpld Moko O, Modo 1

Text Books / Reference Books / Any other suggested Materials

S.No Title Author Publisher

MicrPro@or,Mcolatio ler_|Krishnekat PatteHoldhdze


2 MP-Auhtezturo. frugyen AplicconpanhS heat Penlie Hell, 2as
3

Reader may use the link to listen to the video of this lecture
You nmbe

Reader may use the link to assess their


understanding of the lecture.
Teachers may use the question for conducting activity in the class

Mr.S.SATHISH KUMAR, AP/MECH


2
M.I.E.T. Engineering College, Trichy ME8791/ MECHATRONICs
Lecture No - 2 9

Topic(s) to
becovered
Keyhard Interfaasa
Lecture Outcome (L0)

At the end of this lecture, students will be able to Bloom's Level

LO1

LO2
onemes istfo lotept mlrdedace gPeylael Rbuntrhor
LO3

LO4

Teaching Learning Material Student Activity

Chalk& Talk /1CT Tool/ Any other Listen/ Participate /Discuss /Peer to Peer
Learning /Quiz /Role Play! Any other

Lecture Notes

KoBord Irtrpacig
A mQtiad of onteig pmgrans iló a micropracesor b thogk a kayboad oheh
Conabtoa et et wiha. uwel na eyboad anda clavrec
*o momentaj contadt iteh b apicall
to simple cira.t shosn in figue
Casiy be dotectel by a mioo paesor wiig
+5V leadigadgebaunce Traili edge boune
Suitdh
-To micropraesbof inp
Oguitch Open
Open
poT
gitch
Closd
Rll up rojilor povides logie | when te sotth operd and
gotch á coxd logic 0 uohen t a

xA Contact mng appean ta cloe fimlg ad qutkg te tast ruming aped of


at a

micoprocesor, te adLon
b Conpariline glos
x Contact closes, te contact bounces leke a baU. ThBs bncg ofect pmdace
multiple pulses as shosn tgwe

Mr.S.SATHISH KUMAR, AP/MECH


The dualin of tke bounee typicaly l l last baton Sto 30m8.
ib own iputport|
*1f multiple ays ane neadad, each sitch can be connecil to
on micYDprocessor hourea, Ha mihed gulckiyagins ueyp
sitches incraases,
8 We number of
k

all tte input porti. hemnst eptras


tpm a 2P mabta.

Momentiny zottches are placd na keyood wab a3 Calurns iat ba


3quhe rabzd
occuz twhen Toe o e as many
arangement oluna
ontact sitch placed at o intiseilton ef each wurand
*A monestarg obviously aplicalen dpentent
*Number kog nedad bpe malrix is, uhile eah olumn i puled bg
an oilpt porl,
* Each rpur l doiven bs a bit o
on an intpet port
a Yesitor # fAba bt dah
meadrgdel
pefom tke folasing 3 major parth taks togot
The procesor hasto
(0 Koyboard Scanntrg, Pobounaig, )Zeadirg t SV

K K2. +SV
Kayboard Trtonjaig Ro0
PA
80&S
Co
PAI
PAR -
8D86 PBo
PBI
PBot
Pa
Anangemontof bits in Port A simple Kayboardinshich koys
a
aearargadi
PAx Coniderad,
PAa PA2 PAL ros &Columns as shousnin ahoe igwe
lines ot 82sT. Colml
are

o *Rowb ane Connectadb Poxt


Conneded to Port bLEnes of e 3ome thP
*Rowsd Calunns are nornal Eel high. 4t Inters2ctenof a
Kous4 usi
ou) Column, a key s pa al uch tket pressig akay
te prs heuinge uPlk at
te keybrard mbiiz oj
Kay board 3canpiry fo 4 presued
itoual Ha key has been es Kaybndcanmng ska
a vegula han preual,
t t kg
dtmines
te
Oote te prnessrbance i fond shidh ¢te kg uapd
ltexs atfe do -lor caledSncae
a wigue kon hasel onkayn
basel ontepasel
Each He is aignal bdliarine uhat a~ton, t
tokn
applrcalin
Sepn Czde A wd bygou oneg at a Tre äcald rolouo'
It accidanb tovdli teratay, preasig more
ln n-1
ala n a Kg has kan Pasal aon fogh
Ary agrtho tbat arnest
con recogotze
hae n-Ky ralloer capbsh
koysarepbead presal,b 2a to
Mabx Kogload yamig Algoriton Wheneera mehant push-bullon pressed
t
START (or) roleasd one, the mechanical Coponerts,
rako
Key do not change the po»illonsmochh, may be
InVITIALIZE 255 Tos ahransient rponse Thoy
Dun_Canter 4koy cok tog t gemyais 4"yeponds
multiple prOure
hterpretad a s tte
actorty' Connectal h4
oalput
a-e
ot Clumns a e Conreddts 4 Intpt prt
mabix
heEraus
n2 4
Wait for eioue porE Colunn Lires wre
heldhk
When nokey e
prosed, tSV
omeelid b
ot ro Countzd by e pull uyp
ejitos
Ro a ous
éa Colan.
Counter-0 o Crround One Tou Prag a y Conna is aput os s
lodetictay
toyib pRssd itap@ied
colunna tosa2,
Red CumnCant all Tos d t o chek ( zoba
Cokunn
ecrement rawtnntt looneed a low
Yes Kog hos fjk,h
fokealbw qpea
T3Cun Set Calunn antr a r e furdit

UnceFecoluons
a
wwads unlil
ounter-o hekr e:ts analo
logp,
olumns lo
which
ldicali g aR pe
on one ef exRHÍAfs Aabounee
20|omisec dlg is mal
ocrement Code rezte- Azimple
anofo
chek
Decnet Column lean A4bdbone tne,
preses.
gtM
o se2 key hzh, t e nokay
Tranyer Code
coluans denowal Card by a
t Actumalator 4 iniRal
dteclion
wwas

prewed 4 te
Stp noãe pule
Jot
To anid tha prtan, Vtbvatöyat te output t key ts ebouneTnsientT KayoNe
Use B itallk mules toms) 80JaT
la last yor
dor te trosiert
unit poria{
MPlss
2)
tiles dain
and acles a odysbb mde tat tuasa alid kiypr
teunpilbnà
tolumns r e low no), teo
a n g t te Coann t de prod Kog fonert ta Tnyprmatin t Hx
Fireal takabddarine te rao f
Code
Coda yor e prexd IPport 4 4-bStadetrom olP pprta coniertd s Ha at
jor oP
The 4 bt cade drom itk
08S P 82S5 fwnit
4 rits ALP fr
ALPfx hteta
detedtg akoy desee
ab
Intertae a
4x4 Peghod
AL Thedeboue fPa0A Jra kay Loms. hasate
h
t o koy Code in
dawnaig tedhnigue
M.I.E.T, Engineering College, Trichy MES791/ MECHATRONICS

Suggested Questions / Assignments / Homne works / any other

DWht isko1o Lounct CMay 'é, Nov 'bo7)


2et is Kagbanid Indtapcig (June '12)
abitretskadh f Hop boord Inder Jaoig
3Eaplar.

Text Books / Reference Books/ Any other suggested Materials

S.No Title
Author Publisher

PiceprocessoY, Mcyoasplle Pthrkert tate tHoll efnd


2
MopressoAxhtehre,Pqunks Porhoece.herticerdl 2

Reader may use the link to listen to the video of this lecture
You Tube

Reader may use the link to assess their understanding of the lecture.
Teachers may use the question for conducting activity in the class

Mr.S.SATHISH KUMAR. AP/MECH 2


M.I.E.T. Engineering College, Trichy MES791 MECLATRONICSs

ecure No

Topic(s) t
becovered
LE yht Intrhas
leeture Outcome (lt?)
Bloom's Level
At the end ofthis lecture, students will be able to
LO
L02
LOS

LO4

Teaching lLearning NMaterial Student Aetivity

isten Participate Discuss Peerto Peer


Chalk&1alk ICT 1Tool Any other
learning Quiz /Role Play Any other

Lecture Notes
LED Inuae
, The Liit Entt Diokes are ud t splyplimikad det, rants, Cok
otal number of tharndts tht ae saplyd istixd,rlko
Cor) m i . The
mssy onh scraen
ahhe ay anant Asta my be dispayal
CRTatplay etis unets, di_it-l cloks,at
LEDS a e lomoal
usad on r yot pand
enë lkt eney
Diade sa dile hon canduit,
*The Lze Enitly

t5 www
LEP OR rälibn
BA wK-
Btb Bit6 w K
Commo Common
Ancce
Cthade

Bit o Eto -www+


Mr.S.SATHISH KUMAR. AP MECH
LEP'A Can e diec nbhaced ratMPtrough an ouput port, as ounn
Whonae aht ik 1, torayonlig LEPwill
glosr
Mn Common Catae lonfig, LEP Nao
any bt postlon
make tto conaspodiy be lzhtiad
*InArcde lodiz, aoin i o ports be desrd LEZA mey
bit pnen buctred has 8
bo, by lod1rg a palalar thia paten Thas
a LEDS Can arrargd b há wy urful h be iyl
a,b,e, d, e»ds J.4
sgro makdand dala
numOic Alpha numetc
of e szaá h was adkd sbsuudy,
1agod atoji t#eoJt
Origiou h sructoe hud onky lED h»han otaiel Each sjrt
nay
8 sejnob, benae 1-3b
x 9 n dough ithes

hae mane kao ore LEP


canhe anargal
ià one byté such s

The onwloFF Irprmalenfa 8 saravd Oalowte segonls

farall Intojae segnortiEP liyphy 4e


htween te 7
LAe
-The paralel intrhace
mKropraes30r shon bo igue
at t5v,
The andes tall LED% are hald permene.tly
hi.
whaeas the cathodes ane Connedd to te port
NeoprDcesDY wtlLnad ang bit paltern inte ot port
HouOrai ack qt Parallel lntérfa ce
76 xlt rejulras edtia karduare tor jnljairg
Sohtuvebhe Ib wy simple becauetfehuman eye, due
xFast Apad ot paralll 1nterface h not vaaly reguined
lemitaltions, Cannat peroiue such tastchonges
lt veguire e l a porE
Serial Interfae ushich orcomes tfe disaduntazes of
The 80rtal Interfae numbe f7
heodswahe in Case of a lage
te Compkx o belbu tgae
n shom
segmonti diaphys

Rgisters cde
Clock blts
Flo Chart dizt ha
be operalons sajuere whreh dipbgs
a
The Flas chrt shaa
7 segrnent (LED)
Sement LED 2iplay Intnta e ik 8b
Decder Anade Anade Arede
EN

LCIPress BusAr Po e D2

abeaeah 4/64P414,P4164
CK

Reset
+5V
Program foY 7Segrnent LEPAiyplay Intrdace în 82SS
Flo Chart
STAR Intl vg sohbuue tor 7-sgmtdlisplag
LOad LS8 rom diplay Code Jutol 82Ss inittalizal n

Local Clock Ports A, B, C are output por


Contial wnd = 1 0000 0 00 =8pH
Lond Ne bit T Port Nos-A =00, 8= Ols Ce D2, Contial Kegister =03.
Crcait Conneitãons
Lacol Clok bio PortB)
iCo (oh bt ot Port C) Conated to clok, Bolo }
Connectel o code Inpt
K No
MVI A, 8DH
OUT 03
Contains diyplay todesin menoy
SOP LX
MV
H, CODE,
D , 00
CoDE
Diait Nd
oop MovA:D
ApD L
Mov LA DeR B
MOV C, M; Senortin in eg C JZ MSB
M B, 08; Bit courteo MOV A,C
Mov Ae RRC
ANI OI Mov C,A4
OUT 01 ANI O1
Output clock OUT D1 H,AL
JMP Lok
CLck MVI A, O0
OUT 02 Rpeat ornext drt
MVI A, 0 MSB: MoV A,D
OUT 02 FiNISH HLT
CPI 03
MVI A,00 CODE DB-
Jz FiNsH
OUT 02 IR
Repeet hor.nert se~rent JMP LOOPi

You might also like