I don't generally approve of questions like "what's wrong with this" = accompanied by lines of source. But right now I'm stumped, I wrote an rs232 routine that sends data at = 9600bps, it did infact send data, not the character I told it to though, = so I re-wrote parts of it where I found errors in the code. and now it's not sending anything, if I had access to a scope I'm sure I = could find it but I've looked at this code for the past 40 mins, I've = ran it through mplab sim a few times and it seems to run great. I know it's not pretty, I just whipped it up verify the circuit was = connected properly. the d_104 is a 104usec delay, the timing is off by a few percent but = even still I should get something in the hyperterminal, the data is sent = 8 databits, no parity, and 2 stopbits. _write_rs232 movwf _RSDATA movlw 0x08 movwf _CNTR bcf PORTB, 4 =20 _rsloop call d_104 rrf _RSDATA, f btfsc STATUS, C goto _one =20 goto _zero =20 _one bsf PORTB, 4 =20 goto _skip _zero bcf PORTB, 4 =20 _skip decfsz _CNTR, f goto _rsloop call d_104 bsf PORTB, 4 ; 1 call d_104 call d_104=20 return -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu