Trinamic Discussion Groups Forum Index Trinamic Discussion Groups
For quick support, please browse or search the forum!
 
 FAQFAQ    Impressum   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with TMC428 and 2x TMC246 drivers on custom board

 
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> Getting started ICs
Print this topic :: View previous topic :: View next topic  
Author Message
jonathand
User
User


Joined: 23 Mar 2009
Posts: 2
Location: UK

PostPosted: Mon Mar 23, 2009 7:56 pm    Post subject: Problems with TMC428 and 2x TMC246 drivers on custom board Reply with quote

Dear Sir/Madam,

I have built a custom board with a TMC428 and 2 TMC246 drivers but the code that once worked on the eval boards we purchased doesn't work on with the custom board.

A PIC talks to the TMC428 at 250kHZ - the TMC428 xtal is 16MHz. The 428 and 246 have their own 5V supply hanging from the 24V motor voltage in order to satisfy the power up sequence rqeuirements in the data sheet.

I have confirmed that the PIC is communicating with the 428, at least I can read back a packet 0x0E0000 when sending a message to the 428 and that looks about right.

The 246 as in a daisy chain as per the datasheet with a shared CLK and CS line. I have seen some comms from the 428 to the first 246 IC. It looks as if there are 2 12 bit packets sent in quick succession, periodically.
However, whilst I see activity on SCLK_S, SCS_S and SDO_S from the 428 to the fist 246, I see no activity on the SDO line of the 1st 246 device and consquently the 2nd 246 device receives no data. Nor does the 428 recieve any data from the 2nd 246.

I have checked the packets we are sending to the device, they are the same as the initialisation procedure given in your datasheet and given in the example code except for a few minor changes relate to max current and the current threshold.

I have also tied the SPE line high (it was open on the board) in case that was an issue as I saw another post on this forum about driver ICs going in and out of SPI mode spuriously.

Apart from ANN, INA, INB and ENN, all other pins are connected to something. BL1 is tied to GND.

I am now stumped! Any ideas?

Regards,

Jonathan
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Mon Mar 23, 2009 10:03 pm    Post subject: Reply with quote

Hello,

this looks like the TMC246 do not become selected. I think, probably the ENN pin causes the problem. It has no internal pullup or pulldown. Please connect to GND. If this does not solve the problem, please countercheck the CSN lines at the TMC246. It should be active (low) due the time of the 24 data bits transmissions.
Back to top
View user's profile Send private message Visit poster's website
jonathand
User
User


Joined: 23 Mar 2009
Posts: 2
Location: UK

PostPosted: Tue Mar 24, 2009 4:07 pm    Post subject: Reply with quote

Thanks - that works a treat - I had misread the datasheet and thought the ENN pin only needed to be considered for over voltage protection.

School boy error.

Thanks for your help.
_________________
Jonathan
Tebira Ltd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> Getting started ICs All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group