I have dsPIC compiler, I have written code to send some data for print device,
the the data get from DSP is not,
I have tray different way to solve it but I could not,
And I think the read will be same
This is some of the data the DSP has send it
8E-00-00-00-00-00-00-00
while the DSP should send
0x4D-0x58-0x10-0x01-0x60-0x16
The file is attached
Thanks
UART write error
UART write error
- Attachments
-
- UART Print.rar
- (54.1 KiB) Downloaded 251 times
[color=#0080FF]Thanks,
jrmi[/color]
jrmi[/color]
Re: UART write error
this is a rather dark corner of the forum, old compiler for PIC and also Pascal where you ask something for dsPIC in C, anyway you start filling pdata[] with the 'expected' data and next send cmd[] data.
I see many lines of this code commented out, please do yourself and the forum a favour and clean before posting, that will help getting usefull answers.
I see many lines of this code commented out, please do yourself and the forum a favour and clean before posting, that will help getting usefull answers.
Au royaume des aveugles, les borgnes sont rois.
Re: UART write error
Hi
I have tray to make it easy, Here the code I tray to make it clean
I appreciation all advice
Regads
I have tray to make it easy, Here the code I tray to make it clean
I appreciation all advice
Regads
- Attachments
-
- UART Print.rar
- (6.08 KiB) Downloaded 239 times
[color=#0080FF]Thanks,
jrmi[/color]
jrmi[/color]
Re: UART write error
Hi
I wash you discover how to solve it.
Thanks
I wash you discover how to solve it.
Thanks
[color=#0080FF]Thanks,
jrmi[/color]
jrmi[/color]
Re: UART write error
besides the fact that you are still posting here in an old Pascal forum instead of the more appropriate C section, are you sure the reply on your version request arrives fast enough? what LCD-messages do you get when you try to run this ? I see no delay at all between sending the request and evaluating the reply, maybe it needs some delay there.
Au royaume des aveugles, les borgnes sont rois.