UART Component Compile Error

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

UART Component Compile Error

Post by QMESAR »

Hi Guys.
PIC16F1786 when I place a UART Component and Compile the compiler compain about the syntax of some bits in the CAL File .
Please can you have a look at this :D
I appreciate all your patience with me it seams when I touch FC, I touch errors :D
Attachments
1.jpg
1.jpg (59.53 KiB) Viewed 4472 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: UART Component Compile Error

Post by QMESAR »

Hi Team.

Please don't let me down on this one ,we fix the PWM and memory issues and I am using FC for this small project however I need the UART to send data to a PC application ,
:D

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: UART Component Compile Error

Post by LeighM »

I'll take a look 8)

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: UART Component Compile Error

Post by QMESAR »

Thanks a million Leigh :D

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: UART Component Compile Error

Post by LeighM »

Hi,
Please try replacing the FCD file with attached.
Thanks!
Leigh
Attachments
16F1786.fcdx
(19.79 KiB) Downloaded 161 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: UART Component Compile Error

Post by QMESAR »

Hi leigh,
Thank you it compiles now fine,I will run the code on the weekend and see how it performs now I am still creating the code :D

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: UART Component Compile Error

Post by QMESAR »

Hi leigh/Ben

Ok The UART is receiving correctly now and I can transmit single characters however when you Tx and string of a few bytes the Transmission does not work to solve the issue I had to put delays between the string Tx makro's ,In my opinion the UART component string TX does not check if the hardware is busy then it just try to put all into the TX register and go on to the next string,With the delay between the strings I actually give the HW a chance to catch up,
The UART component seam to not be working well.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: UART Component Compile Error

Post by LeighM »

Hi
I've had a review of the send byte code and it looks OK, in that it checks and waits for the TXIF flag, and it looks like we are checking the correct register.
Have you confirmed that characters are missing? Or is it perhaps that the receiving application cannot keep up and you need to use handshake?
Just a thought, any further info you could give will help, then I can look further into it.
Thanks
Leigh

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: UART Component Compile Error

Post by QMESAR »

Thanks leigh,
I am currently checking way this happens I will be back if it is my error or anything else :D

Post Reply