RB0 / INT TRISB.0 configuration


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103

    Default RB0 / INT TRISB.0 configuration

    Hi Everyone ;

    I've got a question digging my mind for a while .
    I've been reading the datasheet of 12F683 and 16F1827 to determine whether it is required to set or clear the TRISB.0 register to use the RB0 / INT pin for an interrupt purpose , I can't find any statement about it on the datasheet ...

    What do you guys think ? Should we set the TRISB.0 to use RB0 pin to activate the interrupt ? Or is it just sufficient to configure the INTCON=%10010000 ?

    Regards ..

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: RB0 / INT TRISB.0 configuration

    it hardly seems likely to be a good idea to try and drive a pin high or low when its set to be an output . if you want an external interrupt the chosen pin must be an input

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: RB0 / INT TRISB.0 configuration

    Name:  Untitled.png
Views: 430
Size:  50.5 KB
    Even though the data sheet says POR is input I ALWAYS set in code.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: RB0 / INT TRISB.0 configuration

    Thank you guys so much ...

Similar Threads

  1. TRISA, TRISB setting ?
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th January 2011, 20:32
  2. Using both hardware int and Timer Int together?
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th January 2010, 01:09
  3. Replies: 6
    Last Post: - 10th September 2008, 10:04
  4. INTCON (RB0/INT) and TRISB
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th September 2006, 20:38
  5. I would like to make some code tmr0 and int(RB0) interrupt
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th February 2006, 00:06

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