> #include <16c84.h> > #use delay(clock=4000000) > #use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B3) > > void senddata() > { > putc(85); > putc(85); > putc(255); > putc(255); > putc(1); > puts("abcdefgh"); > } > > void main() > { > while (1) > { > senddata(); > delay_ms(2000); > } > } > > does not seem to work. In addition, pin B2 remains high except when > sending data, which I don't want. I can't seem to figure out what the > problem is, and CCS has not helped me. If anyone can shed any light, I > would be most appreciative. > > Are there any tricks I may be missing here? Why does the Pin stay high > all of the time? If you are using transistors to drive the RS232 then you need to change #use to #use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B3, invert) otherwise is should work. Elvin