Discussion in "8051 Discussion Forum" started by    enisi    Aug 27, 2014.
Wed Aug 27 2014, 04:27 pm
#1
Port 0 is connected indicator 7 segments, so that "1" in the respective bit of spark respective segment (P0.0-a,-b P0.1, P0.2-c,-d P0.3, P0.4 E, P0.5-f,-g P0.6). The contents of all internal memory locations is 00h.
a) after MOV P0, # 06h indicator lit at number 1
b) after MOV P0, # 3FH we lit indicator number 0
c) instruction MOV 80h, # 80h turn on number 8
d) after 80h MOV, & FH we lit indicator 8
e) if the indicator has been heated 8, after 06h MOV, P0 will be lit 6
which answer is correct, I hope somebody will help me.
With respect Enis Krasniqi
Wed Aug 27 2014, 04:35 pm
#2
It can be more than one ansawer correctly
Thu Aug 28 2014, 04:03 pm
#3
Did your professor ask this question to you? I suggest you should draw the segment and try it yourself.

 _
|_|
|_|
to print 0 on segment
 _
| |
|_|

For '0' - Segments should be enabled like this
g f e d c b a
0 1 1 1 1 1 1 = 0x3F

So answer 'B' is correct. Similar way find out other answers yourself.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

scaneraNom
Sat May 04 2024, 02:21 am
gtaletrzua
Fri May 03 2024, 10:55 am
Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am