Issues sending and receiving data


+ Reply to Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    If you instist on using ISR for the USART receiver, why not use the USART Interrupt directly? It will not work otherwise as Richard noted.

    Test your circuit and logic of the communication first with no interrupts and then decide what to do next.

    Ioannis

  2. #2
    Join Date
    Jul 2024
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    Greetings Ioannis,

    Yes, I know...

    the problem is that, although the TX PIC 16F1508 is equipped with a EUSART module, the receiver PIC 16F1503 is not
    The IOC was a workaround that i came up with to trigger the debugin command on the RX PIC.

    Best regards

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    wow, no hardware usart is serious..... your 1503 has mssp interrupt..... if you can make all that work, you are very skilled indeed !

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    Then you have to run a fast loop and make sure you won't miss any byte.

    Are you sure you cannot change that 1503?

    Ioannis

  5. #5
    Join Date
    Jul 2024
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    Hi guys,

    sorry for the late reply...

    After some testing, I decided to change my 16F1503 receiver PIC to a 16F1508 which is equipped with an USART module. It's much easier to implement this way.

    Thank you all for the support!



Similar Threads

  1. SERIN2 Receiving Wrong Data
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 4th May 2024, 20:31
  2. how to display data receiving from xbee to LCD
    By NURULHAIZA in forum mel PIC BASIC
    Replies: 2
    Last Post: - 19th November 2010, 21:24
  3. Sending/receiving data using Linx modules
    By Goat 403 in forum Serial
    Replies: 3
    Last Post: - 21st May 2009, 13:57
  4. Receiving and Transmitting Serial data at the same time
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th April 2007, 22:00
  5. Receiving data from more than one serial Port
    By PICtron in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th March 2005, 10:20

Members who have read this thread : 15

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