View previous topic :: View next topic |
Author |
Message |
blackmort
Joined: 19 May 2013 Posts: 7
|
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 6:17 am |
|
|
What version of CCS compiler are you using?
If you have directly connected the PIC 5V outputs to the 3.3V display
you have quite possibly damaged the display. You MUST have some
type of level conversion between them. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
Posted: Sun May 19, 2013 6:19 am |
|
|
I use 3V for display and 5V (pickit usb ) for PIC16f877a |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 6:36 am |
|
|
That much I understand.
You not answer my question, what version of CCS compiler are you using?
Also, are the outputs of the PIC connected directly to the display inputs? _________________ Google and Forum Search are some of your best tools!!!! |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
Posted: Sun May 19, 2013 6:56 am |
|
|
Yes display is directly connected to the pic and i use ccs 4.084 |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 7:18 am |
|
|
OK, I repeat,
Quote: | If you have directly connected the PIC 5V outputs to the 3.3V display
you have quite possibly damaged the display. You MUST have some
type of level conversion between them. |
See this discussion:
http://www.picaxeforum.co.uk/showthread.php?23126-5V-3-3V-level-conversion-i2c-SPI-etc
One option is to run the PIC at 3.3V rather than 5V _________________ Google and Forum Search are some of your best tools!!!! |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 8:36 am |
|
|
The voltage divider will do for the signals going to the display.
Read the Microchip datasheet. If you can run at 10MHZ or less the 877A
WILL work at 3.3V Page 174.
How/where are your data output pins connected? _________________ Google and Forum Search are some of your best tools!!!!
Last edited by dyeatman on Sun May 19, 2013 8:43 am; edited 1 time in total |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
Posted: Sun May 19, 2013 8:42 am |
|
|
Thank you I did not know but with resistor he will work?
I use port D for keypad row ( rd4 to rd7 ) I does not know how to connect inputs of data with the code to find this above.
http://www.ccsinfo.com/forum/viewtopic.php?p=154055 |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 8:49 am |
|
|
The resistor dividers you described should be just fine for the outputs. _________________ Google and Forum Search are some of your best tools!!!!
Last edited by dyeatman on Sun May 19, 2013 8:55 am; edited 1 time in total |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
Posted: Sun May 19, 2013 8:53 am |
|
|
#Define RD PIN_C3
#Define A0 PIN_C4
#Define WR PIN_C5
#Define CS1 PIN_C6
#Define LCD_RESET PIN_C7
In code no data inputs is define is normal ? |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1941 Location: Norman, OK
|
|
Posted: Sun May 19, 2013 9:06 am |
|
|
The input on pin C3 is going to be a problem because it is a Schmitt trigger
input and 3.3V is not a high enough input level.
My problem is that I am finding conflicting info on the display. One says it is
a parallel data display and another says it has serial.
If you are using the same one as the poster you referenced he is using
parallel data DB0-DB7 on port D, not serial. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
blackmort
Joined: 19 May 2013 Posts: 7
|
|
Posted: Sun May 19, 2013 9:55 am |
|
|
Connect all data pin in PORT D ? i have only quartz 20MHZ i don't can turn my pic to 3.3v ( I have 3.3 V only in db0 and db6 if i turn pic to 3.3V ) |
|
|
|