PIC16F18313 - PPS issue

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
bert@edvinsson.dk
Posts: 1
Joined: 05 Nov 2023 20:05

PIC16F18313 - PPS issue

#1 Post by bert@edvinsson.dk » 23 Nov 2023 13:35

Hi,

What I understand are RA0/Tx and RA1/Rx default UART ports.
When I change PPS for Tx and Rx to be RA2/Tx and RA3/Rx then i have as expected new Tx/Rx ports (works ok).
But now to my problem. The default Tx/Rx ports are still on port RA0/RA1 and are not disabled. So now I have two (2) Tx/Rx ports.
Is it not possible to disable the default RA0/Tx and RA1/Rx ports with the PPS?

| Pin
RA0|-7----------> Default Tx
RA1|-6----------< Default Rx
RA2|-5-----------> My Tx
RA3|-4---------- < My Rx
RA4|-3----------
RA5|-2----------
|

RA0PPS = 0; // Rxy source is LATxy
RA1PPS = 0; // Rxy source is LATxy

RXPPS = 0b00000011; // RA3 as Rx Input
RA2PPS = 0b00010100; // RA2 as Tx Output

Best regards
BED

sgssn
Posts: 35
Joined: 13 Sep 2021 16:24

Re: PIC16F18313 - PPS issue

#2 Post by sgssn » 24 Nov 2023 17:25

Hello
the TX-Pin has no default value. As you can see in the datasheet
https://ww1.microchip.com/downloads/aem ... 01799F.pdf

on page 5, table 1, last column, it has to be set by PPS, and it is not configured to RA0 as default.
When you set a PPS value to a signal there has none to be deleted. Problems only occur, when you have used PPSLOCK. Then you have to unlock first to set a new value.

regards
Gerhard

Post Reply

Return to “PIC PRO Compilers”