'll Show how to properly configure the Peripheral Pin Select this microcontroller
for example, to configure UART1, where the TX output RP15 and RX RP14.
How to Edit Project add flag IOL1WAY
I apologize for my English.
PIC24FJ64GA002 configure PPM
http://www.mikroe.com/forum/viewtopic.p ... hlight=pps might be of interest for you
Au royaume des aveugles, les borgnes sont rois.
you will have to convert this little library yourself, should not be a problem, it is very straightforward. You mentioned in your original mail the IOL1WAY flag, this you will have to add to the definitionfile of this PIC. Soon there should be updated definitionfiles for many new devices when the pro compilers appear, i expect these fixes to be part of those.
Au royaume des aveugles, les borgnes sont rois.
Hi,
Look, how I make it for my P24FJ64GA002:
// Unlock sequence
OSCCON = (OSCCON & 0xFF00) | 0x0046;
OSCCON = (OSCCON & 0xFF00) | 0x0057;
OSCCON &= 0xFFBF;
RPINR19 = 0x000E; //UART2 rx on pin rb14
RPOUTR7 |= 0x0500; //UART2 tx on pin rb15
RPINR18 = 0x0005; //UART1 rx on pin rb5
RPOUTR1 = 0x0300; //UART1 tx on pin rb3
RPOUTR3 = 0x0800; //SPI1 SCK out on pin rb7
RPOUTR4 = 0x0007; //SPI1 data out on pin rb8
RPINR20 = 0x0009; //SPI1 data input on pin rb9
//Lock sequence
OSCCON = (OSCCON & 0xFF00) | 0x0046;
OSCCON = (OSCCON & 0xFF00) | 0x0057;
OSCCON |= 0x0040;
It's work good
Have a nice day
Look, how I make it for my P24FJ64GA002:
// Unlock sequence
OSCCON = (OSCCON & 0xFF00) | 0x0046;
OSCCON = (OSCCON & 0xFF00) | 0x0057;
OSCCON &= 0xFFBF;
RPINR19 = 0x000E; //UART2 rx on pin rb14
RPOUTR7 |= 0x0500; //UART2 tx on pin rb15
RPINR18 = 0x0005; //UART1 rx on pin rb5
RPOUTR1 = 0x0300; //UART1 tx on pin rb3
RPOUTR3 = 0x0800; //SPI1 SCK out on pin rb7
RPOUTR4 = 0x0007; //SPI1 data out on pin rb8
RPINR20 = 0x0009; //SPI1 data input on pin rb9
//Lock sequence
OSCCON = (OSCCON & 0xFF00) | 0x0046;
OSCCON = (OSCCON & 0xFF00) | 0x0057;
OSCCON |= 0x0040;
It's work good
Have a nice day