//---------------------中断定义---------------------
#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)位置
我真是不知道我是怎么采到数据(通过串口 很清楚的数据 正确的)的啊 这是我后来才发现啊
求解