- This topic has 0 replies, 1 voice, and was last updated 9 years, 6 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › 16F628A UART
Hello and thank you for all help can i receive.
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.
Are welcome any kind of info.
Thank you very much.