You can access the source code files via this link.
This project involves interfacing an STM32 microcontroller with an ST7735 display using SPI communication in Proteus simulation software. The purpose of this project is to demonstrate how to display graphics and text on an ST7735 display using an STM32 microcontroller.
The ST7735 display is a small, color TFT LCD display module that supports a resolution of 128x160 pixels. It has an integrated controller that supports SPI communication protocol for transferring data to the display. The ST7735 display is capable of displaying up to 18-bit color depth, which means it can display up to 262, 144 colors.
To interface the STM32 microcontroller with the ST7735 display, we need to connect the SPI pins of the microcontroller to the corresponding pins of the display module. The SPI pins include MOSI (Master Output Slave Input), MISO (Master Input Slave Output), SCK (Serial Clock), and CS (Chip Select). We also need to connect the power and ground pins of the display module to the corresponding pins of the microcontroller.
Overall, this project provides example of how to interface an STM32 microcontroller with an ST7735 display using SPI communication protocol in a Proteus simulation environment.
Step One:- Open CubeMX & Create New Project Choose The Target MCU STM32F103C6 & Double-Click Its Name
- In the Categories tab, select the RCC High Speed Clock (HSE) to Crystal/Ceramic Resonator
- Go To The Clock Configuration & Set The System Clock To 72MHz
- Configure The GPIO Pins [PB12..PB15] as Output Pin
- In the Categories tab, select the SPI1 & Transmit Only Master
- In the Parameter settings tab, set the Prescaler (for baud Rate) to 16
- Generate The Initialization Code & Open The Project In CubeIDE
- Write The Application Layer Code
Note : You can find the other files in the code section
In file name :main.c
Step Two:- Open Proteus & Create New Project and click next
- Click on Pick Device
- Search for STM32F103C6 & ST7735R
- Click on Terminal Mode then choose (DYNAMIC&POWER &GROUND)
- finally make the circuit below and start the simulation
If you have any questions or suggestions don't hesitate to leave a comment below
Comments