PIC32MZ2048EFH PPS to UART EasyPIC Fusion v7

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
jks45
Posts: 7
Joined: 08 Dec 2018 22:37

PIC32MZ2048EFH PPS to UART EasyPIC Fusion v7

#1 Post by jks45 » 15 Jun 2019 20:48

Based on the Remappable Pins table in the Peripheral Pin Select Library , I will not be able to use the function below?

Unlock_IOLOCK()
PPS_Mapping(_RPF5, _OUTPUT, _U2TX) ' USB -UARTA
PPS_Mapping(_RPF4, _INPUT, _U2RX)
Lock_IOLOCK()

The same problem for UARTB (RF13, RF12, RF3, RF2) ?
Attachments
remap table.JPG
remap table.JPG (73.84 KiB) Viewed 1904 times

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: PIC32MZ2048EFH PPS to UART EasyPIC Fusion v7

#2 Post by hexreader » 15 Jun 2019 23:12

You do not say which PIC32MZ2048EFH, but I am going to assume that you are using PIC32MZ2048EFH144

Be sure to select "allow multiple configurations" in project configuration settings.

... or use PPS_Mapping_Nolock library function.

Datasheet tables 12-2 and 12-3 show which PPS mappings are available.

Sample project attached.
Attachments
UART2.zip
(360.26 KiB) Downloaded 100 times
Start every day with a smile...... (get it over with) :)

jks45
Posts: 7
Joined: 08 Dec 2018 22:37

Re: PIC32MZ2048EFH PPS to UART EasyPIC Fusion v7

#3 Post by jks45 » 18 Jun 2019 00:04

Yes, PIC32MZ2048EFH144. I got it working perfectly. The real issue came from the "Remappable Pins" table that was found in the help menu. It made it look like those were the only choices available for some unknown reason. I just trusted what I saw listed as the only options. I do see that I would use U1TX and U1RX for the pins shown in my example. Thanks for your help.

Post Reply

Return to “mikroBasic PRO for PIC32 General”