{
unsigned int num = 0;
while(*digit != '\0')
{
if(*digit >= '0' && *digit <= '9')
{
num = num * 10 + (*digit - '0');
digit++;
}
else
{
num = 0;
break;
}
}
return(num);
}
Previous article:Problems with microcontroller timers and serial port interrupts
Next article:Some habits of microcontroller programming
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Features of PSE108EX V2.0 POE Switch
- Domestic RISC-V chip onlookers
- [TI recommended course] #Innovation of general-purpose op amp and comparator chips#
- [Utility] One-click merge of sof and NIOS elf software programs into jic files
- Who is the great god? Who is the great god? What is good for him?
- Power Amplifier Selection Guide | Domestic or Imported? Are the parameters you see real?
- EEWORLD University ---- Open source H.265 IP core
- Please ask the senior teacher, the principle of the car steering wheel control decoder
- How to use barcode scanner and barcode printer to import and export, and see the wiring harness test results!
- Ask a question