When debugging the PM2.5 sensor GP2Y1051 , it was found that the data could be accepted at the time of simulation, but if the data could not be accepted after the pause, only a complete data was actually received.
Solution
If ( USART_GeTITStatus ( USART1 , USART_IT_RXNE )) { RecevieData = USART_ReceiveData8 ( USART1 );For the STM8S003F3 or 103 series microcontrollers , since the rest of the other SCMs are not the same , there is an ORE in the serial port receive interrupt , that is, an overload error , and the interrupt is received ; as shown in the figure :
Therefore it is necessary to do the following processing in the serial port receive interrupt :
With 15+ years manufacturing experience for portable power.
Supply various portable charger for iPhone, Airpods, laptop, radio-controlled aircraft ,laptop, car and medical device mobile device, ect.
From the original ordinary portable power source to Wireless Power Bank, Green Energy Solar Power Bank, Magnetic Mobile Power, Portable Power Stations and other products continue to innovate.
Avoiding your devices run out of charge, Portable Chargers to keep your mobile device going.
We help 200+ customers create a custom mobile power bank design for various industries.
Portable Power Supply, Wholesale Powerbank,Portable Phone Charger,wholesale gifts
TOPNOTCH INTERNATIONAL GROUP LIMITED , https://www.itopnoobluetoothes.com