OV7670 writing to registers

Can you post all the code so we can see you reading and writing in the same code.