Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

dual 7 segment counter

Status
Not open for further replies.

i_engineer

Member level 1
Joined
Mar 29, 2009
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,508
hello everyone !
i want to counting 0 to 20 on common anode dual seven segment
please anybody tell me c code or any algorithm
i have attached image file with this post
thank you
 

Attachments

  • 0 to 20 count.bmp
    88.8 KB · Views: 114

It's okay !
I want dual seven segment counter using only one port.
 

Thank you Dayanpad

i write code for display "00" on two seven segment

but i do not know how to increment "00" after 1 second and display "01" on seven segment
#include <REGX51.H>
sbit cntr1 = P1^0;
sbit cntr2 = P1^1;
#define disp P2

void delay(unsigned int time)
{
int i,j;
for(i=0;i<time;i++)
for(j=0;j<1275;j++);
}

void main()
{
while (1)
{
cntr1 = 1;
cntr2 = 1;
disp = 0xc0;
delay(135);


}
}
 

hello everyone !
i want to counting 0 to 20 on common anode dual seven segment
please anybody tell me c code or any algorithm
i have attached image file with this post
thank you


Which micro controller you are using
 

Hello !

I am Using AT89c51 Micro controller
 

Hello !

I am Using AT89c51 Micro controller

Let me know that you need to know the logic how program multiplexing or any others, I mean if you know how multiflexing work
it is not important what langage or what microcontroller you are using
 

yes

If you give me some logic then i can build the code...

give me details of multiplexing & algorithm for my dual seven segment counter
thank you
 

Hi guys I have same problem I need to show counter on seven segment which count from 99 to 0, using PIC microcontroller and assembly language ,
any idea ? thanks
 

yes

If you give me some logic then i can build the code...

give me details of multiplexing & algorithm for my dual seven segment counter
thank you

movlw b'00000001"
movwf portc ( set digit one Cathode)

movlw 06,5B,4F,66,6D,7D,07,7F,6F ( one of this)
movwf portd

movlw b'00000010"
movwf portc ( clear digit one and set digit two Cathode)

movlw 06,5B,4F,66,6D,7D,07,7F,6F ( one of this)
movwf portd

manage proper delay to cheat your eye

this is simple operation logic of multiplexing, now you can think and improve
 
movlw b'00000001"
movwf portc ( set digit one Cathode)

movlw 06,5B,4F,66,6D,7D,07,7F,6F ( one of this)
movwf portd

movlw b'00000010"
movwf portc ( clear digit one and set digit two Cathode)

movlw 06,5B,4F,66,6D,7D,07,7F,6F ( one of this)
movwf portd

,
manage proper delay to cheat your eye

this is simple operation logic of multiplexing, now you can think and improve


thanks a lot sir
The following are the design considerations to be followed:
1. Set the time using a DIP switch (maximum value is 99 seconds)
2. The setting values should be displayed on the seven segment display
3. The spin process should begin when the start button is pressed and then
„h START the Motor (LED ON)
„h The display value on the seven segments should start counting down
4. When the value is zero, STOP the motor (LED OFF)
5. Also modify the spin timer by increasing or decreasing the rotational speed
 

please some1 give a proper answer to the question...otherwise all these crap answers are of no use
thanks
 

please some1 give a proper answer to the question...otherwise all these crap answers are of no use
thanks
Did you take action to try the code? If just read and try understand just by reading, you will never do it.
Since, I'm not using Atmel microcontroller and not using assembly language, then not give much commitment here.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top