Page 1 of 1

Software UART? PIC18F46K22

Posted: Mon Dec 18, 2017 9:53 am
by seokgi
Hi!
I want using serial port in 18f46k22

CH1 and CH2 is no problem.

But Port D using 16 X 2 LCD Display.

And then I wanna use Soft Serial.

But that is compile error.

Please Help me.!

Re: Software UART? PIC18F46K22

Posted: Mon Dec 18, 2017 10:47 am
by LeighM
Hi,
It looks like we have a little bug relating to the use of string constants.
As a workaround could you enter the string directly into the SendString parameter
constant_string.jpg
constant_string.jpg (7.25 KiB) Viewed 3366 times

Re: Software UART? PIC18F46K22

Posted: Mon Dec 18, 2017 11:59 am
by seokgi
Maybe you couldn't understand my question.
It was my fault.

I want to ask this :
I got a "software serial" "compile error". So what can I do?

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_UART.c:
203: #define MX_SOFT_BAUD_X (1000000 / MX_UART_BAUD_X) - SW_OFFSET
^ (111) redefining preprocessor macro "MX_SOFT_BAUD_X" (C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_UART.c: 211) (warning)

Re: Software UART? PIC18F46K22

Posted: Mon Dec 18, 2017 12:28 pm
by LeighM
That's just a warning, you can ignore it :)

Re: Software UART? PIC18F46K22

Posted: Mon Dec 18, 2017 4:53 pm
by seokgi
Thank you!

I'll test tomorrow.