Start bit


Closed Thread
Results 1 to 5 of 5

Thread: Start bit

  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Question Start bit

    Hi,
    Does anyone know how to add a start bit to either of the PIC Basic
    commands SEROUT and SEROUT2. The handbook indicates that the default
    settings are 8 data bit, no parity and one stop bit. Many thanks.

  2. #2
    skimask's Avatar
    skimask Guest

    Talking

    Quote Originally Posted by Tekky View Post
    Hi,
    Does anyone know how to add a start bit to either of the PIC Basic
    commands SEROUT and SEROUT2. The handbook indicates that the default
    settings are 8 data bit, no parity and one stop bit. Many thanks.
    There are no options for start bits in SEROUT and SEROUT2.
    You can't add one, therefore you can't start serial communications.

  3. #3
    skimask's Avatar
    skimask Guest

    Default Sorry :D

    Sorry, I couldn't resist... If I had the graphic for the guy laughing on the floor I'd post it, but I don't...

    Start bits are always present. Start bits are about the only thing that's constant in async-serial comm's. You can't have asynchronous serial communications without a start bit. Well, you could, but I can assure you it wouldn't work very well.

    http://en.wikipedia.org/wiki/Asynchr..._communication

  4. #4
    Join Date
    Feb 2008
    Posts
    2

    Default Start bit

    Many thanks for the info. Since posting I have looked at several serial comms
    sites and seen that the start bit is necessary for synchronisation. I have been confused
    by the PIC Basic literature not stipulating the fact the start bit must be present in the routine. Again many thanks.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    The start bit is already there. You don't need to ad it. Standard serial comms = 1 start bit
    followed by 8 data bits, followed by the stop bit, which is just an idle period where the TX
    pin is held at idle logic for one bit period before the next byte can be sent.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. AT/PS2 Keybord - PIC Interface?
    By Kamikaze47 in forum Code Examples
    Replies: 73
    Last Post: - 9th August 2009, 16:10
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. Replies: 0
    Last Post: - 5th October 2005, 22:06
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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