settings check please


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251

    Default settings check please

    I tried running two USARTs on an 18f45k22. The first one runs fine (PortC.6) but the second one (D.6) outputs junk.

    DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    DEFINE HSER_SPBRG 51 ' 4800 Baud @ SPBRGH = 0
    BAUDCON.3 = 1 ' Enable 16 bit baudrate generator
    DEFINE HSER2_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER2_TXSTA 20h ' Enable transmit, BRGH = 0
    DEFINE HSER2_CLROERR 1 ' Clear overflow automatically
    DEFINE HSER2_SPBRG 51 ' 4800 Baud @ SPBRGH = 0

    can someone please advise me what am I doing wrong here? Cheers

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: settings check please

    Make sure you have CCP1 PWM module disabled. It has a higher priority than the EUSART.
    Regards,
    TABSoft

Similar Threads

  1. Replies: 1
    Last Post: - 8th March 2013, 10:29
  2. ple*se check this
    By bogdan in forum Forum Requests
    Replies: 1
    Last Post: - 10th April 2011, 18:42
  3. can someone help me check?
    By saturnX in forum Schematics
    Replies: 17
    Last Post: - 12th September 2005, 13:08
  4. Even Parity Check, How?
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th January 2005, 10:21
  5. Code check (sorry)
    By barkerben in forum General
    Replies: 5
    Last Post: - 30th November 2004, 16:54

Members who have read this thread : 1

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