I program my ignition controller in assembler, for a 9s12 processor. I was trying to add a few lines of code to extend a noise blank pulse.
I spent three days trying to get it to work, then finally gave up and asked google ai for help, describing my results. It replied “that is a known issue when using TC7 to control another timer channel.”
It then gave a few workarounds, which I tried, to no avail. At one point it was giving me wrong answers, that I knew were wrong. I noticed a box under their reply that said “ask me anything”, so I said ‘YOU ARE WRONG, blah blah (giving my reasons)”. I was very surprised when it corrected itself and apologized.
I final got it working, though there is a 500ns glitch, but my noise blank transistor doesn’t even notice it.
Scope trace showing the problem
https://www.youtube.com/watch?v=uaP0Jq3Wpjw
Scope trace showing success
https://www.youtube.com/watch?v=AApNlR7LRgw