PWM Frequency and Velocity for my system

Hello friends

I 'm New on arduino, I have an arduino DUE and I wanna know if this board can give me a PWM with frequency of 50KHZ and duty cycle variable, I need thi to control a electric system which works at 50KHZ and obviously I need a frequency sampling at a higher, it is posible?

Thank for your help.

My XY alarm just went off.

What is it that you're really trying to do? Why 50 kHz? What's this "electrical system"? What does PWM have to do with a sampling frequency?

I wanna control a DC-DC Converter and the control signal is a PWM at 50KHz with a variable duty cycle, my question is, Does the arduino DUE is enough fast to sampling my system.

In other words I need to sampling at 150KHZ for my data adquisition and for my control signal sould be a PWM at 50KHz.

I tried to use the DAC to get the conrol signal and make the process of PWM out of the board but the DAC makes more slow my process.

Please post more details of this DC-DC converter. Datasheet, schematics, etc. Without that no chance to see whether your idea can work in the first place, and if it can, how it could be done.

I need to sampling at 150KHZ for my data adquisition and for my control signal sould be a PWM at 50KHz.

You can do that with a DUE, there are numerous example sketches of ADC sampling and PWM pulses in the DUE sub forum of this forum.

As already stated by wvmarle, post your schematic and post your sketch.