Software UART? PIC18F46K22

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times

Software UART? PIC18F46K22

Post 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.!
Attachments
Guil.fcfx
(20.36 KiB) Downloaded 222 times

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

Re: Software UART? PIC18F46K22

Post 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 3075 times

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times

Re: Software UART? PIC18F46K22

Post 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)

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

Re: Software UART? PIC18F46K22

Post by LeighM »

That's just a warning, you can ignore it :)

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times

Re: Software UART? PIC18F46K22

Post by seokgi »

Thank you!

I'll test tomorrow.

Post Reply