Problems with TMC428 and 2x TMC246 drivers on custom board

Debugging your own hardware using TRINAMIC ICs / Basic questions on TRINAMIC ICs.

Problems with TMC428 and 2x TMC246 drivers on custom board

Postby jonathand » 23 Mar 2009, 19:56

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
jonathand
User
User
 
Posts: 6
Joined: 23 Mar 2009, 19:45
Location: UK

Postby TRINAMIC_BD » 23 Mar 2009, 22:03

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.
User avatar
TRINAMIC_BD
Site Admin
 
Posts: 2448
Joined: 25 Jul 2006, 12:21
Location: Hamburg (Germany)

Postby jonathand » 24 Mar 2009, 16:07

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
jonathand
User
User
 
Posts: 6
Joined: 23 Mar 2009, 19:45
Location: UK


Return to Evaluation board software related issues / Getting started ICs

Who is online

Users browsing this forum: No registered users and 1 guest

cron