Compilation problem after reinstalling windows

General discussion on mikroC AI for PIC.
Post Reply
Author
Message
Fabiano
Posts: 29
Joined: 28 Apr 2010 21:07

Compilation problem after reinstalling windows

#1 Post by Fabiano » 18 May 2023 15:25

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.

Fabiano
Posts: 29
Joined: 28 Apr 2010 21:07

Re: Compilation problem after reinstalling windows

#2 Post by Fabiano » 22 May 2023 12:56

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();

Post Reply

Return to “mikroC AI for PIC General”