Dwhat s ESD ?
Emiedded ~ Hiddn pAplieon Speiie
ESD - Hidden commputan
"Embeddd sytum itan application
compun hidden anide an alectro
dpece
produet designed te' peyomlqtime,"
pplization thhougot its
pnejecken
Enbeddad Systum
) Exphicit computen Aplication apeiie)
wniu ayplication
a) Etunkie pusouhces lited uAs
functional aplicatien
WAevn specye puncinal
iqes EsD ampleyed.
We domt necd a 32 bit He for dens
werk (Minatwined comyuts)
a e bit hc ESD
1/37
'stttvics nulesuseftatte,
computu qboand cPU
Menite
Prajcton >, CPU
visual o/p
In Modn Co 40 -100 Embddadl Syetems
2) Htow £SD werk?
Buding - Pro cessn
block
ESD
2
coding (Fimwon)
4
3
-Peiptunals
Sens&
(g ot)
ob-o2-25
&051
jnstuctien dt
st o command wtich HC will
4ut VCc +5v) pota
2 39 bidieciomal
Pl.2 29Po.| dota
sbit (P) PI·3 32 po.2 Thamy
Pl.4
P).5
3 po3 (p)
35 po4
34 PoS
33 po-b
RESET 32 Po.
AT89C51 3EA (Extenal Accs)
RxD’ P3.0
A0 pin
TxD P3| DI? EA 4
entnal RoM
INTO P3.2 i 29
92.4 Tntehnal RoM
INTI3.3 12
29 P2.6
To-Tiuno)To-Psi4 4 26 P2.5
Ti-Timwnl TI-P3-5 1s 25 P2.4
24 P2:3
P3-b
).0592MHz 23 P2.2
93-4
18 XTAL2 22 P2-1
19 XTAL 1 21 P2.0.
GND 20
YTAL scllatos are stalle
3/37
Data
Regisls emey Phogam memery
8bit
28|bye KB
RAM |ROM
PI
RST ePU
8 bit
Bus
P3
Poighela
I4-02-5
Actiwaion cincuit el Nc (R051)
How to make the HC tunctional ?
Ats ’5 oups t0 moate Hc functional
Elilbical
) Pouwe 5) Pragramfeode
) Reset
2) Gsllaton
4) Fimuwari hocator
Elctrical Ruquiument
> +5V DC
Lou Pousen (3.30)
812 4805 LMII
230V 3-3v
tooHF
enidge 4805
230V Jcopoate REG REGI REG LED
t12y 45V +3.3)
DC DC
Powen sse DC
(shany dip) Porwen glitok
met tctive isue
much
(Net dangu)
Bhen out
4,3V
(alow say)
(Pongaa)
Inom
L
(2
Ve loox RC
Ve loxI0 RC=
|0lox X
(oms)
ooni) th >At Dt
Logic|
takem time ’ th
foscompuis RsT. At
withim
4.8to2
5 VR
4.8
VR
Vet Vec VR R
mode wso
RST 4
RsT
tigh Actile -’805|
low Active T9es Vcc the
pin RST Iduntity Hew?
uncioning propr ton neset undgo
why?
'cluar R+ - Ro
Tntialiy ports panallel kuping
Dnitialinpoin’ tack House
counter Piogram
’. sill
ing the initialiye
atpc the
Manuyactren
duined hat!
otine
Reset I
tymá HRST
o 4.5V gos
ow Volknge T
BPe
2805
Coparaton Dactien out Bhown
IL 98cllatos
oMHZ ’ 24Mt 2
eike- oMpl’4okMPH
33t Bad om ruawemnt
Hl.os
oscatlalo
&05)
80s)
lOMH 2
20MHz
s&
20my EMIA
12MH2 2AMH 2 24
pewe MH2 MH Z
Aquiemeut ‘ Aailydtnbed dy
ugomcs
1t-02-2s
TN. Fiue hecatsn:
cede
ROM
Intenal Extenal
(witin uc) Couthide c)
AT89 C5| AT8 DC5I
wed to al the Hc froin her it
Bhould fetch she seuree code tom ?
Extenal accus pin (EA pin)
ton Extumal RoM
(OR)
1nt Saymuntasay ioj- ox3f,oxo6, ox5B, oxA,
Dxbb oX6D, 0XD,Ox04,
(agnentvaluuk io) oxF, oxbr);
Ple Suqmentaviay [aamntial;
30/37
MAIN PROGRAM :
t+ include "displeyh
int i; wilel)/
L.
ttem to b t 20
pinvau)
void digtal Writ (int pinNh, int
4 (pinyalu = )
Pum)
PO = Po| (ox o | <<
e { Po po &(loxol 4<punNh)
A (prnNn = lo && pin Nn =11)
ey (pinNn »20 & pinthea2)
1 pinNh a pinNA -20 )
i (pinale~-)
pin Nh =pinNA 30
sdse {p3- P3 oxo) << pinN));
int digital Read (int pinNn)
Po-oxeF; digilalWhia (pinNh,);
1 //Po
tump PO
ntn o
PoXFF; aigitalwit (PinnNn,):
pun Na = pun NA -Io, tum= Pl;
i4(tump &(oxoi << pinN) ==o)
P2 P2ooxf; diqitalwnit (pinNs,):
pinNA = pinNh - 20; Lmp P2 ;
ei (punNn > 30 &&pinN<= 34)
P3 pezoff digitalwi (pirn,);
pinNA= pnNn-30 } tumy P3;
18/37
Probum-5
BLitchu omctd to Port I.1PI-)
and an LED KA conucted to P2.1.. wrie a
uad he suitch
fima ton. &051 HC toaccordingy
nd to Conbl th LeDT Vec
Pl·
AT89C51
p2
Muthad-:
#neude< PIO.4
huqs1.4> Ant diqital Read
# include "G
yeid main() (int pinNa):
jnt myswitch; Void digitalwnite
wile () (intpinNn, int
mysuiteh = digitalRead(); pinsalu,
digitalwnith (2,);
lse
digitalwhi (2,o);
Method2!
# inelude <ug51>
sbit mysuiteh = PIA;
Void man ()
1i (myswitch zo)
LED =|)
LED0}
19/37
Pobem-b:
nput switchus ae comectd ta
8o5| HC
Hc at Pi.2 & P.5 npctwy. The
street ligut is covnecthd to.P2.5 wsing a
rulay Tum the stutlight oN (7 te tallow'n,
Conditions
() Whm both te kwitchs ae trned On
tu kuitch is tmud on
alout 5 tims
ii) whn switchl is prsed Vec
ok
Pl"2
5.2
PI.5.
No
C
AT89C5 I
lom
NC
P2.5
blw
P2.5=0, Teoff->o denegd No ontact,bwNo acOM ’ Lam
) MttgdL:
Sbit Busitcnl PI^2
Sbit switche- P|^5,
Sht om P2 ^5}
Veid man
tallauitcnl==) && (suite -d)