CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

delay_ms problem when using nRF24L01P driver

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
edi



Joined: 22 Dec 2003
Posts: 82

View user's profile Send private message

delay_ms problem when using nRF24L01P driver
PostPosted: Thu Jun 13, 2013 1:18 am     Reply with quote

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?
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 5:14 am     Reply with quote

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: 19341

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 8:13 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 8:37 am     Reply with quote

I use :
nRF24L01+ full driver by Eduardo Guilherme Brandt

http://www.ccsinfo.com/forum/viewtopic.php?t=47351&highlight=nrf24l01
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group