NUC140 Serial Communication
by AdrieSentosa in Circuits > Microcontrollers
5353 Views, 6 Favorites, 0 Comments
NUC140 Serial Communication
![NUC140-Ardu.jpg](/proxy/?url=https://content.instructables.com/FK5/H18Y/IGZJ3SN1/FK5H18YIGZJ3SN1.jpg&filename=NUC140-Ardu.jpg)
In this project, we will be making a communication between Arduino and Nuvoton NUC140 which transfer vital information by sending data one bit at a time.
Serial communications are essential for every Micro-controllers to communicate between Micro-controllers and another device. The Micro-controller sends these 1 and 0 (bits) that contain necessary information one by one, or Serially. These bits form together and turn into bytes (composed of 8 bits). For further information, check it out sparkfun binary tutorials.
It’s a fairly easy project and can be used either on its own or part of something bigger (check it out >> Automatic Weather Station).
List of Material
![99034.jpg](/proxy/?url=https://content.instructables.com/FXX/FCPZ/IGZGTQNR/FXXFCPZIGZGTQNR.jpg&filename=99034.jpg)
For this project, we will be using:
- Arduino boards (mine Arduino Uno Rev3)
- Nuvoton NUC140
- Jumper Wire
Hardware Connections
![99035.jpg](/proxy/?url=https://content.instructables.com/FHY/SRIX/IGZGU4GF/FHYSRIXIGZGU4GF.jpg&filename=99035.jpg)
In common, the connections are fairly easy. Just connect Arduino Transmitter (TX) to Nuvoton Reciever (PB0) with jumper wire, connect both GND (Ground)* and you should have no problems.
*P.S. Grounding is an essential factor for serial communication (make sure the high binary voltage is 5V)
Nuvoton Programming
![1.png](/proxy/?url=https://content.instructables.com/FEZ/Z1D7/IGZGUOGQ/FEZZ1D7IGZGUOGQ.png&filename=1.png)
Below is the Nuvoton Serial Communication code. Upload Serial_test.ino code to your Arduino (Mine Arduino Uno Rev3) , NUC140-Ardu.c code to Nuvoton (Check it out how to upload the code >> Introduction to Nuvoton NUC140), and you should have no problems.
You can clone and edit the code in any way you prefer.
Enjoy!
![1.png](/proxy/?url=https://content.instructables.com/FLC/AFLM/IGZJ3QN1/FLCAFLMIGZJ3QN1.png&filename=1.png)
After making sure that everything works smoothly, you can take this project into bigger project (check it out >> Automatic Weather Station)!
Power through batteries or a plug and you’re good to go!