Learning Notes IV. Reading and writing EEPROM for stm32f103 hardware based on cubemx
cubemx-based stm32f103 hardware read-write EEPROM
An erasable memory is introduced today. EEPROM (Electrical Erasable Programmable read only memory) is a live, erasable programmable read-only memory. It is a memory chip with no data loss after power failure. EEPROM can erase existing information and reprogram it on a computer or on a dedicated ...
Posted by noeledoran on Wed, 08 Dec 2021 11:02:37 +0100
STM32F103C8T6 porting uCOS based on HAL Library
1, Using CubeMX to build STM32F103C8T6HAL Library
1. Configure RCC
2. Configure SYS
3. Set PC13 to GPIO_Output
4. Set serial port USART1
5. Setup project
6. Generate code
7. Modify code
Add a statement to the while loop in the main function
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
HAL_ ...
Posted by muralimohan001 on Sat, 04 Dec 2021 22:06:40 +0100
-uc/OS System Porting
Catalogue of Series Articles
1. Use CubeMX to build STM32F103C8T6HAL Library
Configure RCC Configure SYS Set PC13 to GPIO_Output is used to light up LED lights Set Serial Port USART1 Setup Project Click Generate Code and open the project in Keil.
Add statements to the while loop in the main function
while (1)
{
/* USER CODE ...
Posted by finger on Sat, 04 Dec 2021 19:09:48 +0100
uc/OS-III System Porting
Catalog
1. Establish stm32 hal Library Project
1. File Configuration
2. Results
Porting of 2uCOSIII
1. Prepare the source code
2. Preparation
3. Start
Add Files
4. Parameter Configuration
Result
3. Waveform Analysis
1. Observe the output level of LED and the waveform of serial communication with an oscilloscope ...
Posted by MatrixDancer on Sat, 04 Dec 2021 02:23:22 +0100
[51 MCU quick start guide] 5.1: SPI and DS1302 clock chip
Puzhong 51-mononuclear-A2 STC89C52 Keil uVision V5.29.0.0 PK51 Prof.Developers Kit Version:9.60.0.0 Upper computer: Vofa+ 1.3.10
Hard knowledge
Excerpt from "development strategy of Puzhong 51 single chip microcomputer" and "DS1302 Chinese manual".
Introduction to DS1302 ...
Posted by kycan on Fri, 03 Dec 2021 22:16:14 +0100
Punctual atom STM32F103 (Elite version) -- window watchdog
Why window watchdog?
For the general watchdog, the program can refresh the watchdog at any time before it is reset, but there is a hidden danger. It is possible that the program runs disorderly and returns to the normal place, or the disordered program just performs the refresh watchdog operation. In ...
Posted by wystan on Thu, 02 Dec 2021 22:42:25 +0100
Temperature and humidity display of OLED based on stm32
1, SPI
1. Introduction
SPI (Serial Peripheral Interface) is a synchronous serial data transmission standard proposed by Motorola Company. It is a high-speed, full duplex and synchronous communication bus, which is widely used in many devices.
2.SPI interface
SPI interface is often called 4-wire serial bus, which works in master / slave m ...
Posted by Balmung-San on Tue, 30 Nov 2021 19:08:34 +0100
651 single chip microcomputer EEPROM memory chip (AT24C02)
4.6 EEPROM memory chip (AT24C02)
4.6.1 introduction to schematic diagram
Figure 4-6-1
Figure 4-6-2
The EEPROM model on the experimental board is AT24C02N, and the communication interface is IIC, which is connected to P2.1(SCL) and P2.2(SDA) ports of single chip microcomputer.
AT24C02 is a 2kbit (256 byte) EEPROM.
The schematic diagr ...
Posted by pete07920 on Tue, 30 Nov 2021 15:19:30 +0100
FreeRTOS semaphore --- binary semaphore
Semaphores can be used for resource management and task synchronization. Semaphores in FreeRTOS are divided into binary semaphores, computational semaphores, mutually exclusive semaphores and recursive mutually exclusive semaphores.
0x01 binary semaphore
Binary semaphore is actually a queue with only one queue item. This special queue is eith ...
Posted by Saethyr on Fri, 26 Nov 2021 13:09:45 +0100
Use of STM32 mpu6050
characteristic
MPU6050 can simultaneously detect three-axis acceleration, motion data of three-axis gyroscope (three-axis angular velocity) and temperature data. Using its internal DMP module (Digital Motion Processor), the sensor data can be filtered and fused, and the attitude calculated data can be output directly to the main controller ...
Posted by lukatchikm on Thu, 25 Nov 2021 01:19:17 +0100