Home > other >  STM32f103rc non-blocking serial interface communication mode
STM32f103rc non-blocking serial interface communication mode

Time:10-03

FIFO method are used to convert the data in buf print to a serial port

CodePudding user response:

Simply speaking, two main techniques,
First: using the interrupt way, regardless of FIFO, the interrupt configuration inside the interrupt for data processing, after a specified number of data, send advantages can now run other applications, the data processing by the interrupt handler, the disadvantage is that on the surface of a non-blocking, actually send still need to deal with CPU, takes up a certain amount of time,
The second: use the DMA, configured corresponding DMA configuration, can send the specified data to the serial port, the advantage is no CPU, can improve the operation efficiency of the program, the downside is that for small batch of frequent delivery mode, the increase in the number of frequency configuration DMA will increase additional processing time,

CodePudding user response:

,,,,,,,
Who can I ask this question, a veteran!
Can answer the question of the house and car all earned ~!
When will your asked this problem ~

CodePudding user response:

Using the data from the serial port empty terminal to read
  • Related