Hello,
it looks like the timer reload isr of timer1 (TIMER1_CAPT_vect) doesn't execute in SimulIDE.
The attached sketch outputs a variable duty cycle pwm (PWM frequency 62500 Hz) on pin 9 of an arduino uno. It works in real hardware. The output, filtered by a simple RC filter, becomes a 244 Hz sine wave.
But in SimulIDE the output is just a 62.5 kHz square wave with 50% duty cycle.
I tried SimulIDE 1.1.0-RC0 rev. 1908 and rev. 2036
it looks like the timer reload isr of timer1 (TIMER1_CAPT_vect) doesn't execute in SimulIDE.
The attached sketch outputs a variable duty cycle pwm (PWM frequency 62500 Hz) on pin 9 of an arduino uno. It works in real hardware. The output, filtered by a simple RC filter, becomes a 244 Hz sine wave.
But in SimulIDE the output is just a 62.5 kHz square wave with 50% duty cycle.
I tried SimulIDE 1.1.0-RC0 rev. 1908 and rev. 2036
- Attachments
- PWM_Sinus_ICR1.zip
- You don't have permission to download attachments.
- (2 Kb) Downloaded 4 times