智能车制作

标题: OV7620 采集的怪伽 [打印本页]

作者: 背负蓝天的云    时间: 2013-3-28 00:31
标题: OV7620 采集的怪伽
//---------------------中断定义---------------------
#pragma CODE_SEG NON_BANKED

/******************: 行中断处理函数**********************/
interrupt 8 void HREF_Count(void)
{
  TFLG1_C0F = 1;
        m++;
  if (VSYN_C==1||m==0|| m>234 )//^^^^^^^^^^^^^^^^^(1)
// if (m==0|| m>234 )
    {
        return;//判断是否从新的一场开始
    }
if(380<m<420)//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^(2)
  {
Image_Data[Line_C][0] = PORTA;
Image_Data[Line_C][1] = PORTA;
Image_Data[Line_C][2] = PORTA;
Image_Data[Line_C][3] = PORTA;
Image_Data[Line_C][4] = PORTA;
Image_Data[Line_C][5] = PORTA;
Image_Data[Line_C][6] = PORTA;
Image_Data[Line_C][7] = PORTA;
Image_Data[Line_C][8] = PORTA;
Image_Data[Line_C][9] = PORTA;

请关注(1)(2)位置
我真是不知道我是怎么采到数据(通过串口  很清楚的数据  正确的)的啊  这是我后来才发现啊
求解


作者: mxj1005071012    时间: 2013-3-28 08:22





欢迎光临 智能车制作 (http://dns.znczz.com/) Powered by Discuz! X3.2