View previous topic :: View next topic |
Author |
Message |
sandeep
Joined: 12 Dec 2014 Posts: 3
|
help me with cc2420 spi communication. |
Posted: Sat Dec 13, 2014 12:09 am |
|
|
I am trying to data transfer through two cc2420 zigbee modules using pic18f4550 but it is not happening, the cc2420 module is not recognizing. Please help me with it. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Sat Dec 13, 2014 6:45 am |
|
|
first steps....
You should post either a schematic (through a 3rd party service) or a link to the modules you're using. All Zigbee devices are 3V and the PIC is a 5V device. So I need to know how the hardware is connected.
2nd....
Have you got your PIC to run the '1Hz LED' test program? This is just a simple 'toggle' and LED on a pin to confirm your hardware is correctly wired, that the proper 'fuses' have been chosen and that the compiler/programmer are functioning right. Since the 4550 has internal USB, it also has a LOT of possible 'clock' configurations so it is very, very important to confirm you can toggle an LED !!
3rd....
Once all that works, consider connecting the two PICs without the Zigbee modules. Again there are several ways to use them, however the serial ttl is perhaps the simplest and easiest to test, though I never had any good luck with them, gave up and they're collecting dust...
Jay |
|
|
sandeep
Joined: 12 Dec 2014 Posts: 3
|
spi communication with cc2420 using pic18f4550 |
Posted: Sun Dec 14, 2014 9:31 am |
|
|
i had tried connecting two pic18f4550 board and they are working properly but i dont know how to communicate using cc2420 i am a starter in programming please send me if you have any code and if you have any idea about this please help me with this thanking you, |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
Re: spi communication with cc2420 using pic18f4550 |
Posted: Sun Dec 14, 2014 11:10 am |
|
|
sandeep wrote: | i had tried connecting two pic18f4550 board and they are working properly but i dont know how to communicate using cc2420 i am a starter in programming please send me if you have any code and if you have any idea about this please help me with this thanking you, |
You're keeping us in the dark by drip feeding information.
You must tell us how you KNOW what is working and not working.
Start by answering Jay's questions.
Mike |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Dec 14, 2014 2:09 pm |
|
|
Quote: | I am a starter in programming please send me if you have any code |
I don't think a driver file exists for the cc2420 and the CCS compiler.
Some people try to convert Microchip C18 compiler code to CCS:
http://www.ccsinfo.com/forum/viewtopic.php?t=42920
But you are asking the same question on the Microchip forum:
http://www.microchip.com/forums/m836213.aspx
I don't think you have the CCS compiler or the Microchip C18 compiler.
I think you googled for cc2420 and found two forums that mentioned the
cc2420.
I think you should search the net for a complete, working project with
the cc2420. Find someone who has done the whole project and posted
the code and the schematic for download. Then just copy it. |
|
|
|