Serial not printing corrrectly

07 Jan 2011 . Edited: 07 Jan 2011

My Simple code:

#include "mbed.h"

Serial pc(p13,p14);

#define TIME 0.20
 
int main()
{
    while (1)
        {
        pc.printf("STARTING AGAIN\n");
        wait(TIME);
        }
}


My results -

results

 

 

 

 

 

 

 

 

 

 

 

 

 

Any suggestions??

07 Jan 2011

Hi Glen,

As you are printing out of pins p13,p14, can you outline how you have this hooked up to your PC? E.g. do you have an homebrew RS232 level shifter, are you using an FTDI part, and so on.

Have you tried running a loop back test from the PC to itself, and from the mbed to itself, just to make sure each end is consistent with itself.

Hope that helps, Chris

07 Jan 2011

[quote]As you are printing out of pins p13,p14, can you outline how you have this hooked up to your PC? E.g. do you have an homebrew RS232 level shifter, are you using an FTDI part, and so on. [/quote]

Ahh... <face palm> DOH!

Thanks