• AVR Freaks

Hot!PIC16F18855 PPS problem

Author
gunzelg
Senior Member
  • Total Posts : 124
  • Reward points : 0
  • Joined: 2004/04/26 05:34:00
  • Status: offline
2020/03/28 04:59:51 (permalink)
0

PIC16F18855 PPS problem

Hello
i have a MPLAB XPress board (DM164140, PIC16F18855), that is supplied with a MicroE clipboard connector. This i want to use with a RS232-click-board from MicroE. The connector is already wired to: TXD to RC5 and RXD to RC6. So i have to reconnect the (internal)connector of the PIC's UART using PPS-commands. But this seams to be a little confusing to me. To get a connection from TX to RC5 i use the command RC5PPS = 0x10; That should reconnect the UART TX to RC5 - hope I think right?! But how to reconnect the RX? The syntax for outputs seam to be other than for inputs? RXPPS = 0x16 ???
who can help?
thanks
Gerhard
#1

3 Replies Related Threads

    mbrowning
    USNA79
    • Total Posts : 1741
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: offline
    Re: PIC16F18855 PPS problem 2020/03/28 05:30:17 (permalink)
    +3 (3)
    Multiple peripherals can input from the same pin simultaneously, so input PPS registers are by peripheral, so RXPPS (or INTPPS or SSP1CLKPPS, etc.) are assigned the pin code.
     
    An output pin can only come from one peripheral, so the PPS register are by pin, so RxxPPS = peripheral function code.
     
    Note that outputs never have default assignments, but inputs do. I do not rely on defaults and always assign both input and output PPS even if I happen to be using the "default"
    #2
    gunzelg
    Senior Member
    • Total Posts : 124
    • Reward points : 0
    • Joined: 2004/04/26 05:34:00
    • Status: offline
    Re: PIC16F18855 PPS problem 2020/03/28 05:57:23 (permalink)
    0
    Hello mbrowning
    understood, but my qustion was specific. I dont know -from the datasheet-, how to reconnect the RX to RC6 of my UART.
     
    regards
    Gerhard
    #3
    mbrowning
    USNA79
    • Total Posts : 1741
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: offline
    Re: PIC16F18855 PPS problem 2020/03/28 06:20:05 (permalink)
    +3 (5)
    Tables 13-1 and 13-2 have the info you want.
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5