> For the complete documentation index, see [llms.txt](https://ubtechedu.gitbook.io/chinese/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ubtechedu.gitbook.io/chinese/arduino-language/functions/interrupts/nointerrupts.md).

# noInterrupts()

禁止中断（重新使能中断interrupts()）。中断允许在后台运行一些重要任务，默认使能中断。禁止中断时部分函数会无法工作，通信中接收到的信息也可能会丢失。中断会稍影响计时代码，在某些特定的代码中也会失效。

### 例子 <a href="#li-zi" id="li-zi"></a>

```c
void setup()
 
void loop()
{
noInterrupts（）;
//关键的、时间敏感的代码放在这
  interrupts();
//其他代码放在这
}
```
