could You suggest me a serial application?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

could You suggest me a serial application?

2,153件の閲覧回数
Nefertum
Contributor I
Hi everybody,
 
I would like to do a serial application with my hcs08 demo board. I'd like something not so hard to do involving SCI, transmitter/receiver buffers and possibly software flow control. Could you suggest such application?
Another thing: if I set my pc serial port flow control to Xon/Xoff, should I have to write software that checks for Xon/Xoff char to start/stop flow or this is done automatically from the operating system?
 
Thanks for Your help
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

753件の閲覧回数
bigmac
Specialist III
Hello,
 
All flow control arrangements for the MCU end will need to be specifically written, to take into account your chosen size of receive buffer.  At the PC end, assuming you are using some sort of terminal program to provide the communications, flow control will happen, if it is enabled.  Unless you are sending or receiving data strings that can exceed the receive buffer size at either end, flow control won't normally occur, even if enabled at the PC end.
 
For interactive communications, with manually entered commands, where the MCU would generate a response to each command, it is unlikely that flow control would ever be needed.  In this case, the MCU receive buffer would be of sufficient size to hold the command line data, and command processing would commence on completion of the command entry.  In this case, it is likely you would want to "echo" each character as it is received.
 
Regards,
Mac
 
0 件の賞賛
返信

753件の閲覧回数
baddad
Contributor I
Why not start with communications to a terminal window and enter commands to toggle an LED on an eval bd.
 
If you have an extra serial port, I like to add control from a terminal window to my apps for testing...
 
BadDad
0 件の賞賛
返信