brilliant why is it the simple solutions are so hard to see some times ? thanks mark On Mon, 11 Jun 2001 10:59:50 -0400, Mark Bishop wrote: >Just have a counter in the interrupt routine that won't act until you get to >.250 > >-----Original Message----- >From: David Dunn [mailto:ddunn@TCAINTERNET.COM] >Sent: Monday, June 11, 2001 10:56 AM >To: PICLIST@MITVMA.MIT.EDU >Subject: timers > > >16F877 chip @ 4 Mhz > >i'm considering using the timers in a project .. what i'd like is an >interrupt every .250 seconds > >i'm already using timer2 for PWM >i'd *like* to use timer1 for a counter > >somebody check my math for me please : > >timer0 runs at 1 Mhz (Fosc/4) .. > >most prescale you can get is 256 .. > >8 bit counter .. > > >working all this out, the *slowest* i can get timer0 to run (on my >calculator) is .065536 seconds > >is this right ? > >thanks, > >david dunn > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads