ADVICE USING RB0 INT FUNCTION

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

siliconchip
Posts: 240
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 71 times
Been thanked: 22 times
Contact:

ADVICE USING RB0 INT FUNCTION

Postby siliconchip » Sat Jan 19, 2019 12:04 pm

hi all
im looking for advice whilst using the RB0 int function on a pic (16f 887), if i set it for say trigger on the rising edge would i need to use say a 10K resistor to pull it low and vice versa ie falling edge and a 10K pull up resistor or can the bit just be connected without the resistors ?? cheers

bob

kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

Re: ADVICE USING RB0 INT FUNCTION

Postby kersing » Sat Jan 19, 2019 12:07 pm

That depends on what you use to drive the input. If you use a well defined, not open collector, output of another chip no pull-up/down is required. If you use a switch that connects to GND/Vcc a pull-up/down will be required.
These users thanked the author kersing for the post:
siliconchip (Sat Jan 19, 2019 3:46 pm)
Rating: 5.56%
 
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

siliconchip
Posts: 240
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 71 times
Been thanked: 22 times
Contact:

Re: ADVICE USING RB0 INT FUNCTION

Postby siliconchip » Sat Jan 19, 2019 3:46 pm

thank you kersing