Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to interface cc2500 and 8051 ?

Status
Not open for further replies.

microlab

Full Member level 5
Joined
Mar 4, 2006
Messages
309
Helped
44
Reputation
88
Reaction score
35
Trophy points
1,308
Activity points
3,253
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
 

cc2500 configuration

yes,




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

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!!!!!!!!!!!!!!
 

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
 

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.
 

how to interface cc2500 with microcontroller 8051

Hi,

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

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
 

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
 
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
https://focus.ti.com/lit/ds/symlink/cc2500.pdf
QFM-TRX1-24G datasheet in attachment

thx and best regards
 

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
 

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
 

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
 

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
 

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
 

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
 

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
 

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
 

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
 

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
 

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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top