Serial com - AUSART 16F88 - any samples?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex
    I would like to transmit serial data using the integrated AUSART module in PIC16F88. THE PIC is directly connected to the PC.

    [code]...
    'On PC Micro Code Studio's Terminal set to 9600,N,8,1
    ...[code]
    The AUSART uses TRUE format only (idles high). You have hyperterminal set for INVERTED (idles low). I believe your options are:

    a) use the USART with a level converter like the MAX232 between your pin and the PC.
    b) use software inverted serial routines (like serin/serout) instead of the USART - then you can stay directly connected to the PC.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Hello Paul,

    I thought that the AUSART module was replacing an external level converter. So it is not the case?

    What is a TRUE format?
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    No, the AUSART doesn't replace a level converter. Most use the AUSART because it can buffer two bytes and you can utilize interrupts with it.

    Paul described it pretty well. True format means that when the lines are not being using they are High. Your computer however lets the lines go low when they are idle.

    So your options are a level converter like the max232, debug, or serin/serout and a few resistors.

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Thank you.

    It's now very clear to me.

    This is most of the problems I face with programming the PICs: I don't fully understand the data sheets...

    Regards
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Yeah I had that problem too when I started. It takes practice to understand them. I still read a section a few times to make sure my head is wrapped around it before I begin.

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. 16f88 serial out
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th May 2006, 23:58
  5. 16F88 Serial Out
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2006, 19:28

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