This is a multi-part message in MIME format. --------------05C3B7D0B34F28B2BFF1CC64 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nick Veys wrote: > Ok, so I have the clock coming in @ 4MHz, effectively 1MHz to the processor. > If I set the prescalar to 1 and assign it to the WDT I'll get a 1:1 > prescalar and an interrupt every ~244us. if you are using TMR0 as a free running timer (without prescaler), then it will set its interrupt flag every 256 us > Now I know that I can add to that > value to speed it up so that's good, but my one problem with this is, I > don't want to use the Watchdog timer... If I have it disabled but still > assign the prescalar to the watchdog, will it be disabled? The /only/ > interrupt I want is the tmr0 one. > As long as you keep the watchdog timer disabled, you will never get a WDT reset. > > > >Just double checking this. At 4MHz, the timer will interrupt every: > > >256((2^(prescaler+1)/(2^22)) seconds. So with a 0 prescalar you'll be > > >getting an interrupt every: 256(2/(2^22)) seconds (122us)? This > > appears to > > >be the smallest obtainable period with this clock speed. If anyone can > > >confirm this, it'd be much appreciated!! > > > > No, actually at 4MHz, TMR0 will interrupt every 256us with a 1:1 > > prescaler. > > > > >sheet, I'd appreciate that too. The datasheet merely says 1:2 .. 1:256 > > >prescalars are available and I only assume that means > > clock/2^(prescale+1). > > > > The datasheet says that the minimum prescale value for TMR0 is 1:2 when > > assigned to TMR0. To achieve a 1:1 scale for TMR0, assign the > > prescaler to > > the WDT instead of TMR0. > > > > --Andrew > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads --------------05C3B7D0B34F28B2BFF1CC64 Content-Type: text/x-vcard; charset=us-ascii; name="promero.vcf" Content-Description: Card for promero Content-Disposition: attachment; filename="promero.vcf" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by silena.insitel.com.co id MAA23094 begin:vcard=20 n:Romero Plaza;P=E1vel Ernesto tel;cell:5489528 tel;fax:6-7444829 tel;home:6-7464233 tel;work:6-7444829 x-mozilla-html:TRUE url:www.insitel.com.co org:Insitel Ltda.;Research & Development adr:;;Calle 21 # 16 - 46 Piso 7;Armenia;Quind=EDo;;Colombia version:2.1 email;internet:promero@insitel.com.co title:Hardware Engineer fn:P=E1vel Ernesto Romero Plaza end:vcard --------------05C3B7D0B34F28B2BFF1CC64-- -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads