File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
content/hardware/03.nano/boards/nano-r4/tutorials/01.user-manual Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2415,11 +2415,12 @@ You can open the Arduino IDE's Serial Monitor (Tools > Serial Monitor) to see th
24152415
24162416When working with interrupts on the Nano R4 board, there are several key points to keep in mind for successful implementation:
24172417
2418- - Keep ISR functions short and fast; avoid ` delay() ` , ` Serial.print() ` , or complex calculations inside ISRs as they block other interrupts.
2419- - Use volatile variables, always declare variables shared between ISRs and main code as volatile to prevent compiler optimization issues.
2420- - Manage channel conflicts, verify that pins don't share the same interrupt channel when using multiple interrupts.
2421- - Consider debouncing, mechanical switches may cause multiple triggers (add a 100nF capacitor or implement software debouncing).
2422- - Protect shared multi-byte variables, disable interrupts temporarily when accessing them.
2418+ - Keep ISR functions short and fast: Avoid ` delay() ` , ` Serial.print() ` , or complex calculations inside ISRs as they block other interrupts.
2419+ - Use volatile variables: Always declare variables shared between ISRs and main code as volatile to prevent compiler optimization issues.
2420+ - Manage channel conflicts: Verify that pins don't share the same interrupt channel when using multiple interrupts.
2421+ - Consider debouncing: Mechanical switches may cause multiple triggers (add a 100nF capacitor or implement software debouncing).
2422+ - Protect shared multi-byte variables: Disable interrupts temporarily when accessing them.
2423+
24232424
24242425## Qwiic Connector
24252426
You can’t perform that action at this time.
0 commit comments