Keil™, An ARM® Company

µVision® User's Guide

MODE

SyntaxDescription
MODE COMx baudrate, parity, databits, stopbitsChange COM port settings.

µVision3 lets you change the settings for your PC's COM ports. The baudrate parameter must specify a valid baud rate like 1200, 2400, 9600, or 19200. The parity parameter may be 0 for none, 1 for odd, or 2 for even. The databits parameter may be 8 for 8 databits, or 7 for 7 databits. The stopbits parameter may be 1 for 1 stop bit, 15 for 1½ stop bits, or 2 for 2 stop bits.

The MODE command may be used with the ASSIGN command to set the parameters for the simulated CPU serial input and output channels.

Example
>MODE COM2 19200, 0, 8, 1    /* Setup COM2 for 19,200 bps, */
                             /*                no parity,  */
                             /*                1 stop bit  */