SEROUT2 takes 1400ms to execute?
SerOut2 PORTB.6,N2400,["A",w2]
I've timed this on a tight loop and it takes almost 1500ms to execute! Whats taking so long? How can I speed this up to us? Is the "A" just for a handshake? I just copied it from the manual. No define or anything needed to use it?
The compiler is set to XT and both PIC's have 3.58 oscillators and program defines osc 3.
clarification of qualifier & external device please
master PIC: SerOut2 PORTB.6,N2400,["A",w2]
slave PIC: SerIn2 PORTB.0,N2400,[wait ("A"),w2]
Not sure if I understand completely. The delay has been determined @ SEROUT2 statement, no external devise is part of this, not waiting at the SERIN2 statement. I have included the modifier "wait" and qualifier "A" for timing purposes to transmit byte w2, a marker if you will. This qualifier "A" isn't anywhere else in the program, I assumed it is generated at the time of the Serout2 statement execution (instantly). Actually, I need to know if using the qualifier "A" in SEROUT is OK, I can't find any reference to it in the manual in SEROUT or SEROUT2, but I believe it is necessary to send if SERIN is expecting to see it? Why the long delay in transmittal? Need I establish the use of the qualifier elsewhere first?