It appears that when the PWM duty cycle is returned to 0% on pins 9 and 11 of the UNO the pin jumps to 5V.
This only occurs on pins 9 (OC1A) and 11 (OC2A) so not related to the underlying timer?
Code below demonstrates: Compiled in Arduino IDE 2.2.1 and hex file exported and loaded directly into SimulIDE simulation.
SimulIDE-1.0.0-SR1 R1402. Windows 64.
void loop() {
analogWrite(9, 0);
delay(1000);
analogWrite(9, 127);
delay(1000);
}
This only occurs on pins 9 (OC1A) and 11 (OC2A) so not related to the underlying timer?
Code below demonstrates: Compiled in Arduino IDE 2.2.1 and hex file exported and loaded directly into SimulIDE simulation.
SimulIDE-1.0.0-SR1 R1402. Windows 64.
void loop() {
analogWrite(9, 0);
delay(1000);
analogWrite(9, 127);
delay(1000);
}