analogdevicesinc / TMC-API

TRINAMIC's IC API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default register values don't match datasheet

pwfff opened this issue · comments

commented

e.g. https://github.com/trinamic/TMC-API/blob/master/tmc/ic/TMC2240/TMC2240.h#L37

image

Are these defaults intended to match the reset values in the datasheet?

Thank you for reaching out to us. We appreciate your interest in our products/services.

The defaults used for the eval-board are typically not the same as the defaults of the IC after startup. The defaults of the eval-board should help to have good starting values with our eval-environment. Therefore, the default values in the FW could be different than the reset values mentioned in the datasheet.

Please let us know if you need further assistance.

commented

I see, I thought this repository was separate from the eval board because it was meant to be generic. I think it would make more sense to have the chip's reset values in this repository, and the eval board's registers overridden in its repository.

Either way, this code was very helpful so thank you for the work!

Thanks for your infos, yes I think so too. We will split up the defaults: chip's reset values in TMC-API and eval board register defaults in the TMC-EvalSystem repo.