Sam3X8E + WM8731, I2C communication error.

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Magician
Posts: 8
Joined: Tue Aug 12, 2014 4:38 pm

Sam3X8E + WM8731, I2C communication error.

Mon Oct 19, 2015 4:54 am

I have an audio module WM8731, configured to 2-wire I2C link. Have a hard time to make it working with my DUE board.
NACK is most common error, sometimes link just hang-up. I tried both available interfaces TW0 and TWI1 , module has on-board pull-ups.
Status register reports arbitr lost on occasions.
Does someone has a recommendation to solve an issue?

PS: AtMega328 able to communicate with the same module via level converters 3.3 / 5V, but not DUE. My impression about I2C on Sam3X8E :evil:
Magician
Posts: 8
Joined: Tue Aug 12, 2014 4:38 pm

Re: Sam3X8E + WM8731, I2C communication error.

Thu Oct 22, 2015 1:31 am

I find a solution, writing my own software I2C driver. Bit banging, timer driven three state automate.
More info at: http://coolarduino.blogspot.ca/2015/10/ ... o-due.html

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest