Tagged: delay

HAL library 05- OneWire for STM32Fxxx 8

HAL library 05- OneWire for STM32Fxxx

Next port from STM32F4xx STD drivers to STM32Fxxx HAL drivers was done for OneWire library. This library is protocol based only. It features basic functions for read/write byte, reset port and search devices on OneWire port. 1-Wire is a device communications bus system designed by Dallas Semiconductor Corp. that provides low-speed data, signaling, and power over a single signal. It’s used in some temperature sensors, like DS18B20 temp sensor and many others products from Dallas. Library Read more about new HAL libraries Features...

HAL library 3- DELAY for STM32Fxxx 16

HAL library 3- DELAY for STM32Fxxx

Delay functions are needed in your program, no matter how optimized and fast program you wanna do. Delay functions I’ve updated my delay library to support milliseconds and microseconds delays. Milliseconds based delay is done using systick timer which makes interrupts every 1ms generated by HAL library. For microseconds based delay, DWT cycle counter is used to get maximal optimized delay. DWT unit is for F4 and F7 only, F0 series does not have DWT, because of Cortex-M0. Software timers...

All STM32 HAL libraries 85

All STM32 HAL libraries

In this section, I will write all libraries based on HAL drivers from ST. If you see this first time, make sure you read this post first about how structure of my libs looks like! License All my softwares are published under MIT license. This means that you are allow to modify, share and use my source and other stuff in personal or commercial use. If you modify source code, it has to stay under GNU GPL v3 license too. I...

Precise delay with counter 8

Precise delay with counter

If you work at high speed, as STM32F4 devices do (84MHz or more) then this tutorial is not right for you. But, you are able to descrease system speed to any frequency basicly you want. If you want to use delay with systick down timer, look at my library here. You can use great solution, Systick timer to make an interrups for you. But you can also decrease speed to let’s say 42Mhz, and that systick every 42ticks checks for...

All STM32F4 tutorials 38

All STM32F4 tutorials

Sometime I made a tutorial how to work with something on STM32F4xx device, because is hard and pointless to make library for it for any reason. Tutorials are set to work with STM32F4xx devices. Tutorials NR Name Description 1 FIRST TIME First time with STM32F429 Discovery. Coocox project tutorial 2 KEIL UVISION Default project for Keil uVision to work with STM32F4 devices 3 PWM PWM tutorial for STM32F4xx 4 NVIC Nested vector interrupt controller tutorial 5 EXTI External interrupts tutorial...

All STM32F4 libraries 121

All STM32F4 libraries

Because there is a lot of libraries I have done, I will make a table with all of my libraries at one place. When new library will be created, it will be posted here. These libraries work on both Discovery boards, if not, it will be specified. Actually, libraries should work on STM32F4xx series of microcontrollers if they have peripherals that are need for library. All STM32F4xx MCUs don’t have everything inside. 🙂 Libraries are tested on my 4 STM32F4...