- This topic has 5 replies, 4 voices, and was last updated 6 years, 8 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › send an array on serial port
hello,
i'm using at89s52 microcontroller and need to send few bytes serially.
i have an array like my_ip[6]={192,168,4,1};
how could i send it on serial port
Thanks!
Hi
You will need to send the data byte by byte.
Check out this project: https://www.engineersgarage.com/microcontroller/8051projects/interface-serialport-RS232-AT89C51-circuit
starting with c=0
send(my_ip[c]);
c++;
likewise you can send as many number of bytes as you want
thanks
nice
what?