EFM32 chip: LETIMER vs SLEEPTIMER

EFM32 chip: LETIMER vs SLEEPTIMER

LETIMER

  • A real hardware timer block
  • You directly configure registers
  • Can Toggle pins
  • Generate PWM
  • Run without CPU intervention

SLEEPTIMER

  • A software service (driver) from Gecko SDK
  • Uses underlying hardware (LETIMER or RTC)
  • Provides Delays
  • Periodic callbacks
  • Timekeeping

FeatureLETIMER (Low Energy Timer)SLEEPTIMER (Software Timer Service)
TypeHardware peripheralSoftware abstraction (driver/service)
LayerLow-level (register-level control)High-level (API-based)
Runs in low power modesEM2 / EM3(depends on backend, usually LETIMER or RTC)
PWM generationYes (basic PWM)No direct PWM
Output to GPIO pinsYes (OUT0, OUT1)No direct pin control
Interrupt supportDirect hardware interruptsCallback-based
PrecisionHigh (hardware-timed)Moderate (depends on backend + scheduling)
Ease of useComplex (register config)Easy (simple APIs)
Multiple timersLimited (usually 1–2 instances)Multiple virtual timers
Power efficiencyVery efficientEfficient (built on low-power timers)
Use without CPU wakeupYes (autonomous operation)No (callback wakes CPU)
Backend dependencyIndependentUses LETIMER / RTC internally
Use case levelPeripheral-level controlApplication-level timing

Post a Comment

0 Comments