Re: PWM the most efficient way
- From: "frogfot" <frogfot@xxxxxxxxxxx>
- Date: Fri, 23 Jun 2006 16:41:10 +0000 (UTC)
Alright, searched the google for several hours and found some really
useful assembler code for AVR, the page is catched by google:
http://www.google.com/search?q=cache:S2jXt5C3IokJ:www.avrprojects.net/PWM.htm+avr+microcontroller+%22hardware+pwm%22&hl=sv&ct=clnk&cd=1
I haven't tested the code yet but it seems to be easy to understand..
They use hardware PWM and change the pulse width from the usual program
loop.
As I see it now it would be probably easiest to setup one AVR
just to generate software PWM signals.. since these uC's are very fast
(4MHz) and motors would need maximum 1-5kHz PWM, one would easily set
up say 10-20 independant PWM "channels" on any AVR chip.
By independant I mean each "channel" can have own frequency, pulse
width and possibility to be changed at any time.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
.
- Follow-Ups:
- Re: PWM the most efficient way
- From: Chris Jones
- Re: PWM the most efficient way
- References:
- PWM the most efficient way
- From: frogfot
- PWM the most efficient way
- Prev by Date: Re: Analog signal conditioning
- Next by Date: Re: PWM the most efficient way
- Previous by thread: Re: PWM the most efficient way
- Next by thread: Re: PWM the most efficient way
- Index(es):
Relevant Pages
|
|