How to transfer data from 3 micro to 1


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi,my friend suggest that you use a multi cable to connect one port to another port of main micro(8 wire,for example PORTB of micro 1 to PORTC of main micro) and use PEEK and POKE instruction. you put one byte on a port and read it from main micro and you should make a time program to read data on time.
    but it is not a good method. it's need a lot of wire and the distance can effect on the voltage,current and also we have noise.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    Hi,my friend suggest that you use a multi cable to connect one port to another port of main micro(8 wire,for example PORTB of micro 1 to PORTC of main micro) and use PEEK and POKE instruction. you put one byte on a port and read it from main micro and you should make a time program to read data on time.
    but it is not a good method. it's need a lot of wire and the distance can effect on the voltage,current and also we have noise.
    See Post #3!

  3. #3
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    what about using serin and serout instructions and a shield cable?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    what about using serin and serout instructions and a shield cable?
    That'll work great...

    http://en.wikipedia.org/wiki/EIA-485

  5. #5
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    if i want to use serin and serout instructions, can i connect(for example) PORTB.0 of micro 1 to PORTC.1 of main micro with wire directly?(with 10 to 20 meter distance)

  6. #6
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi, which cable i should use for this application to avoid noise problems and if i want to use MAX232 how should i connect it to microcontroller ? could you show me the diagram and the code in picbasic pro with serin and serout instructions?

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    could you show me the diagram and the code in picbasic pro with serin and serout instructions?
    Anything else?
    http://www.picbasic.co.uk/forum/showthread.php?t=1498

Similar Threads

  1. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 05:59
  2. first project, and yes, doesn`t work
    By bogdan in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th April 2009, 07:13
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 13:19
  5. New member
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 28th February 2004, 23:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts