![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
guys help me out plz.i have set up a rf tx and rx using 8051 along with ht640 encoder and ht648l decoder,TX and RX-315Mhz from vegakit.
here is my circuit diagram ![]() the problem is when i connect the 8051 to the encoder the data send is not received at the receiver but as soon as the 8051 connections are removed the transmisison works perfectly. thus manually the RF communication works perfectly i.e the 8 bit data which i give manually at the encoder is perfectly send and then later received at the decoder side Is some sort of interfacing required b/w encoder-ht640 and microcontroller 8051 or at the receiver side b/w the decoder-ht648l and 8051 .help me plz its urgent |
|
|
|
|
|
|
(permalink) |
|
hi,
The datasheet for the ht648l decoder says its compatible with the MCU. A common problem is, you may have set the MCU port pins as OUTPUTs within the program.?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
In the 8051 architecture ports 1,2, & 3 are quasi-bi-directional ports. They have weak pullups, and no data direction registers. They require no configuration and have 1's written to them at reset making them inputs or "weak" 1's They will sink a couple of milliamps, but source only several tens of microamps.
Now here is the GOTCHA. Port 0 has OPEN DRAIN outputs. There is no weak pullup inside the chip, you gotta have external pullup resistors!
__________________
We never have time to do it right; but we always have time to do it over. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
i checked it separately also i.e only 8051 connected to encoder and TX and only the decoder and RX at the other end but the decoder is not able to read the data send by the 8051 through the encoder. mic->encoder->tx rx->decoder this does not seem to work also is some sort of interfacing required to connect 8051 to another IC????? |
||
|
|
|
|
|
(permalink) |
|
Have you looked at the RF output with an oscilliscope? Can you get your hands on a working receiver to test the transmitter? Can you get your hands on a working transmitter to test the receiver?
__________________
We never have time to do it right; but we always have time to do it over. |
|
|
|
|
|
|
(permalink) |
|
Just curious, is the transistor "From Tree" supposed to short VCC to GND?
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
mic->encoder->tx rx->decoder the above does not seem to work so is any sort of interfacing required b/w ports of 8051 and the encoder |
||
|
|
|
|
|
(permalink) |
|
Do you have an Oscilloscope or Logic analyzer? Even a logic probe or heaven forbid an 8051 ICE? What tools do you have for testing your circuit?
|
|
|
|
|
|
|
(permalink) |
|
Then you dont want to connect the collector of the transistor to Vcc. Just connect it to P3.6. As I explained above there is an internal weak pullup that will pull P3.6 to Vcc when the transistor is off.
__________________
We never have time to do it right; but we always have time to do it over. |
|
|
|
|
|
|
(permalink) |
|
A cursory review of the HOLTEK HT640 Datasheet reveals the the TE pin on the HT640 is a CMOS input which is pulled low. This is problematic since the 8051 has outputs with a weak pullup. When the 8051 pin P3.3 is at a '1' this will form a voltage divider and the actual level on the P3.3/TE net will depend on the relative magnitude of the pullup and the pulldown. When P3.3 is low all will be fine and you should get a solid low.
I recommend that you insert a CMOS buffer between P3.3 and TE. I don't know if PORT 0 with external pullups might not have the same problem. http://www.onsemi.com/pub_link/Colla...VHC1GT50-D.PDF Just to be super picky, downright arrogant, and altogether disagreeable I'd like to point out that your schematic has no pin numbers on it. How on earth would you ever be able to tell if the board was wired correctly?
__________________
We never have time to do it right; but we always have time to do it over. Last edited by Papabravo; 24th May 2008 at 02:31 PM. |
|
|
|
|
|
|
(permalink) |
|
Well it does have the "Prakash" seal of approval
|
|
|
|
|
|
|
(permalink) |
|
Are they also super picky, downright arrogant, and altogether disagreeable?
I do so love the rhyme and meter of Kipling. Bill, you can be the crocodile while I play the bi-colored python rock snake. It just occurred to me that the same problem may occur on P3.2/VT with respect to the receiver. Time to check the datasheet. EDIT: Nope VT is a plain old CMOS active high output.
__________________
We never have time to do it right; but we always have time to do it over. Last edited by Papabravo; 24th May 2008 at 02:47 PM. |
|
|
|
|
|
|
(permalink) |
|
Why not connect the RF units directly to the microcontroller? What's the point of the HT640 & HT648?
![]() Last edited by blueroomelectronics; 24th May 2008 at 02:48 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Simpler to remove them and do Manchester coding/decoding in software. |
||
|
|
|
|
|
(permalink) |
|
That's what I thought, saves a bucket of I/O too.
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| encoder/decoder HT12E/12D | extremeads1 | Electronic Projects Design/Ideas/Reviews | 1 | 9th August 2007 08:32 PM |
| which is most widely used rf encoder/decoder | nikhil arora | Electronic Projects Design/Ideas/Reviews | 8 | 2nd March 2006 11:03 AM |
| About Encoder/Decoder | Hihi | General Electronics Chat | 3 | 23rd June 2005 08:21 AM |
| encoder / decoder with PIC .......... | haleemul | General Electronics Chat | 1 | 21st February 2004 10:23 PM |
| 12 Channel Encoder/Decoder? | Squintz | General Electronics Chat | 0 | 3rd November 2003 05:31 PM |