468,458 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,458 developers. It's quick & easy.

elementary code needed

can someone help me to make code for digital clock using AT89S52. The
specs of clock are 12 hour clock,am-pm display,use timer interrupts to
have delay.two external inputs to adjust hours and minutes,use 4 digit
hex display multiplexing.

Jul 10 '06 #1
5 2197
bromio wrote:
can someone help me to make code for digital clock using AT89S52. The
specs of clock are 12 hour clock,am-pm display,use timer interrupts to
have delay.two external inputs to adjust hours and minutes,use 4 digit
hex display multiplexing.
Yes I can do it. What do you pay? And what's your instructor's or
boss's email to save you the trouble of forwarding my work?
Socks

Jul 10 '06 #2
bromio wrote:
can someone help me to make code for digital clock using AT89S52. The
specs of clock are 12 hour clock,am-pm display,use timer interrupts to
have delay.two external inputs to adjust hours and minutes,use 4 digit
hex display multiplexing.
<http://www.google.com/search?hl=en&q=AT89S52+clock&btnG=Google+Search&me ta=>
Jul 10 '06 #3
bromio wrote:
>
can someone help me to make code for digital clock using AT89S52. The
specs of clock are 12 hour clock,am-pm display,use timer interrupts to
have delay.two external inputs to adjust hours and minutes,use 4 digit
hex display multiplexing.
Yes, someone can. No, no one will.
--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Jul 10 '06 #4
"bromio" <br*******@yahoo.com>, you wrote:
elementary code needed
The code you describe below is in no way "elementary".
can someone help me to make code for digital clock using AT89S52. The
specs of clock are 12 hour clock,am-pm display,use timer interrupts to
have delay.two external inputs to adjust hours and minutes,use 4 digit
hex display multiplexing.
Basically, what you said is, "I have neither the money to hire
someone to do my firmware project for me, nor do I have the
competence to do it myself; can someone please do it for me
for free?"

No.

But for a price, yes.

Where are you located? I'm in Tustin, CA. Dial 411, say
"Tustin, California" and "Robbie Hatley". Call me and we'll
talk business.

Or if you just want general C++ hints, here's a clock program
I wrote a while back; you can have this for free:
// clock3.cpp

#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <time.h>

using std::cout;
using std::endl;

std::string GetTimeString();

int main(void)
{
cout << GetTimeString() << endl;
return 0;
}

std::string GetTimeString()
{
// Get calendar time:
time_t caltime; // variable to hold calendar time
time(&caltime); // Assign time to caltime using std. lib. "time" function.

// Generate struct tm structured version of caltime:
struct tm StructuredTime; // variable to hold structured time
StructuredTime = *localtime(&caltime); // Load structure.

// Make C-string and load with formatted time:
static char FormattedTime[51];
for (int i=0;i<51;++i) FormattedTime[i]='\0';
strftime(FormattedTime, 50, "%I:%M%p, %A %B %d, %Y\n", &StructuredTime);

// Convert to C++ style string and return this string:
std::string Time = FormattedTime;
return Time;
}
You'll have to figure out how to funnel the time info into your
hardware. Do your own research. Google is your friend. Either
that, or call me and offer me money.
--
Cheers,
Robbie Hatley
East Tustin, CA, USA
lone wolf intj at pac bell dot net
(put "[usenet]" in subject to bypass spam filter)
http://home.pacbell.net/earnur/
Jul 11 '06 #5
On 10 Jul 2006 09:43:55 -0700 in comp.lang.c++, "bromio"
<br*******@yahoo.comwrote,
>can someone help me to make code for digital clock using AT89S52. The
It would almost be worth it if you could tell me where to get a good
full C++ compiler for the AT89S52. But the purpose of comp.lang.c++
is to help you with C++ usage, not to do it for you. The guys over
at comp.arch.embedded who know AT89S52 are not going to want to do
it for you either, so be ready to show how far you got on your own
before asking.

Jul 11 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

29 posts views Thread by Merrill & Michele | last post: by
20 posts views Thread by Merrill & Michele | last post: by
2 posts views Thread by eBob.com | last post: by
8 posts views Thread by pauldepstein | last post: by
4 posts views Thread by bromio | last post: by
11 posts views Thread by pauldepstein | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.