Page 1 of 1

Compilation problem after reinstalling windows

Posted: 18 May 2023 15:25
by Fabiano
Hi!

I have a compiler problem after changing my computer's HD.

I reinstalled and activated Mikroc, but now when I compile an old program that worked, the microcontroller no longer sends serial data through the UART.

When I program the old file in the PIC's memory the equipment works perfectly, if I open the file and compile the uart it stops sending data.

I'm using a pic 16F18344.

The program was written in 2020 and I was using windows XP, now I have updated to windows 10.

Re: Compilation problem after reinstalling windows

Posted: 22 May 2023 12:56
by Fabiano
Hi!

After many tests I found that the TX was working but on the RB4 pin and not on the RB5 as I was configuring.

With some code changes and the insertion of Unlock_IOLOCK() commands; and Lock_IOLOCK(); now it's working.


Unlock_IOLOCK();

rxpps = 0b00001101; //Peripheral input is RB5

RC5pps = 0b00010100; //rc5 configurado como tx 10100= RC5 source is TX/CK

Lock_IOLOCK();