master HSEROUT to mixed slaves


Closed Thread
Results 1 to 8 of 8
  1. #1

    Default master HSEROUT to mixed slaves

    Hi all

    This may be a simple or silly question but I am curious to know whether or not I can send data with HSEROUT and receive it on another PIC or PICS using something like SERIN,SERIN2or DEBUG and what the best choice would be.
    Up until now I have only used the same both sides, in other words if the transmitter is using HSEROUT then te receiver(s) use HSERIN
    The reason I am asking is because I would like to use hardware usart on a transmitter PIC (yes, one that supports it!) and use any other pic as a receiver (one that does not have a usart)

    Any info would be appreciated

    Kind regards
    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    It works perfectly. You just have to make certain that you have the right state. HSEROUT "idles" high, and that generally can't be changed.

    Of course, it works in reverse as well. You can use SEROUT2 to send messages to another PIC that has a hardware receive port.
    Charles Linquist

  3. #3


    Did you find this post helpful? Yes | No

    Default idles?

    Hi Charles

    Thanks a million for the reply
    Not quite sure what you mean by the right ildles?
    Are you referring to wait states ?
    Care to elaborate some more?

    Kind regards

    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    Not wait states. I'm referring to the SERIN2 MODE. You have the option of TRUE and INVERTED. You will want INVERTED.
    Charles Linquist

  5. #5


    Did you find this post helpful? Yes | No

    Default awesome!

    Thanks Charles,

    I will try it with SERIN/OUT :-)

    Keep well

    Dennis

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Hi Charles


    Not quite sure what you mean by the right idles?

    Kind regards

    Dennis
    When no communication is going on, the port status is high for TRUE and Low for Inverted. The resistors should pull the port to to the appropriate idle state.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7


    Did you find this post helpful? Yes | No

    Default aha!

    Hey Joe

    Thanks for the clarification and tip :-)
    So to confirm ..
    If mode is set TRUE a pull-up is required (any recommended value in particular?)
    and if mode is set to Inverted a pull-down resistor is needed.
    Would this prevent a possible 'floating' PIN and reduce the garbage received ?

    Kind regards
    Dennis

  8. #8
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Hey Joe

    Thanks for the clarification and tip :-)
    So to confirm ..
    If mode is set TRUE a pull-up is required (any recommended value in particular?)
    and if mode is set to Inverted a pull-down resistor is needed.
    Would this prevent a possible 'floating' PIN and reduce the garbage received ?

    Kind regards
    Dennis
    I like something around 4 to 5 K, enough to handle it without too much power waste. I suppose that is a way of looking at it, as I see it, True switches the circuit to a low status and the pull up returns it to high and inverted switches it to high and pull down returns to a low idle state. Now I'm going to say this with <b>absolutely NO AUTHORITY</b>, As I picture it in my mind, the communication must switch between low and open impedance for true "and/or" high and open impedance for inverted, and the resistors make the circuit.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 17:44
  2. hserin and sms controller
    By xxxxxx in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 10th February 2010, 15:49
  3. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 19:12
  4. Is HSEROUT corrupting bit 7 ?????
    By Robert Wells in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2008, 16:26
  5. Controlling an 240x128 LCD Touchpanel Display
    By Vincent in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 7th June 2006, 23:36

Members who have read this thread : 1

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