Keil Logo


The MODE command changes the settings of the PC's COM ports.

Syntax Description
MODE COMx baudrate, parity, databits, stopbits Changes the settings of COMx port. The baudrate parameter must specify a valid baud rate like 1200, 2400, 9600, or 19200. The values for parity can be: 0 for none, 1 for odd, or 2 for even. The databits parameter cna be set to 8 for 8 databits, or 7 for 7 databits. The stopbits parameter can be set to 1 for 1 stop bit, 15 for 1½ stop bits, or 2 for 2 stop bits.

Use the MODE command and the ASSIGN command to set the parameters for the serial input and output channels of the simulated CPU.

>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.