keil 查看调试时串口的关联情况

µVision4 User's Guide

BreakAccessHomeASM ASSIGN

Home » Debug Commands » ASSIGN

The ASSIGN command allows displaying and changing the input and output sources for the specified serial channel.

Syntax Description
ASSIGN Display serial channel I/O assignments.
ASSIGN channel <inreg > outreg Change serial channel I/O assignments. Note the brackets around inreg and the trailing blank before the closing bracket.

The following table shows the supported channels and the default settings for the input register (inreg) and output register (outreg).

Channel Default inreg Default outreg Description
COM1 None None COM port 1 on the PC.
COM2 None None COM port 2 on the PC.
COM3 None None COM port 3 on the PC.
COM4 None None COM port 4 on the PC.
WIN SIN or S1IN SOUT or S1OUT The Serial window.

The names of the input- and output registers (VTREGs) are defined by the CPU in use. The VTREGs can be listed with the command DIR VTREG.

The baudrate and other serial port parameters must be set with the MODE command.

Examples
>ASSIGN                     /* Display serial assignment                */
  WIN: <S0IN >S0OUT         /* S0IN provides serial input &             */
                            /* S0OUT provides serial output             */
>
>ASSIGN WIN <S1IN >S1OUT    /* Assign S1IN & S1OUT to the Serial window */
>ASSIGN                     /* And display the assignment               */
  WIN: <S1IN >S1OUT

>ASSIGN COM1 < SIN > SOUT   /* Assign SIN & SOUT to COM1                */

28192427_zore.gif Note

  • The ASSIGN command cannot be used in target debug mode.
  • The PC serial port (COM port) supports only up to 8 data bits. Therefore, it is impossible to generate more then 8 data bits, as it is possible on some microcontroller UART interfaces.

转载于:https://my.oschina.net/sevk/blog/134010

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值