PIC16F876 baud rate 7812.5, I can ????


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    AndreaIta's Avatar
    AndreaIta Guest

    Default PIC16F876 baud rate 7812.5, I can ????

    I have a big problem. How can I set the baud rate to 7812.5 (8N1) ????
    I have try whit 9600 baud but don't work, there is a solution ???
    Please help me, I am an italian boy. Thanks.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    By using the internal USART and HSEROUT...
    @20 MHZ
    Code:
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_SPBRG 159 ' 7812.5 Bauds
    @10mhz
    Code:
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_SPBRG 79 ' 7812.5 Bauds
    and blah blah blah for other speed.

    I did a simple calc software for that few months ago.
    Download here
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2005
    Location
    antipolo city, philippines
    Posts
    23


    Did you find this post helpful? Yes | No

    Default i wonder where

    AndreaIta,

    mister e was right. utilize the hardware USART. only i wonder where will you use a 7812.5 bps baud? may i know? im just curious. Thank.

    regards,
    yettie

  4. #4
    AndreaIta's Avatar
    AndreaIta Guest


    Did you find this post helpful? Yes | No

    Default

    All right.
    I must interface my car (Fiat Coupè) whit a stand-alone tester, that I have made.
    I have just written all the code, and i must try it.
    The function is: Read all engine et electric parameter, and Remove Error .

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. PIC 18f1220 EUSART Baud Rate Cache Problem
    By wklose99 in forum Off Topic
    Replies: 3
    Last Post: - 15th April 2008, 00:39
  3. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  4. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 22:41
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 16:48

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