Skip to content

This example is based on the STM32f072B ST low-level API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). In this repository, you will find an example in peripherals/modules below

Notifications You must be signed in to change notification settings

zafersn/stm32f-LL-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

stm32f072B-Disco-LL-example

This example is based on the STM32f072B ST low level API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). In this repository, you will find an example in periharels/modules below

Table of contents

  • st-ll-1
    • I2C, TIM, GPIO(DHT11), UART examples.
  • st-ll-2
    • PWM, GPIO-EXTI, I2C examples.
  • st-ll-3
    • UART-HALF-DUPLEX example

st-ll-1

  • Periharels
    • ✓ 1- I2C (SSD1306 Screen)

    • ✓ 2- TIM (To obtain 1us timer)

      • The timebase frequency is calculated as follows:
      • timebase frequency = TIM6 counter clock /((PSC + 1)(ARR + 1)(RCR + 1))
      • timebase frequency = 48 000 000 / ( (47 + 1) * (65535 + 1) (0 + 1) )
      • timebase frequency = 15.258 = ~15 hz
    • ✓ 3- GPIO (To write and read gpio pin value for DHT11)

      • Using Single pin (PB2) in two different mode (Input- Output)
  • Modules
    • ✓ SSD1306 Screen 128x32
      • PB10 -> SCLK
      • PB11 -> SDA
    • ✓ DHT11 Temperature and humidity sensor
      • PB2 -> DHT11 In

Pin Configuration

logo

I2C (SSD1306 Screen)

logo

GPIO (To write and read gpio pin value for DHT11)

logo

st-ll-2

Pin Configuration

logo

st-ll-3

This example is one-board UART half-duplex(single-wire) communication using ST LL and HAL API on stm32f072-disco

  • PC4 - UART3
  • PA9 - UART1
  • 38400 B

Pin Configuration

About

This example is based on the STM32f072B ST low-level API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). In this repository, you will find an example in peripherals/modules below

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published