main() { int a; P1=0xff; TMOD=0x11; //Timer 0 and timer 1 work in mode 0 at the same time; ET0=1; //Turn on internal interrupt 0 ET1=1; //Turn on internal interrupt 1 led7=0; while(d) { shao_maio(); i...
On a board powered by a 3.6v battery, there is a 5-pin chip. There are only three letters "ATE" on the chip. It should be an LDO. The left 3 pins: the middle pin is grounded, and the other 2 are unuse...
Raw OS uses a special mechanism that can reduce the maximum interruption time of the entire system to as close to 0us as possible. The main implementation principle is to change the original system in...
[color=#333333]In DSP applications, it is often necessary to generate sine waves. If you use the mathematical function sin in C directly, you can certainly generate sine waves, but because the efficie...
Photovoltaic inverters are the core equipment of photovoltaic systems. Their main function is to convert the direct current generated by photovoltaic modules into alternating current that meets the...[Details]
In our common sense, the word technology often has two definitions. The first is the technology sealed in the laboratory. They are like flowers on the mountain top. Only a few people on the mountai...[Details]
China Energy Storage Network News:
According to reports, in order to reduce carbon emissions, a group of Japanese technology and energy companies are launching a pilot project that aims to al...[Details]
1. Principle 1. Infrared emission protocol There are many infrared communication protocols. This experiment uses the NEC protocol. This protocol uses PWM modulation and uses pulse width to represen...[Details]
1. Problem When developing STM32 with IAR, I found that I could not print floating point numbers by redirecting printf to the serial port. The code is as follows: The output is as follows: It can...[Details]
The status of interrupts in developing embedded systems is absolutely unquestionable. In the era of C51 microcontrollers, there were only 5 interrupts, including 2 external interrupts, 2 timer/counte...[Details]
When Amazon launched its first
cloud computing
service, the outside world was not optimistic about this direction, as it had high investment, low profits and many uncertainties. Let's follo...[Details]
Today, under the guidance of a low-level expert, I learned how to configure the PWM module! Woof! First open the file configured last time, as follows: Then, we need to use TIM1 to set PWM: Then,...[Details]
This is my first time writing an STM32 program. I have many questions to ask. I want to convert the data of the SO of MAX6675 into the actual temperature and read it out using the serial port tool. I...[Details]
Although it is early summer, the Chinese smartphone market is still in the cold winter, just like Beijing in April with snow. For mobile phone brands caught in the middle, the cold is even more bit...[Details]
Recently, the "Smart Photovoltaic Industry Development Action Plan (2018-2020)" jointly issued by six departments has put this concept on the forefront. Photovoltaic smart solutions will become the ne...[Details]
Superconductors have physical properties such as zero resistance effect, Meissner effect and Josephson effect, which make them have broad application prospects and unparalleled advantages in many b...[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]
What is SYSTICK: This is a 24-bit system tick timer, SysTick, with automatic reload and overflow interrupt functions. All microcontrollers based on the Cortex_M3 processor can obtain a certain time ...[Details]
From small households to large enterprises, energy consumption has always been a concern for everyone. The energy consumption of Chinese enterprises has always been high, and the country has also wor...[Details]