Forum: µC & Digital Electronics Basic I²C-Communication with UC3A (AVR32 AT32UC3A1512)

Author: Ernest Beckert (foizman)
Posted on:

Rate this post
0 useful
not useful
Hi gents,
absolute newby needs some hints.

I've got an AVR32-Board by Alvidi (AVR32-Modul AL-UC3AEB).
see http://alvidi.de/avr32_module.html

Atmel AT32UC3A1512: 
->PDF: www.atmel.com/dyn/resources/prod_documents/doc32058.pdf
->TQFP100 Package (page 44/45)

TQFP100 PIN   GPIO   Pin   Function A
83    PA29    GPIO   29    TWI - SDA
84    PA30    GPIO   30    TWI - SCL

So I have to use PortA Pin 29 and 30 for TWI communication. Right?


I want to send some bytes to a MAXIM6959 7-Segment-Driver using TWI/I²C.
see http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3638

->PDF: http://datasheets.maxim-ic.com/en/ds/MAX6958-MAX6959.pdf
->MAX6958BAPE+: Slave Adress 0111001 (page 17)
->Display test mode 0x07, LSB to 1 (page 16)

First step: I want basically reach something like
"Set MAXIM to 'Display test mode":

// device addresses
#define MAX6959BAPE       0x39
#define Display_test_mode 0x07

// initialize I2C library

// set device address and write mode

// go!

// set stop conditon, release bus

Did search many many times the forum and our friend google, didn't find 
anything. Wasn't able to adapt the Master/Slave-EEPROM-example of 
AVR32-Studio's tutorials, either.  It's an example, it's a concept, that 
'i2c_...' are dummy functions, which maybe show what I think the way 
could be. Don't know how to write it en detail.

Isn't there such a generic example out there? Hope someone can help.


: Moved by Admin


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.