Re: PIC : how to make multiple non-blocking delays with one timer




"Ian Bell" <ruffrecords@xxxxxxxxx> a écrit dans le message de news: duep2h$rv5$1@xxxxxxxxxxxxxxxxxxxxx
BrunoG wrote:

Hi,

I had many requests about pic timers, so that I wrote a little C example
to show how to make multiple non-blocking asynchronous delays with only
one pic timer :


http://www.micro-examples.com/public/microex-navig/doc/099-timers-delays.html

Comments & questions are welcome

Bruno

2K of code is a bit of an overkill. I have done created a complete time
triggered prioritised cooperative scheduler on the 8051 in less than 200
bytes. Code can be found here:

http://www.8052.com/users/redtommo/ttcs.html

an


Thanks for reply, but please do not compare C code with ASM code, PIC code and 8051 code, and two different applications !

Your code is surely efficient in its categorie, which is different than mine.

Bruno

.