jsbhalla88
Member level 1
hi
I am trying to get the hardware UART working on PIC16F1618 @ 8MHz, 9600bps.
I have worked on hardware uart earlier with other PIC controllers. but I am not able to get this one working.
when I use the UART library routines, it gives the following error:
"Unresolved extern 'PPS_Mapping' __Lib_UART_Remappable.c"
if I use the library function: Unlock_IOLOCK();
to remap the pins, it gives an error again, saying, "Undeclared identifier 'Unlock_IOLOCK' in expression MyProject.c" refreing to the line where I had used this function.
I have selected all libraries.
So, I tried remappable UART library functions.
it did not give any errors, but it did not work either.
it did not receive, nor transmit anything. data is transmitted from PC to Rx pin, but does nothing. I have checked with oscilloscope
program is working, not stuck, as I had put in code to toggle an output every cycle, and the output was toggling turning the LED on/OFF.
I have disabled the analog function for Rx pin, set the Rx pin as input, and Tx pin as output.
it does not transmit anything,
cannot REMAP pins until Unlock_IOLOCK(); and other mapping functions work.
software UART is working, but I need hardware UART for my application.
thanks..
I am trying to get the hardware UART working on PIC16F1618 @ 8MHz, 9600bps.
I have worked on hardware uart earlier with other PIC controllers. but I am not able to get this one working.
when I use the UART library routines, it gives the following error:
"Unresolved extern 'PPS_Mapping' __Lib_UART_Remappable.c"
if I use the library function: Unlock_IOLOCK();
to remap the pins, it gives an error again, saying, "Undeclared identifier 'Unlock_IOLOCK' in expression MyProject.c" refreing to the line where I had used this function.
I have selected all libraries.
So, I tried remappable UART library functions.
it did not give any errors, but it did not work either.
it did not receive, nor transmit anything. data is transmitted from PC to Rx pin, but does nothing. I have checked with oscilloscope
program is working, not stuck, as I had put in code to toggle an output every cycle, and the output was toggling turning the LED on/OFF.
I have disabled the analog function for Rx pin, set the Rx pin as input, and Tx pin as output.
it does not transmit anything,
cannot REMAP pins until Unlock_IOLOCK(); and other mapping functions work.
software UART is working, but I need hardware UART for my application.
thanks..