willie68 / RCReceiver

An arduino library for comunicate with a rc receiver
6 stars 3 forks source link

Problem with ATTiny45 and short pulses #2

Open rkopka42 opened 4 years ago

rkopka42 commented 4 years ago

I tried to use the lib in a small RCSwitch (https://github.com/rkopka42/MUX_servos3). It reads one input, sets some pins and makes a small delay (100ms). Everything worked fine with an Arduino Uno. With an ATTiny45 problems started. It seems to get valid time values only for about 1400us and longer pulses. I tried it with 8MHz int. and 16MHz PLL without difference.

I didn't programm a debug version with serial output, so I don't know what value was returned. I finally did a direct interrupt solution which worked.

willie68 commented 4 years ago

hi, thanks for your response. I'll try to reproduce your issue.