PWM on Fez Dunio

I’m trying to get PWM on PA3 of the Fez Duino but something’s not right.

WHen I put my scope on PA3, i’m not getting any 8MHZ signal, its just noise.

var pwmController = PwmController.FromName(SC20100.Timer.Pwm.Controller2.Id);
pwmController.SetDesiredFrequency(8 * 1000 * 1000);
var clockChannel = pwmController.OpenChannel(SC20100.Timer.Pwm.Controller2.PA3);
clockChannel.SetActiveDutyCyclePercentage(0.5);
Debug.WriteLine($"PWM Frequency: {pwmController.ActualFrequency} Hz");
clockChannel.Start();

Sigh. I pulled out my whole Oscilloscope for this.

2 Likes

Since I’m here.

I’m getting quite a lot of ringing on the PWM output to the powerStep01 drivers.

ChatGPT recommended an in-series 33-ohm resistor, which was difficult to install, btw.

Should I try to jerry-rig a variable resistor until the signal looks square, or is assuming 33 ohms enough?

Does that value change as I chain more PowerStep01 boards together?


Some status screen eye candy.

Wiring that 33ohm resistor might be the “bane of my existence” Can that PA3 pin be floated (i.e. disconnected) so that I can use PA0 to provide the PWM 8MHZ signal and just jumper the resistor across?

Make the pin an input with no pull is same as floating

1 Like

Another thing Gus, can you confirm that this pin between GND and PB11 is totally not connected?

I think so but please check the schematics

Well I’ve confirmed it. And I’ve modified the Dunio slightly so that the pin is now MISO. Did you guys plan that?

2 Likes