HI I need to simulate the ADC channel 1. i found this code on keil web [ http://keil.com/dd/vtr/3648/3524.htm ]:
signal void AIN1_sig (void) { float f;
for (f = 0.0; f < 5.0; f += 0.1) { swatch (1.0); // Delay 1 second AIN1 = f; // Set AIN1 Voltage } }
I type this code in the command window (debug session), but it seems not to work, do u have any idea??
"i found this code on keil web .... I type this code in the command window (debug session), but it seems not to work"
I think you need to read that page more carefully - what made you think you should type into the command window...?
See: http://www.keil.com/support/man/docs/uv3/uv3_debug_functions.htm
Actually if u read the whole web page it works with command window or in debug editor. Anyway thanks