嗨,Burak,
200米是5kHz时钟。I2C从机(SL3S4011)将SCL拉低至200μs。听起来像是“时钟拉长”。好消息是PSoC4支持时钟拉伸。
但是我不知道如何在PSoC4中捕获拉伸事件,也许使用计时器来计算SCL的低时间,也许只是状态寄存器可以在没有定制代码的情况下完成它。
让我们仔细检查I2C主代码细节…
谢谢,
赖安
以上来自于百度翻译
以下为原文
Hi Burak,
200us is 5KHz clock. I2C slave(
SL3S4011) pulls SCL low for 200us. It sound like "clock stretching". The good news is that PSoC4 supports clock stretching.
But I have no idea about how to capture stretching event in PSoC4, maybe using a Timer to count LOW time of SCL, maybe just a status register can make it without customized code.
Let's double-check I2C master code details....
Thanks,
Ryan
嗨,Burak,
200米是5kHz时钟。I2C从机(SL3S4011)将SCL拉低至200μs。听起来像是“时钟拉长”。好消息是PSoC4支持时钟拉伸。
但是我不知道如何在PSoC4中捕获拉伸事件,也许使用计时器来计算SCL的低时间,也许只是状态寄存器可以在没有定制代码的情况下完成它。
让我们仔细检查I2C主代码细节…
谢谢,
赖安
以上来自于百度翻译
以下为原文
Hi Burak,
200us is 5KHz clock. I2C slave(
SL3S4011) pulls SCL low for 200us. It sound like "clock stretching". The good news is that PSoC4 supports clock stretching.
But I have no idea about how to capture stretching event in PSoC4, maybe using a Timer to count LOW time of SCL, maybe just a status register can make it without customized code.
Let's double-check I2C master code details....
Thanks,
Ryan
举报