Getting Error when using UART on 16F1825

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

Moderator: Benj

Post Reply
George_B
Posts: 128
Joined: Wed Jul 04, 2012 11:21 pm
Location: Greece
Has thanked: 51 times
Been thanked: 19 times
Contact:

Getting Error when using UART on 16F1825

Post by George_B »

Hi,

i am trying to use UART with device 16F1825 and i am getting the error below.

When i remove the UART components from the project, it compiles with no errors.

I would like to configure the uart so i can set the baud rate value at 1200 using C code.


is there anyone how faced the same issue?


Thanks in advance
George




Title:
Description:
Device: PIC.16F.16F1825
Generated by: Flowcode v7.3.0.5
http://www.matrixtsl.com
Launching the compiler...
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
370: APFCON0 = APFCON0 & ~(1<<);
(195) expression syntax ^
373: APFCON0 = APFCON0 & ~(1<<);
(195) expression syntax ^
(908) exit status = 1
(908) exit status = 1


FINISHED

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Getting Error when using UART on 16F1825

Post by Benj »

Hi George,

I've just tried it here and it's working ok for me.

Have you applied the fixes listed here?
https://matrixtsl.com/mmforums/viewtopi ... 63&t=19743

If you have and you're still getting the problem then please can you attach your .fcfx project file and your .msg.txt error log file.

George_B
Posts: 128
Joined: Wed Jul 04, 2012 11:21 pm
Location: Greece
Has thanked: 51 times
Been thanked: 19 times
Contact:

Re: Getting Error when using UART on 16F1825

Post by George_B »

Hi Benj,

Great job!
You gave the solution fast and sharp as always, now it is working perfect.


Thank you very much!
George

Post Reply