Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: Use of I2CxCCNT register in ADuC7xxx

$
0
0

The ADuC7020 I2C when configured for Master mode does not have an automatic way of generating a repeated start.

The sequence you highlight above is the only workaround possible to try and generate a repeated start.

I2C0CCNT = 0x0I2C0CCNT = 0x0; sets the delay between the rise time of SCL and SDA to 0uS.

If you adjust the external pull-up resistors, it is possible to "hide" the stop condition at the end of the transmitting the byte 0x7 so the start condition issued by i2C0ADR = 0xA1 appears on the bus as a repeated Start.

 

If a repeated Start is required in your application when the I2C is in master mode, the above sequence may help.

You need to test it carefully on your setup - it may not work reliably on all setups.

 

Just to highlight, there are no issues with supporting repeated start conditions in Slave mode on teh ADuC7020 I2C.


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>