Need help, high speed D/A converter, see code


Results 1 to 7 of 7

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    i'm not sure how PBP will handle this baudrate crystal with a define osc of 20MHZ... i guess everything will run 22.1184/20 time faster SO, SPBRG must be 22.1184/20 = 1.10592 slow

    SPBRG=10 'should be 9.946...

    Or maybe i'm totally wrong there...

    BUT, can you try 20MHZ one with a simple

    DEFINE HSER_BAUD 115200

    instead of setting SPBRG to test only! if nothing is different try at a slower baudrate, let's say 2400.

    suggest to include this line in your receiver too to avoid buffer overrun...
    DEFINE HSER_CLROERR 1


    BUT, what happen when you connect via MAX232 to your PC. Can you receive/transmitt correctly???

    P.S wilma=(wilma*3)-50.... and wilma is a BYTE ?!? Should be word IMO.
    Last edited by mister_e; - 19th December 2004 at 13:10.
    Steve

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

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. Someone help me to simplify this
    By thrix in forum General
    Replies: 4
    Last Post: - 21st February 2004, 05:01
  5. Help wanted..
    By thrix in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th February 2004, 23:44

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