Author |
Message |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Mon Apr 06, 2015 9:02 am Subject: another shot |
I tried with the code given here as its for a 16X2 display: http://www.co.optimengineering.com/forum/viewtopic.php?t=53192&view=previous
still no luck. I don't have time to continue so I will j ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Mon Apr 06, 2015 8:02 am Subject: LCD HD44780 PCF8574T i2c Driver |
Two things: 1. I copied the code from hugo's flex driver from this thread and he said it works with 1,2,3, and 4 line displays, and 2. he said it worked.
The first driver posted it was mentioned di ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sun Apr 05, 2015 7:11 pm Subject: LCD HD44780 PCF8574T i2c Driver |
So This is my attempt to modify the driver for a two-line display. It still doesn't work:
//-----------------------------------------------------------------------------
// Title: i ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sun Apr 05, 2015 11:19 am Subject: LCD HD44780 PCF8574T i2c Driver |
I am not sure what you are referring to but all grounds are common. If you are refering to the debugger, the ground is common, if it was not I would not be able to program the PIC, if you are refering ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sun Apr 05, 2015 11:05 am Subject: LCD HD44780 PCF8574T i2c Driver |
There is only one clock and pone data line for i2c from my pic they are the pins that are used in the code and the logic analyser shows data on them (whether or not it is correct data is another matte ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sun Apr 05, 2015 6:33 am Subject: LCD HD44780 PCF8574T i2c Driver |
Here is my LCD:
http://s15.postimg.org/m0jmpvmh3/IMG_20150404_155318.jpghttp://s15.postimg.org/4oja4fszr/IMG_20150405_085510.jpghttp://s15.postimg.org/jn1oyv81z/IMG_20150405_085519.jpghttp://s15.po ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 4:06 pm Subject: LCD HD44780 PCF8574T i2c Driver |
I have really given up on the ICD printf thing, back to the LCD problem, would it help if I posted my wave-forms? If anyone is familiar with i2C and/or this LCD maybe they can tell me if these wavefor ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 2:51 pm Subject: LCD HD44780 PCF8574T i2c Driver |
I have spent all day working on this and going through forums, from what I can tell my processor doesn't have a B3 pin but that is ok because you should be able to use any pin. This is the code I used ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 1:20 pm Subject: LCD HD44780 PCF8574T i2c Driver |
How do I use the printf? Like I said I never used PIC before and I don't even know what pin to use to get printf to work. Here is the programmer I am using:
http://www.ccsinfo.com/faq.php?page=connec ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 1:01 pm Subject: LCD HD44780 PCF8574T i2c Driver |
hmmm, the chip on my i2c module says (in the tinyest of print) pca8674, so thinking maybe slightly different code might be needed? Also I think the pins to the LCD are different then what is in the co ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 12:45 pm Subject: LCD HD44780 PCF8574T i2c Driver |
I do have the 5V, 3V, and both ground connections. I just gave up and replaced the board with a homemade level translator using 2 2N2222A NPN transistors and 4 5.1K pull up resistors. Basically, I mad ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Sat Apr 04, 2015 9:48 am Subject: LCD HD44780 PCF8574T i2c Driver |
I rebuilt just the LCD portion of the system on a breadboard with a spare pic and level translator, and I have come to the conclusion that the level translator is the problem. I tried the following co ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Fri Apr 03, 2015 6:47 pm Subject: LCD HD44780 PCF8574T i2c Driver |
So I changed to 0x40. I was getting some data but I also noticed that I was getting only 1.5V max on both Input and Output of level translator. I then realized I never grounded my logic analyzer. If I ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Fri Apr 03, 2015 10:52 am Subject: LCD HD44780 PCF8574T i2c Driver |
I am using the icd-u64 with 3 pins, clock, data, and mclr connected. My project is a sun following solar powered cell phone charger with internal battery. I want to implement data logging of the charg ... |
Topic: LCD HD44780 PCF8574T i2c Driver |
i26c2
Replies: 79
Views: 227345
|
Forum: General CCS C Discussion Posted: Thu Apr 02, 2015 2:32 pm Subject: LCD HD44780 PCF8574T i2c Driver |
I can't do anything with printf, I don't think I have enough pins left to use a serial connection. In any case, I think the issue might be the level translator and/or LCD. I removed the translator and ... |
|