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 set PORTB in 16F877A to 4 bit output ?

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



Joined: 02 Jun 2010
Posts: 1

View user's profile Send private message

How to set PORTB in 16F877A to 4 bit output ?
PostPosted: Wed Jun 02, 2010 5:41 am     Reply with quote

I am new to PIC programming.

I am trying CCS compiler version 4.084.

I want to send a character (8 bit) to lcd display through PORT B which will be displayed in a LCD.

Since I have connected pin 6 and 7 to control other devices (Relay), I am not able to send the 8 bit directly to PORT B.

Now I want to break the character into 4 bits and send the data to an LCD using the PORTB with low and high separately. ( 2 x 4 Bits)

Is there any built-in function in CCS itself or any other logic to be applied?

Thanks
M V Kannan
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Jun 02, 2010 5:49 am     Reply with quote

The Flex Driver already does this for you.

http://www.ccsinfo.com/forum/viewtopic.php?t=24661
_________________
Google and Forum Search are some of your best tools!!!!
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