hserin


Closed Thread
Results 1 to 29 of 29

Thread: hserin

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    where you have "<esc>" in your code, that generally means the ASCII character "Escape" similar to how you see "<cr>" for carriage return.

    Try replacing that with 27 or $1B and see how you get on. (No difference between them except that 27 is decimal and $1B is hex.)
    Last edited by keithdoxey; - 20th February 2007 at 15:32.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    @9600 baud AND using the internal OSC AND using SEROUT2, it's high unlikely that it will work. Using DEBUG or HSEROUT may work.

    with HSEROUT, use the following DEFINEs
    Code:
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 25  ' 9600 Baud @ 4MHz, 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    For ANY reliable serial comm, you really want to use a crystal or a ceramic resonator.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Thumbs down dead end

    still canot get serial lcd driver to work
    when i use hserout i dont get anything
    with the above commands

    and really nothing shows on my scope as anything from the pic627a
    using pin 8 labeled tx
    is this the correct pin

    does not work with or without max

    really unsure which is correct
    about to return to the lcdout command and hookups
    just wanted to save pins

Similar Threads

  1. HSERIN and XOUT command
    By aratti in forum General
    Replies: 20
    Last Post: - 12th May 2009, 11:58
  2. Instant Interrupts and HSERIN
    By Rob in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st January 2009, 05:13
  3. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  4. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 00:38
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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