Category: STM32F429

STMPE811 touch sensor on STM32F429-Discovery board 22

Library 10- STMPE811 Touch screen driver for STM32F429 Discovery board

STM32F429 Discovery board has LCD with ILI9341 controller and resistive touch screen with STMPE811 controller from STMicroelectonics. The STMPE811 is a 4-wire resistive touch screen controller with a GPIO (general purpose input/output) port expander able to interface a microcontroller or a main digital ASIC via I2C or SPI serial interface. The STMPE811 offers great flexibility, as each I/O can be configured as input, output or specific functions. The touch screen controller is enhanced with a movement tracking algorithm to avoid excessive...

Library 09- I2C for STM32F4 121

Library 09- I2C for STM32F4

I2C or Inter-Integrated Circuit is a multimaster serial single ended bus. This protocol is commonly used with RTC modules, temperature sensors, EEPROMs, IO expanders and more. I2C protocol uses 2 wires: SCL: Serial Clock, clock for serial synchronization SDA: Serial data, bidirection line for receving and transmitting Both wires need external pull up resistor, from about 4k7 to 47k, if you don’t use pull up resistors in MCU. In our case, you don’t need external pull ups, because library uses internal in STM32F4.

ILI9341 LCD on STM32F4 252

Library 08- ILI9341 LCD for STM32F4

On STM32F429 Discovery board there is LCD with ILI9341 controller. It has 240 x 320 pixels resolution and 16bit or 18bit color depth, what gives you 65536 or 262144 different colors. It has also a possibility of different way of connection, like serial, parallel, with VSYNC and HYSNC. STM32F429 has also LTDC driver for LCD like that, but this driver we will use later. For now we will use SPI for driving in serial mode and some other pins for controlling. I...

Library 07- DA Converter on STM32F4 17

Library 07- DA Converter on STM32F4

Digital to Analog Converter has inverse function as ADC. It converts digital value in microcontroller to analog value. Library Features Output analog value from STM32F4x Dependencies CMSIS STM32F4xx STM32F4xx GPIO STM32F4xx DAC TM TM GPIO defines.h STM32F4 has 1 DAC with 2 channels output. Table below shows pins for DAC. DAC pins DAC Channel ALIAS Pin APB DAC_Channel_0 TM_DAC1 PA4 1 DAC_Channel_1 TM_DAC2 PA5 1

Simple ADC characteristic 108

Library 06- AD Converter on STM32F4

In this tutorial I will talk about ADC (Analog to Digital Converter). AD converts analog voltage to digital number, that can be used in microcontrollers. STM32F4xx MCUs have up to 3 ADCs of which every has 19 channels. 16 external channels, connected to IO pins 3 internal channels Vbat Voltage on battery pin for RTC Temp sensor unusable for measure temp,only for measure difference in temperature because it can fail up to 45°C Vref Voltage reference for ADC Below is table...

CMSIS - Cortex Microcontroller Software Interface Standard 187

STM32F4/29 Discovery with CMSIS library in Keil uVision

From this moment, I will use in my projects Keil uVision. It’s true, that Coocox is free, but it has some bugs, which are great fixed in Keil. Keil has some limitations for free (32KB flash support, no optimization) version, but for our examples and libraries, it is just fine. For updates, look at my Github projects repository, where are all projects and libraries. There is no included my libraries in bottom project, you have to download it manually from Github. All...