In the previous article, we sent and received a single character, but actual communication handles strings of two or more characters; in USART serial communication, commands for sending and receiving themselves are in units of a single character (8 bits), so strings are sent and received one character at a time using arrays and pointers.
This time, the program sends and receives strings by storing them in variables using pointers.
Enter a string on the PC and store the string up to the terminating character '@' in the array RxString using a pointer.
This program detects if the input string matches the character code "ABC" registered in advance.
This program does not use interrupts, so there is a wait time while sending and receiving, and it is not practical, but it is a program that contains the basics of string sending and receiving.