-
1. Principle 1. Infrared emission protocol The infrared transmission protocol has been written in the previous article , so I will not repeat it here. 2. Timer counting and input capture A timer...[Details]
-
I have always wanted to write some posts and blogs, but I just couldn't bear to do it as I just graduated. After some preparation, I decided to write down some of the things I learned in the past few...[Details]
-
The last two blogs talked about a version problem of STM32CubeMX and the problem of hardware reset. When you solve these two problems, you will find that after the program is burned into the board, t...[Details]
-
This example is mainly to familiarize yourself with the register configuration of Timer A and the configuration method of IAR. /*********************************************** Program function: re...[Details]
-
At the beginning, I used the stdlib library. Recently, I found that the cube library is more and more widely used, so I started to use the cube library to complete the ADC multi-channel acquisition e...[Details]
-
STM32 has two watchdogs: independent watchdog and window watchdog. This article mainly introduces the use of independent watchdog. Independent watchdog (IDWG): driven by an independent 40KHZ low-sp...[Details]
-
1) Independent watchdog has no interrupt, window watchdog has interrupt 2) Independent watchdogs can be divided into hardware and software, while window watchdogs can only be controlled by software...[Details]
-
I have been working on a stm32 project recently and have been struggling with its startup method. I saw a good article and reposted it. The format of the original article is not very good, and there...[Details]
-
Design a program for the 51 single-chip microcomputer. It is known that the crystal oscillator frequency of the 89C51 single-chip microcomputer is 12MHz, and it is required to use T1 timing to output...[Details]
-
The clock frequency of the 80C51 microcontroller is 12MHz, and the timer T1 and P1.0 are used to output rectangular pulses. The waveform only shows two segments: one segment is 100us and the other se...[Details]
-
Code: void TEST(volatile near unsigned char* IO,unsigned char n,BOOL value) { unsigned char a; unsigned char b; a=*IO; b=0x01; b=b n; if(value) { *IO=a | b; } else { b=~b; *IO=a & b; } } PIC stru...[Details]
-
#include avr/io.h void Delay(unsigned int T) { unsigned int i,j; for (i=0;i T;i++) for (j=0;j 100;j++) asmvolatile ("nop"); //Assembly instruction, let the microcontroller run empty instruction...[Details]
-
pt2262 source code written by EM78P156 ;this program is HOME ALARM ; n ;this progam write and test for 01.2.18---3.5 ;Chip EM78P156 F=3.58 MHz ;SETUP : CYCLE=2,CLOCK=...[Details]
-
When programming with Elan MCU, please pay attention to the following points: 1. When the program is longer than 1K, page jump will occur. If an interrupt handler is enabled, after entering the inte...[Details]
-
Convert a byte of binary to two hexadecimal ASCII codes main: mov a,@0x9f ; the binary number is 0x9f mov 0x30,a ; store binary number in 0x30 mov a,@0x02 mov 0x10,a ;0x10 stores the conversion numbe...[Details]