View previous topic :: View next topic |
Author |
Message |
jogibaer
Joined: 03 Nov 2011 Posts: 8
|
MRF 24J40 Transmitter |
Posted: Thu Nov 03, 2011 6:26 am |
|
|
Hi,
I am working on a wireless project. The microcontroller I am using is PIC18F13K22. I want to create a transmitter. I am also using the Zena Analyzer from Microchip.
My problem is that I have the right package structure. But the Payload and Data of the packages are invalid.
I set the initialisation as it is said in the MRF data sheet. I think that it might be a problem of the transmission part or even the package structure. I am not sure.
I would be glad if anyone could help me.
Thanks in advance.
Last edited by jogibaer on Mon Nov 14, 2011 8:57 am; edited 1 time in total |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Nov 03, 2011 1:39 pm |
|
|
What is your CCS compiler version ? |
|
![](templates/subSilver/images/spacer.gif) |
jogibaer
Joined: 03 Nov 2011 Posts: 8
|
|
Posted: Fri Nov 04, 2011 3:21 am |
|
|
My Version is 4.114. |
|
![](templates/subSilver/images/spacer.gif) |
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
|
|
Posted: Fri Nov 04, 2011 11:49 am |
|
|
#include <MRF24J40.c>
Is this a CCS driver or a Microchip driver you ported to CCS?
Anyway it won't compile without it. |
|
![](templates/subSilver/images/spacer.gif) |
jogibaer
Joined: 03 Nov 2011 Posts: 8
|
|
Posted: Fri Nov 04, 2011 1:04 pm |
|
|
It is only a file I wrote by myself. There are all registers included. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Nov 04, 2011 1:52 pm |
|
|
If it's reasonably short, then post it so we can compile your program
and look at it. |
|
![](templates/subSilver/images/spacer.gif) |
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Fri Nov 04, 2011 11:42 pm |
|
|
I have developed my own drivers for the MRF24J40MA module, and they work perfectly, to get the module working it needs to be initialised correctly only then will it work properly. Read the datasheet and follow the steps given for the initialisation.
Also make sure the receive buffers and the receive interrupts are cleared before issuing the software reset at the end of the initialisation procedure.
thanks
a |
|
![](templates/subSilver/images/spacer.gif) |
|