PIC18F67K40 UART Send String

For general Flowcode discussion that does not belong in the other sections.
LeighM
Valued Contributor
Posts: 401
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 218 times

Re: PIC18F67K40 UART Send String

Post by LeighM »

Add a "C" icon at the start of your program, and paste this code into it ...

Code: Select all

asm ("BSF NVMCON1, 7");

seokgi
Posts: 182
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: PIC18F67K40 UART Send String

Post by seokgi »

I have additional questions.
I am using CircularBuffer. If there is data called "kg" among RS-232 input data, it means to move on to the next processing.
It worked well because I programmed the same code on another MCU. However, in the PIC18F67K40, the data "kg" is not found.
I think I'm doing something wrong, so please advise.
Attachments
K-005.png
K-005.png (360.31 KiB) Viewed 2229 times

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 218 times

Re: PIC18F67K40 UART Send String

Post by LeighM »

Hi,
Add the C code and hopefully all will be well.
The silicon error in the PIC18F67K40 is causing the compiler generated code to not be able to access any strings in your code.

seokgi
Posts: 182
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: PIC18F67K40 UART Send String

Post by seokgi »

All problems have been solved. CircularBuffer works fine and UART SendString works fine too.
Thank you very much.

Post Reply