EmbeddedRelated.com
Forums

QVGA display panel

Started by suresh shenoy February 19, 2008
I am currently working with a QVGA  and interfacing it with a display
controller which has 256kbytes of SRAM (display buffer). The QVGA is
18 bit (R,G,B - 6bit each.) I would like to calculate the address
range for each line, so that I can fill the buffer appropriately. Any
leads would be really helpful.

Suresh M. Shenoy
>I am currently working with a QVGA and interfacing it with a display >controller which has 256kbytes of SRAM (display buffer). The QVGA is >18 bit (R,G,B - 6bit each.) I would like to calculate the address >range for each line, so that I can fill the buffer appropriately. Any >leads would be really helpful. > >Suresh M. Shenoy >
Consider full bit stuffing one line is 320 pixels one line = 320*18 Bits = 320*18/8 bytes = 720 Bytes Hope it helps anil
> Consider full bit stuffing one line is 320 pixels > one line = 320*18 Bits = 320*18/8 bytes = 720 Bytes
No controller I have seen supports such a format in memory. The typical approach is to use 16 bits per pixel of RGB data, 5-6-5. Or use 24 bits per pixel and use only 18 of them (not that it makes much sense, but it is possible). Dimiter ------------------------------------------------------ Dimiter Popoff Transgalactic Instruments http://www.tgi-sci.com ------------------------------------------------------ http://www.flickr.com/photos/didi_tgi/sets/72157600228621276/ badal_akr wrote:
> >I am currently working with a QVGA and interfacing it with a display > >controller which has 256kbytes of SRAM (display buffer). The QVGA is > >18 bit (R,G,B - 6bit each.) I would like to calculate the address > >range for each line, so that I can fill the buffer appropriately. Any > >leads would be really helpful. > > > >Suresh M. Shenoy > > > Consider full bit stuffing one line is 320 pixels > one line = 320*18 Bits = 320*18/8 bytes = 720 Bytes > Hope it helps > anil
On Feb 19, 10:33=A0am, Didi <d...@tgi-sci.com> wrote:
> > Consider full bit stuffing one line is 320 pixels > > one line =3D 320*18 Bits =3D 320*18/8 bytes =3D 720 Bytes > > No controller I have seen supports such a format in memory. > The typical approach is to use 16 bits per pixel of RGB data, > 5-6-5. Or use 24 bits per pixel and use only 18 of them (not > that it makes much sense, but it is possible). > > Dimiter > > ------------------------------------------------------ > Dimiter Popoff =A0 =A0 =A0 =A0 =A0 =A0 =A0 Transgalactic Instruments > > http://www.tgi-sci.com > ------------------------------------------------------http://www.flickr.co=
m/photos/didi_tgi/sets/72157600228621276/
> > > > badal_akr wrote: > > >I am currently working with a QVGA =A0and interfacing it with a display=
> > >controller which has 256kbytes of SRAM (display buffer). The QVGA is > > >18 bit (R,G,B - 6bit each.) I would like to calculate the address > > >range for each line, so that I can fill the buffer appropriately. Any > > >leads would be really helpful. > > > >Suresh M. Shenoy > > > Consider full bit stuffing one line is 320 pixels > > one line =3D 320*18 Bits =3D 320*18/8 bytes =3D 720 Bytes > > Hope it helps > > anil- Hide quoted text - > > - Show quoted text -
I am interested in calculating the address range. For example I want to fill the address buffer on the first line to paint black. And then paint second line to paint white. The address from trial n error looks to be 0 - 07A0 for the first line. And I believe there should be a method to calculate this? Suggestions?
I suppose it is my turn today to answer homework questions :-).

> I am interested in calculating the address range. For example I want > to fill the address buffer on the first line to paint black. And then > paint second line to paint white.
Pixel address=3D ((line_number*pixels_per_line) +column_number))*bytes_per_pixel . Line numbers are 0 to 319, column numbers are 0 to 239 in your case. Dimiter suresh shenoy wrote:
> On Feb 19, 10:33=EF=BF=BDam, Didi <d...@tgi-sci.com> wrote: > > > Consider full bit stuffing one line is 320 pixels > > > one line =3D 320*18 Bits =3D 320*18/8 bytes =3D 720 Bytes > > > > No controller I have seen supports such a format in memory. > > The typical approach is to use 16 bits per pixel of RGB data, > > 5-6-5. Or use 24 bits per pixel and use only 18 of them (not > > that it makes much sense, but it is possible). > > > > Dimiter > > > > ------------------------------------------------------ > > Dimiter Popoff =EF=BF=BD =EF=BF=BD =EF=BF=BD =EF=BF=BD =EF=BF=BD =EF=BF=
=BD =EF=BF=BD Transgalactic Instruments
> > > > http://www.tgi-sci.com > > ------------------------------------------------------http://www.flickr.=
com/photos/didi_tgi/sets/72157600228621276/
> > > > > > > > badal_akr wrote: > > > >I am currently working with a QVGA =EF=BF=BDand interfacing it with a=
display
> > > >controller which has 256kbytes of SRAM (display buffer). The QVGA is > > > >18 bit (R,G,B - 6bit each.) I would like to calculate the address > > > >range for each line, so that I can fill the buffer appropriately. Any=
> > > >leads would be really helpful. > > > > > >Suresh M. Shenoy > > > > > Consider full bit stuffing one line is 320 pixels > > > one line =3D 320*18 Bits =3D 320*18/8 bytes =3D 720 Bytes > > > Hope it helps > > > anil- Hide quoted text - > > > > - Show quoted text - > > I am interested in calculating the address range. For example I want > to fill the address buffer on the first line to paint black. And then > paint second line to paint white. > The address from trial n error looks to be 0 - 07A0 for the first > line. And I believe there should be a method to calculate this? > Suggestions?