View previous topic :: View next topic |
Author |
Message |
Sean Phillips Guest
|
Setting Port B pullups individually? (instead of using port_ |
Posted: Mon Jun 02, 2003 8:59 am |
|
|
Hey folks...
Can we set the internal pullup resistors on the PortB pins individually? Using port_b_pullups() is not an option because of the whole hanging issue. (We use LVP)
I am using a PIC 16F877. I thought I saw something for this on another device.
Any feedback on this subject would be appreciated!
Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514955 |
|
|
R.J.Hamlett Guest
|
Re: Setting Port B pullups individually? (instead of using p |
Posted: Mon Jun 02, 2003 10:20 am |
|
|
:=Hey folks...
:=
:=Can we set the internal pullup resistors on the PortB pins individually? Using port_b_pullups() is not an option because of the whole hanging issue. (We use LVP)
:=
:=I am using a PIC 16F877. I thought I saw something for this on another device.
:=
:=Any feedback on this subject would be appreciated!
:=
:=Thanks
No you can't.
The 16F877, only has a 'global' enable for the PortB pullups. Some of the newer chips have a 'bit by bit' control for this ability, and the newer compilers have added the ability to use a number with the command to control which bits are enabled.
Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514961 |
|
|
Sean Phillips Guest
|
Re: Setting Port B pullups individually? (instead of using p |
Posted: Mon Jun 02, 2003 12:19 pm |
|
|
:=No you can't.
:=The 16F877, only has a 'global' enable for the PortB pullups. Some of the newer chips have a 'bit by bit' control for this ability, and the newer compilers have added the ability to use a number with the command to control which bits are enabled.
:=
:=Best Wishes
Thanks for the good word. It's as much as I've surmised. Looks like the hardware boys are just going to jumper with some external pullups anyway.
All the same, how did you find out that information? Is it in the docs somewhere for that device? Is there a repository somewhere on the 'net that I could check into? I'm relatively new to PIC programming, so any stepping stones would be greatly appreciated.
Thanks again!
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514969 |
|
|
Dave Yeatman Guest
|
Re: Setting Port B pullups individually? (instead of using p |
Posted: Mon Jun 02, 2003 1:51 pm |
|
|
Section 3.2 of the PIC 16F87X data sheet describes the pullups.
Dave
:=:=No you can't.
:=:=The 16F877, only has a 'global' enable for the PortB pullups. Some of the newer chips have a 'bit by bit' control for this ability, and the newer compilers have added the ability to use a number with the command to control which bits are enabled.
:=:=
:=:=Best Wishes
:=
:=Thanks for the good word. It's as much as I've surmised. Looks like the hardware boys are just going to jumper with some external pullups anyway.
:=
:=All the same, how did you find out that information? Is it in the docs somewhere for that device? Is there a repository somewhere on the 'net that I could check into? I'm relatively new to PIC programming, so any stepping stones would be greatly appreciated.
:=
:=Thanks again!
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514973 |
|
|
|