Simon Clubley

Software I2C master on the HC08 JB8

Discussion created by Simon Clubley on Dec 7, 2006
Latest reply on Dec 7, 2006 by bigmac
I have implemented a basic software master I2C module for the HC08 JB8 and I would like to extend it to be able to detect clock stretching by the slave device.

In order to do this, I need to be able to detect when the slave is holding the clock line low.

Unfortunately, the clock line is a output line as far as the JB8 is concerned and on the JB8, unlike some other microcontrollers, you don't appear to be able to read the current actual status of an output line.

I have looked at the software I2C master application note, but it is silent on the subject of clock stretching.

Does anyone have any suggestions how I can read the actual level of a JB8 output line ?

Thanks,

Simon.

Outcomes