Bit-Bang PWM at high speed

I managed to put together a tight loop that does bit-bang PWM. It gets the frequency to within about 5% of the targeted value. I included the code as an option in the latest release of my IRLib that I released a few days ago. IRLib | CY's Tech Talk