Carlos Cabral

Counting Seconds

Discussion created by Carlos Cabral on Oct 23, 2008
Latest reply on Oct 24, 2008 by Rich Testardi
Hello there,


In my application, I must be able to count seconds (1-10 seconds). This will be the time a LED will be on.
I use the MCF52221. The application doesn't need to run in full clock speed. I thought I could use the general puporse timers, but using the original clock, a second would be to much time for the counter to count. So, I think I need to divide the clock of the system, but there are to much options (internal oscillator, relaxation oscillator) and configurations.

Again, I simply need to be able to count seconds. What is the smartest way to do that?

(sorry for the newbie question, again. I'm just a brazilian undergrad student trying to learn everything by myself)

Thanks!



Outcomes