PWM as a Clock

Does anyone know if the PWM technique in the arduino can by used as a clock on other IC's.

I have a PT2258 Volume Controller and want to change the volume using the arduino when I command it to.

It has a SCL (clock) and SDA (data) inputs however this is one of my first projects with the Arduino, so sorry if this may seem obvious to anyone.

I think if I connect the PWM function to these inputs I can program the SCL and SDA, therefore send data to change the volume.

Thanks.

I think if I connect the PWM function to these inputs I can program the SCL and SDA, therefore send data to change the volume.

No These two lines are for SPI interfacing, the Arduino does support this separately, see SPI in the playground.

Cool! Thanks! :slight_smile:

As far as I can see from looking briefly at the SPI interface I would only need to connect the MISO (master in slave out) and the SCK (serial clock), leaving the MOSI (master out slave in) and SS (slave select pin) unconnected.

I`m lost ?

with SCL (clock) and SDA (data) isn`t that I2C or the other things it gets called and not SP1 ?

I`m lost ?

No Peter I am lost, quite right I don't know what I was thinking about. :-?

The good news is that you only have to use A4 & A5 all the other pins are free.