Hello all, I would like to know if there is a way in the simulation with uVision to use a printf to display debugging information on window of uVision to a micro cortex m3 without committing a uart and without using ulink. Tanks
Antonello, I have nothing against your post, I do appreciate your posts and effort on these forums :- )
Experienced users know how to use small asm routines that do big jobs, as you 've already said, you can do existing functions with smaller codes, whether in asm or in C. Isn't it better to write your own functions that convert integers/decimals to char to display them on the LCD instead of using printf? It is not always necessary or a must to use existing compiler functions and libraries, look at this one function, I used it to display two digits only for a clock function:
Code:
char* bin2bcd( unsigned int val ) { char i; static char digit[2];
val -= 100; i = '0' + 10; do i--; while( (val += 10) & 0x8000 ); digit[0] = i;
digit[1] = val | '0';
return digit; }
This is truly a nice routine to use instead of using % and / or even the printf function.