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
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 ?
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.
Good luck anyhow, though.
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.
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 ?
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 http://www.avrfreaks.com /
to see if there is code there.
D. Jay Newman ! Author of:
email@example.com ! _Linux Robotics: Programming Smarter Robots_
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.