I'm also working with the PIC16F877 chip. I'm already set up for serial comm with the PC, is there anyway I can use the serial connection to write to a compact flash card? If not, how are these cards written and how can I interface to them without buying an adapter?