Ee6008 Microcontroller Based System Designl Question Bank
Short Description
Ee6008 Microcontroller Based System Designl Question Bank...
Description
EE6008 MICROCONTROLLER BASED SYS SYSTEM DESIGN UNIT I INTRODUCTION TO PIC MICROCONTROLLER 9 Introduction to PIC Microcontrollr!PIC "6C6# $nd PIC"6C%# Arc&itctur!PIC"6c##!' Pi(linin) ' Pro)r$* M*or+ con,idr$tion, ! R)i,tr -il Structur ' In,truction St ' Addr,,in) *od, ! Si*(l O(r$tion,. UNIT II INTERRUPTS AND TIMER 9 PIC *icro controllr Intrru(t,' Intrru(t,' E#trn$l Intrru(t,'Intr Intrru(t,'Intrru(t ru(t Pro)r$**in)!Loo( Pro)r$**in)!Loo( ti* ,u/routin ' Ti*r,'Ti*r Pro)r$**in)! Pro)r$**in)! -ront ($nl IO'So1t 2+,! 2+,! St$t *$c&in, $nd 3+ ,4itc&,! Di,(l$+ o1 Con,t$nt $nd 5$ri$/l ,trin),. UNIT III PERIPERALS AND INTER-ACING 9 I7C Bu, 1or Pri(&r$l, C&i( Acc,,! Bu, o(r$tion'Bu, ,u/routin,! Sri$l EEPROMAn$lo) to Di)it$l Conrtr!UART'B$ud r$t ,lction!D$t$ &$ndlin) circuit!Initi$li:$tion ' LCD $nd 3+/o$rd Intr1$cin) 'ADC; DAC; $nd Sn,or Intr1$cin). UNIT I5 INTRODUCTION TO ARM PROCESSOR 9 ARM Arc&itctur !ARM (ro)r$**r. ". "?.
PIC"6C% *icrocontrollr Dirnti$t $r$rd Arc&itctur 4it& 5on Nu*$nn Arc&itctur. Cl$,,i1+ /ro$dl+ t& ,(ci$l 1unction r)i,tr,. DFn $c& /it o1 ,t$tu, r)i,tr 4it& t&ir 1unction,. &$t $r $ddr,,in) *od, o1 PIC"6C% *icrocontrollr &$t $r t& in,truction ,t o1 PIC"6C% *icrocontrollr DFn INTCON ADCON r)i,tr. Dr$4 t& in,truction (i(lin $nd *ntion it, ,i)niFc$nc
PART B
". 7. >. .
it& n$t /loc3 di$)r$* #(l$in t& $rc&itctur o1 PIC"6C% *icrocontrollr. E#(l$in Cloc3in) Sc&*In,truction C+cl $nd In,truction -lo4Pi( Linin) o1 PIC"6% *icrocontrollr.H8. E#(l$in t& M*or+ Or)$ni:$tion o1 PIC"6C% *icrocontrollr. H8. E#(l$in 4it& n$t #$*(l, B+t Orintd; Bit Orintd $nd Litr$l $nd Control In,truction, o1 PIC"6C% *icrocontrollr. H"6. ?. rit $ ,i*(l PIC"6C%C (ro)r$* to $dd; ,u/tr$ct; *ulti(l+ $nd diid t4o "6 /it nu*/r,. H"6. 6. Di,cu,, &o4 in,truction (i(linin) i, i*(l*ntd in PIC.H8 %. E#(l$in $ll t& condition$l in,truction, o1 PIC *icrocontrollr. H8 8. rit do4n $riou, CPU r)i,tr, o1 PIC *icrocontrollr $nd #(l$in t&*. H8 9. E#(l$in t& 1ollo4in) tr*,J Hi Bro4n on R,t HBoR Hii $tc& Do) Ti*r HDT "0. &$t $r t& dirnt $ddr,,in) *od, o1 PIC *icrocontrollr $nd #(l$in t&* "". E#(l$in t& 1ollo4in) PIC con,truction, J H$ BS- 1./; H/ RET- I E; Hc ORL 2; Hd RL- 1"d "7. Di,cu,, in dt$il $/out t& 1unction o1 $riou, (ort (in o1 PIC *icro controllr H"6 ">. ". UNIT II INTERRUPTS AND TIMER 15. PART A
". 7. >. . ?. 6. %. 8. 9. "8.
&$t i, t& (ur(o, o1 $tc&do) Ti*rCountr Mntion t& dirnc /t4n t& ti*r, $nd countr. &$t i, t& nc,,it+ o1 (r,c$l$r in t& ti*r o(r$tion Mntion t& 1unction, o1 PEIE /it $nd GIE /it in t& INTCON r)i,tr. Mntion t& r)i,tr 4&ic& dcid, t& (ort $, in(ut or out(ut. &$t i, t& (ur(o, o1 (ull u( r,i,tor, Mntion t& t+(, o1 Ti*r, $$il$/l 4it& t& PIC"6C% 4it& t&ir r,olution,. &$t $r t& dirnt t+(, o1 ,ri$l co**unic$tion ,+,t*, $$il$/l in PIC"6C% Mntion &o4 to ,lct r)i,tr /$n3, in t&
PIC"6C%. "0. Mntion t& $riou, *t&od, o1 co**unic$tin) /t4n t& *icrocontrollr $nd t& #trn$l ,+,t*. "". &$t i, *$nt /+ (ollin) "7. &$t i, *$nt *+ dirct $ddr,,in) *od ">. rit t& o(r$tion c$rrid out 4&n t& in,truction *o41 TRISB #cutd /+ PIC"6C%. ". o4 t& ti*r 0 intrru(t i, n$/ld "?. &$t i, ,t$t *$c&in "6. o4 to di,(l$+ con,t$nt ,trin), "%. o4 to di,(l$+ $ri$/l ,trin), "6. "%.
19. PART B
". 7. >. . ?. 6. %. 8. 9. "0. "". ". 7. >. . ?. 6. %. 8.
E#(l$in intrru(t, $nd ti*r, in PIC *icrocontrollr. H"6 E#(l$in t& Ti*r Modul, in PIC *icrocontrollr H"6 Dirnti$t C$(tur $nd Co*($r *od. E#(l$in t& Intrru(t ,tructur o1 PIC"6C% rit $,,*/l+ cod, 1or PIC"6C%# to )nr$t $ ,Ku$r 4$ rit $ n4 Di,(l$+ ,u/routin to &$ndl t&i, *i#in) o1 con,t$nt $nd $ri$/l di,(l$+ ,trin),. E#(l$in t& 2+S4itc& ,u/routin $l)orit&* 4it& o4c&$rt. E#(l$in t& 3+($d $nd 3+,4itc& intr1$c. UNIT III
PERIPERALS AND INTER-ACING
PART A
U,in) PIC *icro controllr &o4 i, $n$lo) ,i)n$l i, conrtd into di)it$l ,i)n$l &$t i, $,& **or+ &$t $r intrru(t, $$il$/l in PIC *icro controllr &ic& (ort 4ill ,u((ort 1or #trn$l intrru(t in PIC. Dr$4 t& /it ($ttrn 1or conF)urin) t& USART. &$t i, t& *$in 1unction I7C intr1$c &$t $r t& *$in dirnc $,& **or+ EEPROM Mntion t& ,(ci$l 1unction, o1 PORTA.
9. "0. "". "7. ">. ". "?. "6. "%. "8.
&+ $,& **or+ i, *o,tl+ (r1rrd t&$n ot&r **or+ &$t i, 3+ d/ouncin) &$t $r t& ti*r *od, in PIC Li,t t& 1unction o1 IO (ort, in PIC. &$t i, C Co*(ilr Li,t t& 1$tur, o1 USART. Li,t out t& 1$tur, o1 CCP *odul &$t i, CCP *odul Li,t t& (in,,i)n$l, u,d 1or ADC intr1$cin). Li,t t& (in,,i)n$l, u,d 1or Sn,or intr1$cin)
12. PART B
Illu,tr$t ,ri$l /u, co**unic$tion (rotocol, I7C in dt$il E#(l$in t& $riou, ti*r, $,,oci$td 4it& PIC. H8 E#(l$in t& $riou, 1$tur, o1 I7C /u, 1or (ri(&r$l c&i( $cc,,. rit $ (ro)r$* to turn on $ LED $t intr$l o1 on ,cond. H6 E$lu$t &o4 t& (ri(&r$l dic, $r intr1$cd 4it& PIC. E#(l$in in dt$il $/out t& co*($r $nd c$(tur *od o1 t& PIC *icro controllr 4it& $ n$t di$)r$*. H8 Di,cu,, in dt$il $/out t& 1ollo4in) $. DAC /. Ti*r, c. Intrru(t H"6 rit $ dt$ild not on t& -LAS EEPROM **ori,. H8 E#(l$in t& UART in PIC *icro controllr. H8 rit ,&ort not, on ADC intr1$cin) in PIC *icro controllr. H8 Bri+ #(l$in t& I7 C intr1$cin) u,in) PIC *icro controllr. Gi t& ,(ci$l 1unction r)i,tr inold t& corr,(ondin) 4$ 1or*. H"6 "7. rit ,&ort not, on CCP *odul,. H8 ">. Bri+ #(l$in t& ,n,or intr1$cin) u,in) PIC *icro controllr. H8 ". Dr$4 $nd #(l$in t& $rc&itctur o1 on c&i( ADC o1 PIC *icro controllr in dt$il $nd 4rit $ ,uit$/l $,,*/l+ l$n)u$) (ro)r$* 1or conF)urin) t& ADC. H"6 ">. ". "?. UNIT I5 INTRODUCTION TO ARM PROCESSOR "6. PART A ". Point out t& li,t o1 ARM, i,i/l r)i,tr,. "". &ic& 1$tur, do, ARM &$ in co**on 4it& 7. Su**$ri: &o4 ARM &$ndl, t& #c(tion, *$n+ ot&r RISC $rc&itctur, >. Idnti1+ t& nd o1 t&u*/ in,truction ,t "7. Su)),t t& rul, 4&ic& $((l+ to ARM d$t$ . Mntion $n+ t4o o1 t& t&u*/ in,truction ,t (roc,,in) in,truction, ?. rit do4n t& ARM CPSR 1or*$t ">. E$lu$t t& $lloc$tion o1 r)i,tr, in ARM 6. St$t $n+ t4o d$t$ tr$n,1r $nd control o4 (roc,,or in,truction, ". DFn (ointr $li$,in) %. &$t 1$ct, 4ould +ou ,lct to li,t t& 1$tur, "?. o4 to $oid (ointr $li$,in) o1 t& ARM in,truction "6. C$t)ori: t& tric3, u,d to o(ti*i: 8. -or*ul$t nc,,$r+ cod u,in) ARM $,,*/l+ (ri*iti, l$n)u$) (ro)r$* 1or cr$tin) $ dl$+. "%. DFn Pri*iti, 9. Illu,tr$t Br$nc& 4it& Lin3 $nd #c&$n) "8. &$t i, *$nt /+ ProFlr in,truction in ARM Proc,,or "9. Pro(o, $n+ > tool, u,d to o(ti*i: ARM "0. Idnti1+ t& $((lic$tion o1 SI in,truction $,,*/l+ cod 70. rit $/out Loo( unrollin) "%. "8. PART B ". DFn t& $rc&itctur$l in&rit$nc o1 ARM (roc,,or $nd #(l$in H8 7. E#(l$in t& ARM Dlo(*nt tool, in dt$il >. N$* t& (rinci(l 1$tur, o1 ARM $rc&itctur H8 . Li,t t& dirnt ARM Dlo(*nt Tool, $nd d,cri/ $/out t&* H"0 ?. Illu,tr$t t& ARM Pro)r$**r, Modl 4it& nc,,$r+ di$)r$*, H6 6. E#(l$in t& /u, $rc&itctur o1 $n ARM Proc,,or H8 %. Di,cu,, in dt$il t& dirnt *od, o1 o(r$tion o1 ARM (roc,,or H8 8. DFn Addr,,in) *od Li,t t& $ddr,,in) *od, o1 ARMH8 9. Di,cu,, in dt$il t& $rc&itctur$l ,u((ort 1or o(r$tin) ,+,t*,.H"6 "9. 70. UNIT 5 ARM ORGANI=ATION 7". PART A ". &$t i, > ? ,t$) (i(lin 8. rit $n $,,*/l+ l$n)u$) (ro)r$* to $dd 7. Li,t out ,o* control o4 in,truction,. 1our nu*/r,. >. &$t $r $riou, ARM In,truction St, 9. Dirnti$t ARM% $nd ARM9. . &$t $r $riou, 1$tur, o1 ARM In,truction "0. Li,t t& dirnt t+(, o1 c$c&. "". Li,t out $riou, */ddd ARM $((lic$tion,. St, "7. &n t& (roc,,or #cution in ARM ,t$t ?. N$* $n+ 1our d$t$ (roc,,in) in,truction,. ">. Dirnti$t ARM; T&u*/ $nd $:ll ,t$t. 6. N$* n$+ 1our $rit&*tic in,truction,. ". Mntion $riou, t+(, o1 ,u/routin,. %. N$* n$+ 1our /r$nc&in) in,truction,. "?. Li,t $n+ 1our co(roc,,or in,truction,. ". 7. >. . ?. 6. %. 8. 9. "0. "".
"6. "%. PART B ". St$t in dt$il $/out t& Hi > ,t$) (i(lind ARM Or)$ni:$tion H8 ? ,t$) (i(lind ARM Or)$ni:$tion H8 7. E#(l$in t& $ddr,,in) *od, o1 $n ARM Proc,,or 4it& #$*(l, H"0 >. E#$*in t& i*(l*nt$tion o1 /r$nc&; c$ll $nd rturn in,truction, in ARM in,truction ,t . Illu,tr$t t& t&u*/ in,truction ,t o1 ARM (roc,,or 4it& #$*(l, in dt$il H"6 ?. D,cri/ t& or)$ni:$tion o1 CPU o1 $ &i)& (r1or*$nc RISC $rc&itctur.H"6 6. Di,cu,, $/out ARM i*(l*nt$tion H8 %. rit dt$ild not on $rc&itctur$l ,u((ort 1or &i)& ll l$n)u$), H"6 8. Illu,tr$t t& ARM co(roc,,or intr1$c H"6 9. rit ,&ort not, on */ddd ARM $((lic$tion,H"6 "8.
"9.
View more...
Comments