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

has portb.3 a special condition?

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



Joined: 14 Jul 2007
Posts: 38

View user's profile Send private message

has portb.3 a special condition?
PostPosted: Mon Feb 11, 2008 7:47 am     Reply with quote

hi everybody:)

i would like to ask you a simple question. my 16f877 and pc communicate over rs232 channel. i made a visual basic interface to command to pic. when i send the data,that is 15, 3 leds are turned on while the last one , the msb in nibble , dis not turn on.

i was wondering that is portb.3 need for a pull-up resistor or something like that to give an output?


please help about this...
bye
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Feb 11, 2008 7:59 am     Reply with quote

From note 3 on Table 3-3 of the PIC16F87x datasheet:
Quote:
3: Low Voltage ICSP Programming (LVP) is enabled by default, which disables the RB3 I/O function. LVP
must be disabled to enable RB3 as an I/O pin and allow maximum compatibility to the other 28-pin and
40-pin mid-range devices.
Solution: Add #fuse NOLVP to your program.
ferkar



Joined: 14 Jul 2007
Posts: 38

View user's profile Send private message

thanks for answer
PostPosted: Mon Feb 11, 2008 10:07 am     Reply with quote

i ll try it ..
ferkar



Joined: 14 Jul 2007
Posts: 38

View user's profile Send private message

thanks indeed...
PostPosted: Wed Apr 02, 2008 7:59 am     Reply with quote

the problem was solved ...
thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 02, 2008 8:31 am     Reply with quote

This is in the CCS FAQ. Bookmark this page:
http://www.ccsinfo.com/faq.php

It's in this section:
Quote:

Input/Output

Why isn't PortB, pin 3, working?
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Wed Apr 02, 2008 12:41 pm     Reply with quote

One problem is that many people attempt to 'dive' into writing code without fully reading all of the documentation. I, myself, am guilty of this from time-to-time. I really dislike reading and have a tendancy to realize that I need to read the various spec. sheets fully before I attempt to use new parts.

It's an unfortunate part of lazy human nature. Wink

Ronald
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