USART SPBRG Calculator software


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    Hi again, and you're welcome -- it really is a nice app' (and I lack PC-side programming expertise)...

    Some of the 'newer' devices have the 16-bit SPBRG capability as well as 8-bit SPBRG Compatible mode... Here are a few of them; 18F2420/4420, 18F2520/4520, and 18F2620/4620...

    Regards, Mike

    <added>

    Gosh Steve, I didn't expect such a positive response and so quickly... Cool... Well, here's a 25-cent 'jump-start', if you haven't finished the new app' already (grin)...

    Code:
    Here is the 'base' SPBRG formula in the spreadsheet;
    
    SPBRG = INT ( Fosc / BaudRate / Divisor - 1 )
    
    where Divisor is equal to;
    
       64 (BRGH=0 & BRG16=0)   8-bit SPBRG solution
       16 (BRGH=1 & BRG16=0)   8-bit SPBRG solution
    
       16 (BRGH=0 & BRG16=1)  16-bit SPBRG solution
        4 (BRGH=1 & BRG16=1)  16-bit SPBRG solution
    Last edited by Mike, K8LH; - 28th August 2005 at 16:36.

Similar Threads

  1. byte Tx w/ USART 16f876a problem
    By GargamelDigi in forum mel PIC BASIC
    Replies: 2
    Last Post: - 15th July 2008, 05:50
  2. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 17:56
  3. I ammm Looosssst (USART Help)
    By shawn in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th May 2006, 05:05
  4. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07
  5. Replies: 5
    Last Post: - 1st December 2004, 12:49

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