7segment led display
Discussion in "8051 Discussion Forum" started by enisi Aug 27, 2014.
Wed Aug 27 2014, 04:27 pm
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
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
Thu Aug 28 2014, 04:03 pm
Did your professor ask this question to you? I suggest you should draw the segment and try it yourself.
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.
_ |_| |_| 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.
Powered by e107 Forum System