Ya, there are actually 2 pins toggling at 50KHz. When one is low, the other is high. And it's a very stable exact duty of 50%, within maybe 99.999% or something like that. And there are no interrupts or anything. It's just NOPs and a while loop, counted exactly so that the high time and low time are identical cycles, verified in a cycle counting simulator, and also verified on an oscilloscope.
|