RS485 bus - starting probem


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    You can easily run that baud rate if you use the hardware serial port, but why are you reading the receive register directly?
    Why not use HSERIN?
    Charles Linquist

  2. #2
    Join Date
    Jul 2007
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Where is the difference between reading the receive register by x = rcreg or hserin?
    Does hserin do a little more than only shift the receive buffer in a variable?

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Not much more - if you are receiving only one byte, but it does a good job of checking CREN and clearing it, if necessary. That is something your code doesn't do and the hardware doesn't automatically clear the bit. The CLOERR define in your header does nothing in your case.
    Charles Linquist

Similar Threads

  1. RS485 splitter
    By The Master in forum Off Topic
    Replies: 0
    Last Post: - 30th August 2009, 06:04
  2. Oscillator stops when touching with a wire
    By Wilbert Ingels in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 25th April 2008, 08:51
  3. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  4. Compass module and I2C bus
    By vladimir059@hot in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th December 2006, 20:29
  5. Using 16f676 with comms
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2005, 20:01

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