Thank you very very much to answer i attache two pic program
i read your update [email protected] در تاریخ سهشنبه ۲۰ آوریل ۲۰۲۱ ساعت ۱۸:۵۹:۴۴ (UTC+4:30) نوشت: > Hi Majid > > I find the code difficult to read and you are doing too much here. > > Some observations: > > - You include the same library more than once, you should not do that. > - The serial interrupt routine is part of the library so you do not > need it here > - Your program uses an interrupt routine so you expect that it is > called becauses there is an interrupt routine in the serial library but > this is not a good practice. > > I do not know if it is your intention to do stuff in an interrupt routine > otherwise I would just move it to the main loop and put the check (this is > not a wait) using ' if serial_hw_read(your_data)' in your main program. > > I did some cleanup of your program but since I do not understand what you > are trying to achieve it might be wrong. > > Kind regards, > > Rob > > ------------------------------ > *Van:* [email protected] <[email protected]> namens majid > ebru <[email protected]> > *Verzonden:* dinsdag 20 april 2021 15:23 > > *Aan:* jallib <[email protected]> > *Onderwerp:* Re: [jallib] How to send & receive data with interrupt in > RS232 > hi again > can any body say me what is my wrong?? > > > Compilation started at :4/20/2021 4:48:38 PM > jal 2.4o (compiled May 8 2011) > [Error] (lib/serial_hw_int_cts.jal) [Line 224] "serial_ctsinv" not defined > [Error] (lib/serial_hw_int_cts.jal) [Line 224] 'end' expected (got > 'serial_ctsinv') > [Error] (lib/serial_hw_int_cts.jal) [Line 224] {IF starts at > C:\JALPack2\lib/serial_hw_int_cts.jal:214} > [Error] (lib/serial_hw_int_cts.jal) [Line 224] "serial_ctsinv" not defined > [Error] (lib/serial_hw_int_cts.jal) [Line 224] 'end' expected (got > 'serial_ctsinv') > [Error] (lib/serial_hw_int_cts.jal) [Line 224] {IF starts at > C:\JALPack2\lib/serial_hw_int_cts.jal:212} > [Error] (lib/serial_hw_int_cts.jal) [Line 224] "serial_ctsinv" not defined > [Error] (lib/serial_hw_int_cts.jal) [Line 224] 'end' expected (got > 'serial_ctsinv') > [Error] (lib/serial_hw_int_cts.jal) [Line 224] {procedure starts at > C:\JALPack2\lib/serial_hw_int_cts.jal:206} > [Error] (lib/serial_hw_int_cts.jal) [Line 224] "serial_ctsinv" not defined > [Error] (lib/serial_hw_int_cts.jal) [Line 224] unexpected token: > "serial_ctsinv" > > Thank you > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jallib/d03b52e4-da68-46ce-873a-7849b0d3b697n%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/d03b52e4-da68-46ce-873a-7849b0d3b697n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/9cd308cf-0e66-45a1-950e-664fb8c3b2adn%40googlegroups.com.
<<attachment: PIC2PIC.zip>>
