DIU to drive monochrome LCD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DIU to drive monochrome LCD

553 Views
dave_mas
Contributor I

Hi,

 

Has anyone had any experience trying to drive a monochrome LCD with the DIU?

 

I'm about to attempt to get the DIU of an MPC512x to drive an old monochrome LCD display. I know this is probably not what the designers of the DIU were thinking of when they created the DIU, but needs must.

 

The display is compatable with the HDM3224. It has your typical HSYNC, VSYNC, pixel clock and data enable like colour LCDs but the data line are somewhat different.

 

It has a 4 line parallel data interface with each line representing a single pixel. This means the first four pixels are loaded on the first clock, the next four on the second clock, and so on.

 

I think I can get the DIU to generate the correct clock and sync signals by dividing the display width by 4, i.e., for the 320x240 display I would initialise the DIU to 80x240.

 

The problem I have is how to set up the pixel format. I'm guessing I'll need some kind of translation from the 320x240 display data to pack 4 pixels in to a single component of the RGB expected by the DIU.

 

Any ideas would be appreciated.

 

thanks.

0 Kudos
Reply
1 Reply

442 Views
TomE
Specialist II

Draw into a 320 * 240 BYTE array using 0/1 or 0/255 for white/black as appropriate.

 

Then manually repack that array into an 80 * 240 BYTE display buffer, packing four drawing-pixels into the appropriate 4 bits of the display pixels.

 

Use the 8-bit-per-pixel display mode with a colour palette set up for 1:1 mapping.

 

I'm guessing here, I haven't used this part. Your mileage May Vary.

 

Tom

 

0 Kudos
Reply