On Friday 03 Oct 2003 9:19 pm, you wrote: > Ok here is a shorter, well documented, version of the routine that I > posted as "Writing data to a block of addresses using INDF" and it is > still giving me hell. I will not write the data to Rx_Buffer + Rx_Num, > it always write to Rx_Buffer. > > RX_INT_HANDLER > BANK0 > BTFSS RCSTA,OERR ; test if overrun bit is set > PCALL RX_1 ; if overrun bit is not set then goto > RX_1 > BCF RCSTA,CREN ; if overrun bit is set then stop > continuios receive > BSF RCSTA,CREN ;reset error start continuios receive > MOVF RCREG,0 ;dummy read > CLRF Rx_Num ;clear Rx_Num > MAD NOP > RETURN > RX_1 > BANK0 ;TEST!! > MOVLW Rx_Buffer ;Move Address of Rx_Buffer to W > ADDWF Rx_Num, W ;Add Rx_Num to W Here is the problem. ADDWF adds W to the File not the file to W. After this line W still equals Rx_Buffer. Ian -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu