Hi!
Can somebody tell me what happens when I switch from 5V to 5V-USB while the program is running. I have the program in flash and normally I use the 5V supply. When something works wrong, I've observed that if I switch to the 5V-USB the execution seems to be stopped. So far, this was good enough. Nothing connected at the PWM output, nothing to get fried. But as the PWM outputs remain in an undefined state, this practice is no longer ok when I connect something. I've implemeted TZ6 to put the PWMs in low, but the problem is that sometimes I lose the connection with the target, so halting doesn't help me put the PWMs in low. Can I use the supply switch to give a TZ condition. Is there maybe a clock failure when I change the supply source?
I've implemented TZ1 to do this job, but the current setup doesn't give me access to GPIO12, the power switch would be a perfect temporary solution.
Thanks,
monica