Forum: µC & Digital Electronics EVK1100 PWM freq 66Mhz

Author: Jack (Guest)
Posted on:
Attached files:

Rate this post
0 useful
not useful
I am a complete novice in this field of uc programming and am still 
learning the ropes of it. I am working with an EVK1100 board and 
programming with AVR32 Studio Ver. 2.5
I have to generate a PWM signal with a frequency of 66 Mhz. I have 
already tried using the built in Example program in AVR32 studio i.e. 
EVK1100-Drivers-PWM example.
It is working fine and I am able to manipulate the recieved signal by 
changing the value of Channel prescaler and the channel period in the 
main c program. But the minimum value of the prescaler that I can apply 
is 2 else it is giving me an error. Also the values of the period and 
duty cycle are 2 & 1 respectively (Have attached a screenshot of the 
same). I am observing the output at LED 7. The max freq I get with this 
is 28kHz. Is it possible to get a PWM output of 66Mhz with this 
configuration? Is an external clock signal required for the same? What 
can I further modify in the program?
Please help...

Author: John (Guest)
Posted on:

Rate this post
0 useful
not useful
The PWM clock is based off of the system clock MCK, it seems, so that's 
the maximum.

The prescaler (2 in your case) can be set to 1 according to the 
datasheet. It think that would be AVR32_PWM_CPRE_MCK instead of 
AVR32_PWM_CPRE_MCK_DIV_2 (haven't tried though).

Author: Jack (Guest)
Posted on:

Rate this post
0 useful
not useful
Dear John,
Yes I did try that infact and I could get the signal frequency upto 
56kHz but not further. I need a signal until 66Mhz and I do not know how 
I can multiply this signal so as to get the desired result!


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.