VSM虚拟终端能够使用电脑的键盘和屏幕向模拟微处理器系统发送RS232异步串行数据,并从模拟微处理器系统接收RS232异步串行信息。它在调试中特别有用,可以使用它来显示由正在开发的软件生成的调试/跟踪消息。

虚拟终端的指定如下:

完全双向接收的串行数据显示为ASCII字符,同时按键传输为串行ASCII数据。

简单的双线串行数据接口:RXD用于接收数据,TXD用于发送数据。

简单的两线硬件握手接口:RTS用于准备发送,CTS用于清除发送。

波特率从300到57600波特。7或8个数据位。奇偶校验,奇偶校验或无奇偶校验。0、1或2个停止位。除了硬件握手之外,XON/XOFF软件握手。RX/TX和RTS/CTS信号的正极性或反相极性。

虚拟终端支持ASCII控制码CR(0Dh)、BS(0x08h)和BEL(0x07h)。忽略包括LF(0x0A)在内的所有其他代码。

虚拟终端是一个纯数字模型,因此不需要其引脚上的任何特定电压电平。假设它通常直接连接到CPU或UART,而不是连接到RS232驱动器(如包含逻辑反相器的MAX232)的输出侧。

RX和TX引脚默认为活动高电平。因此,怠速状态为高,开始位为低,停止位为高。对于“1”,数据位显示为逻辑高,对于“0”,显示为逻辑低。这与许多微控制器中的板上UART直接兼容,也与外部UART(如6850和8250)兼容。如果不是这种情况(通常是因为您将端子连接到RS232驱动器的输出侧),则需要将RX/TX极性设置为反向。

RTS和CTS引脚也处于高电平活动状态。如果您希望将它们连接到反向控制线(即RTS/CTS条),则应将RTS/CTS极性设置为反向。

默认情况下,终端不会显示(回显)您键入的字符;假设它所连接的主机系统将执行此操作。如果您希望终端本身显示键入的字符,您应该从上下文菜单中选择Echo typed characters。

 MAX232是将U1芯片引脚上的TTL电压转换为串口的RS232协议,如果串口要与芯片通信,则需要统一电压协议。连接图如下所示:

 

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
06890671 `pathTranslationStyle` has four options: - `none`: Do no translation - `wsl`: Translate `C:\` to `/mnt/c` and `\\wsl$\Foo\bar` to `/bar` - `cygwin`: Translate `C:\` to `/cygdrive/c` - `msys2`: Translate `C:\` to `/c` It is intended as a broadly-supported replacement for us checking the source every time the user drops a path. We no longer need to push the source name all the way down to the control. I am hesitant to commit to using other folks' product names in our settings model, however, these are almost certainly more recognizable than whatever other weird names we could come up with. The Git Bash fragment extension profile could conceivably use `pathTranslationStyle` `msys2` to make sure drag/dropped paths look right. 14 小时前
90866c7c The original intent with dynamic profiles was that they could be uninstalled but that Terminal would remember your settings in case they ever came back. After we implemented dynamic profile _deletion_, however, we accidentally made it so that saving your settings after a dynamic profile disappeared scoured it from the planet _forever_ (since we remembered that we generated it, but now it was no longer in the settings file). This pull request implements: - Tracking for orphaned dynamic profiles - A new settings page for the profile that explains what happened - Badging on the Navigation Menu indicating which profiles are orphaned and which are hidden Closes #14061 Closes #11510 Refs #13916 Refs #9997 21 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐