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

How to pull up port A in 16F819 by program?

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



Joined: 07 May 2007
Posts: 69

View user's profile Send private message

How to pull up port A in 16F819 by program?
PostPosted: Wed Dec 29, 2010 6:16 pm     Reply with quote

16F819
port_b_pullups(TRUE);
How to program pull up port A ?

thanks
temtronic



Joined: 01 Jul 2010
Posts: 9125
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Dec 29, 2010 7:12 pm     Reply with quote

You have easy two options that I can quickly think of.

Use external resistors of the appropriate value for your particular application and PIC,be sure to read the datasheet for correct inforamtion

or

Read the datasheet, hint, I/O PORTS section, PORTA, first chapter. In there is a wealth of specific information on the subject.

After over 50 years of building 'stuff' and inhaling solder fumes I've always found that reading the manual is the FIRST thing you should do when 'playing with chips'.
scottc



Joined: 16 Aug 2010
Posts: 95

View user's profile Send private message

PostPosted: Wed Dec 29, 2010 7:18 pm     Reply with quote

You can't in software

Page 39 of the data sheet,

http://ww1.microchip.com/downloads/en/DeviceDoc/39598e.pdf

There are no weak pullups for port a.

Weak Pullups do exist for Port B.

If you need to pull the pin up then you will have to use an external
resistor to VCC, a value of 47K should be ok.

Scott
sorasit46



Joined: 07 May 2007
Posts: 69

View user's profile Send private message

PostPosted: Fri Dec 31, 2010 12:17 am     Reply with quote

Thanks and happy new year.
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