SEROUT and HSEROUT


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2012
    Posts
    4

    Default SEROUT and HSEROUT

    I'm working with 18F6720 and RN171 (WiFly). I need send commands to RN171 with Uart.

    Then I send

    serout PORTC.6,N9600,["$$$"]

    and RN171 don't reply

    but if i send

    DEFINE HSER_BAUD 9600
    hserout ["$$$"]

    then RN171 reply CMD (OK).

    Where is the problem?? SEROUT and HSEROUT don't work equally??


    best regards

  2. #2
    Join Date
    Sep 2009
    Posts
    737

    Default Re: SEROUT and HSEROUT

    Try mode T9600 for serout.

  3. #3
    Join Date
    Jan 2012
    Posts
    4

    Default Re: SEROUT and HSEROUT

    with T9600 is the same

  4. #4
    Join Date
    Dec 2010
    Posts
    409

    Default Re: SEROUT and HSEROUT

    It's likely in the configuration bits.
    Post your complete code.

  5. #5
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57

    Default Re: SEROUT and HSEROUT

    Try SEROUT2

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588

    Default Re: SEROUT and HSEROUT

    Is USART also using port c? (haven't checked datasheet from phone).

    Analog on port c?

    Configs ok?

    Robert

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

    Default Re: SEROUT and HSEROUT

    Quote Originally Posted by karlosguay View Post
    I need send commands to RN171 with Uart.

    Then I send


    Where is the problem?? SEROUT and HSEROUT don't work equally??


    best regards
    The short answer is No, UART is the HARDWARE serial port whereas serout & serout2 are bit banged serial routines. The hardware UART will receive or send data only on the Rx & Tx pins of the PIC. The bitbang serial ports will operate on nearly any port or pin. Debug is also a bitbang serial port and many will say the neatest and fastest of the bitbang routines. The UART will send & receive 2 bytes while code is doing something else. Not so with bitbang.
    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. Serout instead of Hserout
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th February 2013, 01:14
  2. Serout instead of Hserout
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2013, 22:16
  3. Serin,Serout,Hserin,Hserout
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2005, 10:27
  4. hserout VS serout
    By johnson in forum General
    Replies: 2
    Last Post: - 3rd August 2004, 20:50
  5. SerOut, SerOut2 or HSerOut
    By FrankM in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st August 2004, 16:24

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