Discussion in "Project Doubts" started by    saxenanitesh    Mar 3, 2008.
Thu Jan 03 2013, 03:33 pm
thanks majoka but im still confused how to connect 7 segment display with ic AT89s52..can you show how to connect it?
Sun Jan 13 2013, 07:15 pm
@ sk8ter_jawe
simply connect a,b,c,d,e,f,g segments to each other and then finally with microcontroller
then you need of multiplexing
send 1st segment data on controller port and switch on the 1st transistor
now send 2nd segment data on controller port and switch on the 2nd transistor and so on
at a time one transistor should on

http://www.8051projects.net/t37289/8051-discussion-forum/source-code-circuit-diagram-for-8-seven-segment-fully-working.htm
Wed Jul 17 2013, 04:38 pm
I have a doubts in the coding.
1.the line means that "JNB SEN2,$",if sen2 is 0,then it keeps on waiting until it becomes 1.am I right?
2. the visitor count will be in the label "visitor" or "count".is count the number of digits?
3.In the coding port 2.7 is labeled as light.if I want to add another light which glows when visitor count goes certain limit,can I add it at another port as "light1 equ p2.8" and where should I add the condition like "if(visitor==50) setb light1" in the code?
can anyone help me.
4.why value_1 and value_2 are first assigned 15h and then 00h ?
5.please can anyone explain the logic of interrupt program alone?


[ Edited Wed Jul 17 2013, 09:37 pm ]
Fri Jul 19 2013, 12:09 am

1.the line means that "JNB SEN2,$",if sen2 is 0,then it keeps on waiting until it becomes 1.am I right?

gsriram187


Yes right..

2. the visitor count will be in the label "visitor" or "count".is count the number of digits?

gsriram187


Visitor count will be stored in VISITOR and COUNT is used to switch between 7-seg display.

3.In the coding port 2.7 is labeled as light.if I want to add another light which glows when visitor count goes certain limit,can I add it at another port as "light1 equ p2.8" and where should I add the condition like "if(visitor==50) setb light1" in the code?

gsriram187


yes you can add one more the same way Port 2.7 is used. but there is no P2.8 in 8051 you can use any other free port pin though.

search for following area where LIGHT is turned on

UP_COUNT:
SETB LIGHT
INC VISITOR


here after visitor is incremented you can compare visitor value and see if its greater than 50 and accordingly turn on your second light.. but you have to take care the same thing for turning off of lights.
 gsriram187 like this.
Fri Jul 19 2013, 10:01 pm
thanks for the reply.sorry for that port "2.8".i will try changing that code.
Sat Jul 20 2013, 10:21 pm
hi.i don't have the ride compiler.i am not able to download it too.can anyone convert this file into hex file and give me.i have just changed the port number assignments of the display as of now..


[ Edited Sun Jul 21 2013, 09:22 am ]
Sat Jul 20 2013, 10:22 pm
room.a51 in that zip file.
Attachment
Sat Jul 20 2013, 10:24 pm
also I can't understand why value_1 and value_2 are initialized to a value 15h and then changed to 00h
Wed Jul 24 2013, 07:29 pm
please anyone reply.can someone give me the link to download ride software (evaluation or free version).because I should program the controller soon.
Wed Jul 24 2013, 08:30 pm
This code does look much different to Keil assembly code.
Have you tried to convert it to Keil ?

edit
Should be
This code does not look much different to Keil assembly code.


[ Edited Thu Jul 25 2013, 08:08 pm ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am