PIC16F1779 settings for EUSART


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    455


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: PIC16F1779 settings for EUSART

    If you look at Table 12-1 Port Selection and Table 12-2 Available Ports For Output you'll find that the EUSART can't be mapped to PORTD, only PORTB and PORTC.

    There are restrictions like this in many of the devices... the PPS matrix isn't a full x-y mux and you usually only get a choice of two ports to pick from.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: PIC16F1779 settings for EUSART

    Ooops...

    Thanks,
    Ioannis

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: PIC16F1779 settings for EUSART

    If I may make a suggestion; I noticed when you were trying to use PORTD for UART, you initialized your TX Pin low (LATD = 0). I initialize my UART TX Pin high, as that is the idle state. Secondly, your WPUD didn't take advantage of the ability to bias your RX Pin high as well. You may get a false Start of Signal reading when your companion device initializes. Using a Weak Pull-Up on RX reduces that chance.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: PIC16F1779 settings for EUSART

    Thank you Mike for the suggestions. Indeed this is the proper way to initialize the ports. At the moment that was the least of the problems.

    The important thing is to read carefully the datasheet and as tumbleweed noted, I was setting UART on wrong ports.

    Now that I paid more attention and am really awake(!), it works as it should and all is fine.

    The people in this forum are one of a kind. Thank you all.

    Ioannis

Similar Threads

  1. EUSART vs. MSSP
    By keithv in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 15th February 2018, 17:22
  2. EUSART's - Which timers do they use?
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st June 2015, 23:06
  3. Any different between USART and EUSART?
    By Demon in forum Off Topic
    Replies: 1
    Last Post: - 2nd February 2014, 09:04
  4. EUSART Stop Receiving
    By CocaColaKid in forum Serial
    Replies: 1
    Last Post: - 27th June 2007, 18:54
  5. Eusart?
    By rastan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th January 2005, 22:50

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