I'm using a K64FX512 on a Teensy 3.5 board.
We were using the Bandgap as a software reference voltage for the ADC, but that looked to about 0.8% high. Which is expected as it is only specified as being +-3%.
I've switched to the Voltage Reference, and that is far better. But the Reference Manual is confusing on its use. The manual is "K64 Sub-Family Reference Manual, Rev. 4, Oct 2019".
Section "38.1.2 Features" says:
* Programmable trim register with 0.5 mV steps, automatically loaded with factory
trimmed value upon reset.
But the register definition is as follows:
- It says everything except CHOPEN is "Undefined at reset", which usually means "random" and not "Factory Set".
- It says Bit 7 is "loaded with a factory trim value".
- It doesn't say the bottom 6 bits are loaded with the factory trim.
- The "Reserved" bit might be read-only or it might be read-write. Its value probably should be preserved on any writes to this register, but that isn't clear.

Checking the Teensy driver sources for clarification doesn't help. It overrides all of the trim bits with 0x20 as the "middle value". AND it overwrites the "Reserved" bit with zero, which is probably wrong.
Could the proper use of this register be clarified, please? Is it better in any of tha other Kinetis manuals that use the same module?
Tom