I am using the SPI module in 16f877 (is to be the same as in i.e 16c77) Using it in SPI master mode, the BF bit will be set when a byte is completely transferred. Do I need to clear it by software in order to get it cleared, or will it clear itself by hardware when I write or read the SSPBUF? The datasheet table about he bit and the text tell nothing about automatic resetting. But in the exapmle code in the datasheet, the bit is not reset by softare either! For now I clear it using BCF, but I want to shave off every unneeded cycle ;) Thanks in advance /Morgan Morgans Reglerteknik, HŠllekŒs, 277 35 KIVIK, SWEDEN tel +46(0)414-446620, fax -70331, mrt@iname.com