This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM7: help with debugging-initial file

Hello!

I am kind of new user of the IDE of Keil uVision and due to the fact that I am not very experienced in the field of programming I am seeking your help.

I use the ADU 7026 of ARM7 and I want to introduce an input to an already existing program that uses apart from other peripherals, the A/D Converter. The input I want to introduce is sine at the adc0 pin. I have created the following initial file but the compiler finds an error as shown:

signal void ADC0_sin(void) {

float value, k;

k = 0 ;

while(1)
{ k = k+ 10 ;

value= _sin(2*3.14*k); //here is the error : undefined identifier//

adc0=(value * 1.5) + 1.5;

swatch(0.00001);
}

}

I have "linked" the initialization file with the main program by writing on the command window INCLUDE initial.ini . Thus the adc0 in the logic analyzer window indicates that no input has been given when I "run" it.

The answer may be easy or obvious but could anyone help me? Thanks in advance!