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

ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am