Microcode: How to setup SERIN for 115200 baud rate?


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default Microcode: How to setup SERIN for 115200 baud rate?

    I need to do that with a project. The datasheet confirms my Pic (16F628A) can handle that baud rate, but SERIN locks me with 300, 1200, 2400 and 9600 bits per second.
    What can I do to make it work with the rates I need?

  2. #2
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164

    Default Re: Microcode: How to setup SERIN for 115200 baud rate?

    The baud rates listed in the datasheet relate to using the chip's internal USART. To access this you would need to use the HSERIN command, use the specific USART RX pin, and likely need a level shifter. However there are great benefits to using the hardware serial port, including use of interrupts and a small (two byte) buffer.

    SERIN (and SERIN2 and DEBUGIN) are software-generated, essentially "bit banging" routines. They absolutely have their uses, and can be assigned to almost any free pin, but you will not be able to get that sort of speed out of them.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

Similar Threads

  1. Baud rate 115200 on PIC16F877A
    By csooi08 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th May 2012, 18:38
  2. Replies: 14
    Last Post: - 20th March 2008, 13:54
  3. pic18f4520 baud rate change to 115200
    By caltex88 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th September 2007, 08:41
  4. 16F877A serin problem with baud rate 19200
    By leemin in forum Serial
    Replies: 1
    Last Post: - 31st July 2005, 09:45
  5. 115200 Baud to 9600 Baud Translator
    By ScottC in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd March 2005, 10:16

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