On the Panda II board, I am using all six PWM outputs. These outputs are driving a simple transistor circuit used to take the 3.3v swing of the PWM output to 5v. This works fine as long as I don’t connect the last PWM output to it’s circuit until after the system has booted.
Obviously, I ran into the fact that PWM #6 shares a secondary function (“MODE”). My circuit effectively is pulling down MODE and this is causing the system to go into the serial bootloader. I don’t want that, obviously, but am not sure how I design around it.
What I need is for the pin to be held high (or, not pulled down low) during the period of time the startup code samples the pin. Alternatively, if there is a way I can have the startup code ignore the MODE pin and always boot as if nothing was connected, that would work.