PDA

View Full Version : RCtime timeout



chriroz
- 2nd May 2007, 12:11
hi,

I have a project in wich i use the RCtime commando a lot
every time i use rctime it costs me 0,131 seconds. this is realy slowing my program down. is there a possibility to give it a timeout of about 50 ms?

Chris

Acetronics2
- 2nd May 2007, 13:10
RCTime can be used in plenty of ways !!!

What is connected to the µP PIN ??? lil' scheme is welcome ...

Alain

Ingvar
- 2nd May 2007, 15:06
If you're using a 20MHz clock RCTIME will "timeout" after 0,131sec(65535*2us). By using ......

DEFINE PULSIN_MAX 25000

....... it will timeout in 50ms(25000*2us). It's all in the manual.

/Ingvar

chriroz
- 2nd May 2007, 15:45
thats exactly what i needed,

thanks!