-
The DMA reading method is very suitable for high-frequency ADC sampling signals. The DMA reading method of ADC is actually similar to the interrupt reading method in the previous article, ...[Details]
-
1. Introduction
Traditional information management systems such as ERP have played an important role in manufacturing enterprises, but these systems have not yet been extended to the process ma...[Details]
-
Part 1 Reset Classification Hardware reset: As the name implies, the system is reset through hardware, such as designing a reset circuit on a circuit board. By pressing a button, the system can b...[Details]
-
The SysTick timer is bundled in the NVIC and is used to generate a SysTick exception (exception number: 15). The Systick part belongs to the NVIC control part. There are 4 registers in total. Their n...[Details]
-
Negative voltage generation circuit diagram principle In electronic circuits, we often need to use negative voltage. For example, when we use an operational amplifier, we often need to establish a ne...[Details]
-
The STM32 has rich serial port resources and powerful functions. The STM32F103C8T6 used in this project can provide up to 3 serial ports, with a fractional baud rate generator, support for synchronou...[Details]
-
When you do something you haven't done before, you will always be hesitant and afraid that you won't be able to do it. In fact, if you really start to do it, most of the problems will be solved. I did...[Details]
-
Target
1. Create a library file libGetMax.a, which contains an external function GetMax. The function GetMax is used to determine the maximum value of two input parameters (int type) and ret...[Details]
-
1.1.1 Registers in different modes of ARM processor
The CPU mode is different, and the registers that can be used in the corresponding mode are also different, as shown in Table 3-2:
Table 3-2 Re...[Details]
-
1. Configure and use Micro LIB in Keil, as shown below 2. Configure USART module void SYS_USARTInit(void) { static USART_InitTypeDef USART_InitStructure; static GPIO_InitTypeDef GPIO_Init...[Details]
-
These two instructions can be used to read or write CPSR or SPSR. When you need to save or modify the contents of CPSR or SPSR in the current mode, you must first transfer these contents to the ge...[Details]
-
//ccr = 0~499 void setPWM1(unsigned short ccr){//PC1 TIM1_CCR1H = (unsigned char)(ccr 8); TIM1_CCR1L = (unsigned char)(ccr & 0xff); } void setPWM2(unsigned short ccr){//PC2 TIM1_CCR2H = (unsig...[Details]
-
0 Preface
LCD liquid crystal display meets the increasing requirements of embedded systems, especially in the fields of industrial control and consumer electronics. It has the advantages of stability...[Details]
-
2 8-bit modes. Mode 3 is only applicable to timer 0. If timer 1 is set to mode 3, timer 1 will be in the off state. When T0 is in mode 3, THo and TL0 are divided into 2 independent 8-bit counters . ...[Details]
-
First, open the schematic diagram of the baseboard and find the button information:
Four buttons can be found:
You can see that the pins corresponding to the four buttons are EINT1,...[Details]