HSERIN doesn´t work


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default HSERIN is not 'complete'

    I think you will find that HSERIN is not a fully self contained command for sending or receiving data through the UART. You must manually manage the CREN bit and probably more for reliable results.

    I had many intermittent problems with that command so I gave up and now only use DEBUG, SERIN or SERIN2 which have the advantage they can be assigned to any pin.

    HTH
    Brian

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


    Did you find this post helpful? Yes | No

    Default

    wurm,

    Do you have pins 2 and 3 connected together on the 75176? (!RE/DE)
    <br>
    DT

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    RS485 half-duplex is usually single master, multiple slaves with slaves transmitting only after being requested to do so by the master. Is this the code for a slave? If so, could the problem be on the other end?

  4. #4
    Join Date
    Jul 2007
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    So thanks for your answers.
    I`ve found out the problems.

    I have two SP485 drivers in the layout and one was connected as receiver and one as sender.
    Then the bus doesn´t work correctly.
    The second problem was solluted by setting and resetting cren register.

    Best regards,
    Wurm

Similar Threads

  1. Hserin with Instant Interrupts.
    By ronjodu in forum Serial
    Replies: 17
    Last Post: - 30th December 2014, 20:17
  2. HSERIN and XOUT command
    By aratti in forum General
    Replies: 20
    Last Post: - 12th May 2009, 11:58
  3. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 21:31
  4. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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