Im a newbie for pic and i trying to communicate with uart of 16f628A.
Place the code:
#include <main.h> #include <string.h> #include <stdlib.h> void main() { char origine [48]; while(TRUE) { delay_ms(DELAY); printf("hello whats your name?nr"); // send alive message } //delay_ms(DELAY); // i want to save answer data in to char origine }
With putc(getc()) i get only one char , how can i take entire string and save her into variable??
I searched around the net but i cant find solution.