|
发表于 2022-10-26 22:42:12
|
显示全部楼层
void Norflash_Read(u16 lib_addr,u16 Dgus_addr,u16 len)//ËùÓвÎÊýÐèÊÇżÊý lib_addrÊý¾Ý¿âµØÖ· Dgus_addr±äÁ¿µØÖ·
{
Write_Dgus(0x000b,len);
Write_Dgus(0x000a,Dgus_addr); //дÈëDgus±äÁ¿µØÖ·
Write_Dgus(0x0009,lib_addr); //дÈëÊý¾Ý¿âµØÖ· Á½ÕߵĴ洢¿Õ¼ä²»Ò»Ñù
Write_Dgus(0x0008,0x5A00);
while(Read_Dgus(0X0008)&0xFF00);
}
// ======================================
void Norflash_Write(u16 lib_addr,u16 Dgus_addr,u16 len)//ËùÓвÎÊýÐèÊÇżÊý
{
Write_Dgus(0x000b,len);
Write_Dgus(0x000a,Dgus_addr);
Write_Dgus(0x0009,lib_addr);
Write_Dgus(0x0008,0xA500);
while(Read_Dgus(0X0008)&0xFF00); |
|