Hello, I am new to this forum. I have an Arduino Uno and a Nuvoton M263A. The small goal is to connect these to boards together and get code in the Nuvoton to control an LED in the Uno. Can someone offer some help to get me started please? Are there any good tutorials out there to help with my project?
The easiest "connection" is probably a UART connection passing commands and status back and forth.
But I suspect the biggest problem is going to be programming the M263A - while it's quite the comprehensive board, and it looks like they've done an OK job with their "Arduino Shield-compatible connector", I don't see any indication that you can use the Arduino IDE or "language" to program it.
The "Nuvoton" - which most of us have never previously come across - has a socket arrangement which facilitates mounting accessory "shields" designed for use with the Arduino UNO.
You do not plug a UNO onto the "Nuvoton", you use it as an alternative to the UNO.
Clearly an "XY Problem", you need to tell us what you actually want to do, what sort of LED do you wish to control and why?
Thank you! Looking at a simple UART example, this is what I'm going to try next . I am using Mbed to program the the Nuvoton board. Mbed is actually pretty good. it doesn't have quite the robust documentation that Arduino has, but it is adequate.
Your comment is interesting to me. So why do they have Arduino Uno compatible connectors on the Nuvoton? what are these supposed to do?
To start, I want to control anything. It doesn't matter really. I need to prove that they can communicate. I just went with the LED example because I thought it was a simple one.
They allow you to plug UNO-compatible "shields" - of which there are a few available - onto the Nuvoton as attachments in order to interface it to various inputs and output devices. You attach a "shield" to the UNO to make it control other devices, you can (supposedly) attach the same shield to the Nuvoton instead to do the same things.
The UNO and the Nuvoton are microcontroller units, they do the processing. Very rarely is it useful to use two primary processors as you are faced with the problems of interfacing them - as you have posited here.
Interfacing processors involves the hardware layer - such as asynchronous serial westfw mentions - and designing and implementing a protocol for the two to "talk" to each other. That just adds problems to your design.
If you want to control a LED, just connect it to an I/O on the Nuvoton, using whatever components are required to allow the Nuvoton I/O port to control the voltage and current required by the LED and at wherever distance you need to mount the LED.