This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
325 Views 4 Replies Last post: Jun 18, 2010 7:20 PM by raut_onkar RSS
todor Newbie 2 posts since
Feb 8, 2010
Currently Being Moderated

Feb 8, 2010 5:33 AM

Is there working I2C library for h8 series

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?

Tags: i2c, h83678
ckgrier Apprentice 840 posts since
Mar 16, 2009
Currently Being Moderated
Feb 10, 2010 12:11 PM in response to: todor
Re: Is there working I2C library for h8 series

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.

raut_onkar Newbie 1 posts since
Jun 18, 2010
Currently Being Moderated
Jun 18, 2010 7:21 PM in response to: todor
Re: Is there working I2C library for h8 series

Hi,

 

I've made this piece of code put up on my website. Can work with most devices. It's pretty basic and is made with HEW. Haven't tested with IAR or other IDEs. Download freely from http://sites.google.com/site/rautonkar/projects. It's still under test, so send bug reports if any.

 

 

Regards,

 

Onkar Raut,

Graduate Student,

University of North Carolina at Charlotte.

More Like This

  • Retrieving data ...

Bookmarked By (0)