Question: need help with the following code UART Send text to the PC Set the baudrate Print Hello mbed to the PC Open a terminal (e.g.

need help with the following code

UART

Send text to the PC

  • Set the baudrate

  • Print Hello mbed to the PC

  • Open a terminal (e.g. putty) on the PC to view the message

/*---------------------------------------------------------------------------- LAB EXERCISE - UART interface SERIAL COMMUNICATION ---------------------------------------- Print text to the PC via UART protocol Input: None Output: PC

GOOD LUCK! *----------------------------------------------------------------------------*/

#include "mbed.h" #include "pindef.h"

// Serial tx, rx connected to the PC via an USB cable Serial device(UART_TX, UART_RX);

/*---------------------------------------------------------------------------- MAIN function *----------------------------------------------------------------------------*/

int main(){ /* Set the baudrate to 9600 bps Print "Hello mbed" to the PC serial monitor */

//Write your code here }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!