Hi,

I think I need to speed up my program by using ASM.

Basically I have a PIC programmed as a DCE using Hardware flow control, it then prints out to a centronics printer.

My flow control (Using DSR and CTS) from the PIC works ok but when the flow speed is increased, the PIC fails to print some characters...

Here is a cut from the code: (CTS - Clear to Send)

MAIN:
HIGH CTS
SERIN2 SDI,16780,[char]
LOW CTS

<... output to printer here ....>

GOTO MAIN


It seems that the pic is not quick enough between capturing the char and clearing the CTS signal.

I may be able to speed things up by converting the above three lines to ASM?

Can anybody help please?
J