Get Started with the FRDM-HB2002ESEVM

This page will assist you in learning about your FRDM-HB2002ESEVM board.

2. Get to know the hardware

2.1 Board features

  • Built-in reverse battery protection
  • Test points that allow signal probing
  • Built-in voltage regulator to supply logic level circuitry
  • Current feedback network for real-time load current monitoring by MCU ADC
  • LEDs to indicate the supply status and the direction of the motor
  • Low ESR capacitor to reduce ripple in the power supply
  • TVS protection diode to handle system level transients

2.2 Board description

The FRDM-HB2002ESEVM evaluation kit exercises all the functions of the MC33HB2002 H-bridge device. Lab equipment or any MCU with GPIOs can control the parallel inputs to provide PWM control to the inputs.

The board can be used with a FRDM-KL25Z board connected to a USB port of a PC. Configure, control and monitor the status of MC33HB2002 by using the SPI communication capabilities of the board.

2.3 Board components

Overview of the FRDM-HB2002ESEVM evaluation board

  1. MC33HB2002ES
  2. Power connector
  3. Reverse battery protection
  4. 5.0 V regulator
  5. Jumpers
  6. Test points
  7. Output connector
GS-FRDM-HB2002ESEVM-IMG1
Label Name Description
1 MC33HB2002ES monolithic H-bridge motor driver IC in a robust, thermally enhanced 28-pin HVQFN (6 × 6 mm) package
2 Power and ground inputs power supply terminal to connect the battery/power supply with the board
3 Reverse battery protection MOSFET for protecting MC33HB2002 in reverse battery condition
4 5.0 V regulator monolithic H-bridge motor driver IC in a robust, thermally enhanced 28-pin HVQFN (6 × 6 mm) package
5 Jumpers jumpers for configuring the board for different modes of operation
6 Test points test points to probe different signals
7 Output terminal output connector to connect a load to the MC33HB2002 output

2.4 Additional board support

Refer to UM11144, FRDM-HB2002ESEVM evaluation board user manual for additional details on the featured components.

3. Configure the hardware

The FRDM-HB2002ESEVM consists of an H-bridge, a parallel and SPI interface, power conditioning circuitry and a FRDM-KL25Z board. The board can be configured for use with a FRDM-KL25Z board or a function generator.

GS-FRDM-HB2002ESEVM-IMG2
Caution
When using the FRDM-HB2002ESEVM, make sure that the maximum motor supply voltage (VPWR) stays within the 5.0 V to 40 V range. Operating outside this range may cause damage to the board.

3.1 Configuring the hardware for use with a FRDM-KL25Z

GS-FRDM-HB2002ESEVM-IMG3

To configure the FRDM-HB2002ESEVM for use with the FRDM-KL25Z do the following:

  1. Connect the FRDM-HB2002ESEVM to the FRDM-KL25Z using the Arduino connectors on each board.
  2. Connect the USB cable (not supplied with the kit) between the PC and the KL25Z USB port on the FRDM-KL25Z board.
  3. With the power switched off, attach the DC power supply to the VBAT and GND screw connector terminal (J20) on the evaluation board.
  4. Connect the load to the screw terminal (J21).

3.2 Configuring the hardware for use with a function generator

GS-FRDM-HB2002ESEVM-IMG4

This section describes how to configure the FRDM-HB2002ESEVM for use with a function generator. The same connections apply if the board is connected to a microcontroller instead of a function generator.

  1. Connect the function generator to the EX_IN jumper, with one channel attached to each pin.
  2. Change the board jumper connections.
  3. With the power switched off, attach the DC power supply to the VBAT and GND screw connector terminal (J20) on the evaluation board.
  4. Connect the load to the screw terminal (J21).

3.3 Additional board support

Refer to UM11144, FRDM-HB2002ESEVM evaluation board user manual for additional details on the hardware configuration.

4. Install software

4.1 Configuring the FRDM-KL25Z microcode

By default, the FRDM-KL25Z with this kit has the required firmware to interface with the FRDM-HB2002ESEVB. In the event of a loss of functionality following a reset, reprogramming or corrupted data issue, the microcode may be rewritten per the following steps:

  1. To clear the memory and place the board in boot loader mode, hold down the reset button while plugging a USB cable into the OpenSDA USB port.
  2. Verify that the board appears as a "BOOTLOADER" device and continue with step 3. If the board appears as "KL25Z," you may go to step 6.
  3. Download the Firmware Apps .zip archive from the PEmicro OpenSDA webpage (http://www.pemicro.com/opensda/). Validate your email address to access the files.
  4. Find the most recent MDS-DEBUG-FRDM-KL25Z_Pemicro_v***.SDA and copy/drag-and-drop into the BOOTLOADER device.
    • a. Based on the boot loader version, this operation may only be possible from a Windows 7 device. Examine the boot loader version via the HTML page on the device.
  5. Reboot the board by unplugging and replugging the connection to the OpenSDA port. Verify now that the device appears as a "KL25Z" device to continue.
  6. Download the product-specific firmware “UsbSPIDongleKL25Z_HB2000_HB2001_v512.srec” for HB2002 from the following link: http://www.nxp.com/Usb-Spi-Dongle-firmware-KL25Z-HB2000-1
    • a. The .srec file is a product/family-specific configuration file for FRDM-KL25Z containing the pin definitions, SPI/PWM generation code and pin mapping assignments necessary to interface with the FRDM-HB2002ESEVB.
  7. With the KL25Z still plugged through the OpenSDA port, copy/drag-and-drop the .bin file into the KL25Z device memory. Once done, disconnect the USB and plug into the other USB port, labeled KL25Z.
    • a. The device may not appear as a distinct device to the computer while connected through the KL25Z USB port, this is normal.
  8. The FRDM-KL25Z board is now fully set up to work with FRDM-HB2002ESEVB and the SPIGen GUI.
    • a. There is also no firmware stored on the FRDM-HB2002ESEVB board itself, only on the MCU FRDM-KL25Z.

All uploaded firmware is stored in non-volatile memory until the reset button is hit on the FRDM-KL25Z. There is no need to repeat this process upon every power-up, and there is no loss of data associated with a single unplug event.

4.2 Installing SPIGen on your computer

  1. Go to http://www.nxp.com/SPIGEN.
  2. Select the Download button to open the Downloads tab.
  3. Select the Download button next to the software version.
  4. Read and accept the NXP Semiconductor Software License Agreement, leading to the SPIGen Software - Windows Application page. The download begins automatically.
  5. Run the downloaded installation program, and follow the provided installation instructions.

4.3 Additional board support

Refer to UM11144, FRDM-HB2002ESEVM evaluation board user manual for additional software details.

Additional SPIGen information may be found at SPIGEN: SPI Generator (SPIGen) Software.

4.4 Ready to use

Start embedded application development.

5. Learn more

5.1 Product summary page

The product summary page for HB2002 is at https://www.nxp.com/products/HB2002.

5.2 Tool summary page

The tool summary page for FRDM-HB2002ESEVM board is at http://www.nxp.com/FRDM-HB2002ESEVM.

The page provides overview information, technical and functional specifications, ordering information, documentation and software. The Get Started provides quick-reference information applicable to using the FRDM-HB2002ESEVM board, including the downloadable assets.

5.3 References

In addition to our HB2002: SPI-Programmable H-Bridge Brushed DC Motor Driver page, you may also want to visit:

Product pages:

Application pages:

Freedom pages:

Hardware pages:

Software pages:

5.4 Buy the board

FRDM-HB2002ESEVM: Freedom Kit for HB2002, Programmable Brushed DC Motor Control in QFN

Buy