Skip to content

Instantly share code, notes, and snippets.

View nalex4711's full-sized avatar

nalex4711

  • Athens Greece
  • 00:24 (UTC +02:00)
View GitHub Profile
@nalex4711
nalex4711 / ArduinoZeroTimer_with_XOSC32K_at_8.192kHz.ino
Last active June 3, 2024 15:41
Code inspired by ArduinoZeroTimer.ino (with Thanks) : file name: ArduinoZeroTimer_with_XOSC32K_at_8.192kHz.ino
/* 32 bit variables only for debugging */
uint32_t RG_TC5_COUNT_CC0 = 0;
uint32_t RG_GENDIV_REG = 0;
uint32_t RG_GCLK_GENCTRL = 0;
uint32_t RG_GCLK_CLKCTRL = 0;
/* actual 16 bit CC value */
// uint16_t CC_period = 1;