Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Return to PWM duty cycle of 0% results in 5V output on pins 9 and 11 - Arduino UNO

2 posters

Go down  Message [Page 1 of 1]

btoland



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);
}

arcachofo

arcachofo

Thanks, I will have a look.

btoland



Cheers,

Just downloaded 1.1.0-RC0 R1909 and works fine in that version.

arcachofo

arcachofo

Just downloaded 1.1.0-RC0 R1909 and works fine in that version.
Ok, so the problem is in 1.0.0?

EDIT:
yes:
SimulIDE-1.0.0-SR1 R1402. Windows 64.

I will fix it in 1.0.0 then.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum