Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15733

PWM frequency change on 328PB

$
0
0

I am trying to change the PWM frequency of 328PB version from default 487 hz on pins 2, 3 to about 1 kHz.
I could have sucess on pin 3 by adding this in the setup:

TCCR2B = TCCR2B & 0b11111000 | 0x03; // 970 Hz // pino 3 a 975 hz

But no on the pin 2 that is connected to Timer 3. Also no success on pins 9 and 10 (Timer 1).

Nano 328PB have different timers.

Any help ?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 15733

Latest Images

Trending Articles



Latest Images