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 support@ccsinfo.com

Communicate 2 PIC using PWM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sonicdeejay



Joined: 20 Dec 2005
Posts: 112

View user's profile Send private message

Communicate 2 PIC using PWM
PostPosted: Sun Feb 19, 2006 11:29 am     Reply with quote

Can I communicate 2 PIC(sender n receiver) using PWM output and input capture??

or DAC is the only solution..? (sender PIC with digital out and receiver PIC with get the analog data by placeing DAC between them)


ak6dn



Joined: 08 Jan 2006
Posts: 23
Location: Saratoga, CA USA

View user's profile Send private message

Re: Communicate 2 PIC using PWM
PostPosted: Mon Feb 20, 2006 1:00 am     Reply with quote

sonicdeejay wrote:
Can I communicate 2 PIC(sender n receiver) using PWM output and input capture?? or DAC is the only solution..? (sender PIC with digital out and receiver PIC with get the analog data by placeing DAC between them)


You don't need either PWM or DAC... a digital output/input on PIC1 could be connected to a digital input/output on PIC2, and you could send Morse code messages between the devices. If you obey some simple rules (ie, the other guy can't transmit until I say I'm finished) just one bidirectional signal wire could be used for two-way communications... Very Happy
sjbaxter



Joined: 26 Jan 2006
Posts: 141
Location: Cheshire, UK

View user's profile Send private message Visit poster's website

PostPosted: Mon Feb 20, 2006 3:32 am     Reply with quote

If the PICs have UARTS, why not just use these to send ascii data between the devices. Just as if you were sending RS232 info ?!
_________________
Regards,
Simon.
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Mon Feb 20, 2006 3:42 pm     Reply with quote

Don't forget the current limiting resistor between the two PICs, just so you don't fry either chip if you accidentally turn them both into outputs! (I personally would rather use i2c between the two PICs, thus you'll have more flexibility in the messages you want to send.)
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