Hi,
Fırst of all I am using PIC18f4520 , MPLABX and assembler. I want to use a serial port data plotter which I downloaded from Microchips site named "PIC Data Plotter". **broken link removed**
According to PIC Data Plotters user guide to configure the program and then to send data which is to be plotted you need to use a command syntax like this:
#NOP\r\n
Or another command from the guide is this:
#GS;3\r\n
The exact words about command syntax from help file is:
The first byte “#” is a marker of the GUI command. The ASCII command name follows the marker. All elements in the command using ASCII characters are divided by semicolon “;”. The command can have a few parameters. The “new line” sequence “\r\n” ends any command. If the parameters are in the binary format, the semicolon delimiter must be skipped after them. The byte size of the binary parameter is known and it allows parsing.
(P18_usart_send routine is my send routine and i do know it is working properly)
So my question: is my code structure to implement command #NOP\r\n right ? Or should i try something different?
Thanx in advance.
I assume "\r" means "carriage return" which is a single byte with the value "0x0D"
And "\n" means "new line" which is a single byte with the value "0x0A"
It worked. You are a life saver KlausST Thanx.
( One note if someone interested; After i change "\r" and "\n" with the right codes , I reversed the order of sent bytes because program accepts little endian data. Final and correct core :