Replies: 8 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi Icgamboa, Please find the below code #include <PWM.h> |
Beta Was this translation helpful? Give feedback.
-
Hi Soeidat, thank you for the code example. |
Beta Was this translation helpful? Give feedback.
-
Hi Lcgamboa, I am using pwm-master library. |
Beta Was this translation helpful? Give feedback.
-
Using the lib https://github.com/terryjmyers/PWM the PWM mode 8 is selected.
Changing to PWM mode 10 the program works. (TCCR1A = 0x82). |
Beta Was this translation helpful? Give feedback.
-
Hi @soeidat , Apparently the PWM issue in simavr has been fixed with this modification lcgamboa/simavr@f175716. You can download this version with the fixed simavr for testing picsimlab_0.8.9_210814_win64_setup.exe Please report your test results. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Lcgamboa, Thanks for your help. It is working now but the PWM signal not stable when it displayed on the Oscilloscope. |
Beta Was this translation helpful? Give feedback.
-
Hi @soeidat , writing to the pin direction register always changes the pin value in simavr.
|
Beta Was this translation helpful? Give feedback.
-
I am trying to run BWM at 5khz, but it seems that picsimlab cannot generate the same code listed in real ardunio uno where it works perfectly.
Beta Was this translation helpful? Give feedback.
All reactions