[SOLVED] UART send data when PC ready

Status
Not open for further replies.

bozonas

Newbie level 3
Joined
Jun 16, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,299
Hi,
I am trying to communicate microcontroller with PC through UART. But I want microcontroller to sent data, not when its powered on, but when pc is ready to receive it. And i want to ask, does pc sends some kind of data to UART when it receives data, or when I start minicom/hyperterminal, or ...
 

When PC is turned on, some application is started and that software sends notification to uC that PC is ready and that PC can receive data.
 

This is done by flow control as it is called in hyperterminal. It can be implemented as hardware flow control using the control signals of the RS232 port DTR, CTS, RTS,... In this case the uC will wait for the PC to assert the appropriate flow control signal to send data.
Another way is to use a software flow control like the xon/xoff. In this case the uC waits for a byte (xon) to send data and stops sending if it receives a xoff.
Both are standard protocols and you can search the web for detailed info.
 


Thanks!!!!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…