From: Luis C. <lfc...@lf...> - 2006-08-16 23:05:39
|
Hi! as most of you know, i'm half of the team that brought a largely undocumented I2C-HD44780 driver to LCD4Linux (l4l). Until now, my experiments were less then satisfactory, but up to some extent, I could honestly say that l4l did in fact work with the I2C driver. With the 2.4 series kernel, a lot of tweaking was needed in order to make the special AccessBus driver to compile and load properly. For the newer kernels, things were a lot easier, and there was a scx200_acb driver which seems to work perfectly ok with it (i haven't tested it myself). But still, the results were less then perfect. This was all fine until Till Harbaum released his LCD2USB. After having assembled the components in the PCB (while almost frying an LCD module), I was absolutely amazed of how well it is working with the same WRAP board. The same lcd4linux.conf file produced such an incredible different results, with this new interface!!! Light years faster! This performance comes with a price... a 6% price to be accurate. While my I2C approach takes about 0.0% of CPU time (analysed with top), the USB variant eats something from 5 to 6.4% of CPU time. This doesn't seem much for a server, but it is a lot to a 266Mhz router. Conclusions (this is getting toooo looooooong): I will probable just write a WIKI page describing the I2C LCD interface. The code is probably not going to get much more additions, no 8bit interface, no other fancy stuff. I do however strongly recommend the LCD2USB interface for those that still want to invest some time with WRAP. (no Stefan, don't waste anytime reprogramming the GPIO pins, it's worthless) It costs a bit extra, as I recomment that you buy the USB extension board (it has some ESD protection for the CPU) and buy (or build) the LCD2USB circuit from Till Harbaum. Be good to each other, be happy! Luis Correia Bering uClibc team member, LCD4Linux developer -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
From: Stefan K. <ste...@cr...> - 2006-08-17 07:08:23
|
Hi Luis, Luis Correia schrieb am 17.08.2006 01:10: > > For the newer kernels, things were a lot easier, and there was a > scx200_acb driver which seems to work perfectly ok with it (i haven't > tested it myself). My prototype is finished and I start working on the code today. I'm also using uclibc and kernel 2.6 with fli4l. > This was all fine until Till Harbaum released his LCD2USB. Yes cool work! I would have ordered such a PCB if there is a possibility not to upload the firmware by myself. I do not want to order or solder a=20 programmer for this one-time job. Or are there changes in the firmware expected? @Till - is it possible to order both a PCB and an already programmed Atmega? If so, please tell me the details (price, bank account ...) and i will transfer the money asap to you. > After having assembled the components in the PCB (while almost frying a= n > LCD module), I was absolutely amazed of how well it is working with the > same WRAP board. The same lcd4linux.conf file produced such an > incredible different results, with this new interface!!! Light years faster! Fine! You are driving the PCB and the LCD from USB? Or do you have a seperate voltage feed? For my GPIO experiments I ordered some MAX619/MAX1682/MAX1683. > I do however strongly recommend the LCD2USB interface for those that > still want to invest some time with WRAP. (no Stefan, don't waste > anytime reprogramming the GPIO pins, it's worthless) I don't tink so. 1st - programming the Atmel is a problem for anybody out there who hasn't to do anything with Atmels before. 2nd - using GPIO on WRAP enables the possibility to put the LCD in the WRAP enclosure. O.K. not into the original one - but my enclosure has enough room on the front to put a 16x2 LCD in. 3rd - my programming skills arn't as good as they should be. It's a good=20 project to increase them. 4th - there is our own fli4l-lcd package (much older than lcd4linux I think). I think that implementing GPIO into that tiny thing is much easie= r for me than starting to do that with lcd4linux. So please let me try. MfG Stefan |
From: Till H. <ti...@ha...> - 2006-08-17 19:31:27
|
Hi, On Thursday 17 August 2006 01:10, Luis Correia wrote: > This performance comes with a price... a 6% price to be accurate. > While my I2C approach takes about 0.0% of CPU time (analysed with top), > the USB variant eats something from 5 to 6.4% of CPU time. > > This doesn't seem much for a server, but it is a lot to a 266Mhz router. I wonder why this is. The usb on modern systems is nearly completely done in hardware and shouldn't have a significant impact on cpu load. How are you doing the i2c stuff? Bitbanging on the printer port is usually way more cpu stressing than usb. The cpu bandwidth consumed will probably relate to the number of LCD screen accesses you do. You might e.g. try to reduce some of your update settings in the lcd4linux.conf to slow down redraws etc. Ciao, Till -- Dr.Ing. Till Harbaum <ti...@ha...> http://www.harbaum.org/till |