The [MS51/8051|https://en.wikipedia.org/wiki/Intel_MCS-51] is a 1980s-era 8 bit microcontroller series. Nuvoton is a Taiwanese manufacturer. The following description is from the [Nuvoton web site|https://www.nuvoton.com/]: %%blockquote The [Nuvoton MS51/8051|https://www.nuvoton.com/products/microcontrollers/8bit-8051-mcus/industrial-8051-series/?__locale=en] is a series of industrial microcontrollers is based on 1T 8051 core, running up to 24 MHz, with up to 32 Kbyte of Flash memory and up to 2 Kbyte of SRAM. It supports one high precision 24 MHz allowing ± 1 % deviation and one 10 kHz internal RC Oscillators, operating at 2.4V ~ 5.5V voltage and - 40 ℃ ~ 105 ℃. NuMicro® MS51 is equipped with special features such as up to 15 channels of 500k SPS 12-bit ADC, up to 12 channels of PWM with independent counters and GPIO supports 20 mA driving capability, also with ESD resistivity 8 kV and EFT resistivity 4.4 kV. Combined all these above high performance features, MS51 series is suitable for high-reliability industrial and consumer applications. MS51 series offers 10-33 pin packages for a broad range of applications. %% ! My Own Investigation [{Image src='attach/NuvotonMS51/IoExpander.png' link='attach/NuvotonMS51/IoExpander.png' width='250' caption='Pimoroni IO Expander' align='right' class='imgFloatRight'}] My exposure to the __Nuvoton MS51 microcontroller__ came about due to its use in a number of Pimoroni Breakout Garden products, initially their [IO Expander|https://shop.pimoroni.com/products/io-expander] board and then a pair of [RGB Encoder|https://shop.pimoroni.com/products/rgb-encoder-breakout] and [RGB Potentiometer|https://shop.pimoroni.com/products/rgb-potentiometer-breakout] that internally use the MS51. Recently they even added a tiny [Super Dinky Blinky|https://shop.pimoroni.com/products/super-dinky-blinky] LED blinker board that uses it, even providing github links and instructions on how to hack/reprogram the device. So it's clear Pimoroni have some engineers on staff who like the MS51 as a general-purpose controller. Back in October 2020 I sent a [message|https://forums.pimoroni.com/t/development-using-the-nuvoton-ms51/15182/2] into the Pimoroni forum regarding the use of the [Nuvoton MS51 microcontroller|https://www.nuvoton.com/export/resource-files/TRM_MS51_16KBFlash_Series_EN_Rev1.03.pdf] on their [IO Expander Breakout Garden board|https://shop.pimoroni.com/products/io-expander], asking if they might help me figure out how to hack it. The MS51 is an [MCS-51/8051-compatible|https://en.wikipedia.org/wiki/Intel_MCS-51] microcontroller, using the same 1980s-era 8 bit architecture. [{Image src='attach/NuvotonMS51/RotaryEnc.png' link='attach/NuvotonMS51/RotaryEnc.png' width='250' caption='Pimoroni IO Expander' align='right' class='imgFloatRight'}] Well, nobody answered so I checked out the [Nuvoton website|https://direct.nuvoton.com/en/] and found a plethora of [development boards|https://www.nuvoton.com/tool-and-software/evaluation-board/], using ARM Cortex M0, M4, M23 and 8051-compatible processors in "Tiny" and "Maker" (Arduino UNO style) form factors. There's also a [suite of development tools|https://www.nuvoton.com/tool-and-software/software-development-tool/driver/]. It looks like both their hardware and software is quite well-documented, with a lot of PDFs on site. The Taiwanese-English is pretty good, and their product line looks to be very extensive. Not a small company. Some of the Tiny-style boards are truly tiny, and their Maker-style boards (e.g., [NuMaker-PFM-M2351|https://direct.nuvoton.com/en/numaker-pfm-m2351]) look like nice Arduino replacements, e.g., 64MHz, operating voltage 1.6-3.6v, memory up to 512kb RAM/ 96kb SRAM. Lots of pins and an UNO-compatible USB link connector. Even an on-board Wifi module. Like Arduinos, the processors themselves are typically surface-mounted but are also available in DIPP packaging should someone want to experiment with one on a breadboard. [{Image src='attach/NuvotonMS51/SuperDinkyBlinky.png' link='attach/NuvotonMS51/SuperDinkyBlinky.png' width='250' caption='Pimoroni IO Expander' align='right' class='imgFloatRight'}] The Cortex processors would be Arduino-like, whereas the 8051 boards (e.g., [NuTiny-N76e616|https://direct.nuvoton.com/en/nutiny-n76e616]) would take one back to the 1980s. Everything looks to be about US$25.00. The link to the [list of Nuvoton development tools|https://www.nuvoton.com/tool-and-software/software-development-tool/driver/] includes IDEs for all of its Cortex M0/M4/M23 and 8051 controller boards. This does actually include a customised version of the Eclipse IDE called NuEclipse, with distributions available for both Windows or Linux. It's based on a rather old (2015) version of Eclipse "Mars" but seems functional. I downloaded and installed NuEclipse for Linux, which seems to be Eclipse customised for C/C++ development, comes with a GCC OpenOCD installer, code support for the 60-odd boards Nuvoton sells, user manuals and some sample files. There are also three KEIL IDEs: one for US$395, one commercial, [one free|https://www2.keil.com/nuvoton/M0-M23] for the Cortex controllers, and two different IAR IDEs for the M0/M4/M23 and 8051 processors, resp. I downloaded the free version but it unfortunately won't run on the only Windows machine I have available. As I'm mostly interested in the 8051 I went to the IAR site, searched for the [NuTiny-N76E885 board|https://direct.nuvoton.com/en/nutiny-n76e885] (which is currently on 90% discount for US$2.50), then downloaded the [IAR EW8051 Embedded Workbench IDE|https://www.iar.com/iar-embedded-workbench/?architecture=8051], available for either a free 30 day trial or a 4K code size-limited installation. When you first open the IDE you have a choice of registering online for the Evaluation Copy. It won't operate until registered. On starting the IAR IDE it looks a bit like an older, customised version of Eclipse, but basically functional. It doesn't seem like there's any way to connect it to the [Pimoroni IO Expander|https://shop.pimoroni.com/products/io-expander] that uses the Nuvoton MS51, so if I want to further investigate I'll have to consider getting one of the Nuvoton controller boards. I've also contacted their sales department to see about the price for purchase of the IAR IDE for a quantity of one. The installer included a "dongle driver" so I'm hoping they don't use dongle-based license management (yuck). At least for the trial license there's no dongle. If the commercial price of the KEIL IDE ($395) is any indication, the IAR one might be rather expensive. I hope to get a quote from their sales rep, otherwise I'll be limited to 4K code files. ---- [{Tag Nuvoton}]