Start/Stop Bits in Serial Communications

Discussion in 'Embedded Systems and Microcontrollers' started by Guinness1759, Jun 2, 2011.

  1. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    It appears that there is no way to configure the number of start/stop bits and parity for the PIC16F1827. Anyone know why they left these configuration options out?
     
  2. AlexR

    Well-Known Member

    Jan 16, 2008
    735
    54
    Start bits: always 1 as far as I know
    Stop bits: some ancient electromechanical printers did need 1.5 or 2 stop bits but all modern computers, printers etc only require 1 stop bit so why complicate things.
    Parity: If you really must have parity you can always compute it yourself and add it in (the USART can be configured for 8 or 9 data bits so you could have 7 or 8 bits with parity) but why bother? Parity is a very weak form of error checking and you are far better of using CRC to pick up errors.
     
    Guinness1759 likes this.
  3. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    Awesome answer thanks. I guess I need to keep up with the serial communication times.
     
  4. bertus

    Administrator

    Apr 5, 2008
    15,649
    2,348
Loading...