Time Interrupt problem


Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    May 2005
    Posts
    70

    Default Time Interrupt problem

    We set timer interrupt but same time work soma time not with same code below. Found code run replate on line 5 to 11 alway not go to main loop



    DEFINE LOADER_USED 1
    DEFINE OSC 4
    'DEFINE OSC 20


    Line 1 DEFINE HSER_RCSTA 90h
    Line 2 DEFINE HSER_TXSTA 24h
    Line 3 DEFINE HSER_SPBRG 12 ' 19200 BaudsLine 1
    Line 4
    Line 5 Clear ' clear all RAM (sets all VAR declarations to zero)
    Line 6 TMR0=0
    Line 7 OPTION_REG = %00000111 ' Set TMR0 configuration
    Line 8 INTCON = %11100000 ' Enable TMR0 interrupts
    Line 9 On Interrupt Goto Timer_0_int
    Line 10 Enable Interrupt
    Line 11 TRISA = %00000000
    Line 12 TRISB = %000000

    Main:
    ............
    ...........

    goto main

    Timer_0_int:
    ............

    Resume
    Enable
    Last edited by chai98a; - 25th February 2006 at 00:03.

Similar Threads

  1. INT interrupt problem
    By netstranger.nz in forum General
    Replies: 5
    Last Post: - 13th October 2009, 07:52
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  3. Instant interrupt problem (very strange)
    By yusoweird in forum General
    Replies: 2
    Last Post: - 31st October 2006, 16:15
  4. Interrupt?? problem
    By scorpion in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th July 2005, 04:14
  5. Interrupt and Time Out
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2005, 01:10

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts