Coder Social home page Coder Social logo

zafersn / stm32f-ll-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 49.36 MB

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

C 97.14% Assembly 0.29% Makefile 2.57%
ll-library i2c-device timer gpio stm32f0-discovery i2c stm32 uart-half-dublex one-wire-control

stm32f-ll-example's Introduction

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

stm32f-ll-example's People

Contributors

zafersn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.