I suggest you try and read about SLIP. SLIP is a way of sending serial packets. We have some samples, but you will have to do some SLIP conversion on the PC side.
Try either one of these: # 16f877a_slip_isr.jal # 16f877a_slip_poll.jal Located at: http://jallib.googlecode.com/svn/trunk/sample/ Read the SLIP RFC documentation: http://tools.ietf.org/html/rfc1055 Matt. On Nov 28, 4:20 pm, Aloisio Farias <[email protected]> wrote: > Hi...i'm a new user of PIC and JAL. Never before i had success trying > to write code in assembly to get comunication PC x PIC. With JAL, in > some days of tests and studies, i get it ok. However, i'm having some > dificults to understand how can i get a package (not a single char > byte) from PC and use each part of the pack. Like an example, i need > to send to PIC a stream, having the first byte a SOH (maybe not needed > in JAL) command plus a write(0) or read(1) command, the lenght of the > stream, an internal command (byte) to code to use and a number like > 99999.99 to code to use too. Maybe a checksum be needed to send > together. I had think it was be queued or each byte be concatenated > when receiving like chars and be splited after. Can you help me with > this? > > thanks a lot -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
