473,408 Members | 2,734 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,408 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 2509
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.