Help with CC1100 RF Modules.


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161

    Default Help with CC1100 RF Modules.

    I am experimenting with the CC1100 (clone) RF modules and find myself stuck in the middle of nowwhere. I have a pair of Demo Boards from the manufacturer on which these modules work perfectly and on all frequencies so it rules out the possibility of the Modules not working. I have had major help from Ron Marcus and Joe Desimone who shared their code with me for a jumpstart.

    Solution:
    I have a demo board of my own made for a 28 Pin PIC MCU (16F876A @ 4Mhz ) with 4 tactile switches, 4 LED's, and LCD (which I don't use) and a RS232 IO. I am just interested in sending a ASCII character from one Board to the other , at the press of a switch. Actual configuaration of portpins is given in the code. I prefer to use 315 Mhz as I have a old IC-R1 Communication receiver (my test equipment) to monitor the frequency for Transmission. On the manufacturer's demoboard i get a clean chirp of data transmission.
    The RF modules that I have , have 5 pins for control, viz: TE (enables PA on Board), CSn, SO,SI and SCLK operating on 5V..

    Problem:
    It just does not Transmit, and the receiver just does not Receive. The reason I tell this is because , I tried transmitting some data from the manufacturer's Demo Board on that frequency and try to monitor the Rx FIFO on my board for any data. I cannot transmit because , i monitor for some Data on my IC-R1 and nothing copied. I am surely doing something worng somewhere. But I can program, verify the registers on the module perfectly. I can also see that Data goes into the TX_FIFO and (hopefully) Flushes out when I enable the TX. I check the TE going High during Tx the same way it happens on the Manufacturer's Demo Board, so no chance of getting that wrong (Active High/Low)

    There are just a few doubts regarding :
    - Register values. These values fairly tally with the values I derived from Smart RF studio for the frequency.
    - Transmit and Receive Sequence. Can someone please tell me the Receive and Transmit sequence with these modules.

    I attach various codes I tried to this thread for some one to help me.

    I once again , sincerely, thank Ron Marcus and Joe Desimone for their help with their code, and look forward to their help once more.

    regards
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Unhappy Help ! Help ! Help ! Help !

    Even a Flowchart or a pseudo code would help.

  3. #3
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Try using shiftout and shiftin. It's one less thing to worry about in your coding. Also, at 4 MHz, I don't believe your pauseus can go much below 20 uS minimum. Use five nops using asm if you need such a short delay. Shiftin uses the 0 mode, and Shiftout the 1.

    Ron

  4. #4
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Next thing to do is to set the registers for continuous transmit of random characters. See if you get an output from the transmitter. At this point, don't worry about what comes out, just that something does. Next, I have smoked a number of cc1100s with only a slight overvoltage pulse. Is it possible to jumper the mfg board processor output to the CC1100 input? This will test the CC1100 in circuit and see if it is operating.I did this with the development kit and saved mucho time.
    that's all for now,
    Ron

  5. #5
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thank you very much.

    Hello Ron,

    Thanks a millon for coming to my rescue. Well a few things I need to understand is what is the sequence to transmit a particular byte thru these modules and What is the sequence to set the Module in receive mode. As you said , there is a lot of grey area in the datasheet , which only explains on how to program the registers. Well I have successfully been able to program the registers and all that what is said on the top.

    OK some inputs to your suggestion. I have been able to transmit some 15 bytes using the method I explained in my previous thread and for sure , I have monitored these signal on my R1 Scanner Receiver.

    How do I
    1. Program the registers for continous transmisson.
    2. How do I program the PA_Table. Is it necessary.
    3. In the abscence of GD0 and GD1 Pins How do I provide an interupt to the MCU for a received packet in the buffer.

    I have many more question to ask, but I just don't want to bother you on that.

    regards


    p.s. I have the Code for the Manufacturer's demo Board in "C" but don't understand Head "NOR" Tail from it. If it helps you , I can send it to you. I just understood that the manufacturer sends the packet at different PA level for possibility that the module is just to near to each other and likewise. More on this later.

  6. #6
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    How do I
    1. Program the registers for continous transmisson.

    If you want to send the data as a packet, it is difficult at best. It's similar to filling up a bucket with water and when it gets to a preset level, the bottom drops out to empty it. The only difference is that it adds a CRC at the end. You can turn it into a transparent transmitter that will just send out anything you put into it, but you lose a lot of good reasons to use the CC1100 in the first place.

    2. How do I program the PA_Table. Is it necessary.

    The PA table is for power ramping in OOK or ASK. I guess it is useable in very restrictive areas for spurious reductions. Only the first address is used for normal use. Just input the value on page37 for the power level you choose.
    Set FREND0.PA_POWER to 0 to choose the first register. PATABLE is $3E.
    RXFIFO is 3F + $80. This is one of those gotchas. Get the transmitter working before you pull any hair out over receive. When you get a chirp, move on.

    3. In the abscence of GD0 and GD1 Pins How do I provide an interupt to the MCU for a received packet in the buffer.

    I believe GDO1 is presented as SO to you. When CS goes high, it becomes a general output. If you change the register data to $07, it will go high when a valid packet is received.

Similar Threads

  1. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 17:42
  2. RF Modules (Zigbee)
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 4th March 2010, 18:28
  3. Low latency Wireless RF transceiver modules?
    By mark155 in forum General
    Replies: 0
    Last Post: - 4th March 2010, 05:20
  4. RF Transceiver modules help
    By davewanna in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th May 2008, 14:54
  5. RF Modules at 433.92MHz
    By Ioannis in forum Adverts
    Replies: 2
    Last Post: - 17th October 2006, 12:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts