elementary programe in C

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.

Reply to
bromio
Loading thread data ...

When is your homework assignment due?

Dave :)

Reply to
David L. Jones

bromio scrobe on the papyrus:

If the program is as elementary as you say, then how come you can't write it yourself?

Reply to
John B

formatting link

Reply to
Joe G (Home)

Joe G (Home) scrobe on the papyrus:

I wonder if the OP can cope with converting 8051 assembler into 'C'. I guess we'll soon find out.

Reply to
John B

NNTP Posting Host: 203.148.64.18

Pakistan, eh?

Michael

Reply to
mrdarrett

ive been assigned to do this job within 10 days. but have to do hardware work as well so im left with at the most 5 days.

Reply to
bromio

Yes.

inetnum: 203.148.64.0 - 203.148.79.255 netname: beaconet descr: Beaconhouse IT Services ISP descr: Lahore , Pakistan country: PK

Makes a change from India I guess ?.

Graham

Reply to
Eeyore

It shouldn't actually take you more than 5 hours if you knew where to start.

Let me suggest some pointers.

Do any of the 8051 timers have the ability to generate interrupts at 1 sec intervals ?

If not, how will you create a 1 second based timer ?

How will you then use that 1 second based timer to update the time and display ?

How many of the above need to be interrupts and which can be in MAIN ?

Graham

Reply to
Eeyore

With all due respect bromio, it sounds like you might be in over your head. Makes no difference if it's a class assignment or a job. If this is the case, you shouldn't bite off more than you can chew. You might still be able to figure it out and pull it off if you're one of those super-bright types though.

That said, -I- don't know how to do what you want to do either. But I wouldn't have taken on the job in the first place (at least not with that kind of deadline) and/or I wouldn't be asking for someone to figure it out for me.

Sorry.. Good luck anyhow, though.

-phaeton

Reply to
phaeton

Or just buy one of these:

formatting link

phaet>

Reply to
Gordon McComb

Gordon McComb scrobe on the papyrus:

. .

And you even get a free PCB layout and silk screen on the website.

Reply to
John B

As a general rule, people on these groups won't help with homework requests like this unless you have shown that you have at least had a go yourself. Have you even started?, what language are you using? Do you have any 8051 programming experience at all? This is fairly easy for someone experienced in 8051 programming, a few hours work. But for a beginner it's going to take a *lot* longer than that. I suspect you've bitten off way more than you can chew here.

Dave :)

Reply to
David L. Jones

Yeah, but no code. Damn! So close...

-- Gordon

Reply to
Gordon McComb

yup,ive done everything which i could and even i have postd the whole code for a check in other grops as well. Im offcourse begineer thats why im askin..

Reply to
bromio

Have you yet written the equivalent of a 'hallo world' programme to run on the

8051 ( I'd choose something very simple like getting it to flash a led ) and successfully programmed the chip and seen it run ?

Graham

Reply to
Eeyore

bromio scrobe on the papyrus:

. . .

actuelly C requiers a goud nowlege of speeling and gremmer, as if yoo doesn't speel wurds rite then yu gets "SYNTAX ERROR" evelywere.

Good Luck.

Reply to
John B

Timers and timer IRQ handling examples are here;

formatting link

Reply to
Frithiof Andreas Jensen

On 11 Jul 2006 20:28:54 GMT, in message , "John B" scribed:

Oh holy shit. I've pissed my pants. Have to go to bed now!

Reply to
Alan B

You have mentioned that this is a "job". In which case your are asking somebody to do the programming for you without being paid.

I'm sure that there are *many* people in this group who can do the job for you for their consulting rate.

Otherwise I would suggest you search around

formatting link
see if there is code there.

Reply to
D. Jay Newman

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.