Sign in

username:

password:



Not a member?

Search hc11



Search tips

Subscribe to hc11



Ads

Discussion Groups

Discussion Groups | M68HC11 | Need help On 24 hour program

Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).

Need help On 24 hour program - aznxstryder - Nov 16 14:49:00 2004


I dont know how to begin or where to start on this program. Its
basically writing a prog that keeps track of time. it can be
military or standard. the problem is, i dont know to to begin to
write it or how i would write the prog. Any help would be greatly
appreciated.






(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )


Re: Need help On 24 hour program - Tony Papadimitriou - Nov 16 15:04:00 2004

Begin by thinking out the problem instead of immediately asking for help.

Do you know how to delay a second (the basic unit of human time)? You should,
it's basic stuff. In its simplest form (without using special timers or
interrupts or anything that a novice would consider hard) write a loop that does
nothing for so many (figure it the number by reading the HC11 reference) cycles
for your crystal frequency that will make one second of real time pass.

Then, do you know that 60 seconds add up to a minute, 60 minutes add up to an
hour, and so on.

What is so difficult then to not know where to begin?

This is basic it has got to be homework, right?
----- Original Message -----
From: "aznxstryder" <>
To: <>
Sent: Tuesday, November 16, 2004 9:49 PM
Subject: [m68HC11] Need help On 24 hour program >
> I dont know how to begin or where to start on this program. Its
> basically writing a prog that keeps track of time. it can be
> military or standard. the problem is, i dont know to to begin to
> write it or how i would write the prog. Any help would be greatly
> appreciated.





(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )

Re: Need help On 24 hour program - aznxstryder1 - Nov 16 15:14:00 2004


--- In , "Tony Papadimitriou" <tonyp@m...>
wrote:
> Begin by thinking out the problem instead of immediately asking
for help.
>
> Do you know how to delay a second (the basic unit of human time)?
You should,
> it's basic stuff. In its simplest form (without using special
timers or
> interrupts or anything that a novice would consider hard) write a
loop that does
> nothing for so many (figure it the number by reading the HC11
reference) cycles
> for your crystal frequency that will make one second of real time
pass.
>
> Then, do you know that 60 seconds add up to a minute, 60 minutes
add up to an
> hour, and so on.
>
> What is so difficult then to not know where to begin?
>
> This is basic it has got to be homework, right?
>
> tonyp@a...
>
You Made it sound so easy. the problem is, i dont know how to
convert it into m68hc11 language. Plus, I have to be able to display
it on the Led of the M68HC11 evboard.





(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )

RE: Re: Need help On 24 hour program - Redd, Emmett R - Nov 16 15:28:00 2004

> -----Original Message-----
> From: aznxstryder1 [mailto:]
> You Made it sound so easy. the problem is, i dont know how to
> convert it into m68hc11 language. Plus, I have to be able to display
> it on the Led of the M68HC11 evboard. Then start with the easy parts. I was once taught that a person could
not keep more than 3 ideas in their head at once. You seem to be
juggling many more. Write some of the easy ones down (and temporarily
forget them) so some difficult ideas can fit in your head.

Emmett Redd Ph.D. mailto:
Associate Professor (417)836-5221
Department of Physics, Astronomy, and Materials Science
Southwest Missouri State University Fax (417)836-6226
901 SOUTH NATIONAL Dept (417)836-5131
SPRINGFIELD, MO 65804 USA




(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )