kemalkemal
Member level 1
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:
(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.
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:
After i implement the command i will send it through USART module to serial comm port. I try this structure but didnt workThe 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.
Code:
MOVLW 0x23 ;#
MOVWF data_h
CALL P18_usart_send
MOVLW 0x4E ;N
MOVWF data_h
CALL P18_usart_send
MOVLW 0x4F ;O
MOVWF data_h
CALL P18_usart_send
MOVLW 0x50 ;P
MOVWF data_h
CALL P18_usart_send
MOVLW 0x5C ;\
MOVWF data_h
CALL P18_usart_send
MOVLW 0x72 ;r
MOVWF data_h
CALL P18_usart_send
MOVLW 0x5C ;\
MOVWF data_h
CALL P18_usart_send
MOVLW 0x6E ;n
MOVWF data_h
CALL P18_usart_send
(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.