Searching \ for ' [PIC] TMR0 INTERRUPT REGISTER 16F84' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Search entire site for: 'TMR0 INTERRUPT REGISTER 16F84'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [PIC] TMR0 INTERRUPT REGISTER 16F84'
2001\01\22@092553 by Jacky Joulin

picon face
Hello ,

Please can anyone help me to modify this basic program !
at the present time, the frequence portB.5 output is ~30 Hz

How I can modify for a output = ~ 1000 Hz

Pic = 16F84    Xt = 4.00 MHz



' Set TMR0 to interrupt every 16,384 milliseconds
   OPTION_REG = $d5                ' Set TMR0 configuration
   INTCON          = $a0                ' Enable TMR0 interrupts

   On interrupt Goto INTCARRE

MainLoop:
   '
   '
   Goto MainLoop

   Disable                                ' Disable interrupt during
interrupt handler
INTCARRE:
   TOGGLE PORTB.5               ' change state of pin portB.5
   INTCON.2 = 0                       '  Reset timer interrupt flag
   resume



spam_OUTWeslayTakeThisOuTspamAol.com

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


2001\01\22@095857 by James Paul

flavicon
face
Jacky,

Look in the OPTION REGISTER and change the Pre scaler rate from
256 or whatever it is to a smaller value.  This will speed up the
frequency of the interrupt.  You may have to change the value of
the RTCC (TMR0) too.

                                              Regards,

                                                Jim



On Mon, 22 January 2001, Jacky Joulin wrote:

{Quote hidden}

jimspamKILLspamjpes.com

--
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 2001 , 2002 only
- Today
- New search...