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??