public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re:[ECOS] LCD on EP7211
@ 2001-02-02  1:32 Fano Ramparany
  2001-02-02  6:28 ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Fano Ramparany @ 2001-02-02  1:32 UTC (permalink / raw)
  To: Lewin A.R.W. Edwards; +Cc: eCos Disuss

Hi Lewin,

> The sample code in eCos works A-OK for me (I am using the 7212, but
it's
> the same board). Are you 100% certain you have initialized your
pointer
> correctly? I tested initially using the Alps grayscale 640x240 LCD and
now
> I've interfaced a color QVGA LCD, which is working great! (with
tweaking,
> of course).

What are the exact references of the color LCD you are using on the
EDB7212,
and how difficult is it to adapt the driver to this new screen? There's
an
application note available on Cirrus Logic web site dedicated to the use

of a color screen. Did you use this documents?

Regards,
Fano Ramparany

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:[ECOS] LCD on EP7211
  2001-02-02  1:32 Re:[ECOS] LCD on EP7211 Fano Ramparany
@ 2001-02-02  6:28 ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-02-02  6:28 UTC (permalink / raw)
  To: Fano.Ramparany; +Cc: eCos Disuss

Hi Fano,

> > I've interfaced a color QVGA LCD, which is working great! (with
>
>What are the exact references of the color LCD you are using on the
>EDB7212, and how difficult is it to adapt the driver to this new screen? 
>There's
>an application note available on Cirrus Logic web site dedicated to the use
>of a color screen. Did you use this documents?

I did use that document (AN179) as a starting point. However, the version 
that Cirrus had on their website [at least until recently] shows the 
nibbles to the LCD swapped. They did update this, however I find that the 
new document is still wrong, at least for my LCD it gives scrambled output. 
I had to work out by trial and error which data lines from the EP7212 
should go to which data lines on the LCD.

My LCD is an 8-bit-interface parallel CSTN LCD made by Nan Ya. Touch screen 
is an option, we have not ordered it though (touch screens always get 
covered in fingerprints, which is bad for a digital picture frame!)

The only LCD code I am using from eCos is a heavily adapted (i.e. 
non-general-purpose) version of the lcd_on function. I am also not using 
any of Cirrus's LCD code. My GDI is much more complicated than any of the 
sample code that is available to me. The reason for this is that I have to 
support:

* Fast YUV to RGB colorspace conversion for displaying MPEG video ;)
* Pretty much instant screen rotation (so that user can flip the frame 
between portrait and landscape orientation and all GUI elements will 
redisplay correctly).
* Scalable proportional-space fonts (as well as a simple debugging-type 8x8 
fixed-space font engine based on the eCos code, this quick and dirty engine 
is used in the flash upgrader code)
* Must support other video devices. The 4:4:4 model is only used in the 
lowest-end passive model. The higher-end models use an external TFT-LCD 
controller for higher resolution, 16bpp and 24bpp display modes.
* Some very simple realtime 3D code (mapping JPEG images onto a couple of 
simple polygons for cool effects bouncing images around the screen and 
making polyhedra out of them). This is very "fun" to do quickly in the 
4:4:4 3bytes=2pixels model :/

Because of all these requirements, a lot of the code can't really be 
optimized. I have written some very suboptimal (performance-wise) code that 
works in the general case situations. Later in the design cycle I will 
write platform-specific optimized functions.

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:[ECOS] LCD on EP7211
@ 2001-02-02  1:27 Fano Ramparany
  0 siblings, 0 replies; 3+ messages in thread
From: Fano Ramparany @ 2001-02-02  1:27 UTC (permalink / raw)
  To: Wilson Kwan; +Cc: eCos Disuss, Lewin A.R.W. Edwards

Something we are currently doing with a EP7212 board, is to compile the
library lib7209 whose
source C files are available from the Cirrus Logic CDROM (Maverick arm
SDT environment),
with the arm-elf-gcc cross-compiler. All LCD functions (sensitive
touching, graphical and text display)
run correctly. All you have to do if you intend to use these functions
in a multithreaded application,
is to protect areas where physical ressources are accessed (e.g. memory
read/write,...) with eCos
mutex mechanism. You can find some posts exchanged from the mailing list
archive under
subject: "eCos EDB72XX lcd driver library" or "EDB7212 LCD support".

Regards,

Fano Ramparany

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-02-02  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02  1:32 Re:[ECOS] LCD on EP7211 Fano Ramparany
2001-02-02  6:28 ` Lewin A.R.W. Edwards
  -- strict thread matches above, loose matches on Subject: below --
2001-02-02  1:27 Fano Ramparany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).