Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] Fast PWM signal Generation in ATtiny 24A

Status
Not open for further replies.

chandresha1

Member level 2
Member level 2
Joined
Dec 4, 2010
Messages
43
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Bremen, Germany
Visit site
Activity points
1,673
I want to generate PWM signals of 2MHz using ATtiny24A. I have read in datasheet about fast PWM signals but what i understood is it will allow me to generate only one frequency(or some other options with prescalar) with different duty-cycle. I can't use external crystal because of small-chi size. Is there any other option through which i can generate 2Mhz PWM signals with different duty cycle?
 

Hi,

do you mean 2MHz fundamental PWM frequency?
Or do you mean 2MHz PWM clock frequency?

********

Example:
If you want a PWM fundamental frequency of 10kHz and want to adjust duty cyle with 64 steps (0 to 100%), then you need a PWM clock frequency of 10kHz x 64 = 640kHz.

Klaus
 

2Mhz fundamental frequency. The frequency on output pin. I think little-bit low resolution is also fine. I don't need 64 stapes. My ultimate goal is to generate 5-cycle hanning window signals of 150Khz, 250 Khz and 350 Khz one by one. So in order to generate 350KHz i atleast need 2MHz or i think little-bit more also. After posting this question i actually came to know about ATtiny25 which has some PLL functionality in which we can get really high clock-speed for timers(somewhere about more than 50MHz with 8MHz internal oscillator) . Do you have any suggestion about it also?
 

Hi,

i don´t understand your application. Could you explain it more detailed?

I know "hanning window" as software solution for FFT.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top