Has anyone written an nRF24L01 Object?
Whelzorn
Posts: 256
I'm looking for an object that can handle the Nordic nRF24L01 (actually the MIRF v2 from SparkFun). It uses an SPI interface, but I'm running my prop @ 64MHz and the SPI stuff from the BS2 function object say to run them at 80MHz only, so i'm not sure what the issues will be and I'd rather not spend tons of time debugging something like that just to find out it's a problem with the speed.
I noticed the nRF2401(A) object in the exchange, but the nRF24L01 quite different because the 2401 didn't have an SPI interface.
Anyway, if someone's used one of these with ther Propeller project, I'd love to see anything that relates to driving these things.
Thanks
I noticed the nRF2401(A) object in the exchange, but the nRF24L01 quite different because the 2401 didn't have an SPI interface.
Anyway, if someone's used one of these with ther Propeller project, I'd love to see anything that relates to driving these things.
Thanks
Comments
Leon
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 10/21/2007 10:00:21 PM GMT
But like I said if you end up with any spin code to handle this thing at all, I'd love to see it. I really don't understand these chips too well yet.
Somehow one doesn't exist yet in the object exchange...? I looked at the SD card objects, but the SPI driver with them seems to be very specific to SD cards
So if anyone has/knows where a general SPI driver is, I'd love to see it.
I really should read ALL of the post before I reply!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
BTW: I type as I'm thinking, so please don't take any offense at my writing style
My understand of SPI is that it is limited in speed on the top end (going too fast) and not the low end (going too slow).· In other words you should be able to use the SHIFT IN/SHIFT OUT from the BS2 library.· Your application may not get data in/out very fast, but it at least can get the device working and that is a good baby step to do before going for blistering speed.
Hmmm....I wonder why a generalized SPI driver has not been written?· Maybe it is difficult to generalize?· I admit I don't have a lot of experience with SPI, but the items I have worked with seem like the same ASM code could have worked with them and then the difference would be configuration and what was placed in a buffer to send/receive.
I too have a couple of the "Transceiver MiRF v2 - nRF24L01 Module RP-SMA" but I have not gotten around to doing anything with them yet. Unfortunately it is far down my list of items to play with.· I got my WIZnet module for the Circuit Cellar contest the other day and originally that was near the bottom of my list too, but the more I think about it the higher priority it becomes to get it working.· It could happen to the MiRF too!
What is your application for using these items?· What functionality would a Propeller driver need to have?· (I should review the datasheet to see what is possible of the Nordic chip).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark of imagination is all it takes for an idea to explode
http://www.leonheller.com/MiRF%20V2/MIRF%20V2.zip
They are based on the SFE examples for the PIC16F88 which were written for the CC5X compiler. I've tidied them up a lot, and incorporated someone's bit-banged SPI routine.
It should be quite easy to convert them to Spin code. The Test program is useful for checking that your SPI software is working - you should be able to read from and write to the nRF24L01 registers with it. I used the ICD 2 and MPLAB debugger to examine the data, you could output the values to the PC com port.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
http://forums.parallax.com/showthread.php?p=601870
-Kit