Hallo everybody,
got myself another problem.... not exactly a problem... i think The thing is i would like to know whats happening in this output:
printf("AIN[%d][%d] = %u.%.3u V\n",m,n,(int)(AD_ARRAY[m][n]/V_SCALE),(int)(AD_ARRAY[m][n]%V_SCALE)*R_SCALE);
The preprocessor declarations are :
ine V_REF 5 #define V_SCALE (0xFF/V_REF) #define R_SCALE (99/V_REF)
I am using a 80C535 µC and the AD_ARRAY[m][n] saves the actual ADC value of the sample and im using µVision2
Thanks for the help Andy
Yes, you are right.
I was very sure that was formatting was ANSI-C but I was just wishfully thinking.
Must think compiler specific. You are right on the spot.
Ed.