I tried again.
If I select PWM Chanel3 there is no more warning "Period control register not available on target device, period will default to 255 + 1"
There is no PWM signal on port B1.
What is wrong?
I am also attaching a test program.
Search found 4 matches
- Thu Dec 31, 2020 11:53 am
- Forum: General
- Topic: I want a PWM frequency of 4.1KHz.
- Replies: 8
- Views: 7384
- Wed Dec 30, 2020 10:27 pm
- Forum: General
- Topic: I want a PWM frequency of 4.1KHz.
- Replies: 8
- Views: 7384
Re: I want a PWM frequency of 4.1KHz.
All right, I understand. I also tried PWM chanel 3. PWM chanel 3 uses timer1. Timer1 has multiple registers to set up and is 16bit. Unfortunately, timer1 does not work either. Although the datasheet says "Timer1 Variable PWM period". Why doesn't PWM work? There is no pwm signal on PORT B3....
- Tue Dec 29, 2020 8:46 pm
- Forum: General
- Topic: I want a PWM frequency of 4.1KHz.
- Replies: 8
- Views: 7384
Re: I want a PWM frequency of 4.1KHz.
Hello, Thanks Ben for the answer. I tried compiling again. Really issue a warning "Period control register not available on target device, period will default to 255 + 1" It would be good if the warning was written in red. I would ask you if you can find a solution to this. The Atmega328 i...
- Mon Dec 28, 2020 5:33 pm
- Forum: General
- Topic: I want a PWM frequency of 4.1KHz.
- Replies: 8
- Views: 7384
I want a PWM frequency of 4.1KHz.
Hello,
I want a PWM frequency of 4.1KHz. I am using Flowcode9 and Arduino Nano (Atmega328)
But, whatever I type in the Overflow Period, the PWM frequency does not change (see picture).
Where is the problem?
I want a PWM frequency of 4.1KHz. I am using Flowcode9 and Arduino Nano (Atmega328)
But, whatever I type in the Overflow Period, the PWM frequency does not change (see picture).
Where is the problem?