Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | trouble intializing CC2420 for wireless transmission

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

trouble intializing CC2420 for wireless transmission - "greg.mitchell96" - Aug 24 12:38:43 2009

I am using a combination of MSP430F2619 and CC2420 to initiate wireless data transfer. Right now I am just trying to run the test program which in the CC2420 datasheet tells you to write the following values to the following registers.

MDMCTRL1: 0x0508
CC2420_DACTST: 0x1800
then issue a STX_ON command strobe which tells the CC2420 to transmit what is in it buffer

My code is as follows:

SET_VREG_ACTIVE(); //sets VREG_EN pin high to wake up CC2420
halWait(1000);
SET_RESET_ACTIVE(); //resets registers of CC2420 to default
halWait(1000);
SET_RESET_INACTIVE(); //sets RESET pin to high (active low)
halWait(500);
FASTSPI_STROBE(CC2420_SXOSCON); //turns on crytal oscillator
halRfWaitForCrystalOscillator(); //waits for oscillator to stabilize

FASTSPI_SETREG(CC2420_MDMCTRL1,0x0508);
FASTSPI_SETREG(CC2420_DACTST,0x1800);
FASTSPI_STROBE(CC2420_STXON);
for(;;)

I have verified the SPI functionality between the MSP430 and CC2420 via a logic analyzer and I know my FASTSPI_SETREG function works because I am able to write to a register on the CC2420 and then read it back with the correct new values in the register. I have also double and triple checked that my register addresses and command strobes are defined correctly. These commands should intialize the CC2420 to a built in test mode that simply transmits a random unmodulated carrier but when I try to view the transmission on a spectrum analyzer I dont see anything.

Has anyone ever run into similar problems with this chip (CC2420) or see anything in my code that is missing or should be done differently? I can post the code for each function if anyone wants to see exactly what I am doing. Also, I know that this is more of a CC2420 question and not a MSP430 question but I know that other people on this forum are working with this and similar transceiver chips so I thought I would post here. Any help is very much appreciated.
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )