By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,820 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,820 IT Pros & Developers. It's quick & easy.

elementary code needed

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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

P: n/a
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.