Can't get AVR library running

Can't get AVR library running

Postby goeckeritz » 11 Jun 2012, 15:00

Hey guys,

I have a TMC222 and a AVR ATMega328P wired up for I²C connection. I can't get the communication running using the Trinamic provided AVR C library. All I get is strange stuff, see attachment, please.
Does anybody have a hint, on how to get it running? I don't want to rewrite tha half lib just for using another TWI lib.

thanks!

regards from Germany.
Stefan
Attachments
TMC222_1.png
Logic screenshot
TMC222_1.png (26.69 KiB) Viewed 462 times
goeckeritz
User
User
 
Posts: 2
Joined: 11 Jun 2012, 10:53

Re: Can't get AVR library running

Postby goeckeritz » 11 Jun 2012, 17:26

Hey guys,

just got it up and running. I had a wrong wiring, actually. Library works just fine...I updated the interrupt routine though.
Replaced outdated
Code: Select all
SIGNAL(SIG_2WIRE_SERIAL)
with newer
Code: Select all
ISR(TWI_vect)

Works fine, thanks for that!

Now I am about to find the right copmbination of commands to get my stepper turning...

Cheers
Stefan
goeckeritz
User
User
 
Posts: 2
Joined: 11 Jun 2012, 10:53

Re: Can't get AVR library running

Postby TRINAMIC_BD » 12 Jun 2012, 11:05

Thanks for posting! :-)
User avatar
TRINAMIC_BD
Site Admin
 
Posts: 2436
Joined: 25 Jul 2006, 12:21
Location: Hamburg (Germany)


Return to TMC222 / TMC223 / TMC211

Who is online

Users browsing this forum: No registered users and 1 guest

cron