| 数据搜索系统,热门电子元器件搜索 |
|
AN4635 数据表(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4635 数据表(HTML) 8 Page - STMicroelectronics |
|
8 / 34 page ![]() Operation modes AN4635 8/34 DocID027290 Rev 1 3 Operation modes Real-world scenarios may cover a wide variety of configurations, using different baud rates, ratios of transmit/receive and delays between messages. All these factors influence the choice of the operation mode. 3.1 Polling mode Polling mode is the simplest possible operating mode, also known as blocking mode. The CPU is processing a single task, switching to a low power mode during periods of inactivity. There is almost no processing overhead, allowing to use very low system clock speed. This mode can be extremely efficient for very simple scenarios, however blocking mode is effectively blocking the CPU from processing any other tasks, like data processing or concurrent communication. 3.2 IT mode The second option is to rely completely on interrupts, waking the CPU for every transferred byte. This operation mode uses the advantage of ARM® Cortex® advanced NVIC to keep the processing split to atomic operations, never blocking the CPU and achieving real-time responses. This mode however strains the CPU a little more, adding processing overhead related to stack and context resuming. 3.3 DMA mode In DMA mode the CPU is spared of large portion of processing, setting a DMA channel to move data between the peripheral and the SRAM. The CPU may spend part of the processing time in Sleep mode. However the DMA cannot wakeup from Stop mode. 3.4 Combined mode examples Real-world applications usually are a mix of above mentioned modes, the developers always try to strike the best bargain between conflicting needs.The following examples are not covered in bundled source codes, they are mentioned purely as inspiration. 3.4.1 Interrupt with polling Some embedded systems may not be real-time critical and in this case there is an option to block the CPU for a limited time to process a message frame. Especially in case of transmission, energy normally used up to process all TC interrupts is saved, the message is transmitted in blocking mode, possibly with clock speed lowered and power regulator switched to low power mode (LPRUN). Only approximately half clock speed is required if the CPU can treat the message in blocking mode. Normal operation is then restored, preferably waiting for incoming reply interrupt in Stop mode. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |