Electronic – DS1077 to drive a PIC’s clock

clocki2coscillatorpic

I found the DS1077, a "dual-output, programmable, fixed-frequency oscillator". I was wondering if it would be possible to let this chip provide the clock signal for the PIC(18F46K22) that operates the chip over I2C. So, what I'd like to do is this:

schematic

simulate this circuit – Schematic created using CircuitLab

The advantage of this would be that I would be able to change the frequency (i.e. the MIPS) on the fly. What I'm going to do with that, I don't know yet.

The thing is, I'm not sure if the output signal of the DS1077 will be compatible with the PIC and what kind of circuit I'd need for this. Until now, I only used crystals and the internal oscillator.

Also, I don't know if there will be a problem with the I2C communication when I change the frequency of the PIC on the fly?

Best Answer

This device appears to output a simple 5V square wave, so configuring the PIC in EC mode (external clock) should 'just work'. The clock is applied to OSC1/CLKIN, leaving OSC2 free to use as a GPIO line.

Bear in mind also that this PIC device has an internal PLL, so you should have some flexibility in changing the frequency even without the external clock module.

The MSSP baud rate is generated from the oscillator frequency, so the BRG value will need to change whenever \$ F_{OSC} \$ changes.