INTCON (RB0/INT) and TRISB


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Hello Melanie,

    I'm actually working with a 16F88.

    The test code (you may recall...) is for example this one:
    Code:
    OSCCON = %01100000          'Internal RC set to 4MHZ
    LED var PORTB.4
    MAIN:
         if INTCON.1 = 1 then    'If INTerrupt happens, then...
            pause 300               'Debounce button
            INTCON.1 = 0           'Reset INT flag
            TOGGLE LED
         endif
         goto MAIN
    end
    Swiss people are pacific; there would never be any explosion even if the led won't toggle after 10 hours trying... It is a small (about 2cm wide) flower named "Edelweiss" that you can mostly see in the alps. It means literally "precious white". The petals are made of a kind of white velvet and when, in the early morning hours of the day some water drops cover the petals and the sun rises, the flower is shining like it would be covered with diamonds. It's a german name and unlike, (i.e.) our city names, there is no french, italian, romanch or english (all national languages!!!) name for it.
    Attached Images Attached Images  
    Roger

Similar Threads

  1. clrf TRISB & 0x07F HELP..
    By chip_select in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th April 2008, 17:23
  2. How to set TMRO & TMR3 as Counter?.
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 18th May 2007, 08:52
  3. Interrupts and Disable 16f877
    By Rob Martin in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th April 2005, 21:08

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