![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) |
|
What language ?
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) |
|
|
|
|
|
|
(permalink) |
|
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
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |