CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Setting Port B pullups individually? (instead of using port_

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sean Phillips
Guest







Setting Port B pullups individually? (instead of using port_
PostPosted: Mon Jun 02, 2003 8:59 am     Reply with quote

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
PostPosted: Mon Jun 02, 2003 10:20 am     Reply with quote

:=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
PostPosted: Mon Jun 02, 2003 12:19 pm     Reply with quote

:=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
PostPosted: Mon Jun 02, 2003 1:51 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group