16f886 interrupt on portB problem


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Red face I need to consult an eye specialist or ??

    Quote Originally Posted by antonjan View Post
    INTCON = %10001000 '%10001000 port b int on change and global interrupt enable
    'bit 7 = GIE: Global Interrupt Enable bit
    'bit 6 = PEIE: Peripheral Interrupt Enable bit
    'bit 5 = T0IE: Timer0 Overflow Interrupt Enable bit
    'bit 4 = INTE: INT External Interrupt Enable bit
    'bit 3 = RBIE: PORTB Change Interrupt Enable bit(1)
    'bit 2 = T0IF: Timer0 Overflow Interrupt Flag bit(2)
    'bit 1 = INTF: INT External Interrupt Flag bit
    'bit 0 = RBIF: PORTB Change Interrupt Flag bit
    IOCB.0=0 'ENABLE INERRUPT ON CHANGE PIN ON PORT B (W3)
    IOCB.4=0 'ENABLE INERRUPT ON CHANGE PIN ON PORT B (W1)
    IOCB.5=0 'ENABLE INERRUPT ON CHANGE PIN ON PORT B (E3)
    IOCB.6=0 'ENABLE INERRUPT ON CHANGE PIN ON PORT B (E2)
    IOCB.7=0 'ENABLE INERRUPT ON CHANGE PIN ON PORT B (E1)
    Is it my head ????

    Thanks Bruce for pointing out (Not that I am getting dumber)........ the IOCB bits
    Last edited by sougata; - 8th October 2008 at 20:02. Reason: Forgot to thanks. Must be my head !!!!!!!!!!!
    Regards

    Sougata

Similar Threads

  1. PICs can do more if use others than delays instructions
    By hardcore in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th February 2010, 19:52
  2. shifting problem
    By helmut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st August 2007, 06:11
  3. Problem with Interrupt on PIC18F4620 PORTB
    By rookie in forum Off Topic
    Replies: 1
    Last Post: - 22nd March 2007, 01:34
  4. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  5. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10

Members who have read this thread : 1

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