This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

make a timer to ..,.well time

I am new so hang with me as i drivel on,

i just want to set up a timer on the MCB900 using an lpc935,
all i want is to count to a second or 2 so i can use this to measure inputs a set time apart.
And before someone replies 'its simple' bla bla bla, keep in mind i am very new to this baby steps first pleeeeeeeeese roy

Parents
  • all i want is to count to a second or 2 so i can use this to measure inputs a set time apart.

    The actual execution will depend on your (more specific) requirements.

    In general, you want to run an isr that counts time at a pre-set interval. And in the isr, you count the number of times the isr has been executed as a way to gauge if a long period of time has passed. You can then set a flag and process that flag accordingly, in the isr or in the main.

Reply
  • all i want is to count to a second or 2 so i can use this to measure inputs a set time apart.

    The actual execution will depend on your (more specific) requirements.

    In general, you want to run an isr that counts time at a pre-set interval. And in the isr, you count the number of times the isr has been executed as a way to gauge if a long period of time has passed. You can then set a flag and process that flag accordingly, in the isr or in the main.

Children
No data