could You suggest me a serial application?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

could You suggest me a serial application?

2,150 次查看
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 回复数

750 次查看
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 项奖励
回复

750 次查看
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 项奖励
回复