Playing with Arduino
A page to record my playing with Arduino
interrupts()/noInterrupts()

Abstract

These functions enable or disable the interrupts.

Source Code

The bitRead()/bitSet()/bitClear()/bitWrite() are defined in hardware/arduino/avr/cores/arduino/Arduino.h as below.

1
2
#define interrupts() sei()
#define noInterrupts() cli()

The interrupts()/noInterrupts() are converted to sei() and cli() respectively.

They are assembler instruction that enables or disables the interrupts.

Version

Arduino 1.8.13

Last Update

June 19, 2020

inserted by FC2 system