Teach you by hand to realize the programming and debugging of MODBUS slave through HAL Library - the improvement of serial port and timing function

catalogue 1.STM32CubeMX operation   2. Program perfection 2.1 perfect usart.h   2.2 improve usart.c 2.2.1 header file improvement 2.2.2 add callback function 2.2.3 serial port initialization function 2.3 perfect tim.h 2.4 improve tim.c 2.4.1 improve header file   2.4.2 improve callback function and initialization fun ...

Posted by Gazan on Wed, 03 Nov 2021 21:06:49 -0700

High precision frequency meter based on FPGA

1, Design requirements A signal frequency detector is designed with FPGA, which requires: (1) Measuring pulse signal; (2) Frequency measurement 1-10MHz and duty cycle 10% - 99%, accurate to 1%; (3) Display the measured frequency and duty cycle on LCD1602; 2, Design scheme FPGA design is mainly divided into three modules: 1. Measured signal gen ...

Posted by sarun on Wed, 03 Nov 2021 18:13:04 -0700

UCOIII time slice rotation scheduling

Premise: Time slice rotation method: mainly used for process scheduling in time-sharing system. In order to realize rotation scheduling, the system arranges all ready processes into a queue first process according to the principle of first in first out, and lets it run a time slice on the CPU. Time slice is a small time unit, usually in the or ...

Posted by gabaod on Sun, 31 Oct 2021 11:27:44 -0700

PWM adjust LED brightness

Development board: Wildfire domineering V1 Chip: stm32f103ZET6 Timer: TIM3 Output channel: CH3 GPIO: PB0 frequency F = 72M / ((ARR+1)*(PSC+1)) Unit: Hz Duty cycle Duty_Cycle = (TIMx->CCRx) / ARR Unit:% The following test is to observe the brightness change of LED small lamp by adjusting PWM duty cycle Circuit Output comparis ...

Posted by praxedis on Sun, 31 Oct 2021 03:09:02 -0700

Some understanding of compiled code

Some understanding of compiled code ARM Cortex-M underlying technology -- principle and application of compiling kernel Reference website: https://www.cnblogs.com/39950436-myqq/p/11545140.html 1. Definition of compilation link No matter how simple the code we write, we must go through the process of "compiling -- > linking" to g ...

Posted by Smifffy on Thu, 28 Oct 2021 22:56:19 -0700

Using stm32cupemx to generate keil project to complete water lamp and serial communication

catalogue 1, Generate keil project using stm32subemx 1.1. Download stm32cupemx 1.2. Create a new project 1.3 initialization configuration   1.4 project export   2, Improvement and Simulation in keil 2.1 improve functions 2.2 simulation waveform   2.3 burning demonstration 3, stm32usart serial communication 3.1 requir ...

Posted by neerav on Wed, 27 Oct 2021 08:54:02 -0700

Design of temperature and humidity display in cabin based on STM32

Design of temperature and humidity display in cabin based on STM32 This design uses the STM32F103ZET6 elite development board of punctual atom. Data acquisition: the temperature and humidity sensor uses DHT11 to collect humidity and DS18B20 to collect temperature. Display: the display part is divided into TFT-LCD display and upper computer Lab ...

Posted by Yegg on Wed, 27 Oct 2021 07:19:03 -0700

STM32 serial communication

catalogue 1, Understand serial communication 1. What is serial communication 2. Serial communication protocol 2, STM32 uses the serial port to send "hello windows" to the host computer 1. Wiring:   2. Code 3. Burn in board 4. Serial port debugging   3, References   1, Understand serial communication   1. What i ...

Posted by kornlord283 on Wed, 27 Oct 2021 01:09:42 -0700

[punctual atom FPGA serial] Chapter 15 window watchdog (WWDG) experiment - FPGA Development Guide from the new starting point of punctual atom_ V2.1

1) Experimental platform: new starting point V2 development board of punctual atom 2) Platform purchase address: https://detail.tmall.com/item.htm?id=609758951113 2) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-300792-1-1.html 3) Students interested in punctual atomic FPGA can add group d ...

Posted by duelist on Tue, 26 Oct 2021 00:06:20 -0700

STM32 communicates through serial port (assembly)

1. UART introduction Universal synchronous asynchronous receiver and transmitter is a A serial communication device, which can flexibly exchange full duplex data with external devices. There is another difference from USART UART(Universal Asynchronous Receiver and Transmitter) cuts out the same data on the basis of USART Step communication ...

Posted by D1proball on Mon, 25 Oct 2021 04:59:12 -0700