This repository contains firmware and project files for integrating the MC33816 injector driver with an STM32H7 microcontroller. This STM32H7-based board is the control board for the MC33816 development kit and communicates with the MC33816 over SPI. The MC33816 is used as a fuel injector / injector driver in automotive and embedded motor-control applications.
Keywords: mc33816, MC33816, injector, injector driver, fuel injector, STM32H7, STM32CubeIDE, STM32CubeMX, firmware, embedded, motor driver, NXP, CAN, SPI, hardware integration, example project, control board, dev kit, ECU.
MC33816 Development Kit
The MC33816 Fuel Injector Driver is a high-performance integrated circuit from NXP designed for automotive engine control applications. The MC33816 provides precise control of fuel injectors with features including SPI communication, advanced diagnostics, peak-and-hold drive capability, and integrated protection mechanisms.
The development kit combines the NUCLEO-H753ZI board (STM32H753ZI microcontroller) as the control platform with the KIT33816FRDMUG evaluation board for the MC33816 injector driver IC. This setup provides a complete reference platform for developing and testing fuel injection control algorithms.
Hardware Features
- Microcontroller: STM32H753ZI (NUCLEO-H753ZI board)
- Injector Driver: MC33816 (NXP)
- Communication: SPI interface with IRQ and status flags
- Channels: 6 independent injector control channels
- Advanced Features:
- Peak-and-hold drive capability
- Integrated diagnostics
- Multiple status flags (FLAG0-FLAG3)
- External clock generation
- Driver enable control
- Hardware reset capability
Hardware Connections
SPI Communication Interface
| Signal | NUCLEO-H753ZI Pin | MC33816 Kit Pin | Description |
|---|---|---|---|
| SPI_MOSI | PA7 (SPI1_MOSI) | MOSI | SPI Master Out Slave In |
| SPI_MISO | PA6 (SPI1_MISO) | MISO | SPI Master In Slave Out |
| SPI_SCK | PA5 (SPI1_SCK) | SCK | SPI Clock (add 2k7 pull-down) |
| SPI_CS | PD14 | CS | SPI Chip Select (active low) |
Control and Status Signals
| Signal | NUCLEO-H753ZI Pin | MC33816 Kit Pin | Description |
|---|---|---|---|
| MC_RST | PA4 | RESET | MC33816 Reset (active low) |
| MC_DRV | PB4 | DRV_EN | Driver Enable |
| MC_IRQ | PE7 | IRQ | Interrupt Request (falling edge) |
| MC_FLAG0 | PG14 | FLAG0 | Status Flag 0 |
| MC_FLAG1 | PF5 | FLAG1 | Status Flag 1 |
| MC_FLAG2 | PF4 | FLAG2 | Status Flag 2 |
| MC_FLAG3 | PG12 | FLAG3 | Status Flag 3 |
Injector Start Signals (PWM Control)
| Signal | NUCLEO-H753ZI Pin | MC33816 Kit Pin | Description |
|---|---|---|---|
| MC_START1 | PB9 | START1 | Injector 1 Start Signal |
| MC_START2 | PB15 | START2 | Injector 2 Start Signal |
| MC_START3 | PC7 | START3 | Injector 3 Start Signal |
| MC_START4 | PB8 | START4 | Injector 4 Start Signal |
| MC_START5 | PB12 | START5 | Injector 5 Start Signal |
| MC_START6 | PC6 | START6 | Injector 6 Start Signal |
Repository Contents
- Core/ - MCU application source and startup files
- Drivers/ - HAL and peripheral drivers
- Middlewares/ - Third-party middleware (LWIP, mbedTLS, etc.)
- USB_DEVICE/ - USB device stack
- Documents/ - Hardware documentation, datasheets, and schematics
- STM32H7-MC33816.ioc - STM32CubeMX project file
- Launch configurations - Debug and Release configurations for STM32CubeIDE
- Linker scripts - FLASH and RAM linker scripts
Purpose
This project provides:
- A reference and starting project for developers integrating the MC33816 injector driver with STM32H7-based systems
- Board and MCU-specific configuration ready to be opened, built and flashed from STM32CubeIDE
- Complete hardware connection documentation
- Example implementation for automotive fuel injection control
Getting Started
- Clone the repository:
git clone https://github.com/CodElecCz/STM32H7-MC33816.git -
Open the project in STM32CubeIDE by opening STM32H7-MC33816.ioc or import the project workspace
- Generate code from CubeMX if needed, build the project, and flash using ST-Link or another programmer via the IDE launch configurations
Project Link
GitHub Repository: STM32H7-MC33816
Development platform for automotive fuel injection control using NXP MC33816 and STM32H7 microcontroller.
