I mistyped the quote. The corrected entry is below. 1=TMR2 to PR2 register MATCH occurred (must be cleared in software)" ^^^^^^ Robert Rolf wrote: > Page 23 DS30292A > "TMR2IF: TMR2 to PR2 match interrupt flag > 1=TMR2 to PR2 register capture occurred (must be cleared in software)" > > Since one sets the PWM period by writing to the PR2 register, and > since TMR2 gets cleared when it is equal to PR2, it -should- generate > and interrupt at the end of every cycle. You'll have to clear the flag > in software. > > See page 59 for details of PWM regesters bits. TMR2IF * TMR2IE are > listed as associated with PWM so clearly an interrupt is possible. > > Spehro Pefhany wrote: > > > > At 08:28 AM 2/10/01 -0500, you wrote: > > > > Is it possible to use thethe PWM module to also generate an interrupt, > > synchronized with the 10 bit timer rollover or with the compare > > match (so the PWM value can be updated)? > > > > Best regards, > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Spehro Pefhany --"it's the network..." "The Journey is the reward" > > speff@interlog.com Info for manufacturers: http://www.trexon.com > > Embedded software/hardware/analog Info for designers: http://www.speff.com > > Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads