Tagged: HAL

HD44780 LCD Example 30

HAL library 15- HD44780 for STM32Fxxx

HD44780 LCDs are still very popular devices in embedded project so I think you can’t without simple library for them. I’ve port my old library to HAL based libraries for these LCDs. Library Read more about new HAL libraries Features 4-bits operation mode Minimum GPIOs used (6) Supports different LCD sizes Supports up to 8 custom characters Enable/disable cursor blinking Show/hide cursor Shift content in ram left/right Connection pins to board are user selectable Automatically jumps to new line when...

FFT result of matlab generated signal 2

HAL Library 14- Fast Fourier Transform for STM32Fxxx

Here is an example of Fast Fourier Transform on STM32F4xx devices. This HAL library works for F4 and F7 series! That was the main reason I decided to make a library for FFT on STM32F4xx. To use this library, some third-party libraries are also required. All these required files can be found in STM32F4xx Standard peripheral drivers and DSP instructions provided from ST.com from their website. Now is version 1.5.1 of these drivers and also .lib file is included for ARM...

HAL Library 13- Buttons for STM32Fxxx 1

HAL Library 13- Buttons for STM32Fxxx

New port. Buttons library for HAL based libraries. It can handle buttons, connected to your STM32Fxxx devices. It supports basically unlimited number of buttons with different triggering. Currently, callback functions can be called on these events: Button on pressed: Called directly when button is pressed Button normal press: Called when button is released after specific amount of time Button long press: Called when button is pressed for specific “long” amount of time It uses malloc() to allocate memory, so you...

Single LCD library for different boards 41

HAL library 12- LCD for STM32Fxxx

LCD is first big library provided from me. It’s the same as SDRAM, it works on STM32F429-Discovery, STM32F439-EVAL and STM32F7-Discovery boards. With one library you can control 3 boards just by selecting proper define in your target. Library can be extended to other boards. Library requires FMC peripheral for SDRAM for display memory, DMA2D for fastest graphic accelerations and LTDC for transferring layers to LCD. Library Read more about new HAL libraries Features Supports STM32F429-Discovery board Supports STM32F439-EVAL board Supports...

HAL library 10- CRC for STM32Fxxx 1

HAL library 10- CRC for STM32Fxxx

STM32Fxxx devices have CRC (Cyclic Redundancy Check) module inside. This is small and useful unit when working with communications. It might become very useful to verify if your packet of data is correct. STM32Fxxx devices uses “Ethernet” CRC with polynomial below: X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 +X8 + X7 + X5 + X4 + X2 + X +1 It is quite ugly 😀 Well, using this module is very easy....

HAL library 08- SPI for STM32Fxxx 32

HAL library 08- SPI for STM32Fxxx

Next library in ported libs is SPI for HAL based drivers for STM32F4xx and STM32F7xx based devices. Library Read more about new HAL libraries Features Operate with up to 6 SPI peripherals Send single or multiple bytes at time Automatic SPI prescaler selection based on maximum clock selected for your external device Software based Chip Select pin Support for custom GPIO pins combination for SPI