We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
how would i create a real time clock on the s100 board from denner-electronics? what i want to do is be able to log the secs,mins, hours etcetera that a certain digital i/o is on. thank you very much andre
Use one of the 8051's timers to give you an event every second (or whatever) - then it's just a matter of counting the events, and remembering 60 seconds in a minute, 60 minutes in an hour, etc, etc,...
yes, i know that is what i would have 2 do just not sure how exactly to configure the timer so i get an interrupt every second if somebody could maybe help me there?
Hi Take a look Here. http://www.esacademy.com/faq/calc/ /Ingo
And here http://www.codearchitect.org/
Thanks for the help so far. But can somebody please give me an example of a timer configured to interrupt either once every second or at a specific interval, so I can calculate from that seconds, mins etcetera. using the s100 board, it osc is 14.7456 & using a 8051f023 chip.
all you need is in "the bible" here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf Erik
There are examples in the C51 downloads area: http://www.keil.com/download/list/c51.htm
i have those examples actually trying to configure the timer0 example, but i just do not know how to set the interrupts to occur for example every 10ms, which would enable me to know that if the interrupt occurs 100 times, i have a second. i have lots of examples, and i know how to make the timer go into an interrupt, i just do not know how to configure that interrupt to occur at intervals i want it to
i just do not know how to configure that interrupt to occur at intervals i want it to If you had read "the bible" you would. Erik
The operation of the timers is described on pp6-8 in Chapter 3 of "the bible", cited earlier. You may also want to look at the 8051 & 8052 tutorials at http://www.8052.com/tutorial.phtml