maniacbug / RF24

Arduino driver for nRF24L01
http://maniacbug.github.com/RF24
954 stars 770 forks source link

Timing issue if for startWrite, if not using an external clock #15

Open fiveohhh opened 11 years ago

fiveohhh commented 11 years ago

In RF24::startWrite, there is a coded delay of 15us after power up. This time is in the data sheet as Tpd2stby and only valid for chips using an external clock. I'm using a Sparkfun board (https://www.sparkfun.com/products/691) and couldn't find Ls for the crystal on it, but I was getting odd behavior with the default setting of 150us. I bumped it up to 4ms and all was well.

etemu commented 11 years ago

Could be fixed with a dynamic (clock frequency dependent) delay.