Searching \ for '[PIC]: FW: Ultra fast low res (or high res) PWMs' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/ios.htm?key=pwm
Search entire site for: 'FW: Ultra fast low res (or high res) PWMs'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: FW: Ultra fast low res (or high res) PWMs'
2002\02\26@034608 by Michael Rigby-Jones

flavicon
face
Reset with correct tag DOH!

Forwarded from Scott Dattalo


> Mike,
>
> I'm currently not subscribed to the PIC list, but I browse the archives
> once a week or so.  I saw your message and spent a moment to think of a
> very fast way to do PWM's:
>
> PWM_WIDTH   EQU   3   ; 3-bit wide pwm's
>
       movlw   1<<(8-PWM_WIDTH)         ;The "lsb" of the PWM counter
       addwf   pwmcount,f               ;Clear the outputs when
       skpnc                             ;the master counter rolls
       clrf            outport,f                ;over
>                                      ;
       addwf   pwmset1,f                ; PWM # 1
       rlf             temp,f                ;Set the output when it
>                                      ;rolls over
       addwf   pwmset2,f                ; PWM # 2
       rlf             temp,w                ;

       andlw   0x03
       iorwf   output,f

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...