Git Product home page Git Product logo

vadrov / at32f403acgu7_display_spi_dma_st7789_ili9341 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 850 KB

Connecting the displays to the AT32F403A (AT32F403ACGU7) MCU via spi with DMA (AT32F403A high-performance microcontrollers, powered by 32-bit ARM® Cortex®-M4 core, utilize advanced process to achieve 240 MHz computing speed).

License: MIT License

C 90.52% Assembly 2.25% Makefile 7.23%
at32f403a at32f403acgx display dma lcd spi at32f403acgu7 artery

at32f403acgu7_display_spi_dma_st7789_ili9341's Introduction

Copyright (c) 2023 VadRov / www.youtube.com/@VadRov / www.dzen.ru/vadrov

AT32F403ACGU7_display_spi_dma

Connecting the displays to the AT32F403A MCU via spi with DMA.

AT32F403A high-performance microcontrollers, powered by 32-bit ARM® Cortex®-M4 core, utilize advanced process to achieve 240 MHz computing speed. The embedded single precision floating-point unit (FPU) and digital signal processor (DSP), rich peripherals and flexible clock control mechanism can meet an extensive range of applications. The superior memory design supports up to 1 MB Flash memory and 224 KB SRAM, with the excellent Flash access zero wait far beyond the same level of the chip industry. at32f403acgu7 board

Connection:

LCD_SCL ---> PB13
LCD_SDA ---> PB15
LCD_DC  ---> PB6
LCD_RES ---> PB7
LCD_CS  ---> PB8
LCD_BLK ---> PB1

See the description of the driver, functions and parameters in the project https://github.com/vadrov/stm32-display-spi-dma All driver files are located in the Display folder. Some driver functions are written in assembly language. Assembly functions use variable offsets in the LCD_Handler structure. These offsets are generated automatically by a special makefile script (in the Display folder) when building the project (the header file display_offsets.h is generated). In your project using this display driver, in the project properties (AT32 IDE) C/C++ Build -> Settings -> Build Steps in the Pre-Build Steps option, write:

make -f ../Display/makefile

The assembler version of the driver can be turned on/off using the LCD_USE_ASSEMBLER macro definition in the header file display_config.h

Смотрите описание драйвера, функций и параметров в проекте https://github.com/vadrov/stm32-display-spi-dma

Все файлы драйвера расположены в папке Display.
Некоторые функции драйвера написаны на ассемблере. В ассемблерных функциях используются смещения переменных в "Сишной" структуре LCD_Handler. Генерация этих смещений происходит автоматически специальным скриптом makefile (в папке Display) при сборке проекта (формируется заголовочный файл display_offsets.h). Поэтому в своем проекте с использованием этого драйвера дисплея в свойствах С/С++ Build -> Settings -> Build Steps в опции Pre-Build Steps пропишите:

make -f ../Display/makefile

Ассемблерный вариант драйвера можно включать/выключать с помощью макроопределения LCD_USE_ASSEMBLER в заголовочном файле display_config.h

Контакты: Youtube Дзен VK Telegram
Поддержать автора: donate.yoomoney

at32f403acgu7_display_spi_dma_st7789_ili9341's People

Contributors

vadrov avatar

Watchers

 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.