---
+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 20 of 22
  1. #1
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    How to interface cc2500 and 8051 ?

    dear friends

    i am working on a rf tranceiver using chipcon cc2500 and at 89c51
    i would like to get some tips from you experianced people
    can we directly interface the system to the 8051 pins?
    people says that we have to configure the cc 2500 before using
    how's it possible
    will the normal spi interface program will work with the same?


    regards

    ml

    •   Alt23rd January 2008, 04:57

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 9,922, Level: 23

    Join Date
    Nov 2006
    Posts
    982
    Helped
    67 / 67
    Points
    9,922
    Level
    23

    cc2500 configuration

    yes,






    CC2500 can be configured to achieve optimum
    performance for many different applications.
    Configuration is done using the SPI interface.



  3. #3
    Full Member level 3
    Points: 2,238, Level: 10

    Join Date
    Dec 2007
    Location
    Chennai-India
    Posts
    169
    Helped
    24 / 24
    Points
    2,238
    Level
    10

    cc2500

    hi,

    Use Smart RF studio for getting the values to be written before its use. Any controller can configure CC2500 as it is a general 4 wire SPI interface.

    Best of Luck!!!!!!!!!!!!!!



  4. #4
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    cc2500 with 8051

    dear friends

    i just waht to send and receive two or three bytes
    can we connect the 8051 mcu directly to the cc2500?
    the sample codes available at ti site is too complex
    is there any simple codes are available for configuring the chip and to send and receive data?
    what are the possible difficulties you had faced on interfacing?

    thanking you

    ml



  5. #5
    Advanced Member level 3
    Points: 9,922, Level: 23

    Join Date
    Nov 2006
    Posts
    982
    Helped
    67 / 67
    Points
    9,922
    Level
    23

    8051 interfacing with cc2500

    connect the CC2500 with 51 according to the data sheet , use some pull up resistor for each line about 4.7k (for 4 wire).

    and just get the routines for spi from any site like 8051.com etc , and try it .

    it is not that difficult as you think .

    cc2500 :- for us it is just programmable device similar to the 24xx, ds1621 etc.

    thank you.



  6. #6
    Full Member level 3
    Points: 2,238, Level: 10

    Join Date
    Dec 2007
    Location
    Chennai-India
    Posts
    169
    Helped
    24 / 24
    Points
    2,238
    Level
    10

    how to interface cc2500 with microcontroller 8051

    Hi,

    Use a controller which has an SPI interface. It will be much simple



  7. #7
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    i just want to make sure of one thing when iam using cc2500 if i send data in the spi with the default configuration would it transmit it and i can receive it normally ...
    and if that .... how can i interrupt the MCU about data reception

    Best Regards



  8. #8
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    which module you are using?
    do you have the data sheet of the same?
    if so you can check the pin functions
    i think the SO pin will change status when the receive buffer is empty
    and which controller you are using?

    if you can not find the solution, please send me the details of the module that you are using, i will surely try to help you


    ml


    1 members found this post helpful.

  9. #9
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    First of all i want to say thank you microlab

    i am using atmega16l with interface spi to cc2500 mounted in QFM-TRX1-24G

    module with 6 active pins + vcc , gnd ,
    SO SI SCK Csn GDO0 GDO2 connected to the microcontroller iam trying to send low traffic data with any option iam using bascom programming (can be changed )

    i want to understand how to make wireless link using this hardware

    i wich you can help me
    cc2500 datasheet
    http://focus.ti.com/lit/ds/symlink/cc2500.pdf
    QFM-TRX1-24G datasheet in attachment

    thx and best regards



  10. #10
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    i think the output pins can be programmed to show the status of receive buffer
    when the receive buffer is full, the output pin (i think SO) will change the status. now if you are using the hardware spi of atmega it will be difficult to monitor unless you do not connect the pin to the interrupt pin. and when you are communicating eith the rf module, make sure the interrupt be disabled and enable the same after the communication with module. so when the module memory is full, the system will get interrupted and you can use the data. if you can program the gpio pins as the interrupt source, there will not be much complexity.

    regards

    ml



    •   Alt28th May 2010, 10:14

      advertising

        
       

  11. #11
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    thx microlab

    but can you told me steps i can program it to mcu to configure the cc2500
    iam using smartrf sudio , i get initial configuration iam connecting

    PB6/MISO ->SO
    PB5/MOSI ->SI
    PB7/SCLK ->SCK
    PB4/SS ->Csn
    PB2/AIN0-> GDO0
    PB3/AIN1-> GDO2

    how i can configure gdo0 or gd02 to be interrupt

    i want to send small data of robot position and status which well be about 6 bytes
    that it

    i want to ask for something else i will sent packets in mosi and receive it in miso
    iam right ??

    Best Regards



  12. #12
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    for that you need to read and understand the full data sheet of cc2500
    i'd done it abut 2 years back. so i could not recollect all things.
    and i used at89c2051. no spi so the communication purely software based and in assembly. i'd not used the interrupt .
    still i will go through the same
    before that have you tried transmitting and receiving with the module without interrupt?


    ml



  13. #13
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    no , i want to one thing before even try it .... should i use it with its default configuration ... and just to put data in spi MOSI it will work

    thx

    Best Regards



  14. #14
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    u have to find out the initializing values using the smart rf studio
    then initialize the module with it first
    put one module in to transmission and other to reception

    i think it should work


    regards
    ml



  15. #15
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    thank you microlab i got it till now ... the last thig.. can you summarize in steps how can i initialize the module

    i know i am like a a pain but this my graduation project and this is the last step on it


    thx

    Best Regards



  16. #16
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    just use the smart rf studio
    get the value for each values
    configure the module with the values
    put one module as transmitter
    another to receiver

    just give some ms of delays before you transmit

    that's it

    any more queries?


    ml



  17. #17
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    thx alot microlab this is so close .... the last thing ... how can i configure the module
    i.e what pins and sequence i will use to make module in configuration mode

    thx for your help ...... now i think i can use the module easily ..... just the configuration still hard for me ..... i have read the datasheet but still cant get flowchart
    for module configuration

    thx



  18. #18
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi
    since you are you are using the atmega
    you had the spi module in built
    you will get the configuration chart from smart rf studio
    connect the module directly to the spi port of the avr
    go the the program mode
    just send the address of the register first
    then send the data to that register
    if you are writing consecutive register values, you don't have to come out of the program mode, instead you just write the next register value till the value
    else you have to come out of the program mode and go back again to write the next register address and value
    give a small time delay
    put one to transmitter mode and other to receiver mode

    that's it
    you are ready to send and receive data

    regards

    ml



  19. #19
    Junior Member level 1
    Points: 863, Level: 6

    Join Date
    Nov 2008
    Posts
    16
    Helped
    0 / 0
    Points
    863
    Level
    6

    Re: cc2500 and 8051

    hi

    thx microlab i think iam so close ... iwill try it then i will told you the result ... unfortantly i got exams so i will try it after three weeks .....

    but at the last can i ask you question

    what is the function of the pins GDO0 GDO2 its confusing in datasheet something about using them and programming them ????

    thx aslot for your help you are very kind and patient



  20. #20
    Full Member level 5
    Points: 5,121, Level: 16

    Join Date
    Mar 2006
    Posts
    309
    Helped
    43 / 43
    Points
    5,121
    Level
    16

    Re: cc2500 and 8051

    hi

    these pins are general purpose i/o pins
    it can be programmed according to your use
    only way to know in detail is thorough reading of the data sheet

    regards

    ml



+ Post New Thread
Please login
Page 1 of 2 12 LastLast