Connected I2C master to Port D pins - I'm snookered, aren't I?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

 

This is my first foray into native AVR progamming in C, I've used the Arduino platform and ATMegas up to now.

 

I've built a board using an xmega32e5 and have most of it working but I've just started trying to use the I2C bus. On my PCB I connected the I2C bus to the I2C pins on port D.

 

On further reading it appears these are only for use as an I2C slave in bridge mode. My reading of the 32e5 specific datasheet is that to use the port D pins you have to enable bridge mode and it's only for slave mode.

 

http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8153-8-and-16-bit-AVR-Microcontroller-XMEGA-E-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet.pdf Page 43

 

I'm just checking as I'm VERY new to this so hoping I'm missing something.

 

Thanks

 

tommy

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Unfortunately...  That's the way I read it.

 

I have 0 experience yet with the event system on these chips, but if I were going to look for a workaround (short of a soldering iron) I'd start there.

 

I'd love to see the board you made, if you'd care to post a picture.

 

Best of luck!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, I though as much, soldering iron it is (it's a prototype anyway).

 

It's nothing to see, basically a couple of GPIOs and a relay from a downstream serial connection to an upstream video capture card.

 

Tommy