This BSP Guide provides directory information, library files, sample code, and driver details for the Nuvoton MS51 16K series microcontroller.
The document introduces the Board Support Package (BSP) for the Nuvoton MS51 16K series, describing the folder structure, included driver reference manuals, library header/source files, and sample code projects. It also contains revision history and legal notices from Nuvoton.
Detailed sections cover peripheral driver examples such as ADC, PWM, timers, UART, I2C, and watchdog functions, along with instructions for modifying the internal high‑speed RC oscillator, generating system clocks, and using in‑application programming (IAP) for flash and configuration updates.
| Internal HIRC frequency | 16 MHz or 24 MHz |
|---|---|
| System clock output after divider | 100 kHz |
Use the Fsys_ModifyHIRC function to set the internal HIRC to either 16 MHz or 24 MHz.
Modify the CONFIG register using the Watchdog_Reset_Disable routine to disable the watchdog reset.
It allows the flash memory to be used as an EEPROM, handling read, erase, modify, and write operations.
The default HIRC of 16 MHz does not support baud rates over 38.4 kbaud; the HIRC must be changed to 24 MHz for higher rates.