Vous êtes sur la page 1sur 20

SULIT

UNIVERSITI MALAYSIA PERLIS

Peperiksaan Semester Kedua


Sidang Akademik 2013/2014

21 Mac 2014

DKT 225- MicroeoatroUer I


( Mikropeagawal I ]

Masa : 3jam

Please make sure that this question paper has TWENTY (20) printed pages including this
front page before you start the examination.
[Sila pastikan lrertas soalan ini mengandtmgi DUA PULUH (20) mulca surat yang bercetak. termosuk mulca
hadapan sebelum anda memulakan peperiksaan ini.]

This question paper has TWO (l) Section.


[Kertas soalan ini mengandungi DUA (2) bahagian.}

Section A: This section has THREE (3) question.Please answer TWO (2) questions.
[Bahagian A: Bahagian ini mengandungi TIGA (3) soalan. Si/aj'awab DUA (2) soalan.]

Section B: This section has THREE (3) question.Please answer TWO (2) questions.
[Bahagian B: Bahagian ini mengandungi TIGA (3) soalan. Silajawab DUA(2) soalan sahaja.}

SULIT
SULIT (DKT225)
-2-
Section A
[Bahagian A]

This section has THREE (3) question.Please answer TWO (2) questions
[Bahagian ini mengandungi 11GA (3) soalan. Silajawab DUA(2) soalan]

Question 1
[Soaliullj

(a) State FOUR (4) groups ofthe 8051 microcontroller instructions set. Get TWO (2)
example of instruction for each group.
[Nyatalwn EMPAT (4) kumpulan set auruhan bagi mikropengawal 8051. Berikml DUA (2) contoh
suruhan bagi setiap kumpulan.]

(8 Marks I IIUI1'Iulll)
[COl/POl, P02J

(b) Discuss the function of the ADDC instruction and how this instruction can affect the
Carry flag.
[Bincangkmlfimgsi suruhan AD.DC dan bagaimana suruhan ini holeh mengubah bendera 'Carry 1

(5 Marks I IIUirluli)
/COl/POl, P02}

(c) Write a program in assembly language to add TWO 16-bit unsigned numbers
8EBIH and 56A7H.
[Tuliskan aturcara di dalam hahasa himpunan bagi menombah DUA nombor tidak bertanda 16-bit
8EB1H dan 56A7H]

( 6 Marks I 1IUirlulb)
fC021P01, P02,P05J

(d) In the interview session, you had been given a task to interface TWO (2) push
buttons switch and ONE (I) common cathode seven segment to the 8051
microcontroller. The switch configuration is to supply logic '0' when being pressed.
Draw the complete schematic diagram for the system.
[Dalam satu sui temuduga, anda diberi tugas untuk mengantaramuka DUA (2) suis butang tekml
dan SATU (I) k.atod sepunya fl4uh-segmen dengan mikropengawa/8051. Ko'!figurasi suis adalah
bagi memberilum logik '0' semasa ditekon. Lulcislum gambarajah slrematik lenglrap bagi sistem
tersehut.]
( 6 Marks /.mtD'Itrlr)
[C031P01, P02,P04,P05}

SULIT
SULIT (DKT225)
-3-
Question2
/Soalan2}

(a) State FOUR (4) interrupt sources available in the 8051 microcontroller and their
vector address.
[Nyotakan EMPAT (4) punca sampukan yang terdapat di dalam milrropengawa/8051 dan a/amat
vector.]

( 4 Marks lmll1'kllh)
fCOliPOl. P02J

(b) Write an instruction to setup the interrupt priority in the 8051 as follow.
[Thliskan satu suruhan untuk menetaplran lreutamaan sampulcan hagi 80J/ seperti herikut:]

External Interrupt l (INT 1)


[Sampu/an Luaran I (INTI)]

Timer Interrupt I (TFl)


[Sampulan Pemasa I (TFI)]

External Interrupt 0 (INTO)


[Sampulan Luaran 0 (INTO)]

Timer Interrupt 0 (TFO)


[Sampulan Pemasa 0 (INTO)]

Serial Communication (RI + TI)


[Komunilcasi Sesiri (Rl + Tl)]

( 6 Marks /lllllrW)
[COJIPOJ. P02}

. 6/14

SULIT
SULIT (DKTll5)
-4-
(c) As Automatic Cutting Machine is used to cut a wire into specific length. Each time
it has completed cutting the wire~ the machine will output a single pulse. The
number of pulse output will represent the total number of wire have been cut. You
are required to design a system based on the 8051 microcontroller that will count
the pulse by incrementing a 8 bit counter represented by 1 bytes of internal memory.
When the total number of wire cut exceeds 200 units, the system will light up one
lamp (LED) and output logic 'I ' to stop the machine. The system also needs an
emergency stop button that will automatically stop/the machine immediately.
{Satu Mesin Pemotong Automatik digunakon untuk memotong wayar lu:pada JXIIYang yang tertentu.
Setiap kali habis memotong wayar, mesin ini a/am mengeluarkan satu denyutan. Nombor denyuton
lu:luaran mewakili jumlah keseluruhtm wayar yang telah dipotong. Anda dikehendaki untuk
mereluWentuk satu sistem berasaskan mikropengawal 8051 yang dopa/ mengira jumlah denyutan
dengan menambah pembilang 8 bit yang diwakili oleh I bait ingatan dalalll4n. Apabila ftnnlah
nombor wayar yang dipotong mencapai 200 unit, sistem tersebut dan menya/akan satu lampu (LED)
dan mengeluarkan logic '1 ' bagi memberlumtikan mesin tersebut. Sistem tersebut juga memerlukan
hutang berhenti kecemosan yang a/can memberhentikan mesin tersebut serta merta secara
automatilc.]

i. Sketch a block diagram for the system.


[Lakarkan gambarajah blok bagi sistem tersebut.]

( 5 Marks I lfllrillh)
{C02/POI, P02,P05}

ii. Write a program in assembly language to control the overall system.


[Tulis aturcara di dalam bahasa himpunan bagi mengawal /u:seluruhan sistem.]

( 10Marks/11UU'W)
{C02/POI, P02,P05J

SULIT
SULIT (DKT225)
-5-
Questioo3
f&JalanJ}

(a) Calculate the count value for Timer 1 to obtain the following baud rate with SMOD
value is 1. (Use 11.0592 MHz as an oscillator frequency).
{Kira nilai pembilang rmtuk pemasa Tl bagi mendapatlum ktuJar baud berilut dengan nilai SMOD
adalah 1. (Gunakan 11.0592 MHz sebagaifrek:uensi pengayun)]

i. 2400bps

ii. 9600 bps

iii. 19200 bps

( 4 Marks I ,.kflll)
fCOJIPOJ, P02J

(b) Write an instruction sequence to initialize the 8051 serial port with the following
setting:
[Tulislron turutan suruhan bagi memulakan liang sesiri 8051 dengan lretetapan berilcut:]

Baud rate 9600 bps


[kmJar baud 9600 bps]

One start bit, eight data bits and one stop bit (mode I)
[satu bit mula, Iapan bit data dan satu bit henti (mod 1)]

Enable receiving
{menga/r:Jifkon penerimaan]

( 6 Marks lllllll'kllh)
[C021P01, P02,P05]

SULIT
SULIT (DKT225)
-~

(c) Calculate the time delay for the following subroutine. Assume the 8051
microcontroller is driven by 12MHz crystal. Show your calculation in details.
{ldrakan lengah masa bagi subru/ine berilrut. Andaikan milrropengawal dipacu oleh hablur 12Milz.
Tunjukkan cara pengiraan dengan terperinci.]

DELAY: MOV RO,tOFFH


LOOP: MOV Rl,tlOO
LOOPl: DJNZ Rl,LOOPl
DJNZ RO, LOOP
RET

( 4 Marks/IIUII"kah)
[C02/POI,P02,P05J

{d) Assume a switch (SW) is connected to pin Pl.5. By using serial port setting in
question 4(b), write an assembly program to monitor the status of this switch and
send two messages to serial port continuously as follows:
{Andailcan satu suis (SW) disambungkan pada pin P 1.5. Dengan menggunalcan ketetapan liang sesiri
dari soa/4n 4(b}, tuliskan sau aturcara dalam bahasa himpunan bagi mengawasi status auis tersebut
dan menghantar duo ma/rlumat ke liang sesiri secara berterusan seperti berikat:]

SW = 0 send "CLOSE"
{SW = 0 hantm "CLOSE'1

SW = 1 send "OPEN,,
{SW= 1 hantar "OPEN'1

Use serial port setting as in question 4 (b).


[Gunakan tetapan liang sesiri seperti dalam soalan 4 (b)]

( 11 Marks I IIUII"kall)
[C03/POJ,P02,1'04,P05J

SULIT
SULIT (DKT22S)
-7-
Section B
{Bahagian B)

This section has THREE (3) question.Please answer TWO (2) questions
[Bahagian ini mengandungi 11GA (3) soalan. Silajawab DUA(l) soalan]

Question 4
[Soaiml4}

(a) Get TWO different between microprocessor and microcontroller. Draw the internal
architecture of8051 microcontroller.
[Berikan 2 perbezaan di antora mikropemproses dan milcropengawal. Lu/ciskan binaan Iaman
8051 mikropengawal]

( 4 Marks/ llllll'bll)
[COJIPOJ. P02J

(b) Briefly explain the following flag bits of the Program Status Word (PS W) register
in 8015.
fl'erang/ran dengan ring/cas bit-bit bendera bagi Pendaftar Status Aturcara Perkataan (PSW) di
lam 8051 seperti berilr:at:]

(i) Carry flag (CY)


[Bendera Pembawa (CY)]
(ii) Auxiliary Carry flag (AC)
[Bendera Pembawa Bantu (A C)]
(iii) Parity flag (P)
[Bendera Pariti (P)}
(iv) Overflow flag (OV)
[Bendera Limpah Atas (OV)]

( 4 Marks I ,.w)
[COJIPOJ. P02}

.8/13
SULIT
SULIT (DKT22S)
-8-

(c) An 8051 subroutine is shown below:


[Satu subrutin 8051 relah ditunju/Wm seperti di bawah:]

LABEL 1: MOV R0,#20H


LABEL2: MOV @RO,#O
INC RO
CJNE R0,#80H,LABEL2
RET

(i) What does this subroutine do?


[Apa/roh yang dilabkan oleh subrutin ini?]

( 2 Marks !IIUU'Iulh)
{C02/POJ,P02,P05J

(ii) Determine machine cycles does each instruction take to execute


fl'entukan kitaran mesin bagi setiap arahan yang dilalrsanalum]

( 3 Marks /llltlFkah)
[C02/POJ,P02,P05J

(iii) Determine bytes size for each instruction?


[I'entukan saiz bait bagi setiap arahan]

( 2 Marks I mtlrkah)
[C02/POI,P02,P05}

(iv) Convert the subroutine to machine language.


[Tukar subrutin tersebut latpada bahasa mesin]

( 4 Marks I mtlrluzh)
[COIIP01,P02,P03.P04,POS,P07~,P010J

(v) Calculate the time for this subroutine take to execute? Assume a 16MHz
clock.
[Berapa lama masa yang diamhil unluk melalrsanakan subrutin ini? Anggapkan frekuensi
jamadalah 16MHz]

( 2 Marks lnuulullr)
[COI/POJ,P02,P03.J'()4,P05,P07,P08,P010}

9/13

SUUT
SULIT (DKT225)
-9-
(d) Briefly explain the function of Interrupt Maskability, Interrupt Priority, Interrupt
Vector, and Interrupt Service. What are the advantages of using interrupts to handle
data inputs and outputs?.
[Teranglwn secara ringlws fungsi sampulcan "nulSirability". sampulran 'priority". sampulcan
"vector" dan sampukan "service". Apa/u:lh kebai/can menggunakan sampukan uniUk mengendali/can
data mamkan dan keluaran.]

( 4 Marks I nuriah)
[C01/P01,P02]

SULIT
SULIT (DKT225)
-1().

Questioa S
[Sotdtua5}

(a) Given 100 numbers is stored at location memory ROM starting at 200H. Write a
program in assembly language to add all the numbers and the average of all
numbers. The total result is stored in R3, the average of the numbers is stored in Rl
and the remainder is in R2.
[Diberi 100 nombor yang di simpon di dalam a/amaJ ingatan bermula 200H. Tuliskan aturcara
dalam bahasa himpunan untult: menambah dan purata semua nombor-nombor tersebut. Jumlah
keseleruhan disimpan di daJQm R3, purata nombor-nombor tersebut disimpan di R1 dan balcinya
di!limpan di R2.]

( 7 Marks I llllri4h)
[C04/P01,P02,P03,P04,POSJ'()7,POB,P010J

(b) Assume the 8051 microcontroller is clocked by an oscillator running a 12MHz.


Connect the unknown signal to be measured through External Interrupt pin (INTI).
Write a program to measure its pulse width.
[Anggapkan mikropengawal 8051 dijamkan oleh pengayun pada 12MHz. Sambungkan isyarat yang
tak tentu untult: diu/au melalui pin Sampukan Luaran (INTJ). Tulislran aturctu'a untult: mengulcur
lebarae~anrenrebutJ

( 8 Marks I III4P'ld)
[COIIP01,P02,P03,POI,POS,P07,P08,P010J

...11/13

SULIT
SULIT (DKTllS)
-11-

(c) Build a Traffic Light Controller which uses port 1 (Pl) 8051 to drive two sets of
Green, Yellow and Red LEDs. The traffic light patterns and durations time for the
East-West and North-South traffic are shown in Table B. Draw the schematic
diagram and write a program to demonstrate the changes in lights patterns. (Wm:All
the duration times must be generated using timer concept such as Timer 1 in Mode
1. Assume the system is controlled by an oscillator running at 11.0592MHz.) .
[Bina Pengawal Lampu lsyarat menggunakan liang I (PI) untuk memtlCil dua set LED hijau, LED
kuning dan LED merah. Kombinasi isyarat lampu dan tempoh masa untuk lampu Timur-Barat dan
Utara-Selatan dituJ?iulck.an dalam Jodual B. Lult:iskan gambarajah skematik dan tuliskan aturcara
untuk memuUukkan perubahtm kombiPUJSi-kombinasi lampu tersebut.. (fetuniuk: Kesemua tempoh
masa mesti/oh dijanalran dengan menggrmakmi kaedah pemasa iaitu Pemasa 1 dalam Mod 1.
Anggapkan sistem tersebut dikawal oleh larian pengayun pada 11.0592Mllz)]

Table B: Patterns for Traffic Light Controller


[Jadulll B: Kombinasi-kombinasi Untuk Pengawal Lampu lsyara]

Green -
Eist-West -- ~
Yellow i"'"~-
North-South
u.r~n
I
R-_. '-~, ---:----' Durations r
--"
I
R~ I -
0 ' W
'-"'t--~-- ~ ~ : 0 j '
(s)-,-.,-1

~
0 I _ _.L 1

~o
,
~_;._ _ J
0 II 1
0 I o
I
.-
I -~: 15 '

I . L : I ~p l
. __1
~-
- 0 0 4
0 ; l F 0

_ _...J__,.___j

( 10 Marks I .IJitll"kd)
[C03/POJ,P02,P(N,P05J

SULIT
SULIT (DKT22S)
-1.2-
Question 6
[Sot~ltm6J

(a) Assume that the 8015 serial port is connected to the COM port of the ffiM PC and
on the PC we are using the HyperTenninal program to send and receive data
serially. The clock frequency for 8051 is 11.0592MHz. Port PO and PI of80S1 are
connected to LEDs and switches, respectively. Use 4800 baud rate. Show in detail
how you calculate 4800 baud rate and write a program in assembly language to
execute the following tasks:
[Anggapkan bahawa liang sesiri bagi 8051 telah disambungkan lutpada liang COM pada IBM PC
dan PC tersebut Ielah menggunakan aturcara HiperTerminal untuk menghantar don menerima data
secara sesiri. Frekuensi masa untulc 8051 adalah ll.0592MHz. Liang PO dan PI Ielah
disambunglrml Ire 8 LED dan 8 auis. Gunalran kadar baud 4800 bps. Twyukkan dengan terperinci
bagaimana cara untuk mengira 4800 lr.adar baud don tuliskan aturcara daJam bahasa himpunan
untuk melalrsanakan knemua tugas seperti berikut:.]

(i) Send to the personal computer (PC) the message "Welcome and Ready!"
[Hantarkan mesej "Welcome and Rsady!" Ire Komputer Peribadi (PC)]

(ii) When the interrupt happen at serial port that receive any data from the PC
and display on LEDs connected to port PO.
{Apabi/o terjadinya sampukan pada liang sesiri kemudian terima sebarang data daripoda
PC dan paparkan ke LED yang disambungkan ke liang PO)

(iii) Get data from 8 switches connected to port P 1 for every 1s delay by using
Interrupt Timer 0 and send it to the PC serially.
[Dapatlrml data dari 8-suis yang disambungkan pada liang P1 setiap lengah 1s dengan
menggunalum sampukan Timer 0 dan hantarkan ke PC secara sesiri}

( 10 Marks I ltUlrkah)
[COIIPOI.P02.P03,P04J'{)5,P07,POB,POlfJj

-13/13

SULIT
SULIT (DKT225)
-13-
(b) Daisy is to be planted for commercialized and it has to be 80% of a good quality
flower. A good one must to be grown with a temperature range 19-24C. To help
detecting this range, a temperature detector is placed in the green house where the
flower is planted and some LED will light up to give warning. Assume that P2 is an
input port connected to a temperature sensor and PI is an output port connected to
LEDs and P3.2 is connected to a buzzer.
[Bunga tklisy akan ditanam ll17luk dijual dan ianya haruslah 80% daripada pengeluaran adalah
yang terbaik. BJmga yang baik mestilah ditanam di dalam suhu di antara 15-2oc. Bagi membantu
mengesan suhu tersebut. pengesan suhu alum ditempatkan di dalam rumah hijau di mana bunga ini
ditanam dan LED ahur menya/Q memberikrlru amaran. Dijangka port P2adolah port masukan yang
disambunglran dengan pengesan suhu manoJr.ala port P 1 adolah port keluaran yang disambrurg/um
dengan LED amaran dan PJ.2 disambungkan padtJ buzzer.]

(i) Draw a schematic diagram for this application.


[Lulriskan gambarajah s~matik untuk aplilrasi ini]

( 3 Marks /1111U'kah)
[COIIPOJJ)2,P03~,POS,P07,POI,POlfJ}

(ii) Write a program to read a temperature and displayed on the LEDs.


According to the result, place the temperature value into the registers
indicated by the following below.
[Tuliskan sebuah aturcara bagi membaca suhu dan memaparkannya pat/a LED.
Berdasarkan keputusan, tempatkan suhu yang dikeSQII ke dalam dqftar yang diberilcan
dalam senarai di bawah.]

If19<=T<=24 then A=T, LED ON


IfT<l9 then Rl=T, LED ON, BUZZER P3.2 ON
1fT> then R2=T, LED ON, BUZZER P3.2 ON

( 5 Marks /1111U'kllh)
[COIIP01,P02,P03,P(UJ)S,P07,POIJ)10}

(iii) Sketch the flowchart according to the given task above.


[Lakarkan carta alir mengibd pehmjuk yang diberilran di alas.]

( 2 Marks I marlulh)
[C04/POJ,P02,P03,P04,POS,P07.P0B,POJO}

-ooOoo-

SULIT
SULIT (DKTllS)
-14-
APPENDIX
{LAMP/RAN/

COURSE OUTCOMES
Understand the theory and basic architecture of
COl
microcontroller.
C02 Ability to write program using assembly language.
Understand and capable to interface the microcontroller to
C03
the 1/0 devices.
Ability to develop a simple application based on
C04
microcontroller system. - .

PROGRAM OUTCOMES
Acquired the ability to apply knowledge of basic science,
POl
and en_g_ineerinc fundamentals
In depth technical competency in a specifiC engineering
POl
discipline
POl Ability to communicate and use ICT effectively
Ability to use techniques, skills, and modem engineering tools
P04 necessary for engineering practice so as to be easDy
adaptable industrial needs
POS Ability to identify problems, create solutions, innovate and
improve current designs and practices
An understanding of professional and ethical responsibilities
P06
and commitment to the community
A recognition of the need for, and an ability to engage in,
life-long Ieeming. In other words, the graduates can adapt to
P07
new situations and demands by applying and/or updating
knowledge and skills
Ability to function effectively in teams in ways that contribute
P08 to effective working relationships and the achievement of
goals both as a leader as well as an effective team player
Ability to have an international perspective on social, cultural
P09
and global respansibilities
An in-depth understanding of entrepreneurship, the process
POlO
of innovation, and the need for sustainable development
Ability to appreciate esthetic values through development
POll and applications of personal judgment i

SULIT
SULIT (DKT22S)
-15-

Appendix 1:
[lampiran 1:]

SvmbaJ .Namt Addms


ACC* Accumulator OEOH
Blil Bre,!stet OR>H
PSW* P!o&!am status wOld ODOH
SP Stack pointer 818
DPI'R. Data pointer l b}'tCs
DPL J.c;,w b\'1e 82H
DPH Hi&hbytc 83H
PO* PortO 80H
PI* Port 1 90H
P2* PortZ OAOH
PJ~ Part3 OBOH
IP* Interrupt priorit~ con1r0l OBSH
IE* ~tenable cont10l OASH
TMOD nmcrleountcr mode eootrol 89H
TCON* Tmtetleounrer comml 8SH
T2CON* TUDerlcounlet:: ccntrol OC8H
T'..MOD Tuncr/eouotcr mode eonttol OC9H
rno Tuner/counter 0 hiP- byte . SCH
Tl.O Tnucr/eountcr 0 low b11e 8AH
THl Tuner/counter 1 high b)1e 8DB
n1 Timer/counter llow ~e SBH
TH2 Tima-/I:OUilter l bi&h byte OCDH
1U Tuncr/colUllcr Z low bl'te OCCH
RCAPZH TIC 2 eaeture reJister hiah b}u OCBH
RCAP"'..L TIC Zcap~UR rcgistc!: low byte OCAH
SCON* Serial COJlJIO! 98H
SBL1f Serial dara buffer 99H
PCON Power control 87H
* Bit-addressable

SULIT
SULIT (DKT225)
-16-

Appendixl:
[lampiran 2:)

1051 TIMDICOmrn:RPROGRAMMING 8lJPIIOirt DATA

TIIMr Medec.a.IRIPI (TMOD)


The TMOD .Rii*' ism SFR and is u.d to cia&. the Tuncr/Counter mocle
operatioa.
TMOD

r=r:I~ I NO I ewe IC:l~l ~ ~ l


Gale bit:
0- U1C iDtcmal (IIOflwam) to start/saap Timer/Couala
1 - - extaDal (hardware pia).., Drtl8tap 11maiCounter

etrbit:
0-Tuner mode
1 - Coualer mode

Ml,MObita
00- Mode 0: 13 bits 1.'imer
01-Mode 1: 16bilsdmer
10- Mode 2: 8 bits timer wi1h auto-reload
11 -Mode 3: Split--mode

n..r c..n~ (TCON)


TCONg
D5

1~1~1~1~1~1~1~Jml
TFl- Tuner 1 '"edlow ftat. Set wileD m... overflows. Clear by software.
Tal -Set EaabJe TiDier 1
TPO -Timer 0 cmd1ow tlaB- Set whea. timer overflows. Clear by aoftware.
TR.O- Set to EDablc Taer 0
lEt - JDtemlpt Bas fiJr Ldea1upt I
m -Set for ueptiw edp fria&a' for lulaaupt 1. dear for leYel triger
lEO-. . . . . ,... 1br Intmupt 0
ITO- Set far DCptive cdae1riaacr for llltCmJpt 0, clear tbr leveltrialer

SULIT
.

SULIT (DKT22S)
17

Appendix3:
[lampiran J:)

1151 SERIAL JIORT PROGRAMMING SUPPORT DATA


S.W C8MNI Rttlfl..r (ICON)
The SOON I'Cii*r is 1D SFR. _. il WIDd a amfiauriac aad lllCJIIitoriDa aial polt.

SOON:E
[:?UisMlJRENI ms JRBIJ n J RI 1

I
BIT NAME DBSCRJPI'ION !
SCX*.7 SMO S.W PmMadt llilO
~ INI . . . r..tllode bJil
SCON.S SM2 .......,...ec......... Balblo
SCOMA REN . . , . . Elllbll
SctiD .....
..
CUltDdluble
.
SCON3 1BI Bitlalmnntob..-..
u.IIIDD-il DMLYI*
SCCJN.2 RBI
.........,..,.bit
Mloln.oeMd"IIW

SCON.l

SCOttO
n
Rl ...........
Set ..._lble.Ia ,. il .
'filfld .........
S8UF ..........
Sct wllra aWIIcliMe-iiJWClllind SBUF

SllO SMl MODE DHcriptioll Baudnt~

0 0 0 Sbi&~ts t;,(;Ki:1~

0 1 1 S.bi1t:ART \'lliabk- i

1 0 -
')
9-bit t:AR.T I DSC I 6401' f O$C I 31

i
I
1 ~
1 l 9-bit t:AR.T '-.riabw I

SULIT
JJ'ID.S

'"' ~
,_ ......
!~

... .
..
"'
..3
111111"
II'
.. lC
::;-~ ;..,;
l!ltlllllll ~:liM
:: :
3 . . . Mill
~ .


II
-~ ' _, A..o1111fl"
.
Ill _;:) All~

"
" -.... ~~

.."...
-:

--.....
I

"I
"Jfl'l- ..... "'~---
,

{:fr UWJdum/]
:tXJpuaddy

(sttDIW ~I'IDS
.

SULIT (DKTllS)
-19-

Appendix5:
[lampiran S:.'
i"
~~-"
..._ICftllilclovl AC
ANL A .. I AND . . . . .IDA<X:
ANL A 1 ...._., AND!ti:C:t~ ID ACC
"AiL 4 A diiU AND JlAM ID Att

lNL
~
: ; ~~SEaE:i::b11
'GaL
'OiL : : :..I;=:-.,:!,~ fi
~
oaL
A
A.
IOR.IJili.............,
I -
.....
Ok-.....cRAMAK::C
Ita:
I :1
~
ORL
ORL
..... . I iiliJMdiiiiie .,_.., dha bYte
4llnd ...._
OR N:CtD clindlp!!
OR

1111: ::-::~1BZTi~
iii:'

:=:---u-;r: II5EC.::i::..
A _. XOR.-...-RAMIOACC
XltL ..!.
""iii:
"'iiL .
_I

...
la.a
em._
""iLC
A
A
g;~ACC
~ RGIIIO lbc ACC Ji8
...._ lbe A.CC IIAIM:iiiiiiCIIIY
_g_ A , ...... Aa:rlJii
. , . _ 1118 ACC rilllt iiii_., C111Y
I ~

:11.
IIIIC
IJWAP
A
A I ............... ACe I
1
1 ..
- J . . . . ______ ...

.,.............. .......
~ _
Tlcr'ITWI~
RET
lurt
--~ -- !la-.

l:ftom
I I
2
2

......
AJMP . . .rll ... .j;iip- I ' I
....... a.. 3
t
2
SIMP ... I ::-..=-th.t-:_ w:-' +1-t2T I 2 I 2

I~ S+DPD ---- l!:~a::QPI1l1 ~ I:


1:=t: ~ ...=.. 1!:-~..i-o~ I ~ I : 1.1 I I
CJN&
A, ...... ...
-, - lm_. . . . .
I Al'r... i....,il MOT .-1 3 2
CINE
... ~ nil
.-dfNalb)te fO
I :::.&::::'_._a NOT-a 3 3
I CI.NB 3 2
......,._ .......... ------
DINZ

......
... ... l _ _,.....,.j1npif
NOT ~~~~a
. ir_NOi__ utinlcl.,_,
NO, --
.....
2

.J
"'i
2
2
I
-.. -
A. ........ nlll":~...':........1-~-~.- 3 2 l

SULIT

; a a 5 ~ I I I I I I I I I I I I I I I I I II I I II r
I
It!=!~
..

.. r
jlllo
r1> > I ! I I I r r r rI r
> >
II > >>
. -.;,0\
;:;

I
:II>

.. . . .. ..
.. .. .. .. .. ..
. ..
,.
~ ~ ~ ~

I I rr 1 1i I >
I f t f I I r I i. I I I'

Ifu r R R I' ~r ;r R.,Jf r r~ i


~, ~, ll i if f if ~~ ;i ff if If If Jf If f f I l~f af If
it r f I I I II ,,lrII ~I r.
ll I f tl i ' I i I i ' R! R" r f 'f r ~ I I r It f l i li
I I f I
~
'P

8 8 I f
~~ i J ' ' J r rI I

'
8
' 8

- ... .. ...... -
... ... ...
w .. ...
w ...
.. ... .,. ... ... ... ... ... .....
w
r .... w w w N 1011 N

- - ... . .. .. .. - ... - .. ... .. ... ... . ... ... ....i


w w N N

n
s
~~
- ~ . ~ -- ~- ~~
~
~