Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 10th May 2008, 10:39 AM   (permalink)
Default Pic to Pic communication

Hi all
i want to design a project in which i want to make to and fro communication between 2 pic microcontrollers . both are PIC16f684.
want to use either 1 wire or 2 wire to communicate.Please help me how to proceed .
thanks
neelam29 is offline   Reply With Quote
Old 10th May 2008, 11:42 AM   (permalink)
Default

Just use serial communications, on either one pin, or two pins - with two pins you can use the hardware USART's, with one pin you need to use software ones.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 10th May 2008, 11:48 AM   (permalink)
3v0
Default

What language ?
3v0 is offline   Reply With Quote
Old 10th May 2008, 04:11 PM   (permalink)
Default

thanks nigel..but wht software u mean to say if i use 1 pin...i dont wanna go for uart.. please explain in detail..i couldnt get ur point
neelam29 is offline   Reply With Quote
Old 10th May 2008, 04:18 PM   (permalink)
Default

If you use one pin you have to keep switching them from input to output, which you can easily do in software - normally both PIC's would be set as inputs, to send data one would switch to output, send the data, then switch back to an input and wait for the reply. The second PIC, havng received the data, would switch to be an output, and send the reply back to the first, then return to being an input.

You need to decide exactly what you want to do, and how you want to do it.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
USART Communication between two PIC Mucrocontrollers jitun2 Electronic Projects Design/Ideas/Reviews 6 10th May 2008 01:03 PM
USB communication with pic Albert Smit Electronic Projects Design/Ideas/Reviews 5 3rd May 2008 03:23 PM
PIC communication with external serial flash mzd2 Micro Controllers 3 29th March 2008 11:42 AM
serial communication with pic 18f4550 neelam29 Micro Controllers 4 2nd March 2008 05:53 PM
serial communication from PIC to PC flemmard Electronic Projects Design/Ideas/Reviews 10 11th September 2007 11:07 AM



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


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