QEI Programming Notes
1. Quadrature encoder
Below are some pictures of quadrature encoders commonly used in industry.Quadrature encoders (also called incremental encoders or optical encoders) are used...
The __nop() function is used in the LCD display program, but I can't find where it is defined. Isn't NOP an instruction in the assembly language? Please help. Port_LCD_DATA->CRH = 0x33333333U; // ííìê...
I am using LabWindows to write a serial data acquisition program. I have a question for you. The instrument sends data to the computer through the serial port. Since the data sent is not continuous, h...
If I want to increase the clock frequency to 8M, can I still use DCO? Is SMCLK enough? How can I make sure that my device can use a high-frequency oscillator? What is the meaning of baud rate and how ...
Dong Yang, executive vice president of the China Association of Automobile Manufacturers, said on the 26th that according to the authorization of the Ministry of Industry and Information Technology...[Details]
For 80,000
ZTE
(000063.SZ) employees and more Chinese ICT (information and communication technology) industry practitioners, the news from across the ocean on the evening of April 16 kept t...[Details]
In the actual project development process, we often need to get the running time of a section of code. The usual method is to use an oscilloscope to measure it. This blog post will use SysTick to acc...[Details]
All relevant units:
In accordance with the relevant requirements of the provincial and municipal electric vehicle charging infrastructure construction work, in order to further standardize the...[Details]
0. Preparation First use st-link to connect the stm32 core board and PC for burning St-link Stm32 3.3V 3.3V GND GND SWDIO PART SWCLK DCLK Then connect with USB serial port board to v...[Details]
Timing and protocol are two key points in digital system debugging, and they are also where logic analyzers can play their most valuable role. How can we use a logic analyzer to quickly complete wiri...[Details]
When Amazon quietly launched a product called Elastic Computing Cloud 12 years ago, the Internet industry in China, across the ocean, also ushered in an unprecedented development opportunity. Let's...[Details]
The analog watchdog of the ADC is used to check if the voltage is out of bounds. It has two upper and lower bounds, which can be set in the registers ADC_HTR and ADC_LTR respectively. The library fun...[Details]
At this exhibition, Microsoft brought its flagship intelligent voice products - XiaoIce and Xiaona. In addition, the voice will be equipped with an intelligent face recognition system. Let's see ho...[Details]
/* Unfortunately, it cannot generate a standard 38kHz frequency square wave, there is a little error*/ #include reg51.h #define uchar unsigned char #define uint unsigned int sbit Waveout=P1^0; //P...[Details]
The key is the configuration of registers. The T1 timer (16 bits) of CC2530 needs to configure three registers: T1CTL, T1STAT, IRCON Here is just a brief introduction. For more details, please refer ...[Details]
As shown in the figure, the circuit is required to count and display the number of times the button is pressed. When the button is pressed once, the count value increases by 1 (it is required to accu...[Details]
MCS-51 single-chip microcomputer timer/counter experiment programming program Programming requirements: 1. Connect a light-emitting diode LED to the P1.0 pin, light up for two seconds, turn off for o...[Details]
Design a second and minute pulse generator for a single-chip microcomputer using the interrupt method. Assume that P1.0 generates a positive pulse of one machine cycle per second, and P1.1 generates ...[Details]