Page 1 of 2
PIC18F67K40 UART Send String
Posted: Tue Mar 23, 2021 8:54 am
by seokgi
Hi.
I use the PIC18F67K40 to use multiple UARTs. But SendNumber works, but SendString doesn't work.
I don't think I'm wrong because it's a function I use every time.
Please take a look at this Send String function.
Re: PIC18F67K40 UART Send String
Posted: Tue Mar 23, 2021 8:56 am
by mnfisher
That would be very odd - SendNumber just converts the number to a string then uses SendString....
Can you post your code?
Martin
Re: PIC18F67K40 UART Send String
Posted: Tue Mar 23, 2021 12:11 pm
by seokgi
It's my flowchart.
Re: PIC18F67K40 UART Send String
Posted: Tue Mar 23, 2021 12:31 pm
by BenR
Hello,
That all looks ok.
In your config settings you have the watchdog timer and the LVP enabled, I would disable both of these settings.
If it's still not working after doing changing the config then maybe try assigning the string data into a variable and passing the variable to the SendString function and see if that works.
Let us know how you get on.
Re: PIC18F67K40 UART Send String
Posted: Tue Mar 23, 2021 1:09 pm
by seokgi
As advised, I changed the settings and sent a text through a text variable, but SendString does not work.
Re: PIC18F67K40 UART Send String
Posted: Thu Mar 25, 2021 1:55 am
by seokgi
It's not working.
Please Help me.!
Re: PIC18F67K40 UART Send String
Posted: Thu Mar 25, 2021 8:12 am
by LeighM
Re: PIC18F67K40 UART Send String
Posted: Thu Mar 25, 2021 9:03 am
by seokgi
Thanks for the reply.
But that document doesn't work for me.
I asked the question that UART TX signal does not become SendString.
Is there anything I don't understand?
Re: PIC18F67K40 UART Send String
Posted: Thu Mar 25, 2021 9:09 am
by LeighM
Did you try the ASM code in a C icon at the start of your program?
Re: PIC18F67K40 UART Send String
Posted: Thu Mar 25, 2021 9:18 am
by seokgi
Sorry. I can't use c or asm. How do I add it?