Hello,
I try to use the RS232 componentwith my PIC16F18313, but i get the following compiler Error:
366: tris |= (1 << (0));
^ (192) undefined identifier "tris"
(908) exit status = 1
(908) exit status = 1
Please tell me if I'm wrong, or if it's a general problem with the RS232.
Tankks Marcel
Compiler Error using RS232
Moderator: Benj
- 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: Compiler Error using RS232
Hello,
The problem is because the RX pin is unconnected even though it is not being used it need to be connected.
Set the UseRx property to true, then connect the RX pin to a valid pin and then set the UseRx property back to false and it should compile correctly now.
The problem is because the RX pin is unconnected even though it is not being used it need to be connected.
Set the UseRx property to true, then connect the RX pin to a valid pin and then set the UseRx property back to false and it should compile correctly now.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 47
- Joined: Mon Apr 16, 2018 10:28 am
- Location: Germany
- Has thanked: 1 time
- Been thanked: 9 times
- Contact:
Re: Compiler Error using RS232
Thanks a lot, now it is compiled.
But I get no output on PIN RA0.....
No Data and no voltage (measured with oscilloscope)
Any one an idea????
But I get no output on PIN RA0.....
No Data and no voltage (measured with oscilloscope)
Any one an idea????
-
- Posts: 47
- Joined: Mon Apr 16, 2018 10:28 am
- Location: Germany
- Has thanked: 1 time
- Been thanked: 9 times
- Contact:
Re: Compiler Error using RS232
A short update:
sending a char via the UART (CAL) will work!
sending a number via UART component dosent work.
Maybe there is a problem with the component?
sending a char via the UART (CAL) will work!
sending a number via UART component dosent work.
Maybe there is a problem with the component?
-
- Posts: 47
- Joined: Mon Apr 16, 2018 10:28 am
- Location: Germany
- Has thanked: 1 time
- Been thanked: 9 times
- Contact:
Re: Compiler Error using RS232
Am I really the only one who has this problem?
Or is there only this problem with the PIC16F18313?
Or is there only this problem with the PIC16F18313?
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Compiler Error using RS232
Hi
Please try the updated CAL file, to go into C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC
Auto update will be updated soon.
Thanks for spotting this.
Please try the updated CAL file, to go into C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC
Auto update will be updated soon.
Thanks for spotting this.
- Attachments
-
- PIC_CAL_UART.c
- (36.05 KiB) Downloaded 172 times