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
I appreciate all your patience with me it seams when I touch FC, I touch errors
UART Component Compile Error
Moderator: Benj
- QMESAR
- 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
- Attachments
-
- 1.jpg (59.53 KiB) Viewed 4475 times
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- QMESAR
- 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
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 ,
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 ,
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- QMESAR
- 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
Thanks a million Leigh
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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
Hi,
Please try replacing the FCD file with attached.
Thanks!
Leigh
Please try replacing the FCD file with attached.
Thanks!
Leigh
- Attachments
-
- 16F1786.fcdx
- (19.79 KiB) Downloaded 161 times
- QMESAR
- 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
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
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
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- QMESAR
- 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
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.
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.
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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
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
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
- QMESAR
- 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
Thanks leigh,
I am currently checking way this happens I will be back if it is my error or anything else
I am currently checking way this happens I will be back if it is my error or anything else
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR