Hello,
I am using the h83678 controller, and I simply can't make the internal I2C module to work.I've searched almost everywhere but I can't find library that I can include in my IAR embedded workbench project.Does anyone have such library or a working code?
Since you use the IAR compiler, you'll need a library compiled with that tool.
However, the HW manual gives a very good description of the Master and Slave operations for Transmit and Receive. I2C can be picky with timing of transitions, so it you have access to a logic analyzer, it can help.
Look at the I2C Bus section of the manual, and make sure your code follows the flowcharts Make sure you know if you are using the Clocked Synchronous or the I2C Bus format.
I've made my own functions according to the manual, but they are not working very well.Sometimes I miss some bytes. I guess that is because I am using it to control Cypress - capsense chip to make touch-sense keyboard which has very strange timings .If someone with h83678 or similar microcontroller has working I2C functions please post it here so I can see where I am wrong.
©2003–2009 Renesas Technology Corp. All rights reserved. Using Our Website | Privacy
Contact us