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

DMC16202

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



Joined: 15 Oct 2005
Posts: 2
Location: Buffalo, NY

View user's profile Send private message

DMC16202
PostPosted: Sat Oct 15, 2005 10:21 pm     Reply with quote

I am working with DMC16202N-LY-AME datasheet available at
http://www.optrex.com/SiteImages/PartList/SPEC/16202aye.pdf
and 16F873.

How do I know the RAM address of LCD?
Is there an instruction set/character set for this LCD?
Any reference to example codes are greatly apppreciated....

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Oct 15, 2005 11:02 pm     Reply with quote

Quote:
I am working with DMC16202N-LY-AME

This is a 16x2 LCD with the standard HD44780 interface.
http://www.melabs.com/downloads/hd44780u.pdf

I assume you have the CCS compiler. Look for the LCD.C
driver file in c:\Program Files\Picc\Drivers

Look at the example file that uses that driver, EX_LCDKB.C
which is in c:\Program Files\Picc\Examples

If you don't like the CCS driver then look in the Code Library
section of this forum for several variations of it.

Quote:
How do I know the RAM address of LCD?
Is there an instruction set/character set for this LCD?

There is stuff all over the net on this LCD. Literally, tons
and tons of stuff.
http://www.geocities.com/dinceraydin/lcd/commands.htm
microer



Joined: 15 Oct 2005
Posts: 2
Location: Buffalo, NY

View user's profile Send private message

PostPosted: Tue Nov 01, 2005 9:37 am     Reply with quote

Firstly, thanks for the prev suggestions...

and I changed the device from PIC16F873 to PIC16F876
The following is my pin connections...
LCD_DB4: PIN_B0
LCD_DB5: PIN_B1
LCD_DB6: PIN_B2
LCD_DB7: PIN_B3
LCD_E : PIN_B4
LCD_RS: PIN_B6 (Connected to B6 via a 100K)
LCD_RW: PIN_B5 (Connected to b5 via a 2.2K)

and left the PIN3(VEE) of the LCD unconnected.
I can see some waveforms (on an oscilloscope) on the three control pins and DB7... but not on DB4,DB5,DB6.

also i am using the driver that was posted by you at...

http://www.ccsinfo.com/forum/viewtopic.php?t=24661

with the above pin modification settings...


Any suggetions?

Thanks a ton
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 01, 2005 12:36 pm     Reply with quote

Quote:
LCD_RS: PIN_B6 (Connected to B6 via a 100K)
LCD_RW: PIN_B5 (Connected to b5 via a 2.2K)

Get rid of those resistors. Use wires instead.

Quote:
and left the PIN3(VEE) of the LCD unconnected.

You must have a contrast control voltage on pin 3. See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=18774

Quote:
I can see some waveforms (on an oscilloscope) on the three control pins and DB7... but not on DB4,DB5,DB6.

Get rid of the resistors and also make sure you have NOLVP in your
#fuses statement. Also, are you using the CCS ICD or Microchip ICD2 ?
If so, don't use pins B6 and B7. Those pins are used by the debugger.
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