Professional Documents
Culture Documents
Assignment MC
Assignment MC
PAGE NO.
DATE
riting o good, Thinking is better
T: .085 As
40o
a500 H 8051
Paa
doo 84
08 5 s
wan thm «
phlely
mybit mybit_;_
Greenboo=
PAGE NO.
DATE
Writing s
good, Thinking is better
TMa Rdlayl;-
Void Ma.elay(vesid
TMon _0x2o
TH 2 184 I/Lead TH
1Ra L
phide (TR,:0 a t lar 1f to l ovtr
TR O I tan ep 1R
TF:0
inuludehtqsi.h>
Yrid main(Vid
# indude kegsi-h
shit Pho Po
Shit AcCLSB 2 ACco
Veid maun (vnd
unoignid chus
Pb ACCLSB -
ACC _ACC 21
= Greenbook=
PAGE NO.
DATE
inng s bone
nlude hgsih)
Vd Ttioae uraignud char)
Veid main(_
1Roz L
Sec 1LO,_
Totine(valy-
3
phide (TtosEo)-
1Fo 0
uNsigmd hh s , mn;
Greenboo
PAGE NO.
DATE
mnVaku6o
8051
and 2
E
zloek
#indudu Lhq5i.h>
Vid DELAY (urid)
Veid main (void)
ehidol)
DELAY( -
o 0x FF
PELAY(3
Greenbook
PAGE NO.
DATE
Writing a good, Thinking is betterP
Veid DELAY
TMoD eXol
1Lo y Bo
THo OX 3C
TRo
1Ro
Too-
12
Lt ducin fhu cent ta gut a deky 45
50 M 50000doshs
on n 8b
imi alews ery vtus
FEH h be Aotdud into i n h9ister TH
De
TH'
Alttr 11 loadd pith 8bit volnu, hu 80S
1 gira
Copy to TL T h tims mt b stastd. hi
sdaneby inalautien SETB TRx ex uma X
Ar tims stastd, 7L tgiskr stast
ismuntng- 7 huqister 2ulrwy om Ceurt p by-
FEH t 0oH
s high th TF lag (TF
hin TE= 7LMyisier asemaitally hednded
wih_puginal vaiu Kyt y Mgistor
5b ete a C prgaam to 9uewral
45 duity yehe Pih ON li a 3quarn_wave
300m n Pin_ a
#indude Khqst-h
sbit patbit-P aa
veid day (uruignd it)
Ved muin l
philel)
povvapenz 0
delaa(300);
porha pin 2j
dday (30o)
=Greenbook=
PAGE NO.
DATE
Writing is good. Thinking is better
signdint i,j
Po-x
Tobeh
Hlateh
hiten_ th
hunh pest u uxd u_an dp p
MOsfETa and Qus th
lalch agaun um l beth theop
OR oeH
START Mov A,fooH
Mov , -
Mov Re, #30M
ACALL ELAY
CPLA
Mbv P, A_
MoV Ro, # oFFH
ACALLDELAY
SJM/ START
ORG 30H
DELAY Nof
AGAIN DJN2 Ro,ACAZN
BET
Greenboo=
PAGE NO.
DATE 1
writing is gor, Thinking is beter
END
0ooH
3dt Fa3h
(ao ol d 630o1)d
aksolvibe TmgeJumpCam hu ian sngl phgu
a
Th
4pp 5 bib 4 PC_helob h ay Mumbuxmdavou ubik
hdde th addss pithin hat page-
32 AgL-
lore institute or lenooey
Greenbook-
PAGE NO.
DATE
W r i t i n g ls goox, ninkng ts bciiar
akb 1ange
6 bit PC
E
Lsbit 1-bb
DvE0h
in h memry
his angz alleus h jump to any h
Irdin 0peh EFEFh 1h jump or tall 1ncluho
Bih this 7ang 2i h 3 byt ingaut in hih u
b y t uspcede 4 4 3a buts suplzsnt t h hbit
addas tangat oraticn
Ramas No b y k EAample
0YCALL
ak byts
Anywhu pihin 3-bytr innanatin LCALL
Long Kang
pragum AmeTy
-FFFE h
Greenbook-
PAGE NO.
DATE
Writing is good, Thinking is berier
With nat
With dagram, xplain hu arge vme dmd CALL
instoeo
N&t f SADD m t
LJMP
RCt 133 Rdatir umt ac, INCrt jam AM
Se, JNB
Rehor sange
cSNE
DN2 bue ju
Jz, JNz
P128d | Rdative uimat
stost SADD-Lim
ths 9
PC
PCH PCL
SP
PeH PCL
PC
ATALL, tCHL
L3 JNG TcN 5, L2
CLe ToN4
CLR TIL N5
DIN2 Ra, L
RET