PWM- Change frequency to 4KHz

Hello,

I´m new here and I have a Arduino Due and I Don´t know how I can Change the frequency from the Due. I need 4 PWM with a freqeuncy from 4Khz is this feasible? Can I get any ideas? and I need a adjustabe delay (10µs) from a positive edge so what works?

Thank you very much

Hi,

you have to look up the section "Pulse Width Modulation" (p. 970) in SAM3X / SAM3A Series Datasheet. There you'll find all required information to set up your PWM controller. Furthermore - in Atmel Studio you'll find an API for generating PWM (you just have to add the driver to your project in ASF).

In this PWM-API you can generate synchronous PWM, configure dead times, change the PWM carrier frequency and dymically update the duty cycle of each channel.

Do you need it to drive a frequency converter?

where I can find the API?

Yes I want to drive a frequency driver. I want to test a igbt

Create a new ASF-Board project in Atmel Studio 7 and then press "Alt + W".

There is a tutorial: http://www.jaxcoder.com/Article/SinglePost?postID=1976469335

I don´t understand what I can do?! I had read the tutorial but I don´t now how i can switch the pins high ? and I don´t know how clk i need

pelase help

Mau85:
I don´t now how i can switch the pins high ?

pelase help

I'd give you an apple for most stupid question I've ever seen :slight_smile:

Have you try download and run a code? http://www.jaxcoder.com/DownloadHandler.ashx?fileid=958114982