I've seen my fair share of binary, bits, flags, hex, registers, assembly code and machine code, but never quite seen this:

The field OC1M is a 4-bit field but the MSB is at bit 16 and the lower three bits are situated at bit 6,5,4, the field OC2M is the same.
By looking at the docs for a simpler, earlier chip I can see that it was originally a 3-bit field on STM32 MCUs but in the STM32MP1X family they extended it to become a 4-bit field, and I am doing this for leisure?

The field OC1M is a 4-bit field but the MSB is at bit 16 and the lower three bits are situated at bit 6,5,4, the field OC2M is the same.
By looking at the docs for a simpler, earlier chip I can see that it was originally a 3-bit field on STM32 MCUs but in the STM32MP1X family they extended it to become a 4-bit field, and I am doing this for leisure?


