ted korczak

The pin problem

Discussion created by ted korczak on Mar 7, 2018
Latest reply on Mar 7, 2018 by ted korczak

Why A is not equal B ?

 When I am running this program I have square wave on PA6 but not when I switch to pin PB4.

 

pinMode(PA6, PWM); // 1.5 MHz

//pinMode(PB4, PWM); // 1.5 MHz
pwmtimer3.pause();
pwmtimer3.setPrescaleFactor(1); // 10 zmiany; 1=720kHz;
pwmtimer3.setOverflow(48-1); // 100 zmiany, 10=
pwmtimer3.setCompare(TIMER_CH1, 24);
pwmtimer3.refresh();

Attachments

Outcomes