Preload the output latch before changing the pin direction. The PCA9536 resets with the pins configured as inputs, while its output latch bits default to one. If firmware enables output drive before writing a low, the device first drives the stored high and then changes to low. A faster controller reference can shorten the time between writes, but does not remove the intermediate driven state.
For a pin that must start driving low, leave it configured as an input and write the intended low bit to the Output Port register first. Preserve the intended values for the other pins. After the write, clear the relevant Configuration bit to enable output drive. Reading the Output Port register verifies the latch, not the physical pin level. Check the Input Port register with the configured polarity in mind, and use a scope to examine short pulses.
This write order does not guarantee low from the instant power is applied. In input mode a weak pull-up and the external board circuit determine the level. If the pin controls a load or clock gate that cannot briefly enable, verify the hardware default before firmware takes control. Capture power, bus writes and the physical pin during a true cold start as well as a host-only reset. Check the exact oscillator option and host timing separately rather than treating clock accuracy as a fix.
Related selection guide: MERLIN Crystal Timing: Clock oscillators
Resource link: https://www.mecxtal.com.cn/en/products/oscillators.html
