Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

30 seconds timer using 7 segment

Status
Not open for further replies.

dnhuruag

Junior Member level 1
Joined
Jul 23, 2007
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
hi...

i need help with my project... i am using a PIC16F877A and my compiler is MikroC from mikroElektronika... one of the features of my project is that it uses a 30 seconds timer using two 7 segments... how to do it? i would be grateful any means of help...

thanks in advance... and more power....
 

ubna

Advanced Member level 4
Joined
Jul 25, 2007
Messages
112
Helped
14
Reputation
28
Reaction score
5
Trophy points
1,298
Location
India
Activity points
1,819
Do you want to design the timer entirely or just display 30 seconds in 7 segment...
 

dnhuruag

Junior Member level 1
Joined
Jul 23, 2007
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
thanks for the reply...

yah... just only the 30 seconds timer and not the full clock design... i think i would need two 7 segments but my problem is how i gonna do it and how to coincide the clock into the real time clock... i am using a mikroC compiler... hope you can give me some ideas... thanks in advance and more power.... :)
 

ubna

Advanced Member level 4
Joined
Jul 25, 2007
Messages
112
Helped
14
Reputation
28
Reaction score
5
Trophy points
1,298
Location
India
Activity points
1,819
I am not familiar with mikroC compiler. But i can tell u something..

If you are going to just program the existing timer to count 30 seconds, you can use the timer instructions to make it run for 30 seconds, in which you would get the output in hexadecimal values which you can convert to BCD and then use IC7447 to convert it to 7 segment format..

If you are going to design a custom timer, you need to get the clock signal of the microcontroller and just make a counter to count the no. of clock signals.Since the clock time period of the microcontroller is known you must calculate how much cycles does it need to make 1 second. At this value make the counter reset and use another counter to keep track of the seconds.Now You just need to get the output of the second counter to the display.Make the counter to be reseted after 30 seconds...
 

dnhuruag

Junior Member level 1
Joined
Jul 23, 2007
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
ahhh... so that's how it goes... thanks for the idea.... if it's ok with you, can you give me an example code so that i can experiment with it. so that i can fully understand the operation.... thanks again people.... :)
 

ubna

Advanced Member level 4
Joined
Jul 25, 2007
Messages
112
Helped
14
Reputation
28
Reaction score
5
Trophy points
1,298
Location
India
Activity points
1,819
Do you want code for the timer in vhdl?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top