
NXP Semiconductors
KTFRDM34933EVBUG
FRDM-34933EVB evaluation board
KTFRDM34933EVBUG
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User guide
Rev. 1.0 — 15 March 2017
19 / 39
6.5.2 General settings of LVHBridge component
H-bridge model is on top of the tree structure in the Component Inspector view.
ActiveMode defines the H-bridge device operational mode (normal or power-conserving
sleep mode), which is controlled by the enabling pin. Selection of the enabling pin is
in the Enable Pins group. For more information, see H-bridge model’s data sheet. The
mode can be changed using the C code method SetMode.
The Motor Control group involves timer settings, H-bridge device and motor control
settings.
The Timer Settings group contains the Primary Timer Component property (the name
of a linked TimerUnit_LDD component) and the name of the hardware timer being used
(defined in the Primary Timer Device property). Secondary Timer encompasses the
properties of an additional timer.
Note that the Secondary Timer Component property must use a different TimerUnit_LDD
component than the Primary Timer Component property. The purpose of the primary
and secondary timer is to allow the input control pins of an H-bridge device to be
connected to different timers (this applies for some freedom H-bridge boards and
freedom MCUs). But these timers must be synchronized to control a stepper motor. So
the primary timer is designed to be the source for the global time base and the secondary
timer is synchronized with the primary timer. See MCU data sheet to find out which
timer provides the global time base (GTB) and set the Primary Timer Device property
accordingly. An example of a timer selection using the FRDM-KL25Z MCU is shown
in
Figure 8
. If you are using a single timer, set the Secondary Timer Component to
Disabled.