Threaded... ivp wrote: >> MOVF TIME_RX,W >> MOVWF INDF >> INCF FSR,F > > MOVFF TIME_RX,POSTINC0 I'll change to use POSTINC0 rather than INDF0. After that change, I'm still reading all zeros. I have the 1302 datasheet printed out as well as my code. Time to make sure they 'agree'. BTW, I did check the hardware connections, and all the ports are set correctly and wired correctly to the 1302. >> ;**********************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 The carry bit does not matter, as only the 8 bits in the byte are evaluated as they RR and reach bit 0. >> 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 Again, I don't think the carry flag would matter, as only the 8 bits of the byte are transferred to the B0-B6 location. Joe M. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist