Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


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.

Reply
 
Thread Tools Display Modes
Old 23rd May 2008, 03:23 PM   (permalink)
Default Microcontroller 8051 with RF-tx and rx and encoder and decoder

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
ashishdaga1 is offline   Reply With Quote
Old 23rd May 2008, 04:34 PM   (permalink)
Default

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/
ericgibbs is offline   Reply With Quote
Old 23rd May 2008, 04:58 PM   (permalink)
Default

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.
Papabravo is offline   Reply With Quote
Old 24th May 2008, 02:38 AM   (permalink)
Default

Quote:
Originally Posted by Papabravo View Post
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!
i have connected external pull up at port0 but problem is that the interfacing the transmitted data is not been able to decode.
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?????
ashishdaga1 is offline   Reply With Quote
Old 24th May 2008, 03:07 AM   (permalink)
Default

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.
Papabravo is offline   Reply With Quote
Old 24th May 2008, 04:07 AM   (permalink)
Default

Just curious, is the transistor "From Tree" supposed to short VCC to GND?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 24th May 2008, 04:29 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics View Post
Just curious, is the transistor "From Tree" supposed to short VCC to GND?
no its acting as an inverter so when "from tree" is vcc P3.6 is gnd and when "from tree " becomes gnd P3.6 is vcc.this is to monitor external events and i am checking p3.6 in my 8051.as of now this is not connected in my circuit but will be added later.presently i am concerned with
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
ashishdaga1 is offline   Reply With Quote
Old 24th May 2008, 04:57 AM   (permalink)
Default

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?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 24th May 2008, 02:14 PM   (permalink)
Default

Quote:
Originally Posted by ashishdaga1 View Post
no its acting as an inverter so when "from tree" is vcc P3.6 is gnd and when "from tree " becomes gnd P3.6 is vcc.this is to monitor external events and i am checking p3.6 in my 8051....
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.
Papabravo is offline   Reply With Quote
Old 24th May 2008, 02:27 PM   (permalink)
Default

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.
Papabravo is offline   Reply With Quote
Old 24th May 2008, 02:32 PM   (permalink)
Default

Well it does have the "Prakash" seal of approval
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 24th May 2008, 02:36 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics View Post
Well it does have the "Prakash" seal of approval
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.
Papabravo is offline   Reply With Quote
Old 24th May 2008, 02:47 PM   (permalink)
Default

Why not connect the RF units directly to the microcontroller? What's the point of the HT640 & HT648?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 24th May 2008 at 02:48 PM.
blueroomelectronics is online now   Reply With Quote
Old 24th May 2008, 02:53 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics View Post
Why not connect the RF units directly to the microcontroller? What's the point of the HT640 & HT648?
I thought they were for non-micro-controller applications?.

Simpler to remove them and do Manchester coding/decoding in software.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 24th May 2008, 02:55 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin View Post
I thought they were for non-micro-controller applications?.

Simpler to remove them and do Manchester coding/decoding in software.
That's what I thought, saves a bucket of I/O too.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
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



All times are GMT. The time now is 04:42 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.