Defining 2 stop bits using HSEROUT


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Location
    Ottawa, Canada
    Posts
    11

    Question Defining 2 stop bits using HSEROUT

    Is there a way of using HSEROUT with 2 stop bits? I have a device that will only understand the following:

    1 start bit
    8 data bits
    2 stop bits
    no parity
    All data in hex strings
    baud rate is 9600

    Any suggestions would be greatly appreciated.

    Regards,
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Ottawa, Canada
    Posts
    11

    Default

    After a bit of seaching & reviewing the PIC 18F4550 datasheet, it appears the following command might achive what I am looking for:

    DEFINE HSER_TXSTA 65h

    i.e. 9-bit tx enable, BRGH high, & 9th bit set permanently high to fake a 2nd stop bit.

    Regards,

    Marc

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 18:44
  2. How to do serial command with 2 stop bits?
    By Pimentel in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2011, 14:44
  3. serout2 with 2 stop bits
    By santamaria in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th December 2009, 07:21
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 15:31

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