MS51BSP_SDCC
Nuvoton MS51 series BSP for Small Device C Compiler (SDCC).
Now support MS51FB9AE_MS51XB9AE_MS51XB9BE (MS51_16K). Hello World tested.
Usage
Download and install SDCC. Check "Add to system path" in the end of installation.
http://sdcc.sourceforge.net/
Download and install Nuvoton Nu-Link command tool. Add to system path manually.
https://www.nuvoton.com/tool-and-software/software-development-tool/programmer
Restart your computer.
Refer to "SampleCode/Template/Project_temp/SDCC/". Simply clone and double click "buildall.bat".
Nuvoton MS51FB9AE
It's a 25-cent 1T machine cycle enhanced 8051 microcontroller.
Internal 24MHz high-speed oscillator.
Internal 10KHz low-speed oscillator provide low power operating.
16KB program flash with 128-Byte security protection area.
256-Byte IRAM and additional 1KB XRAM.
12-bit ADC, 16-bit PWM, two UART and one I2C.
Pin interrupt on most I/O pins.
Support ICP (In-circuit programming)
Support ISP (In-system programming)
Support IAP (In-application programming), provide EEPROM purpose.
Pin to pin compatible with N76E003AT20 and STM8S003.
Change
SFR define.
/* Keil */
sfr P0 = 0x80;
sbit P07 = P0^7;
/* SDCC */
__sfr __at (0x80) P0;
__sbit __at (0x87) P07;
__code, __data, __xdata
Add or replace
Add asm macro to replace Keil's intrins.h
Add "buildall.bat".
Add "loadflash.bat".
Add "putchar.c" for printf().
|