Skip to content

Commit bd5e9d6

Browse files
canchebagurTaddyHC
andauthored
Update content/hardware/03.nano/boards/nano-r4/tutorials/01.user-manual/content.md
Co-authored-by: TaddyHC <94547080+TaddyHC@users.noreply.github.com>
1 parent bcfaf95 commit bd5e9d6

File tree

1 file changed

+6
-5
lines changed
  • content/hardware/03.nano/boards/nano-r4/tutorials/01.user-manual

1 file changed

+6
-5
lines changed

content/hardware/03.nano/boards/nano-r4/tutorials/01.user-manual/content.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,11 +2415,12 @@ You can open the Arduino IDE's Serial Monitor (Tools > Serial Monitor) to see th
24152415

24162416
When 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

0 commit comments

Comments
 (0)