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 CCS Technical Support

8bit lcd with different i/o pins

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



Joined: 19 Aug 2010
Posts: 1

View user's profile Send private message

8bit lcd with different i/o pins
PostPosted: Thu Aug 19, 2010 7:01 am     Reply with quote

hi frnds,

I have a hardware which has 8 different i/o's (not in order) connected to LCD with rs and enable pins also in different order. Does anybody have the driver with these conditions? Not able to change the following lines of code in flex_lcd code. Please help me to solve the probs.

void lcd_send_nibble(int8 nibble)
{
// Note: !! converts an integer expression
// to a boolean (1 or 0).
output_bit(LCD_DB4, !!(nibble & 1));
output_bit(LCD_DB5, !!(nibble & 2));
output_bit(LCD_DB6, !!(nibble & 4));
output_bit(LCD_DB7, !!(nibble & 8));


delay_cycles(1);
output_high(LCD_E);
delay_us(2);
output_low(LCD_E);
}
_________________
hi
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 19, 2010 11:16 am     Reply with quote

Quote:

I have a hardware which has 8 different i/o's (not in order) connected to LCD with rs and enable pins also in different order.


The Flex LCD driver uses a 4-bit data interface for the LCD (plus 2 to 3
control lines). This is the most common method of connecting an LCD
to a microcontroller. You can set the PIC pins that are used for the LCD
by changing the #define statements at the start of the Flex driver.
The instructions for this are given in the following post:
http://www.ccsinfo.com/forum/viewtopic.php?t=24661

The Flex driver doesn't use an 8-bit data interface. Please use the
driver in the 4-bit mode. That's what it is designed for.
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