View previous topic :: View next topic |
Author |
Message |
wynnet
Joined: 02 Dec 2003 Posts: 15
|
delay_ms and timer0 |
Posted: Sat Jan 31, 2004 3:25 pm |
|
|
I use timer0 or RTCC as my main timer interrupt, I also use delay_ms() function.
Does delay_ms() also use the same timer0 to perform the delay?
What timer does the delay_ms()?
Do I have to care about any conflict or side effect? |
|
|
Ttelmah Guest
|
Re: delay_ms and timer0 |
Posted: Sat Jan 31, 2004 3:27 pm |
|
|
wynnet wrote: | I use timer0 or RTCC as my main timer interrupt, I also use delay_ms() function.
Does delay_ms() also use the same timer0 to perform the delay?
What timer does the delay_ms()?
Do I have to care about any conflict or side effect? |
The CCS 'delay' functions, are purely software based. As such, you can use any timers you want without problems, but (of course), have to remember that these software delays will not be accurate, if the system interrupts during the loop.
Best Wishes |
|
|
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
|
Posted: Mon Feb 02, 2004 10:26 am |
|
|
Another way to look at delay_x()
It means waste enough instruction cycles to pass this much time. |
|
|
|