PIC to PIC communication problem


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    That's for sure. SHIFTIN act as master, not slave. you'll need to roll your own.

    Possible to use the MSSP module as well. Have a look to SPISlave.bas
    http://www.melabs.com/resources/samp...p/spislave.bas

    You could still implement a simple serial communication with DEBUG/SEROUT2/HSEROUT... just an idea.

    PS:
    Code:
    @Config = _XT_OSC & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _BODEN_OFF
    Define PIC16F877A
    You don't need to define the PIC, and you config line is incorrect. it should be
    Code:
    @  __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _BODEN_OFF
    further reference : http://www.picbasic.co.uk/forum/showthread.php?t=543
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Smile

    Thanks mister_e, its well working with SEROUT2 / SERIN2, My project is compleet.
    But for the knowledge i want to know, i have Load indicator that have same display ( 595 based display and AT 89c52 Chip ), I want to read it with PIC from spi line, Can i read it ? if yes what is the step to config. three ( clk,data,latch) line in pic. please.

    .
    Attached Images Attached Images  

Similar Threads

  1. 5v for PIC problem
    By financecatalyst in forum Schematics
    Replies: 4
    Last Post: - 24th August 2009, 16:04
  2. help for serial communication pic to pic
    By jasem700 in forum Serial
    Replies: 7
    Last Post: - 27th February 2009, 16:06
  3. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  4. PIC 2 PIC communication
    By Mario in forum Forum Requests
    Replies: 16
    Last Post: - 28th April 2006, 01:56
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14:31

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