Probe to read quadrature encoder with DT_INT need help


Results 1 to 12 of 12

Threaded View

  1. #7
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default

    DT_INT with TIMER_1 and led blink work 100% on 16f877 when I test it but:
    Code:
    define OSC 20
    ADCON1 = 7                       
    TRISB = %00000011
    INTCON = %10001000 
    LED1 VAR PORTA.0
    LED2 VAR PORTA.1
    LOW LED1 
    low LED2 
    
    INCLUDE "DT_INTS-14.bas" 
    INCLUDE "ReEnterPBP.bas" 
    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
        INT_Handler RBC_INT, _TEST, PBP, yes
        endm
        INT_CREATE ; Creates the interrupt processor
    ENDASM
    @   INT_ENABLE RBC_INT 
    
    Main:
    PAUSE 1
    GOTO Main
    
    '---[RBC_INT - interrupt handler]------------------------------------------
    
    TEST:
    high led1
    high led2
    @       INT_RETURN
    Dont want to work for me...why ?
    Last edited by phoenix_1; - 30th August 2009 at 20:18.

Similar Threads

  1. Quadrature encoder and ASM Interrupts. questions..
    By godfodder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th March 2013, 14:45
  2. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  4. Write and Read from eeprom
    By savnik in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 9th June 2007, 14:56
  5. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 21:56

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