我现在的屏是在买开发板的时候带的,应该是一个模块,因为在在屏的小板上除了屏之外还有一些屏的外围电路,然后才是小板到主板之间的排线,主板上还连了一个总路线驱动芯片是74LVCH162245,不知道是3V到5V的转换还是增大电流的作用,然后从这个芯片出来再直接连S3C2410,大致就是这么一个连接顺序。
to chimeng813:
你说的线序是不是指那几根数据线,我原来的是16位的RGB565,可2410是24位的数据线,不太明白怎么弄。其它的各个时序信号线和什么同步信号之类的线是不是只要是RGB接口的屏都是一样的啊?然后把数据线弄好就可以接了
; [Notification]
; Not yet implemented MULTIPlEXIP Kernel features.
; Do not "SET IMGMULTIXIP=1"
; Please check "SET IMGMULTIXIP=" so that IMGMULTIXIP are not defined
; NK name
#define NKNAME NK
; NK Start address
#define NKSTART 8C200000
#define NKLEN 01D00000
// map frame buffer into process space memory
m_VirtualFrameBuffer = (DWORD)VirtualAlloc(0, (0x40000), MEM_RESERVE, PAGE_NOACCESS); //0x40000为大小值而非地址
if (m_VirtualFrameBuffer == NULL)
{
RETAILMSG(0,(TEXT("m_VirtualFrameBuffer is not allocated\n\r")));
return;
}
else if (!VirtualCopy((PVOID)m_VirtualFrameBuffer, (PVOID)gdwLCDVirtualFrameBase, (0x40000), PAGE_READWRITE | PAGE_NOCACHE))
{
RETAILMSG(0, (TEXT("m_VirtualFrameBuffer is not mapped\n\r")));
VirtualFree((PVOID)m_VirtualFrameBuffer, 0, MEM_RELEASE);
return;
}
RETAILMSG(0, (TEXT("m_VirtualFrameBuffer is mapped at %x(PHY : %x)\n\r"), m_VirtualFrameBuffer, gdwLCDVirtualFrameBase));
RETAILMSG(0, (TEXT("Clearing frame buffer !!!\n\r")));
void S3C2410DISP::GetPhysicalVideoMemory(unsigned long *physicalMemoryBase, unsigned long *videoMemorySize)
{
RETAILMSG(0, (TEXT("S3C2410DISP::GetPhysicalVideoMemory\r\n")));