HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0_test_config::BoardConfig_TMC51x0_EVAL Struct Reference

Board hardware configuration for TMC51x0 Evaluation Kit. More...

#include <esp32_tmc51x0_test_config.hpp>

Static Public Attributes

static constexpr uint32_t SENSE_RESISTOR_MOHM = 50
 Sense resistor value in milliohms (0.05Ω)
 
static constexpr uint32_t CLOCK_FREQUENCY_HZ = 0
 TMC51x0 clock frequency in Hz (0 = use internal 12 MHz oscillator, CLK pin tied to GND)
 
static constexpr float MOSFET_MILLER_CHARGE_NC = 6.0f
 MOSFET Miller charge in nC (<10nC for BSC072N08NS5)
 
static constexpr uint32_t BBM_TIME_NS = 100
 Break-before-make time in nanoseconds (~100ns for fast MOSFETs)
 
static constexpr uint16_t S2VS_VOLTAGE_MV = 625
 Short to VS voltage threshold in mV (0 = auto = 625mV)
 
static constexpr uint16_t S2G_VOLTAGE_MV = 625
 Short to GND voltage threshold in mV (0 = auto = 625mV)
 

Detailed Description

Board hardware configuration for TMC51x0 Evaluation Kit.

Defines board-specific hardware parameters for the TMC51x0 Evaluation Kit. These values are used for automatic current calculation and power stage configuration.

Board-specific: These parameters depend on the TMC51x0 EVAL kit hardware:

  • Sense resistor value (0.05Ω / 50 mOhm)
  • Clock frequency (12 MHz internal clock)
  • MOSFET characteristics (BSC072N08NS5: Miller charge ~6nC, BBM time ~100ns)
  • Short protection defaults

Note: Supply voltage is motor-specific and should be set from MotorConfig, not BoardConfig. The board can handle 12-36V, but the actual voltage depends on the motor being driven.

These values stay the same regardless of which motor is connected or what platform it's used on.

Member Data Documentation

◆ BBM_TIME_NS

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::BBM_TIME_NS = 100
staticconstexpr

Break-before-make time in nanoseconds (~100ns for fast MOSFETs)

◆ CLOCK_FREQUENCY_HZ

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::CLOCK_FREQUENCY_HZ = 0
staticconstexpr

TMC51x0 clock frequency in Hz (0 = use internal 12 MHz oscillator, CLK pin tied to GND)

◆ MOSFET_MILLER_CHARGE_NC

constexpr float tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::MOSFET_MILLER_CHARGE_NC = 6.0f
staticconstexpr

MOSFET Miller charge in nC (<10nC for BSC072N08NS5)

◆ S2G_VOLTAGE_MV

constexpr uint16_t tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::S2G_VOLTAGE_MV = 625
staticconstexpr

Short to GND voltage threshold in mV (0 = auto = 625mV)

◆ S2VS_VOLTAGE_MV

constexpr uint16_t tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::S2VS_VOLTAGE_MV = 625
staticconstexpr

Short to VS voltage threshold in mV (0 = auto = 625mV)

◆ SENSE_RESISTOR_MOHM

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_EVAL::SENSE_RESISTOR_MOHM = 50
staticconstexpr

Sense resistor value in milliohms (0.05Ω)


The documentation for this struct was generated from the following file: