I haven't fully gone through the below text, but here is what seems to be working for my set routine (B0-B6 are written with values 'earlier' in the program): ------------------- SET_TIME ;write 7 byte time data MOVLW B'10111110' ;multi bytes write mode. MOVWF TIME_TX BSF CLKRST CALL TIME_WRITE CLRF FSR0H MOVLW TIME_TX_ADD ;the start address of send data MOVWF FSR0L MOVLW D'8' ;send 8 bytes at the same time. MOVWF CLKCOUNT2 TW1 MOVFF INDF0,TIME_TX CALL TIME_WRITE INCF FSR0L,1 DECFSZ CLKCOUNT2,1 GOTO TW1 BCF CLKRST RETURN ------------------- TIME_WRITE MOVLW D'8' ;8 bits MOVWF CLKCOUNT1 TLOP BCF CLKIO ;the initial is low BCF CLKCLK BTFSC TIME_TX,0 BSF CLKIO RRCF TIME_TX,1 BSF CLKCLK ;rise-edge to send data DECFSZ CLKCOUNT1,1 GOTO TLOP BCF CLKCLK ;recover RETURN ---------------------- But, when I read the 1302, I get mostly 0s with the occasional 1 second (yes, I've removed the breakpoints and let it run a while). When it writes, all the values seem to be transferred to TIME_TX OK and I can see it 'scroll' right as the RRCFs are processed. Also note the shortcut of "MOVFF INDF0,TIME_TX" which seems to work fine, as the value is being correctly transferred. FSR0L is incrementing correctly now as well. I'll go through your suggestions, too. Joe M. ivp wrote: >> MOVLW TIME_RX_ADD ;save bytes > > MOVWF FSR > > As mentioned, specify FSR0L > >> MOVF TIME_RX,W >> MOVWF INDF >> INCF FSR,F > > MOVFF TIME_RX,POSTINC0 > >> ;**********************write a byte program***************** >> ; TIME_WRITE_1 > >> BSF I_O >> RRF TIME_TX,F > > Carry is indeterminate before that RRF > > CLRC > RRCF TIME_RX (,F is not necessary) > > or use RRNCF > >> BSF STATUS,C >> RRF TIME_RX,F > > SETC > RRCF TIME_RX > > Sometimes pseudo-mnemonics such as CLRC and SETC are not in the > include file. In that case make a couple of small macros and put them in > a group, say, after the CONFIG statements > > clrc macro > bcf status,0 > endm > > setc macro > bsf status,0 > endm > > wbr -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist