PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Low Level Programming - xscale LCD controller

With the assitance of a few folks on and of the board I've made some progress into understanding the inner working of my pxa 255 powered Axim. The aim is to obtain full and proper control of the frame buffer and enable things like hardware swapping of buffers, thus avoiding those nasty blits. There's plenty of documentation out there, and a lot can be gleened from device drivers written for non-windows OS. Check out http://openwince.sourceforge.net

Also, there's an old article about mapping pointers to hardware registers to be found at :

http://columns.pocketnow.com/content.cg ... cals&id=14

and some further code here:

http://www.elevatedstudios.com/pocket/source.htm

and a recent post (ipaq 36xx) on egroups :

http://groups.yahoo.com/group/Pocket-PC ... ssage/4969

And of course, required reading :
Intel PXA255 Processor Developes Manual (278693-001.pdf) section 7.6

After all this, I'm still some way of getting anything to work. I can read registers like to OS Timer, but the LCD address registers always return 0 to me. Control of the LCD buffering is via a 4 dword structure call a Frame Description, which contains a pointer to the video buffer. The PXA255 docs suggest that multiple Frame Descriptors can in effect be chained together, which may allow hardware page flipping. Perhaps all this has to be done with the LCD disabled.

By posting these rambling I'm hoping someone with more experience can add to the base knowledge and perhaps help define what is, and isn't possible.
Sergey Chaban · 09 May 2003, 15:39 UTC
Hmm, I was under impression that Axims use MediaQ chip? If that's indeed the case then you have to program the MQ chip and not the XScale controller.

BTW, it seems that on MediaQ the fastest way to do blit is to use its FIFO buffer.

SC
that would explain why the on-board lcd controller isn't doing anything :) I'll check out the MediaQ chip...
From the xscale performance docs:
"The noncached but bufferable mode (X=0, C=0, and B=1) improves write performance by allowing consecutive writes to coalesce in the write-buffer and results in more efficient bus transactions. It is strongly recommended that users set the LCD frame buffer as noncached but bufferable."

Also, from the Win CE .Net 4.? docs :

"A new VirtualSetAttributes API has been added to the ARM kernel to enable graphics software to take advantage of the new feature in the Intel XScale microarchitecture to disable the cache for a memory region but leaving the buffering on to gain advantage of memory access coalescing.

This improves graphics performance on the Intel PXA250 processor under certain types of graphics operations."

I doubt the current WCE core is optimised for XScale, so is there's a way to update the page table entry for already allocated memory ? I assume the OS is creating an uncached, unbuffered block of RAM.

Or of not, perhaps there's a way of creating a new buffered block and repmapping the mediaq controller to it ?
Sergey Chaban · 12 May 2003, 13:32 UTC
Actually MQ uses its own embedded memory for framebuffer, so this won't help.
Forget about XScale, take a look at the MQ docs :)

SC