Evaluation board for numicro 1t 8051 series (41 pages)
Summary of Contents for Nuvoton NuMicro NuMaker-M256SD
Page 1
The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NuMicro microcontroller and microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
Page 6
NuMaker-M256SD List of Tables Table 3-1 Extension Connectors ....................11 Table 3-2 M256SD2AE Full-pin Extension Connectors and GPIO Function List ......13 Table 3-3 NuMaker-TNLCDSub_M256SD Extension Connectors and M256SD2AE Mapping GPIO List ............................15 Table 3-4 Arduino UNO Extension Connectors and M256SD2AE Mapping GPIO List ....17 Table 3-5 Vin Power Source ......................
Machine Interface applications. For developing touch key system and fine tuning associated environment variables easily to adjust sensitivity of the touch key, Nuvoton provides NuTool – NuSenadj to set hardware and software parameters automatically. For the development flexibility, the M256SD target board provides the extension connectors, the Arduino UNO compatible headers and the capability of adopting multiple power supplies.
NuMaker-M256SD FEATURES NuMicro M256SD2AE used as main microcontroller with function compatible with: M254MD2AE – M254SD2AE – M256MD2AE – M256SD2AE full pins extension connectors HTN-LCD panel can be plugged into extension connectors – Arduino UNO compatible extension connectors ...
NuMaker-M256SD HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connectors Switch Reset Button External V Connector USB Power Connector Ammeter VCOM Switch ICE USB Connector TK1 Touch Key ICE Chip: M48SSIDAE TK3 Shielding ICE Status LED Off-line Program Button External V Connector External V Connector...
NuMaker-M256SD Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M256SD. The following lists components and connectors from the rear view: Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – ICEVCC Power Switch MCUVCC Power Switch Figure 3-2 Rear View of NuMaker-M256SD May 20, 2022...
NuMaker-M256SD Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5, JP6, JP7, Full pins extension connectors on the NuMaker-M256SD. JP8, JP9 and JP10 NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-M256SD. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M256SD provides the M256SD2AE onboard and extension connectors (JP3, JP4, JP5, JP6, JP7, JP8, JP9 and JP10).
NuMaker-M256SD Power Supply Configuration The NuMaker-M256SD is able to adopt multiple power supplies. External power sources include NU1 Vin (7 V to 12 V), V (depending on the target chip operating voltage), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker- M256SD.
NuMaker-M256SD 3.4.3 3.3 V Power Sources Table 3-7 presents the 3.3 V power sources. Voltage 5 V Source Description Regulator ICEUP1 converts USB_HS_VBUS to 3.3 V and ICEUP1 USB_HS_VBUS supplies 3.3 V to M256SD target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M256SD target board.
NuMaker-M256SD 3.4.6 USB Connectors Table 3-10 presents the USB connectors. Connector Description ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ3 programming from PC. USB Power connector on NuMaker-M256SD for power supply. Table 3-10 USB Connectors 3.4.7 Power Switches Table 3-11 presents the power switches.
NuMaker-M256SD 2. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 3. Switch the SW2 to OFF. 4. Connect the external power supply to ICEJ3. Table 3-12 presents all power models when supplying external power through Nu-Link2-Me. The Nu- Link2-Me external power sources are highlighted in yellow.
NuMaker-M256SD 2. Remove the resistor on ICEJPR1 (MCUVCC). 3. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 4. Connect ICEJ3 to PC. 5. Connect the external power supply to JP1. To use Vin or J2 as external power supply source with Nu-Link2-Me detached from NuMaker- M256SD, please follow the steps below: Switch the SW2 depending on the target chip operating voltage.
NuMaker-M256SD Table 3-13 presents all power models when supplies external power through M256SD target board. The M256SD target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection Selection 7 V ~ 12 V Remove...
NuMaker-M256SD External Reference Voltage Connector Table 3-14 presents the external reference voltage connector. Connector Description Connector for user to connect to the external reference voltage pin of the VREF1 target chip. User needs to remove the L5 ferrite bead. Table 3-14 External Reference Voltage Connector Ammeter Connector Table 3-15 presents the ammeter connector.
NuMaker-M256SD 3.10 LCD Panel The LCD on the NuMaker-M256SD with 8 x 26 COM/SEG can be used to show some information such as time, battery status, temperature, and humidity. The part number of LCD panel is RHE6616TP01 made by TRICOMTEK. Figure 3-9 shows the LCD digit segment mapping table. Table 3-20 shows the pin map for the LCD.
NuMaker-M256SD 3.11 Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer. The Nu-Link2-Me supports on- chip debugging, online and offline ICP programming through SWD interface. The Nu-Link2-Me also supports virtual COM port (VCOM) for printing debug messages on PC. Besides, the programming status could be shown on the built-in LEDs.
NuMaker-M256SD 3.11.2 Status LEDs Table 3-22 presents the status LEDs patterns for different operation on Nu-Link2-Me. Status LED Operation Status ICES0 ICES1 ICES2 ICES3 Boot Flash x 3 Flash x 3 Flash x 3 Flash x 3 Idle One Nu-Link2-Me is selected to connect Flash x 3 Flash x 3 Flash x 3...
KEIL MDK Nuvoton edition M0/M23 IAR EWARM NuEclipse GCC (for Windows) NuEclipse GCC (for Linux) Nuvoton Nu-Link Driver Installation Download and install the latest Nuvoton Nu-Link Driver. Download and install Nu-Link_Keil_Driver when using Keil MDK. Download and install Nu-Link_IAR_Driver when using IAR EWARM.
NuMaker-M256SD BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup 1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to ON. Figure 4-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through a USB cable.
NuMaker-M256SD 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 4-6 presents the PuTTY session setting.
NuMaker-M256SD Find the Example Project Use the “Template” project as an example. The project can be found under the BSP folder as shown in Figure 4-7. M251_M252_M254_M256_M258_Series_BSP_CMSIS_V3.XX.XXX SampleCode Template Keil Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
NuMaker-M256SD Figure 4-9 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-10 and Figure 4-11. Figure 4-10 Debugger Setting in Options Window Note: If the dropdown menu in Figure 4-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2.
NuMaker-M256SD 4. Figure 4-13 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 4-14. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-M256SD 4.6.2 IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. 1. Double click the “Template.eww” to open the project. 2. Make sure the toolbar contains “Nu-Link” item as shown in Figure 4-15. Note: If the toolbar does not contain “Nu-Link”...
NuMaker-M256SD 4. Figure 4-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 4-18. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-M256SD Figure 4-19 Import the Project in NuEclipse M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template\GCC) Figure 4-20 Import Projects Windows 3. Click the “Template” project and find the project properties as shown in Figure 4-21. Make sure the settings are the same as settings in Figure 4-22. May 20, 2022 Page 40 of 52 Rev 1.00...
NuMaker-M256SD Figure 4-21 Open Project Properties Window Figure 4-22 Project Properties Settings 4. Click the “Template” project and build the project. May 20, 2022 Page 41 of 52 Rev 1.00...
NuMaker-M256SD Figure 4-23 Build Project 5. After the project is built, click the “Template” project and set the “Debug Configuration” as shown in Figure 4-24. Follow the settings presented in Figure 4-25, Figure 4-26 and Figure 4-27 to enter debug mode. Figure 4-24 Open Debug Configuration May 20, 2022 Page 42 of 52...
NuMaker-M256SD Note 1: Double-click the “GDB Nuvoton Nu-Link Debugging” to create the sub item. Note 2: After the project is built, the “*.elf” file will be shown in “C/C++ Application” frame. Figure 4-25 Main Tab Configuration Figure 4-26 Debugger Tab Configuration...
NuMaker-M256SD Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration May 20, 2022 Page 44 of 52 Rev 1.00...
NuMaker-M256SD 6. Figure 4-28 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 4-29. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-M256SD Touch Key Figure 5-4 shows touch key of NuMaker-M256SD. PD15_TK0 PA5_NU3_D8_TK1 PA3_NU3_D10/SS_TK3 Touch Keys offpage CTKey 0.8x08 (NC) REF (NC) Touch Key reference PCB Touch Keys TOP SHILED SHILEDING1 Top Layer Shielding SHILEDING (NC) Ti t l e NuMaker-PFM-M256SD Si z e D ocum ent N um ber R ev...
NuMaker-M256SD PCB Placement Figure 5-5 and Figure 5-6 show the front and rear placement of NuMaker-M256SD. Figure 5-5 Front Placement Figure 5-6 Rear Placement May 20, 2022 Page 50 of 52 Rev 1.00...
NuMaker-M256SD REVISION HISTORY Date Revision Description Initial version. 2022.05.20 1.00 May 20, 2022 Page 51 of 52 Rev 1.00...
Page 52
NuMaker-M256SD Important Notice Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.
Need help?
Do you have a question about the NuMicro NuMaker-M256SD and is the answer not in the manual?
Questions and answers