I'm using 16F1829 and the nRF24L01P driver.
I want to run the device @ 32MHz and using #use delay(clock=32M)
It work fine till I operate the nRF24L01P driver.
Now delay_ms(20) become 1.5 Sec...
Does anyone know how nRF24L01P driver impact the delay function?
Perhpas you've set the 'build configuration' to 'debug' and not 'release' ?
Maybe you've got ICD=true, or debug enabled ?
hth
jay
Ttelmah
Joined: 11 Mar 2010 Posts: 19383
Posted: Thu Jun 13, 2013 8:13 am
Who's/what nRF24L01P driver?.
There have been several posted in the past.
The way that a delay could get extended like this, is that the driver code is sitting for most of it's time in an interrupt handler (breaking the rules about handling the hardware job, and getting out quickly.....) If it is sitting for 98.7% of the time inside an interrupt handler, then the main code will get run at 1.3% of it's normal speed....
Best Wishes
edi
Joined: 22 Dec 2003 Posts: 82
Posted: Thu Jun 13, 2013 8:37 am
I use :
nRF24L01+ full driver by Eduardo Guilherme Brandt
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum