background image

NuMaker-M031TC

 

 

Feb. 

20, 2019 

Page 

33

 of 36 

Rev 1.00 

N

UMA

K

E

R

-M0
31
T

C

 U

S

E

R

 MA

N

UA
L

 

Ma
k

er Nu

-m

be
d

 NUC

47

Us
er Man

ua

 

 

M031 Platform 

4.2

Figure 4-2 shows the M031 platform circuit. 

 

Figure 4-2 M031 Platform Circuit 

 

 

PC0_NU4_SDA

PC1_NU4_SCL

VDD

J1

HEADER 2.54 5X2 (NC)

1

2

3

4

5

6

7

8

9

10

PA12_NU3_D2

TICEDAT
TICECLK

PA13_NU3_D3

PB12_RXD0

PB13_TXD0

ICE

PA14_NU3_D4
PA15_NU3_D5

P19
P20

SW1

3x6x5 2PIN SMD

SW-2P-SMD

P21

C9
1u

C0603

R3
10KR

R0603

P24

P22
P23

RESET

VDD

nRESET

PF0_ICE_DAT

P17

PF1_ICE_CLK

P18

VDD_MCU

PB14_NU2_A1

VDD_MCU

LDO_CAP

GND

AVDD

MCU_TX
MCU_RX

PB15_NU2_A0

LDO_CAP

P26

P25

PB14_LED_R

P29

P28

P32

VDD_2

P27

PB12_RXD0

P31

PB13_TXD0

P30

1

2

LEDG1
Green

LED0805

PB2_NU3_D0/RX

PB3_NU3_D1/TX

PB4_NU2_A3

PB5_NU2_A2

PB0_NU2_A4/SDA/RX

PB1_NU2_A5/SCL/TX

PF4_X32_OUT

PF5_X32_IN

SW2

SMD HPS602-E

PF2_XT1_OUT

PA2_NU3_D13/CLK

PA0_NU3_D11/MOSI
PF15

PA1_NU3_D12/MISO

PA3_NU3_D10/SS

TICERST

nRESET

PF1_ICE_CLK

PF0_ICE_DAT

R14
100KR

R0603

R13
100KR

R0603

UP2
AMS1117_5v

IN

3

GN

D

1

OU

T

2

OU

T

4

Title

Size

Document Number

Rev

Date:

Sheet

of

NuMaker-M031TC

v1.1

M031TC1AE

Custom

2

3

Thursday , January  24, 2019

Bypass Cap

P17 - P24

P9 - P16

P1 - P8

P25 - P32

NU1_VIN

R7
330R

R0603

1

2

D2

SS24A

C3
0.1u

C0603

C5
1u

C0603

R6
330R

R0603

CT5
10uF/10V

TANT-A

1

2

1

2

LEDR1
Red

LED0805

VDD

VDD_MCU

VDD

VDD_MCU

PF2_XT1_OUT

P10

P14

P13

P12

P11

nRESET

P16

P15

P1

P5

P4

P3

P2

P6

PF5_X32_IN

P7

PF4_X32_OUT

P8

1

2

D1

SS24A

USB Device

UP1
AMS1117_3.3v

IN

3

GN

D

1

OU

T

2

OU

T

4

NU1_3VCC

CT4
10uF/10V

TANT-A

1

2

NU1_5VCC

ADAVSS

PF2_XT1_OUT

PF3_XT1_IN

R16

0

R2

0

AMMETER
NC

1

2

R5

0

MCUVCC_DIODE

C8

20p

X1
32MHz 49S SMD

XTAL\LP\SMD

C2

20p

HXT & LXT Crystal

X2

SMD 32.768K X3215

9HT9

PF4_X32_OUT

PF5_X32_IN

R1

0

R4

0

C1

20p

C7

20p

JP2

NC

1
2
3
4

JP1

NC

1
2
3
4

C12
0.1u

VDD

AVDD

C11
0.1u

CT2

10uF/10V

1

2

CT3

10uF/10V

1

2

L2

FERRITE BEAD

L4

FERRITE BEAD

Power

C13
0.01u

LED

U2

<M031TC1AE>

PB.

5/

AD

C

0_C

H

5/

I2C

0_SC

L/

PW

M

0_C

H

0/

U

AR

T

2_T

XD

/T

M

0/

IN

T

0

1

PB.

4/

AD

C

0_C

H

4/

I2C

0_SD

A/

PW

M

0_C

H

1/

U

AR

T

2_R

XD

/T

M

1/

IN

T

1

2

PB.

3/

AD

C

0_C

H

3/

I2C

1_SC

L/

U

AR

T

1_T

XD

/PW

M

0_C

H

2/

PW

M

0_BR

AKE0/

T

M

2/

IN

T

2

3

PB.

2/

AD

C

0_C

H

2/

I2C

1_SD

A/

U

AR

T

1_R

XD

/PW

M

0_C

H

3/

T

M

3/

IN

T

3

4

PB.

1/

AD

C

0_C

H

1/

U

AR

T

2_T

XD

/I

2C

1_SC

L/

PW

M

0_C

H

4/

PW

M

0_BR

AKE0

5

PB.

0/

AD

C

0_C

H

0/

U

AR

T

2_R

XD

/SPI

0_I

2SM

C

LK/

I2C

1_SD

A/

PW

M

0_C

H

5/

PW

M

0_BR

AKE1

6

PF

.5/

U

AR

T

2_R

XD

/U

AR

T

2_nC

T

S/

PW

M

0_C

H

0/

X32_I

N

/AD

C

0_ST

7

PF

.4/

U

AR

T

2_T

XD

/U

AR

T

2_nR

T

S/

PW

M

0_C

H

1/

X32_OU

T

8

PF.3/UART0_TXD/I2C0_SCL/XT1_IN

9

PF.2/UART0_RXD/I2C0_SDA/XT1_OUT

10

PA.3/SPI0_SS/UART1_TXD/I2C1_SCL/PWM0_CH2/CLKO

11

PA.2/SPI0_CLK/UART1_RXD/I2C1_SDA/PWM0_CH3

12

PA.1/SPI0_MISO/UART0_TXD/UART1_nCTS/PWM0_CH4

13

PA.0/SPI0_MOSI/UART0_RXD/UART1_nRTS/PWM0_CH5

14

PF.15/PWM0_BRAKE0/PWM0_CH1/TM2/CLKO/INT4

15

nRESET

16

PF

.0/

U

AR

T

1_T

XD

/I

2C

1_SC

L/

U

AR

T

0_T

XD

/I

C

E_D

AT

17

PF

.1/

U

AR

T

1_R

XD

/I

2C

1_SD

A/

U

AR

T

0_R

XD

/I

C

E_C

LK

18

PC

.1/

U

AR

T

2_T

XD

/I

2C

0_SC

L

19

PC

.0/

U

AR

T

2_R

XD

/I

2C

0_SD

A

20

PA.

12/

I2C

1_SC

L

21

PA.

13/

I2C

1_SD

A

22

PA.

14/

U

AR

T

0_T

XD

23

PA.

15/

U

AR

T

0_R

XD

24

VSS

25

LDO_CAP

26

VDD

27

PB.15/ADC0_CH15/SPI0_SS/UART0_nCTS/TM0_EXT/PWM0_BRAKE1

28

PB.14/ADC0_CH14/SPI0_CLK/UART0_nRTS/TM1_EXT/CLKO

29

PB.13/ADC0_CH13/SPI0_MISO/UART0_TXD/TM2_EXT

30

PB.12/ADC0_CH12/SPI0_MOSI/UART0_RXD/TM3_EXT

31

AVDD

32

VSS

33

L1

FERRITE BEAD

P7

P2

P4

P8

P5

P6

P1

P3

P14

P15

P11
P10

P12

P16

P13

P9

ICE5V

P20

P19

P18

P17

P24

P23

P22

P21

PB14_LED_R

C10
0.1u

CT1

1uF/16V

1

2

USB_VBUS

L3

FERRITE BEAD

L0603

J2

micro USB 5pin

MICRO_USB_AB

VBUS

1

D-

2

D+

3

GND

5

ID

4

Shield

6

Shield

7

Shield

8

Shield

9

Shield

10

Shield

11

USB_VBUS

P28

P27

P26

P25

P32

P31

P30

P29

H1

H-3.4X6(NC)

1

H2

H-3.4X6(NC)

1

H4

H-3.4X6(NC)

1

H3

H-3.4X6(NC)

1

Mounting Hole

LDO_CAP

VDD_2

PF3_XT1_IN

PF3_XT1_IN

P9

VDD

NU1_3VCC

NU1_5VCC

R12

0(NC)

Summary of Contents for NuMaker-M031TC

Page 1: ...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 based s...

Page 2: ...es 14 2 5 3 3 3 V Power Sources 14 2 5 4 1 8V Power Sources 15 2 5 5 Power Connectors 15 2 5 6 USB Connectors 15 2 5 7 Power Switches 15 2 5 8 Power Supply Models 16 2 5 9 Ammeter Connector 19 2 5 10...

Page 3: ...NuMaker M031TC Feb 20 2019 Page 3 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U Nu Link2 Me 32 4 1 M031 Platform 33 4 2 Extension Connector 34 4 3 5 REVISION HISTORY 35...

Page 4: ...llation Setup 22 Figure 3 2 Nu Link USB Driver Installation 23 Figure 3 3 Open VCOM Function 24 Figure 3 4 ICE USB Connector 24 Figure 3 5 Device Manger 25 Figure 3 6 PuTTY Session Setting 25 Figure 3...

Page 5: ...Power Source 14 Table 2 4 5V Power Sources 14 Table 2 5 3 3 V Power Sources 14 Table 2 6 1 8V Power Sources 15 Table 2 7 Power Connectors 15 Table 2 8 USB Connectors 15 Table 2 9 Power Switches 15 Ta...

Page 6: ...or the microcontroller s power consumption during development The Nu Link2 Me is a debugger and programmer that supports on line programming and debugging through SWD interface The on board 16 Mbit SP...

Page 7: ...2019 Page 7 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U ICE USB connector on Nu Link2 Me On board Nu Link2 Me debugger and programmer Debug through SWD interface On line off line programming Virt...

Page 8: ...1 Platform Figure 2 1 Front View of NuMaker M031TC Figure 2 1 shows the main components and connectors from the front side of NuMaker M031TC The following lists components and connectors from the fron...

Page 9: ...gure 2 2 shows the main components and connectors from the rear side of NuMaker M031TC The following lists components and connectors from the rear view Nu Link2 Me MCUVCC Power Switch ICEJPR1 ICEVCC P...

Page 10: ...OSI PWM0_CH5 PA 0 D11 SPI0_MISO PWM0_CH4 PA 1 D12 SPI0_CLK PWM0_CH3 PA 2 D13 VSS VSS AVDD VREF I2C0_SCL PC 0 SDA I2C0_SDA PC 1 SCL UART1_RXD PWM0_CH2 PB 2 D0 UART1_TXD PWM0_CH3 PB 3 D1 PA 12 D2 PA 13...

Page 11: ...A4 PB 0 NU3 3 D2 PA 12 NU2 4 A3 PB 4 NU3 4 D3 PA 13 NU2 3 A2 PB 5 NU3 5 D4 PA 14 NU2 2 A1 PB 14 NU3 6 D5 PA 15 NU2 1 A0 PB 15 NU3 7 D6 NC N U 1 NU1 8 VIN NU3 8 D7 NC NU1 7 VSS N U 3 NU4 1 D8 NC NU1 6...

Page 12: ...ssignment for Extension Connectors 2 4 The NuMaker M031TC provides the M031TC1AE target chip onboard and full pins extension connectors JP3 JP4 JP5 and JP6 The Figure 2 4 shows the M031TC1AE extension...

Page 13: ...0_CH2 CLKO JP5 7 JP5 8 12 PA 2 SPI0_CLK UART1_RXD I2C1_SDA PWM0_CH3 JP5 9 JP5 10 13 PA 1 SPI0_MISO UART0_TXD UART1_nCTS PWM0_CH4 JP5 11 JP5 12 14 PA 0 SPI0_MOSI UART0_RXD UART1_nRTS PWM0_CH5 JP5 13 JP...

Page 14: ...J2 USB_VBUS USB connector on NuMaker M031TC supplies 5 V power from PC to M031 platform and Nu Link2 Me NU1 pin5 NU1_5VCC ICEJ3 J2 or NU1 pin8 supplies 5 V power to NU1 pin5 NU1 pin5 supplies 5 V pow...

Page 15: ...e NuMaker M031TC JP2 VSS connector on the NuMaker M031TC Table 2 7 Power Connectors 2 5 6 USB Connectors Table 2 8 presents the USB connectors Connector Comment ICEJ3 ICE USB connector on Nu Link2 Me...

Page 16: ...chip operating voltage 3 Switch the SW2 to OFF 4 Connect the external power supply to JP1 Table 2 10 presents all power models when supplies external power through Nu Link2 Me The Nu Link2 Me externa...

Page 17: ...t the external power supply to Vin or J2 To use JP1 as external power supply source please follow the below steps 1 Switch the SW2 to OFF 2 Remove the resistor on ICEJPR1 MCUVCC 3 Solder the resistor...

Page 18: ...VCC 3 3 V output Remove resistor 3 3 V 3 3 V 6 5 V 7 V 12 V Input X Ignore NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V 7 5 V X Connect to PC Ignore NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V...

Page 19: ...al VSS Connector JP2 Separate Nu Link2 Me Figure 2 8 Wiring between Ammeter Connector and Ammeter 2 5 10 Extension Connectors Table 2 13 presents the extension connectors Connector Comment JP3 JP4 JP5...

Page 20: ...s on line programming and debugging through SWD interface The on board 16 Mbit SPI Flash allows it to off line program the target microcontroller Additionally the Nu Link2 Me provides virtual COM port...

Page 21: ...b 20 2019 Page 21 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U PCB Placement 2 7 Figure 2 9 and Figure 2 10 show the front and rear placement of NuMaker M031TC Figure 2 9 Front Placement Figure 2 1...

Page 22: ...EWARM NuEclipse GCC Windows NuEclipse GCC Linux Nuvoton Nu Link Driver Installation 3 2 Download and install the latest Nuvoton Nu Link Driver Download and install Nu Link_Keil_Driver when using Keil...

Page 23: ...NuMaker M031TC Feb 20 2019 Page 23 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U Figure 3 2 Nu Link USB Driver Installation...

Page 24: ...he Board Support Package BSP Hardware Setup 3 4 1 Open the virtual COM VCOM function by changing Nu Link2 Me VCOM Switch No 1 and 2 to ON Figure 3 3 Open VCOM Function 2 Connect the ICE USB connector...

Page 25: ...v 1 00 NUMAKER M031TC USER MANUAL M m U Figure 3 5 Device Manger 4 Open a serial port terminal PuTTY for example to print out debug message Set the speed to 115200 Figure 3 6 presents the PuTTY sessio...

Page 26: ...he Project under Toolchains 3 6 Open and execute the project under the toolchain The section 3 6 1 3 6 2 and 3 6 3 describe the steps of executing project in Keil MDK IAR EWARM and NuEclipse respectiv...

Page 27: ...Project File Migrate to Version 5 Format 2 Make sure the debugger is Nuvoton Nu Link Debugger as shown in Figure 3 10 and Figure 3 11 Note If the dropdown menu in Figure 3 10 does not contain Nuvoton...

Page 28: ...compile the project download code to the flash memory Click Start Stop Debug Section button can enter debug mode 1 3 2 4 1 Rebuild 3 Download 4 Start Stop Debug 2 Successfully compile Figure 3 12 Com...

Page 29: ...UMAKER M031TC USER MANUAL M m U source code assembly language peripherals registers and setting breakpoint step run value monitor etc 2 Stop 3 1 2 1 Run 3 Reset Figure 3 13 Keil MDK Debug Mode Figure...

Page 30: ...ww to open the project 2 Make sure the toolbar contain Nu Link item as shown in Figure 3 15 Note If the toolbar does not contain Nu Link item please rework section 3 2 Figure 3 15 IAR EWARM Window 3 M...

Page 31: ...n Figure 3 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 1 2 3 1 Go 3 Reset 2 Break F...

Page 32: ...B_VDD33 HXT_O HXT_I ICEC10 20p C0603 ICEC11 20p C0603 12M Crystal ICEX1 12MHz SMD X3225B 1 XIN 2 GND 4 GND 3 XOUT 3 3V SPIM_MISO0 ICEU2 W25Q16JVSSIQ SOP8 5 23 1 27MM CS 1 DO 2 WP 3 GND 4 DI 5 CLK 6 HO...

Page 33: ...JP2 NC 1 2 3 4 JP1 NC 1 2 3 4 C12 0 1u VDD AVDD C11 0 1u CT2 10uF 10V 1 2 CT3 10uF 10V 1 2 L2 FERRITE BEAD L4 FERRITE BEAD Power C13 0 01u LED U2 M031TC1AE PB 5 ADC0_CH5 I2C0_SCL PWM0_CH0 UART2_TXD T...

Page 34: ...NU2_A2 PB0_NU2_A4 SDA RX PB1_NU2_A5 SCL TX PB2_NU3_D0 RX P24 P32 LDO_CAP GND AVDD VDD_MCU MCU_TX MCU_RX PB15_NU2_A0 PB14_NU2_A1 External Connector UNO Interface P1 P8 P9 P18 P2 P4 P3 P1 P8 P7 P6 P5 Ti...

Page 35: ...NuMaker M031TC Feb 20 2019 Page 35 of 36 Rev 1 00 NUMAKER M031TC USER MANUAL M m U 5 REVISION HISTORY Date Revision Description 2019 02 20 1 00 1 Initially issued...

Page 36: ...sage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safety system...

Reviews: