2021-11-10
-
zy09 reading assigned. Target done by Wednesday.
-
zy10 reading also assigned. May as well start.
1. Stupid UART Tricks ™
-
Load
msp4th
to your LaunchPad
Use MobaXterm to verify that it is working. 9600 baud 8N1:
-
8 —
-
N —
-
1 —
Load this onto your Arduino Nano. What does it do?
/*
* Receive a byte from the UART
* and echo it back.
*
* Format is 8N1
*/
void setup() {
// initialize both serial ports:
Serial.begin(9600);
}
void loop() {
if (Serial.available()) {
int inByte = Serial.read();
Serial.write(inByte);
}
}
-
PC (serial terminal) transmit -> Nano receive
-
Nano transmit -> MSP430 receive
-
MSP430 transmit -> Nano receive
-
Nano receive -> PC serial terminal
Then do sending and receiving from Waveforms.