??? 04/25/11 06:08 Modified: 04/25/11 06:27 Read: times |
#182020 - Bad answer Responding to: ???'s previous message |
Trangga Findanugroho said:
Because:
1. Timer1 is used for UART generator 2. Timer0 is used for Thicking every one second. So I haven't got any timer to do only 10ms. So what is magical about ticking every 1 second? I have many microcontroller projects where a timer ticks every 10ms and each interrupt counts a 100-step counter to count down every second. As long as one requirement is n times faster than another requirement or one requirement is m times a common base and the other requirement is n times a common base, then you can almost always use the timer for solving multiple timing requirements. So please return back with a better answer. What is magical about your 1 second ticks, that makes it impossible/impractical to generate them from a 10ms timer? Edit: And while you do answer - what is wrong with reading back the contents of the baudrate timer to measure time? |
Topic | Author | Date |
How to Delay | 01/01/70 00:00 | |
Counting cycles | 01/01/70 00:00 | |
But *not* in a HLL | 01/01/70 00:00 | |
the problem with cycle counting ... | 01/01/70 00:00 | |
ok | 01/01/70 00:00 | |
??? | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
So what do you do? | 01/01/70 00:00 | |
sounds crazy | 01/01/70 00:00 | |
again | 01/01/70 00:00 | |
Why *no*t using timers? | 01/01/70 00:00 | |
Why no timers.... | 01/01/70 00:00 | |
"Software" Timers | 01/01/70 00:00 | |
for another delay | 01/01/70 00:00 | |
Bad answer | 01/01/70 00:00 | |
Why ignore replies? | 01/01/70 00:00 | |
Output-only mode | 01/01/70 00:00 |