PIC24FJ64GC006 UART_1 RX PPS Mapping Error

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
HyperUniverse
Posts: 282
Joined: 17 Jun 2009 10:42

PIC24FJ64GC006 UART_1 RX PPS Mapping Error

#1 Post by HyperUniverse » 28 Jun 2021 11:28

Hi,

PIC24FJ64GC006
Why I can't set the UART_1 RX in PPS Mapping?

Code: Select all

/******************** PIC24 UARTs PPS Mapping *********************************/
     Unlock_IOLOCK();
  PPS_Mapping_NoLock(25, _INPUT, _U1RX) ;   // Sets pin 52 (RP25) to be Input, and maps RX1 Input to it
  PPS_Mapping_NoLock(22, _OUTPUT, _U1TX);   // Sets pin 51 (RP22) to be Output, and maps EUSART1 Asynchronous Transmit/Synchronous Clock Output to it 

  PPS_Mapping_NoLock(23, _INPUT, _U2RX) ;   // Sets pin 50 (RP23) to be Input, and maps RX2 Input to it 
  PPS_Mapping_NoLock(24, _OUTPUT, _U2TX);   // Sets pin 49 (RP24) to be Output, and maps EUSART2 Asynchronous Transmit/Synchronous Clock Output to it  
     Lock_IOLOCK();
/******************** end of PIC24 UARTs PPS Mapping **************************/
The kind of error is like this _U1RX it doesn't exit in the compiler

There's no problem with setting that pin as _U2RX or _U3RX or _U4RX

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC24FJ64GC006 UART_1 RX PPS Mapping Error

#2 Post by filip » 29 Jun 2021 10:05

Hi,

I had no issues in compiling this code in 7.1.0 version of the compiler.

Which version of the compiler are you using ?

Regards,
Filip.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”