Instant Interupts with a 12f675


Results 1 to 13 of 13

Threaded View

  1. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Post Room !!!

    Hi,

    Instant interrupts need some ( let's say ...much ) room.

    So, If It's possible ( the resume line MUST be known ...) try this :

    Code:
    'INTTEST
    
    DEFINE INTHAND _ToggleLED1
    DEFINE OSCCAL_1K 1
    
    LED1 VAR GPIO.1
    
    ADCON0 = 0
    ANSEL = 0
    CMCON = 7
    VRCON = 0
    
    T1CON 	= %00110001
    INTCON	= %11000000
    PIE1	= %00000001
    TRISIO 	= %000000
    GPIO	= 0
    
    
    
    Main:
    While 1
    WEND
    
    END
    
    '---[INT - interrupt handler]---------------------------------------------------
    ToggleLED1:
    
    TOGGLE LED1
    PIR1.0	= 0
    RESUME Main
    A bit " off the Manual " ... but doesn't need room ... nor assembler !!!

    And it is even faster than " Instant " interrupts ... ( assembler speed !!! no more ...)

    Alain
    Last edited by Acetronics2; - 23rd January 2008 at 14:52.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. DT's instant interupts compile problem
    By comwarrior in forum General
    Replies: 4
    Last Post: - 18th October 2009, 20:30
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  3. How instant are Instant Interupts?
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 11th April 2009, 19:50
  4. Instant interupts
    By Sneaky-geek in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2009, 20:18
  5. Usart with Darrel Instant Interrupt
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th February 2008, 01:09

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