16f688 interrupt


Results 1 to 10 of 10

Threaded View

  1. #2


    Did you find this post helpful? Yes | No

    Default

    Code:
    Trisa = 32
    Trisc = 0
    
    ioca=%10000000
    a Var porta
    c var portc
    
    t1 var word
    t1=200
    start:
    
    on interrupt goto buttonpressed
    INTCON = %10000000 
    one:
        gosub left:
        
    
        goto one:
    
    buttonpressed:
        gosub All_on:
     
        
        goto buttonpressed:                      
    resume
    
    
    
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'SUBROUTINES
    left:
    a=4:c=36
    pause t1
    a=0: c=0
    pause t1
    return
    
    all_on:
    a=7:c=63
    pause t1
    return
    Here is the code, If i will help at all.
    Last edited by RHS_electronics; - 9th March 2009 at 18:06.

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  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. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  4. NEWBIE: Some basic questions using interrupts
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2006, 02:59
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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