STM32F4 Discovery

HD44780 LCD Example 91

Library 16- Interfacing HD44780 LCD controller with STM32F4

16th library is here. We will interfacing HD44780 (and its compatible) driver for alpha-numeric LCDs. Library supports up to 20 x 4 LCD size. It was tested with 20 x 4 (on picture) and with 16 x 2. HD44780 Library Features 4bit 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...

All STM32F4 libraries 119

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...

DS1307 I2C RTC Clock on STM32F4 31

Library 15- DS1307 Real Time Clock for STM32F4

In my 15th library, I will show you, how to operate with DS1307 Real Time Clock I2C module from maxim integrated. The DS1307 serial real-time clock (RTC) is a lowpower, full binary-coded decimal (BCD) clock/calendar plus 56 bytes f NV SRAM. Address and data are transferred serially through an I2C, bidirectional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in...

STM32F4 NVIC or Nested Vector Interrupt Controller 32

STM32F4 NVIC or Nested Vector Interrupt Controller

Interrupts are important in microcontrollers. WIth them you are able to stop executing main program and jump to some predefined area if there is something important. I already used interrupts in my USART library. There is an interrupt called each time data arrive to MCU. Defferent peripheral can trigger interrupt, like data come to USART, ADC finished conversion, timer overflow, and more more. NVIC NVIC or Nested Vector Interrupt Controller is used to dinamically tell which interrupt is more important and...

Library 14- Working with SDRAM on STM32F429 Discovery 48

Library 14- Working with SDRAM on STM32F429 Discovery

STM32F429 Discovery board has external 64Mbits or 8MBytes SDRAM chip ISSI IS42S16400. STM32F429 has a FMC (Flexible Memory Control) peripheral to driving external SDRAM with hardware. FMC hardware is able to store up to 32bits variables at same time. External SDRAM capatibilities Variable size Max value Max address Max variables stored 8bit 0xFF 0x7FFFFF 8388608 16bit 0xFFFF 0x7FFFFE 4194304 32bit 0xFFFFFFFF 0x7FFFFC 2097152 Note: This library does not work on STM32F4 Discovery, because this MCU does not have FMC peripheral....

Library 13- Reading temperature with Dallas DS18B20 on STM32F4 56

Library 13- Reading temperature with Dallas DS18B20 on STM32F4

In the last post, I show OneWire library. Today, I will use that library to show how to read temperature with Dallas’s temperature sensor DS18B20. DS18B20 Features 9 to 12 bits resolution -55°C to 125°C Celsius 64bit unique ROM number Alarm temperatures enable or disable Search devices with alarm flag set Can be parasite-powered Library Features Search sensors Read temperature Set resolution for each device Start temperature conversion on all devices simultaneously Set alarm low and high temperatures Disable alarm...