analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 75 forks source link

fix(PeriphDrivers): Fix Bitwise Logic for TMR RevA Prescaler Init #971

Closed Jake-Carter closed 3 months ago

Jake-Carter commented 3 months ago

Description

Fixes #947

The ME10 UG has a mistake that propagated itself to our periphdrivers. The logic table skips from 0b000 to 0b010 at the transition between 256 -> 512. This causes 512 - 2048 to be twice what they should, and 4096 to roll over to an invalid setting that behaves like a divisor of 1.

image

This PR updates the divisor settings to remove the skip

Checklist Before Requesting Review