9 years, 8 months ago.

Can I display ascii on my PC screen, and if so what is the code for it?

Using the mbed NXP MCU in DIP package

1 Answer

9 years, 8 months ago.

include the mbed library with this snippet

#include "mbed.h"

Serial pc(USBTX, USBRX);

int main()
{

int a=10;
pc.printf("value=%d \n\r",a);

}

install the serial driver on the PC (http://developer.mbed.org/handbook/Windows-serial-configuration) and then use any serial communication tool i.e. Putty, for serial communication (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)

Accepted Answer

Got it going, big thanks

posted by Paul Riddoch 07 Mar 2015