473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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 2505
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lionel B | last post by:
Greetings, I am trying to implement "element-wise" arithmetic operators for a class along the following lines (this is a simplified example): // ----- BEGIN CODE ----- struct X { int a,b;
6
by: KublaiKhan | last post by:
The code is: <html> <head> <title>Test Page</title> </head> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="left"><img...
29
by: Merrill & Michele | last post by:
I'm now looking at page 115 K&R. After having discussed counterexamples, I shall herewith and henceforth make all my c programs look like int main(int orange, char* apple) {return(0);} Q1) ...
20
by: Merrill & Michele | last post by:
I am determining how best to call an already compiled c program from another. The following is a program that compiles and shows the information passed: //Text1.cpp #include <stdio.h> int...
0
by: Geoffrey L. Collier | last post by:
I wrote a bunch of code to do elementary statistics in VB, and would prefer to find code in C# to recoding all of the VB code. A search of the web found very little. Does anyone know of a good...
2
by: eBob.com | last post by:
This real novice VB.NET programmer wants to put a "scatterplot" (just a bunch of dots) on his form. There'll be other stuff on the form too, but it's the scatterplot which I need your help on. Is...
8
by: pauldepstein | last post by:
I am writing a program which looks at nodes which have coordinates which are time-dependent. So I have a class called node which contains the private member declarations int date; int month; ...
4
by: bromio | last post by:
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...
11
by: pauldepstein | last post by:
I am using the xlw package as a c++ wrapper for excel functions. In our c++ library, there is an excel function which our c++ developers refer to as DevelopersFunction, and which the excel users...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.