I’d love to see this blog post, if you end up having time to write it! Can you share a link to your blog? I didn’t see it in your profile.
Trane had the original patent for computer controlled defrost: https://patents.google.com/patent/US4573326A/en In the first image you'll see a chart with different temperature "bin" factors. In one place in the code, the temperature offset from 32 degrees (freezing) is added to a hardcoded value and the PC then jumps into a certain spot in a lookup table. The values in that lookup table help determine at what "DT" (delta temp between outdoor coil and outdoor ambient) a defrost should initiate. In another location, a hardcoded value is added to the PC along with a loop counter.... On loop 1 through the code, jump to this location, on loop 2 jump to this location, etc. Kind of a strange way to code, but after buying different revisions on ebay of this board going all the way back to the early 2000's, and on top of the patent being from 1985, perhaps this was the norm in the 80's and mid 90's.
On the other hand, carefully hand-crafted and super clever machine code written in the '80s and subsequently fucked up by successive generations of maintainers who didn't understand it is an entirely plausible scenario.
Long story short, the fireware was indeed full of bugs. It is possible that these controller boards haven't been working right for the last 10+ years. I managed to add a few lines of code to bypass some initial values when the board is first powered up, and that fixed the issues. It is indeed an "on demand" defrost controller now. I'm still slowly writing a blog post about it but probably won't get more time to publish for a few months.
But I guess the point is, after messing with this, there seems to be an entire world of embedded firmwares that are just riddled with bugs and will never be fixed.