communicating pic18f452 with pic16f877a


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I think the problem might be on the TX side ...
    Code:
    CNF=0 
    serin SFVC,4,100,SR,[CNF] 'RECEIVE CONFIRMATION.
    The CNF is in the "qualifier" brackets, so SERIN will wait to receive a 0 byte.
    But 250 is what's being sent for confirmation, and it'll never see it.

    To receive the byte into the CNF variable, it should be without the brackets.
    Code:
    CNF=0 
    serin SFVC,4,100,SR,CNF 'RECEIVE CONFIRMATION.
    Then the

    IF CNF <> 250 THEN GOTO SR

    should work.
    DT

  2. #2
    Join Date
    Dec 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Many Thanks ...

    Dear Taylor ....

    You were right ... It works now because of you ... It's really amazing to have a freind like you ... many thanks.

Similar Threads

  1. PIC16F877A for application in mobile robot...
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th January 2009, 14:47
  2. Replies: 11
    Last Post: - 6th November 2008, 10:27
  3. Replies: 9
    Last Post: - 4th February 2008, 19:12
  4. PIC16f877-20 to a PIC16f877A I/P Disaster
    By andyf in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 21st November 2005, 17:11
  5. PIC16F877A to DS1307
    By miniman in forum Schematics
    Replies: 1
    Last Post: - 31st January 2005, 22:25

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