|
发表于 2012-8-7 16:54:55
|
显示全部楼层
本帖最后由 njlqp123 于 2012-8-7 17:03 编辑
点颗烟取暖 发表于 2012-8-6 17:47
本人qq:1024261185,欢迎大家加小弟qq,一起讨论,共同进步
P1IFG &= ~BIT7;
if(VSYNCCnt<2)
{
VSYNCCnt ++;
}
if(VSYNCCnt==1)
{
FIFO_WEN_H; //场同步有效后打开FIFO写使能
FIFO_OE_H;
}
else if(VSYNCCnt == 2)
{
FIFO_WEN_L; //关闭FIFO写使能
fifo_ready = 1;
cli();
}
楼主,你好,这是你贴上来的程序中帧中断的部分,我有个疑问,在AL422的说明上,说了写使能是为高是才禁止的呀,为低是允许向fifo写数据的~不知道我哪里理解有误,谢谢
/WE Write Enable Input: /WE controls the enabling/disabling of the data input. When /WE is
pulled low, input data is acquired at the rising edge of the WCK cycle. When /WE is pulled high, the
memory does not accept data input. The write address pointer is stopped at the current position. /WE
signal is fetched at the rising edge of the WCK cycle.
这是手册中的说明,我买了一个带FIFO模块的7670,店家给的C52的程序也是说为0禁止写,为1允许,这和手册不相符呀~ |
|