下面是我编的程序,不知道哪边出了问题
//----------------------------------------------------------------------------
// C main line
//----------------------------------------------------------------------------
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int wendu;
int i=0;
int j=0;
int shuzi;
int k;
int m;
int i;
int c;
char str[10];
void main(void)
{
M8C_EnableGInt ;
LCD_1_Start(); // Initialize LCD
PGA_1_SetGain(PGA_1_G1_00);
PGA_1_Start(PGA_1_HIGHPOWER);
ADCINC_1_Start(ADCINC_1_HIGHPOWER);
ADCINC_1_GetSamples(0);
for(;;){
delay();
wendu=0;
while(ADCINC_1_fIsDataAvailable()==0); //等待数据
wendu=ADCINC_1_wClearFlagGetData(); //数据赋值
for(m=50;j>0;j--)
for(k=50;i>0;i--)
display(wendu);
}