Keil Logo


Syntax Description
MODE COMx baudrate, parity, databits, stopbits Change 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.

>MODE COM2 19200, 0, 8, 1    /* Setup COM2 for 19,200 bps, */
                             /*                no parity,  */
                             /*                1 stop bit  */
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.