Monthly Archive: May 2014

All STM32F4 libraries 128

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 33

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 37

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 53

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 69

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

Library 12- OneWire library for STM32F4 34

Library 12- OneWire library for STM32F4

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. OneWire key features Single Contact Sufficient for Control and Operation Unique ID Factory-Lasered in Each Device Power Derived from Signal Bus (“Parasitically Powered”) Multidrop Capable: Supports Multiple Devices on Single Line Exceptional ESD Performance source: maximintegrated.com 17th May, 2014: There was some new functions added!...