Hello,I would like to read data from hyperterminal and use it in uvision for further calculation. however, It seems to me that scanf is not working. Any help, will be appreciated. thanks in advance.
int main (void) { float i; printf ("Enter value"); scanf ("%f", &i); }
Hi,
you can use the simulated UART Windows, or (if you are using a Cortex-M3 and your debug Adapter supports SWO, i.e. ULINK, JLink) use the ITM printf Window.
You have to write the low level functions, see Retargetc. in many Keil demo projects. When running on a Cortex-M3 there are ITM_Sendchar(char c) and a ITM_ReceiveChar() you can use to transfehr the characters.
All Terminal Windows in µVision have a basic VT100 support (cursor positioning, clear screen, clear line, cursor keys are transmitted, ...).
. BR, /th.