Beruflich Dokumente
Kultur Dokumente
Class: …………………………………………………...
ECEN321
Microcomputer principles and applications
Quiz No. 3
Problem. A common Cathode 4-digit 7-segment display is connected to the MSP430G2 board as follows
K1 K2 K3
330Ð
330Ð
330Ð
a f b
11
10
12
9
8
7
a
b
c
d
e h
f
5
6
1
2
3
4
g
K1
e d h c g K2
K3 K4
K4
Write a paragraph of Assembler code in order to show a number 5 on the third digit.
(Note: the common Cathode of the third digit corresponds with the pin K3 as shown in the figure).
Solution: ………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………