I need to generate a square wave, which sweeps continuously from around 36KHz to around 37KHz linearly, with the sweep taking 20mS to cover that range. This PIC doesn't have to do anything else.
Have you remembered the required 10K pull-ups on both SDA and SCL?
P.S. is that you Sam?
Gerry
Not on _SPI_.
Pull ups are needed for I2C, which is a 'open collector' bi-directional bus, but SPI do ...