裸机跑lcd程序已经实现了,没问题,效果很好。刚才把注册表改了一下,大伙帮我看看:
[HKEY_LOCAL_MACHINE\System\GDI\ROTATION]
"Angle"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\Display\LCDC]
"Width"=dword:280;F0;
"Height"=dword:1e0;140;
"Bpp"=dword:10
"VRAMWidthInPixel"=dword:400;280;400;
"VRAMHeightInPixel"=dword:400;1e0;400;
"VRAMaddress"=dword:23e00000 ; allocate the video memory in SDRAM
"VRAMBusWidth"=dword:20 ; SDRAM has a 32-bits bus width
"DisplayPowerClass"=multi_sz:"{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}"
"UpperMargin"=dword:04;
"LowerMargin"=dword:02;
"LeftMargin"=dword:10;
"RightMargin"=dword:50;
"Vsync"=dword:0
"Hsync"=dword:04
"PixelClock"=dword:1F5E100;25000000 Hz
[HKEY_LOCAL_MACHINE\system\gdi\monitors]
"TOTAL MONITORS"=dword:1
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"Display"="at91sam9263ek_DDI.dll"
里面的时间常数比如Hsync等都是在keil中的参数,我把"PixelClock"这一项改成60M以上的话,屏幕闪的更厉害,但是可以看出屏幕效果好多了,至少右边框没有白色边框,桌面下面的工具条也能正常显示,没有歪曲了。但是频率越高,闪烁的越厉害,这个问题有点懊恼! |