MICROPROCESSORS
Experiment No. 1-A
Atari, Aliya Marie
BELA CRUZ, Sohn Van Rusce/
Name DANG. Moshua
Course / Section COE 1211 7EOt
Group No.
Date of Performance: February 18, 202p
Date of Submission | Feprvary 18,2020
isi
_ =
\or_ksagani_Villamor
Professor
| |
ontroller:General -Princi
|
GradeQi.
Q2.
Mocrerens tamer Yarns
Experiment Ko. t-A
equence cf actions thet must Dé done to transfe:
te the Instruction decoder.
Apter thot the READ. control giGaal ic accerted then,
walt_totil the memory hac placed the sactcuction
-b0.the_doia buc loctly, jrangper_the“nctructon
$10m_the_coto_buc_to the 10st N_Cearder._
BrieRy expiatn how an instry
Improve the perfor
——The_sptedt petpormance ty the. CPWincreases -
with the help 2¢ sostruction-petch pipeline The.op-
code byte_mucl be petched by4ne CA price to
excasing te nctuchon a. Beefy exslsin under wi
? che} mgh:
= conditions this instr
I to improve CPU pes
jl
Q4. What are hexadecimal numbers and why were they used so
frequently in microcontroller documentation? ‘
8
Mberoproseie Laboratory Manaal
ecoas.
Qs.
Ying cote ie
——The ACQuEIEL CON Mller otutee_ ing tuction
AIC LICCUICIN LIK, 190 Me hercntes
eerect_ timed tonto tigna
Write down a sequence of steps thet adds uo
memory locations and places the resait In 2 thi
——Tit_pirgiam Counter locates the memory arvietc
QD Hh AIOE [OrAOn. From pagan
Quntrloackd th actiese tue, Hen froccperet fo the.
Inomery oddtese regxtec. From MAR. the-daia will be
wowed fo fe srten reoutlar then) mated fo cite. bu. por
pate pt catSOV ey eee = |
ENHBDM #—» Smt *5 ARS pate j
wo Rue j i
7
|
|
i
Mesemermer eres "hea:Qs.
How much RAM does microcontrolier have? How much EEPROM
an how much Flash? Doas It have any other king of memory?
A_microcontroller_has_ 2kbuytes of RAM, tkbyte
of EEPROM, and S2kbytes of FISH, It als
hos tkbyte of register aie _
|
Qo.
Mcrpeoeme Laderwrey Marval
co
—
What register does micrecontrotler have?
The microcontroller has # registers
+ accumulator + destination index
sbase | code segment
+ count | - data segment
eu ror
base pointer/ _.istatus register _
«source ina
+ unsttuction pointerQ10. Draw the memozy map of your micracontrolier, ;
conto] Registers
for Yo
EEPROM ured for |
non-volatile varia!
storage |
“RAN used for
ia bl ‘Storage
strobe gate "|
Yerenacee tenes Moen .Qil. Slven tne condition, whet
12,
che possible ways to detect. the
prociem/s that may 9:
tion?
EE
oo
Using the given condition and from what you have read about
microcontroller, what are the possible sclution/s that you can
Suggest to solve the problem that may occur In Its execution?
The first probable wolvtion is to «tore
the carry bit _t onother reaister’ Anoth,
solution 16 To limit the va, of the
ti 8-bitQi3. If the date found in Ia
might It reside? |
Inthe
addressing Is within the Pu, where,
IS TERS
Q14. Is the data In an Immediate addressing Instruction volatlie or
non-volatile? |
in an
as
Q15. How do the direct and extended addr
effective address of the operand?
In direct_acdressii
‘essing modes specify the
|
mode, the effective
There_are two 4nctex registers. \
1
\ t
ceprmmar itera Manoo
Qi7. Using S Se Gata shee, make 2 table showing all the differe:
types of indexes addressing modes avaliable? |
fi
ADDRESSING MODE
ra ressiny 7 tf
ceaementing 73
AxumwMIator OF LT
indexed addrecgrg
Qi8. What are the registers that can hold che offset in the
microcontroller HCS12?
The register that_can hold the offset __
Q19. When could Indexed | padressing be considered a type of register-
Indirect addressing?
Wher off is__2
adeneery Manat920. Wr
res
The _immediote adaressi is best
to_use. a
1
Sressing mode 's dest to use to compere Bn accumulator
wWhth 2 consaane?
Q21. Give two Instructions that fit into the
following categorias: (a)
move data,(b) modify datz (
¢) decision making (d} flow contro!
CQ) LDAA PSHA (cd) AMP, RTS
(e) Dec, INC wo
QDR ING
Cc) TSTA, CMPA x
Q22. In which category ee find en Instruction to accomplish the
following tasks: (8) reac data from 1/0 sort, (b) test Ifa cata
value Is zero, (c) compare a data vy ue witha specific value, (a)
multiply a data value by 27
(a) Move x (a) Modif
Cb) Decision r
Ce) Decision/
Q23. For each of the following scenarios, which Is the best addressing
mode to choose? (a) read data fram =n I/O port, (b) test if the
contents of a register are zero, (c) compare a value In a register
to a specific, unchanging value, (d) access data in successive
memory locations /
a) Direct /Extended
fb) Immediate -
ce Immeciate —
pgm erry met24. Wize king of memory will be used for DATAL and DATAZ
Dutfers? j
|
The lash | memor
Q27. How will you write an instruction to load accumulator A using an
Index register with zero offset? !
It _will_be written as _taed 0,x
Q28. How will you write an Instructioh to load accumulator B using an
Index register with an Weal 16 bytes?
¢
It_will be written
Y as dab _16,x
u