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

Modifing LCD420.C

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



Joined: 23 Apr 2004
Posts: 227
Location: The Netherlands

View user's profile Send private message

Modifing LCD420.C
PostPosted: Sun Jan 22, 2006 2:34 pm     Reply with quote

I have the following connections to the lcd

// As defined in the following structure the pin connection is as follows:
// B1 enable
// B2 rs
// B3 rw
// B4 D4
// B5 D5
// B6 D6
// B7 D7
//
// LCD pins D0-D3 are not used and PIC .

struct lcd_pin_map { // This structure is overlayed
BOOLEAN unused;
BOOLEAN enable; // on to an I/O port to gain
BOOLEAN rs; // access to the LCD pins.
BOOLEAN rw; // The bits are allocated from
int data : 4; // low order up. ENABLE will be pin B0.
} lcd;

#byte lcd = 0xF81 // This puts the entire structure
// on to port B (at address 0xF81
but i have a problem

The B6 and B7 line did not work together with the ICD2 debugger

Is it posible the change the driver to this

B1 - enable
B2 - RS
B3 - RW
B4 - D4
B5 - D5
C7 - D6
C6 - D7

How can i change this??
VanHauser



Joined: 03 Oct 2005
Posts: 88
Location: Ploiesti, Romania

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 3:39 pm     Reply with quote

Look here for an idea: http://ccsinfo.com/forum/viewtopic.php?t=24661
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