Hi Joe S. and thanks for your help,
Yes i did...I have a led connected to each one. The modules ( after sending the channel number ) light up the leds for a second confirming the channel change.
Hi Joe S. and thanks for your help,
Yes i did...I have a led connected to each one. The modules ( after sending the channel number ) light up the leds for a second confirming the channel change.
Are you using a max232 or similar between the transceiver and the PC or between the other transceiver and the PIC ? The PIC operates in the 8N1 True mode and should have a pull up resistor on it's line, whereas the PC operates in the 8N1 Inverted mode and requires a level shifter to make it true.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi Joe S.,
the modules are connected directly to the pics.
One thing i noticed and i found it weird is that when turning the power on the receiver ( and always the RX - never happened to the TX ) sometimes does not start receiving ( although the TX is transmitting ).
My workaround is to turn power off for a couple of seconds and reconnect power ( and sometimes i have to do this 2 or 3 times ).
I changed modules, experiment board, etc and this only happens on the RX side.
Should it be any startup procedure sequence for the RX ?
Not sure if you mean the PIC or the transceiver. The PIC RX using HSERIN <font color=red>REQUIRES a pullup to VDD </font color>or you will get an intermittent (if at all) PIC boot. If this causes problems with the radio, you can use something to buffer the link, Tristate buffer ? I discovered this a long time back with my serial LCD project. You could "buffer" it with a simple transistor, but would then be dealing with inverted serial data.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I mean the transceiver.
I have a LED connected to BUSY output of the transceiver on both ( RX and TX modules ).
The RX transceiver blinks the LED everytime the TX sends data. But this doens not mean the PIC shows the correct DATA on LCD ( sometimes no DATA at all ).
And sometimes when powerup, the RX transceiver does not blink ( pic and LCD working OK ).
I'm using DEBUG/DEBUGIN instructions to avoid issues with Hserin/Hserout.
OK then maybe you need more hysteresis to your power up cycle, which is to say the rate the voltage ascends from zero to operating voltage. Many MCU do not like slow power up, which is why PIC has PWRTE in the configs, it allows power to stabilize before PIC boots, or there may be RF running in on the power causing headaches, you did bypass the power leads with .01 µF caps yes? A ferrite bead there wouldn't hurt either.
Be mindful of the Port Idle state, whether using hserin or debugin, True is supposed to Idle high and Inverted is supposed to idle low. So use the state which agrees with your receiver's requirements.And sometimes when powerup, the RX transceiver does not blink ( pic and LCD working OK ).
I'm using DEBUG/DEBUGIN instructions to avoid issues with Hserin/Hserout.
Last edited by Archangel; - 17th June 2009 at 20:20.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi Joe,
I'm using the same power supply for both.
I'm using a 7805 with 220uF cap and 2 diodes to lower the VCC to the transceivers.
About the port idle state...good call
i've set the port pins high at the beginning of the code for both ( TX and RX pics ) but the result is still the same![]()
Bookmarks