View previous topic :: View next topic |
Author |
Message |
microer
Joined: 15 Oct 2005 Posts: 2 Location: Buffalo, NY
|
DMC16202 |
Posted: Sat Oct 15, 2005 10:21 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Oct 15, 2005 11:02 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
microer
Joined: 15 Oct 2005 Posts: 2 Location: Buffalo, NY
|
|
Posted: Tue Nov 01, 2005 9:37 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Nov 01, 2005 12:36 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
|