Back to Basics with TRF 2.4G

Hello pals!!! Sadly, I’m here agian…

Last time I posted, I said I’ve make them work. Well that’s absolutely true, but know I’m stuck again, because I want to learn more about this module and I’m working with a whole new circuit.

Hardware is 100% tested and works fine… I think the problem is software.

As I couldn’t move forwards with the new project i decided to go back to the working one and try to understand why the new one isn’t. What I do is change things in the working project until it stop working, so I can figured out what could be the problem with the new one.

Some curious things happend… :shock:

My first guess was that it was all about timming. But I deleted EVERY line refered to this in the working project and it still works… I mean, there’s no delay no nothing and it still works.

The working project works with a SPI at 1Mbps… The next thing to do was change the baud rate… Now here’s the problem… No matter what speed I set up, the module won’t work unless the speed is 1Mbps. With or without the timming.

That’s killing me!!!

Please help! :cry:

I forget something…

As you know, if you connect the module to 3.3v and set CE high and CS low, without sending any config work, the module will work as a Transmitter in Direct Mode by default, rigth? So if you do so and scope the DATA pin you should see it toggling.

Now, if you config it as a Receiver in ShockBurst Mode and set CE high and CS low, then the DATA pin won’t toggle and remain at ~3.3v. (That is if you don’t retrive the data from the module)

So I guess this is a good way (and excellent one) to verify if at least you’re entreing in config mode. That’s the closer you can get to a feedback.

Well, as I said in the prev post it won’t work unless the speed of the SPI is set to 1Mbps.

When I change the speed (either higher or lower) I can tell I’m not entering in config mode because the DATA pin toggle when it shoudn’t. Is like the module won’t recive the config word I send.

Do anyone have any idea of what could be goign on???

Hi, i´m working with shockburst at 1Mbps (on air) 8bit CRC, 5 bytes addres, 5 bytes payload…

00 28 00 00 00 00 00 xx xx xx xx xx A1 6F 05 (config word)

when I use a clock in the spi port of the micro (pic16f887) in 250k or 125k i can´t have data on the receiver… but only on 62500 in the spi speed I can receive… I use 115.2K in usart, my fosc is 4Mhz…

which was the speed at spi port on your microcontroler??