CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

2 wire control(communication) and remote voltage supply?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mike picking away
Guest







2 wire control(communication) and remote voltage supply?
PostPosted: Sat Jun 12, 2004 3:17 pm     Reply with quote

I am looking for direction or resource help with trying to do the following. I want to use a 2 wire comunication scheme to a remote control module. This module would get its comunication and voltage supply from the same 2 wires. I know this is being done and don't want to reinvent the basic design. Any ideas, help, or direction would be appreciated.

Mike
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Sat Jun 12, 2004 7:15 pm     Reply with quote

How much power do you need to supply? How fast do you need to comunicate? Is it going to be bi-directional comunications?

Really, you need to discribe your application in greater detail.
dyeatman



Joined: 06 Sep 2003
Posts: 1939
Location: Norman, OK

View user's profile Send private message

Remote processor power and communications on one wire
PostPosted: Sat Jun 12, 2004 8:22 pm     Reply with quote

What you are asking is a circuit design issue and really has nothing to do with the PIC or CCS C and you really need to go somewhere like the alt.electronics newsgroup with this problem to get the proper support and guidance in attempting this. Especially if you dont have an electronics theory background you definitely want to get experienced electronic help. I am an electrical engineer, it took me almost 6 months to get a stable final design completed and it took a quite a bit of trial and testing to get it right. Unfortunately , due to the design being proprietary to the company I work for I cannot give design details.

I have done this for distances up to 700 feet so far with several different types of systems/processors and it has worked well.

Basically you isolate the PIC UART I/O pins and the comm circuit connections on the other end of the cable from the cable wires themselves using a blocking capacitor to block the DC voltage. You inject the DC (say 9-12 VDC) at one end and pick off the voltage for the PIC at the other in between the two blocking caps. The cap values will be totally dependent on the frequency and comm protocol (RS232, I2C CAN etc) you will be wanting to use.

On the PIC end you must use a regulator to provide power stabilization due to voltage drop in the cable.
Guest








PostPosted: Sat Jun 12, 2004 10:35 pm     Reply with quote

Thanks for the input. I am also an electrical engineer (senior design). I understand perfectly what you are saying. The reason, as you pointed out, is that it takes time to perfect a circuit and I didn't want to reinvent the basic wheel agian.

Also point taken about my question relating to a electrical design. I can make this sort of scheme work with an 8 bit motorola chip, but want to do this with the PIC 16F877A. The code is a little tricky because of the timing and mixed signal seperation. I was thinking of using a charge pump device and running 10kHz constant signal as the carrier and possibly using zero crossing or a rider to send messages.

agian, thanks for your input
Mike
Guest








PostPosted: Sat Jun 12, 2004 10:43 pm     Reply with quote

Neutone wrote:
How much power do you need to supply? How fast do you need to comunicate? Is it going to be bi-directional comunications?

Really, you need to discribe your application in greater detail.



200mA 9600 buadrate?(slow) bidirectional. I have used the motorola 8 bit varieties and the CPU332 32 bit/64bit chips in a number of apps. I am new(obviously) to the CCS and PIC stuff. Although most of the basics are the same, there is difference between RISC and CISC processors. Also the PIC is a true microcontroller and not a microprocessor(spliting hairs here). Iam learning what the PIC is capable of doing and like it so far.

Mike
dyeatman



Joined: 06 Sep 2003
Posts: 1939
Location: Norman, OK

View user's profile Send private message

comm and power on same cable
PostPosted: Sun Jun 13, 2004 8:01 am     Reply with quote

Well Hello Mike! Very glad to meet a fellow engineer online!

My implementations are all 2400 baud. Going beyond that at the time posed significant hurdles I chose not to cross and kept things pretty simple from a design and maintenance standpoint.

Nowdays, if you go AC, a quick and very simple implementaion is the AC ethernet network modem which is widely available and you can get 5+ MB per second out of them pretty reliably and save a ton of time and money on design and debug.

Another is the powerline phone extension modems which can give you up to about 30KHZ or so I believe and those are cheap on EBay. On both of these the distance is somewhat limited but should give you what you need, but hey the whole thing can run on zipcord!

When I built my circuit those were not available :-( or I would have definitely gone that route and saved a lot of headaches!

Like you I started with the Motorla 6800 (remember MICBUG?) then the Z80 years ago and later graduated to the 68000 and X86. Then found the PIC and fell in love with it. Very few of my designs require capabilites I cannot meet with a PIC and over 90% of my creations are now based on them.

CCS C and the PIC have worked quite well for me over the last 3 years or so.

Good luck!
Dave
loh



Joined: 14 Jun 2004
Posts: 3
Location: Taiwan ROC, Taipei.

View user's profile Send private message

receive on pic
PostPosted: Tue Jun 15, 2004 8:07 pm     Reply with quote

Hi

I am a begining engineer, have doubt on pic16f84 detect signal coming in from IR. A direction or code would be appreciated.

Should I check register flag? which one if so?
Should I check interrupt acitivity?

the pic takes 5V @ 4MHz. I/O pin draw from IR.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group