16F88 Serial Out


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Posts
    74

    Question 16F88 Serial Out

    Previously, I was using Portb.1 and Portb.2 for my RS232 Serin and Serout commands. To to be able to use a boot loader in the future, I had to change them to use the USART TX and RX pins.

    I continue to use the normal SerIn and SerOut routines like before, but I started picking up a few errors here and there (4 - 10 errors per 1000 messages), which previously I did not encounter prior to changing the pin assignment.

    I do not require interrupts for my serial routines, so can I still use the standard USART ports like I am for SerIn and SerOut?

    I'm just curious to why it was error free before, and now I see errors, although they aren't a tremendous amount, still concerned.

    Richard

  2. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Not sure about the errors but yes you can basically use HSERIN and HSEROUT instead of what you're doing now.

    You will need to setup the baud rate and what not at the top of the program but from there it's pretty easy.

    I do this type of thing often.

  3. #3
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    When setting up / using the HSerIn / HSerOut, can the baud rates be changed on the fly?

    Currently, I support 4 different rates, by looking at some jumpers during the start of the program.

    Looks like the Defines for the USART set this up at compile time. I'm sure there is a way to override it?

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I haven't every done that, so I'm not sure.

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    rwskinner, Yes they can, just set the SPBRG register with the appropriate calculated baud rate and all is well.

    Dave Purola,
    N8NTA

  6. #6
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Thanks Dave

Similar Threads

  1. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  2. 16f88 internal osc 8mhz max serial baudrate ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th December 2008, 23:27
  3. Replies: 6
    Last Post: - 10th December 2008, 09:00
  4. Serial com - AUSART 16F88 - any samples?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd September 2006, 15:26
  5. 16f88 serial out
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th May 2006, 23:58

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