Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
COMUNICACIÓN SERIAL EMISOR Y RECEPTOR el siguiente proyecto tiene como fin la comunicación serial entre dos tarjetas electrónicas como la STM32 y la núcleo F103RB mediante los pines de cada tarjeta. Realizando la siguiente programación en el emisor
DESCRIPCIÓN
PROGRAMACIÓN DEL EMISOR EN EL MBED
- include "mbed.h"
- include "math.h" libreria para las operaciones matematicas char texto[20]; Serial PC (PA_2, PA_3); comunicacion serial Serial xbee (PC_6, PC_7); comunicacion serial Serial PC (PB_10, PB_11); comunicacion con el hercules serial float valor; int main (){ xbee.baud(9600); velocidad de transmicion PC.baud(9600); while(true){ xbee.scanf("%s[^\n]",texto); PC.printf (" %s\n\r",texto); wait(0.1); } } PROGRAMACION DEL RECEP`TOR EN EL MBED
- include "mbed.h"
- include "math.h" libreria para las operaciones matematicas char texto[20]; Serial xbee (PA_2, PA_3); comunicacion serial Serial xbee (PC_10,PC_11); comunicacion serial Serial PC (SERIAL_TX, SERIAL_RX); comunicacion con el hercules serial float valor; int main (){ xbee.baud(9600); velocidad de transmicion PC.baud(9600); while(true){ PC.scanf("%s[^\n]",texto); xbee.printf ("%s\n\r",texto); PC.printf ("ENVIA DATOS: %s\n\r",texto); wait(0.1); } }