I was trying out the low power PWM example and noticed the timing inaccuracy that was mentioned in documentation.
For example, with low_power_pwm_0,
- period = 220 ticks
- duty cycle = 20 ticks
Given a clock frequency of 32,768 Hz (period = 30.52 us), the PWM period should be 6714 us and the pulse width 610 us.
The period and pulse width measured on the scope were 6200 us and 680 us, respectively.
Similarly, with low_power_pwm_1, period = 200 ticks and duty cycle = 150 ticks. The theoretical period and pulse width were 6104 and 4578 us, respectively. The measured period and pulse width were 5320 and 3880 us, respectively.
Is this discrepancy of about 10 - 20% expected?
The current consumption was switching between 5.4 and 10 mA, which seems rather high. (I pressed reset a few times and so it shouldn't be in debug mode, should it?)