m487 intelligent power station user manual - nuvoton · m487 intelligent power station nov. 28,...

57
M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 M487 INTELLIGENT POWER STATION USER MANUAL ARM ® Cortex ® -M 32-bit Microcontroller M487 Intelligent Power Station User Manual NuMicro ® M480 Series 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 based system design. Nuvoton assumes no responsibility for errors or omissions. All data and specifications are subject to change without notice. For additional information or questions, please contact: Nuvoton Technology Corporation. www.nuvoton.com

Upload: others

Post on 07-Oct-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 1 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

ARM® Cortex

®-M

32-bit Microcontroller

M487

Intelligent Power Station

User Manual NuMicro

® M480 Series

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 based system design. Nuvoton assumes no responsibility for errors or omissions.

All data and specifications are subject to change without notice.

For additional information or questions, please contact: Nuvoton Technology Corporation.

www.nuvoton.com

Page 2: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 2 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Table of Contents

1 Overview ............................................................................................. 7

Brief Function Introduction on Boards ............................................................. 10 1.1

1.1.1 NuMaker-emWin-M487D Board ............................................................................ 10

1.1.2 M487 Smart Power Board ................................................................................... 12

1.1.3 DALI Master and Slave Boards ............................................................................. 13

1.1.4 NuMaker-IoT-M487 Board and NuTFT-SPI_320x240 Daughter Board .............................. 14

UART Protocol between Boards ................................................................... 15 1.2

1.2.1 Communication Protocols ................................................................................... 15

1.2.2 UART Packet Format ........................................................................................ 16

1.2.3 UART Command and Status Packets ..................................................................... 16

Setup Flows of Intelligent Power Station Demonstration ....................................... 18 1.3

Resource Information ................................................................................ 20 1.4

2 NuMaker-emWin-M487D Board ............................................................... 21

NuMaker-emWin-M487D Board Overview ........................................................ 21 2.1

Human-Machine Interface (HMI) ................................................................... 22 2.2

2.2.1 Boot Animation ................................................................................................ 22

2.2.2 Main Screen ................................................................................................... 22

2.2.3 Socket Screen ................................................................................................. 23

2.2.4 Power Screen ................................................................................................. 24

2.2.5 DALI Screen ................................................................................................... 27

2.2.6 Music Screen .................................................................................................. 28

3 NuMaker-IoT-M487 and NuTFT-SPI_320x240 Daughter Boards ........................ 29

Board Overview ....................................................................................... 29 3.1

3.1.1 NuMaker-IoT-M487 Board................................................................................... 29

3.1.2 NuTFT-SPI_320x240 Daughter Board .................................................................... 30

Speech Recognition .................................................................................. 32 3.2

4 M487 Smart Power Board ...................................................................... 33

M487 Smart Power Board Overview .............................................................. 33 4.1

M487 Smart Power Board Features ............................................................... 34 4.2

Front View of Main Board ........................................................................... 35 4.3

Rear View of Main Board ............................................................................ 37 4.4

Front View of Daughter Board ...................................................................... 38 4.5

Rear View of Daughter Board ....................................................................... 38 4.6

Page 3: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 3 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

The Pin Function of M487 Chip on M487 Smart Power Board ................................ 39 4.7

PCB Placement ....................................................................................... 43 4.8

M487 Smart Power Schematics .................................................................... 44 4.9

4.9.1 Nu-Link-Me (ICE Bridge) .................................................................................... 44

4.9.2 N487 Chip ...................................................................................................... 45

4.9.3 AC Power ...................................................................................................... 46

4.9.4 DC Power ...................................................................................................... 47

4.9.5 MCU Connector ............................................................................................... 48

4.9.6 SPI Flash ....................................................................................................... 49

4.9.7 UART to DALI ................................................................................................. 50

4.9.8 UART to Wi-Fi ................................................................................................. 51

4.9.9 UART to LCD .................................................................................................. 53

4.9.10 LED and GPIO Connector ................................................................................... 54

4.9.11 USB Daughter Board ......................................................................................... 55

5 REVISION HISTORY ............................................................................ 56

Page 4: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 4 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

List of Figures

Figure 1-1 Demonstration Hardware of M487 Intelligent Power Station System ............................ 7

Figure 1-2 M487 Power Station Case .............................................................................................. 8

Figure 1-3 Contents inside M487 Power Station Case .................................................................... 8

Figure 1-4 Hardware Structure of M487 Intelligent Power Station System ..................................... 9

Figure 1-5 NuMaker-emWin-M487D Board ................................................................................... 10

Figure 1-6 Reworked NuMaker-emWin-M487D Board .................................................................. 11

Figure 1-7 M487 Smart Power Board ............................................................................................ 12

Figure 1-8 DALI Master and Slave Boards .................................................................................... 13

Figure 1-9 NuMaker-IoT-M487 Board and NuTFT-SPI_320x240 Daughter Board ....................... 14

Figure 1-10 Block Diagram of Intelligent Power Station ................................................................ 15

Figure 1-11 Wi-Fi LED on Intelligent Power Station Case ............................................................. 18

Figure 1-12 Indicated LED on NuMaker-IoT-M487 Board ............................................................. 19

Figure 1-13 Applications on Nuvoton Website ............................................................................... 20

Figure 1-14 Software Package....................................................................................................... 20

Figure 2-1 NuMaker-emWin-M487D Board ................................................................................... 21

Figure 2-2 Boot Animation ............................................................................................................. 22

Figure 2-3 Main Screen .................................................................................................................. 23

Figure 2-4 Socket Screen (Ex. AC1 and DC2/USB2 Sockets are ON) ......................................... 24

Figure 2-5 Timer Page ................................................................................................................... 25

Figure 2-6 Current Page ................................................................................................................ 26

Figure 2-7 Cost Page ..................................................................................................................... 27

Figure 2-8 DALI Screen ................................................................................................................. 28

Figure 2-9 Nuvoton GIF Files Replaying ........................................................................................ 28

Figure 3-1 NuMaker-IoT-M487 Board ............................................................................................ 29

Figure 3-2 NuTFT-SPI_320x240 Daughter Board ......................................................................... 30

Figure 3-3 The Flow of Speech Recognition .................................................................................. 32

Figure 4-1 M487 Smart Power Board ............................................................................................ 33

Figure 4-2 Front View of Main Board on M487 Smart Power Board ............................................. 36

Figure 4-3 Rear View of Main Board on M487 Smart Power Board .............................................. 37

Figure 4-4 Front View of Daughter Board on M487 Smart Power Board ...................................... 38

Figure 4-5 Rear View of Daughter Board on M487 Smart Power Board ....................................... 38

Figure 4-6 Front Placement of Main Board .................................................................................... 43

Figure 4-7 Front Placement of Daughter Board ............................................................................. 43

Figure 4-8 Nu-Link-Me Circuit ........................................................................................................ 44

Figure 4-9 M487 Chip Circuit ......................................................................................................... 45

Figure 4-10 AC Power Circuit ........................................................................................................ 46

Page 5: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 5 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Figure 4-11 DC Power Circuit ........................................................................................................ 47

Figure 4-12 MCU Connector Circuit ............................................................................................... 48

Figure 4-13 SPI Flash Circuit ......................................................................................................... 49

Figure 4-14 UART to DALI Circuit .................................................................................................. 50

Figure 4-15 UART to Wi-Fi Circuit ................................................................................................. 51

Figure 4-16 Wi-Fi Module Daughter Board .................................................................................... 51

Figure 4-17 Wi-Fi Daughter Board Circuit ...................................................................................... 52

Figure 4-18 UART to LCD Circuit................................................................................................... 53

Figure 4-19 LED and GPIO Connector Circuit ............................................................................... 54

Figure 4-20 USB Daughter Board Circuit ....................................................................................... 55

Page 6: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 6 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

List of Tables

Table 1-1 Dedicated LED Components on Reworked NuMaker-emWin-M487D Board ............... 11

Table 3-1 GPIO Pins of M487 Chip Connected with NuTFT-SPI_320x240 Daughter Board ........ 31

Table 4-1 Dedicated Function on Pin1~36 of M487 Chip .............................................................. 39

Table 4-2 Dedicated Function on Pin37~72 of M487 Chip ............................................................ 40

Table 4-3 Dedicated Function on Pin73~108 of M487 Chip .......................................................... 41

Table 4-4 Dedicated Function on Pin109~144 of M487 Chip ........................................................ 42

Table 4-5 UART Connection between Wi-Fi Daughter and M487 Smart Power Boards .............. 52

Table 4-6 UART Connection between NuMaker-emWin-M487D and M487 Smart Power Boards53

Page 7: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 7 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

1 OVERVIEW

This user manual aims for giving users a whole and detailed introduction about the M487 Intelligent Power Station. Figure 1-1 shows the demonstration hardware for whole the M487 Intelligent Power Station system. In this demonstration system, users can turn on or turn off the power switches of the AC sockets and USB sockets inside the M487 Power Station case thru the remote controlling by the smart phone or thru the local controlling by the touch finger on the LCD panel on the M487 Power Station case. On the other hand, users also can monitor the real-time current and power consumption that passing through on each turned-on AC or USB socket on the TFT LCD screen or on the APP of remote cellphone.

DALI Master/Slave

M487 Power Station Case

AC Sockets

USB Sockets

TFTLCD

Speech Recognition Input

LED

UART Cable

AC Power Cableand Plug

Wi-Fi Hotspot

Smart Phone

LED

Wi-Fi

Wi-Fi

Cloud

Figure 1-1 Demonstration Hardware of M487 Intelligent Power Station System

After opened the M487 Power Station case, users can find a lots of components and boards inside this M487 Power Station case that shown in the Figure 1-2 below.

Page 8: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 8 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Figure 1-2 M487 Power Station Case

Figure 1-3 shows all the contents inside the M487 Power Station case. It includes mainly a NuMaker-emWin-M487D board with TFT LCD panel (top), a M487 Smart Power (V1.1) board (bottom), a Wi-Fi module board (middle), an AC-to-DC5V adaptor, three AC sockets, three USB sockets and some LED components.

M487 Smart Power Board

(Bottom)

NuMaker-emWin-M487D Board

(Top)

AC Sockets

USB Sockets

TFT LCD(QVGA)

LED

Wi-Fi Module Board

(Middle)

LED

AC to DC5V Adaptor

Figure 1-3 Contents inside M487 Power Station Case

Page 9: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 9 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Figure 1-4 shows the whole hardware structure of M487 Intelligent Power Station system. The M487 Intelligent Power Station system consists of a NuMaker-emWin-M487D board with TFT LCD panel, a M487 Smart Power board with AC and USB sockets, a NuMaker-IoT-M487 board with a microphone, a DALI combination board consisted of master and slave boards that based on the DALI 2.0 specification, a Wi-Fi hotspot and a smart phone. This whole application system uses UART interface and Wi-Fi module to communicate the commands and data between these boards.

UART UART

Cloud

Wi-Fi

HMI Based on emWin Engine(QVGA LCD with Touch)

Power Switches Control and Current Measurement

(AC Socket x 3, USB Socket x 3)

Lighting Control(Lux, Fade-out Time)

Wi-Fi

Speech Recognition and Display (Arm Mbed® OS)

NuMaker-emWin-M487D Board DALI Master/Slave Boards

M487 Smart Power Board

NuMaker-IoT-M487 and NuTFT-SPI_320x240 Daughter Boards

MIC

Smart Phone

Wi-Fi Hotspot

Figure 1-4 Hardware Structure of M487 Intelligent Power Station System

Page 10: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 10 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Brief Function Introduction on Boards 1.1

1.1.1 NuMaker-emWin-M487D Board

The NuMaker-emWin-M487D board shown in the Figure 1-5 below provides user the Human-Machine Interface (HMI) function. Users can control the power switches to turn on or turn off the power on these AC sockets and USB sockets on M487 Smart Power board by touch finger input on TFT LCD screen. On the other hand, the real-time current and power consumption of each be turned-on socket are displayed on the TFT LCD screen and the On/Off status also shown on LED.

In this M487 Intelligent Power Station application and for the destination to fit all hardware boards into the case, users can find some components of NuMaker-emWin-M487D board are be removed and be replaced with LEDs. Figure 1-6 shows the reworked NuMaker-emWin-M487D board.

This NuMaker-emWin-M487D board is a master role in this M487 Intelligent Power Station application. It arbitrates the speech recognition command passed from NuMaker-IoT-M487 board through the Wi-Fi module (UART interface) of M487 Smart Power board with the HMI input and then sends the last command by UART to control the power switches to turn on or turn off the power on these AC and USB sockets.

Figure 1-5 NuMaker-emWin-M487D Board

Page 11: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 11 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

LED

AC1

LED

AC2

LED

AC3

LED

DC2

LED

DC1LED

DC3LED

DALI

LED

Wi-Fi

Network

Resistors

330-ohm

Figure 1-6 Reworked NuMaker-emWin-M487D Board

Table 1-1 Dedicated LED Components on Reworked NuMaker-emWin-M487D Board

LED Name Dedicated for GPIO LED ON

LED AC1 AC1 Socket PC.12 Socket power is turned-on

LED AC2 AC2 Socket PG.5 Socket power is turned-on

LED AC3 AC3 Socket PB.14 Socket power is turned-on

LED DC1 DC1/USB1 Socket PB.1 Socket power is turned-on

LED DC2 DC2/USB2 Socket PG.1 Socket power is turned-on

LED DC3 DC3/USB3 Socket PB.2 Socket power is turned-on

LED Wi-Fi Wi-Fi Module PH.6 Wi-Fi is connecting (flashing) or

connected (always on)

LED DALI DALI Board PH.7 DALI board is connected

Page 12: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 12 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

1.1.2 M487 Smart Power Board

The M487 Smart Power board is based on M487JIDAE MCU chip to implement the real power switch controlling and measure the current and power consumption on each AC and USB socket if it is turned-on by the NuMaker-emWin-M487D board. It sends back the real-time current and power consumption to NuMaker-emWin-M487D board to display on the LCD module through the UART interface.

This board also plays the role of UART bridges. It passes the command from NuMaker-emWin-M487D board to the DALI master board through the UART interface with the transceiver. On the other hand, it also passes the speech recognition command through the Wi-Fi module (UART interface) from NuMaker-IoT-M487 board to NuMaker-emWin-M487D board to arbitrate the command with HMI input.

Figure 1-7 shows the M487 Smart Power (V1.1) board.

Figure 1-7 M487 Smart Power Board

Page 13: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 13 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

1.1.3 DALI Master and Slave Boards

The DALI combination board that consists of a DALI master board and a DALI slave board is a slave device in M487 Intelligent Power Station system. It always receives the command passing through the UART interface of M487 Smart Power board from the HMI input of the NuMaker-emWin-M487D board to control the lux and fade-out time of light on the DALI slave board.

Figure 1-8 shows the combination board that combines a DALI master board with a DALI slave board and these two boards meet the DALI 2.0 specification.

Figure 1-8 DALI Master and Slave Boards

Page 14: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 14 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

1.1.4 NuMaker-IoT-M487 Board and NuTFT-SPI_320x240 Daughter Board

The NuMaker-IoT-M487 board is also based on M487JIDAE MCU chip to implement the rich Internet-of-Thing (IoT) applications. In this M487 Intelligent Power Station application, the firmware on the embedded flash of M487 chip has been implemented a speech recognition algorithm with machine learning. The firmware transfers the speech command based on some fixed key words to the NuMaker-emWin-M487D board thru the Wi-Fi module (UART interface) and UART interface of M487 Smart Power board. After speech recognition completed, the TFT LCD of the NuTFT-SPI_320x240 daughter board shows the digit number the result of speech recognition from M487 MCU through the SPI interface.

Figure 1-9 shows the combined picture of NuMaker-IoT-M487 V1.2 board and the NuTFT-SPI_320x240 V1.3 daughter board.

Figure 1-9 NuMaker-IoT-M487 Board and NuTFT-SPI_320x240 Daughter Board

Page 15: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 15 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

UART Protocol between Boards 1.2

Figure 1-10 shows the function block diagram of Intelligent Power Station. There are four main boards to structure this demonstration system.

NuMaker-emWin-M487D Board

NuMaker-IoT-M487 and

NuTFT-SPI Daughter Boards

DALI Master/SlaveBoards

M487 Smart Power

Board

UART UART

Cloud

Wi-Fi

HMI(QVGA LCD with Touch)

Power Switches(AC Socket x 3,USB Socket x 3)

Light(Lux, Fade-out Time)

Microphone Input

Wi-Fi

Voice Recognitionon mbed

Wi-Fi Hotspot

Figure 1-10 Block Diagram of Intelligent Power Station

1.2.1 Communication Protocols

Between these four boards, it uses the UART interface and Wi-Fi module (also based on UART interface) to link each board as listed below. The UART protocol format is (115200, N, 8, 1) that it means the baud-rate is 115200, non-parity check, 8-bit data and 1-bit stop.

NuMaker-IoT-M487 Board (Master) Wi-Fi and AP M487 Smart Power Board (Slave)

NuMaker-emWin-M487D Board (Master) UART M487 Smart Power Board (Slave)

M487 Smart Power Board (Master) UART DALI Master Board (Slave)

Page 16: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 16 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

1.2.2 UART Packet Format

The length of UART packet is seven bytes and the format is listed below.

Leading Code : „@‟ (one byte)

Command Code (one byte)

SET_ON/OFF (0x00)

GET_CURRENT (0x11)

GET_POWER_CONSUMPTION (0x12)

Parameters or Responses (four bytes)

Checksum (one byte, without leading code)

1.2.3 UART Command and Status Packets

There are three commands in the UART communication protocols. The command code is the second byte in the UART packet format.

Command Code 0x00 : SET_ON/OFF Parameter:

Parameter1: Socket number (0~2 for AC, 3~5 DC/USB, 6 for DALI)

Parameter2: Action (0: Off, 1:On, 2:Toggle)

The Toggle command is generated by the speech recognition on the NuMaker-IoT-M487 board through the Wi-Fi. The M487 Smart Power board receives this Toggle command from the Wi-Fi and then passes it to NuMaker-emWin-M487D board to arbitrate the final command with the HMI input.

Parameter3: 0x00 ~ 0xFF (Lux only for DALI)

Parameter4: 0x00 ~ 0x0F (Fade-out time only for DALI)

Response:

Response1: Socket number (0~2 for AC, 3~5 for DC/USB, 6 for DALI)

Response2: On/Off Status (0: Off, 1:On, FF: Not connected with DALI)

Response3: 0x00 ~ 0xFF (Lux only for DALI)

Response4: 0x00 ~ 0x0F (Fade-out time only for DALI)

Command Code 0x11 : GET_CURRENT Parameter:

Parameter1: Socket number (0~2 for AC, 3~5 for DC/USB)

Parameter2: 0x00

Parameter3: 0x00

Parameter4: 0x00

Response:

Response1: Socket number (0~2 for AC, 3~5 for DC/USB)

Page 17: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 17 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Response2: Unit (0: uA, 1: mA, 2: A)

AC current only supports in mA and A units.

DC/USB current only supports in uA and mA units.

Response3: Low byte of current

Response4: High byte of current

AC Current: Current value x 1 in mA unit. Current value x 16 in A unit.

DC/USB Current: Current value x 1 in both uA and mA units.

Command Code 0x12 : GET_POWER_CONSUMPTION Parameter:

Parameter1: Socket number (0~2 for AC, 3~5 for DC/USB)

Parameter2: 0x00

Parameter3: 0x00

Parameter4: 0x00

Response:

Response1: Socket number (0~2 for AC, 3~5 for DC/USB)

Response2: Unit (0: mWHr, 1: WHr, 2: KWHr)

Response3: Low byte of power consumption

Response4: High byte of power consumption

Note: The power consumption value x 50 in both mWHr and WHr units for AC and DC/USB socket.

Page 18: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 18 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Setup Flows of Intelligent Power Station Demonstration 1.3

The setup flows of Intelligent Power Station demonstration are listed below.

Open the Wi-Fi hotspot that set as the following.

SSID name: „MB‟

Password: „035770066‟

Plug-in the plug of Intelligent Power Station case to the AC power socket on the wall and power on the NuMaker-IoT-M487 board for speech recognition input.

Check the LED status from flashing (connecting) to always-on (ready) on the Intelligent Power Station case that shown as the following Figure 1-11. When the green Wi-Fi LED is flashing, it means that the Wi-Fi module inside the Intelligent Power Station is trying to connect with the hotspot. When the green Wi-Fi LED is always ON, it means that the Wi-Fi has connected with hotspot and this Intelligent Power Station is ready to receive the speech recognition command from the NuMaker-IoT-M487 board through the Wi-Fi.

Wi-Fi is connecting (LED flash) or

Wi-Fi is connected (LED always ON)

Figure 1-11 Wi-Fi LED on Intelligent Power Station Case

Check the LED status on the NuMaker-IoT-M487 board that shown as the following Figure 1-12. When the red LED is flashing, it means that the Wi-Fi module is trying to connect with the hotspot. When the green LED is flashing, it means that the Wi-Fi has connected with the hotspot and this firmware of M487 chip on this board is ready for speech recognition application. When the yellow LED is at OFF state, it means that this board is ready to receive the speech from the microphone input. When the yellow LED is flashing, it means that this firmware of speech recognition is running.

Page 19: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 19 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Wi-Fi is

connecting

(LED flash)

Wi-Fi is

connected

(LED flash)

Speech recognition

is running

(LED flash)

Figure 1-12 Indicated LED on NuMaker-IoT-M487 Board

HMI touch input on the TFT LCD screen of Intelligent Power Station or microphone input for speech recognition on the NuMaker-IoT-M487 board to control the power switch ON or OFF of AC or DC/USB socket.

Monitor the current and power consumption of the turned-on socket on TFT LCD screen.

Monitor the current, power consumption and ON/OFF status of AC and DC/USB sockets on APP of the remote cellphone.

Page 20: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 20 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Resource Information 1.4

For the hardware and software packages, user has to visit the Applications page on Nuvoton website as the following Figure 1-13 shown to download the related resources and documents about the M487 Intelligent Power Station application.

https://www.nuvoton.com/hq/?__locale=en#

Figure 1-13 Applications on Nuvoton Website

In the downloaded software package, use can find the related example source codes for this M487 Intelligent Power Station as the following Figure 1-14 shown.

HMI emWin source code for NuMaker-emWin-M487D board

Smart Power source code for M487 Smart Power board

SampleCode folder

Figure 1-14 Software Package

Page 21: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 21 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

2 NUMAKER-EMWIN-M487D BOARD

NuMaker-emWin-M487D Board Overview 2.1

The NuMaker-emWin-M487D board consists of a NuMaker-PFM-M487 (Ver 3.0) main board and a NuMaker M487 Advance (Ver 4.0) daughter board. This board provides user the development hardware board based on M487 MCU chip (M487JIDAE) to implement some dedicated applications, especially for the NuMaker emWin GUI display and HMI function on TFT LCD screen with touch input.

Figure 2-1 shows the NuMaker-emWin-M487D board that combined from a NuMaker-PFM-M487 main board (bottom) and NuMaker M487 Advance daughter board (top).

Figure 2-1 NuMaker-emWin-M487D Board

For more detailed information about the NuMaker-emWin-M487D board, please visit Nuvoton NuMicro Family ARM

® Cortex

® -M4 MCUs website to get the related User Manual document.

https://www.nuvoton.com/hq/products/microcontrollers/arm-cortex-m4-mcus/m487-ethernet-series/User-Manual/?__locale=en&resourcePage=Y

Page 22: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 22 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Human-Machine Interface (HMI) 2.2

In this M487 Intelligent Power Station application, the firmware had been implemented with Human-Machine Interface (HMI) function based on the emWin engine and the binary code also had been programmed into the embedded flash of M487 chip on the NuMaker-emWin-M487D board.

Through this HMI interface, users can control the power switches to turn on or turn off the power on these AC sockets and USB/DC sockets on M487 Smart Power board by touch finger input on TFT LCD screen. On the other hand, the real-time current and power consumption of each be turned-on socket are displayed on the TFT LCD screen and the On/Off status also shown on LED.

2.2.1 Boot Animation

For each time, user plugs the AC plug into the AC power socket on the wall to power-on the M487 Power Station case and user will see a boot animation displayed on the TFT LCD screen about three seconds. Figure 2-2 shows the boot animation displayed from some nuvonTon GIF files.

Figure 2-2 Boot Animation

2.2.2 Main Screen

After the ending of boot animation, the following is the Main screen displayed on the TFT LCD screen. The Main screen shows four function icons including Power, DALI, Cam (Camera) and Music as the Figure 2-3 shown.

Page 23: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 23 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Power

Icon

DALI

Icon

Camera

Icon

Music

Icon

Figure 2-3 Main Screen

2.2.3 Socket Screen

After pressed the Power icon on the Main screen, the HMI emWin will enter the Socket screen and user can choose which socket will be controlled or monitored in the M487 Intelligent Power Station. The M487 Intelligent Power Station provides user three AC sockets and three USB/DC sockets to control.

When a power switch of socket is turned-on by user, the color of socket icon will be change from gray to red. On the contrary, the gray socket icon means the power switch of this socket is on OFF state. At the bottom-right corner, it is a Return icon for user to return the last screen. Figure 2-4 shows the Socket Screen that both AC1 socket and DC2/USB2 socket are on ON status.

Page 24: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 24 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Return

Icon

AC1 Icon AC2 Icon AC3 Icon

DC1 Icon DC2 Icon DC3 Icon

Figure 2-4 Socket Screen (Ex. AC1 and DC2/USB2 Sockets are ON)

2.2.4 Power Screen

After pressed one of socket icons on the Socket screen, the HMI emWin will enter its Power screen. There are three pages in the Power screen for each AC and DC/USB socket. These three pages are the Timer page, Current page and Cost page for user to control or monitor the power switch of socket.

Timer Page 2.2.4.1

At the top-left corner of this Timer page, user can see which socket is setting now. At the left side of this screen, user can turn on or turn off this selected socket by switching the ON/OFF icon. User also can set the turn-on time on minute and second by scrolling the wheel at the right side of this screen. For example, if user scrolls the minute wheel at 1 and then presses the ON icon, the power switch of socket will be turned on instantly and be turned off automatically after one minute. If both of minute and second are set at zero, it means the power switch of socket is always on while the socket is turned on. Figure 2-5 shows the Timer page for AC1 socket.

Page 25: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 25 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Cost

Page

Timer

Page

Current

Page

Return

Icon

ON/OFF

Icon

In AC1

Socket

Min.

Wheel

Sec.

Wheel

Figure 2-5 Timer Page

Current Page 2.2.4.2

On this Current page, user can monitor the real-time current that passing through this socket. If the socket is not turned on, the pointer will be kept at the 0 position. Figure 2-6 shows the Current page for AC1 socket.

Page 26: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 26 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Return

Icon

In AC1

Socket

Unit

Pointer

Cost

Page

Timer

Page

Current

Page

Figure 2-6 Current Page

Cost Page 2.2.4.3

On this Cost page, user can see how long has this socket been turned on and this socket‟s total power consumption if this socket is turned on. Figure 2-7 shows the Cost page for AC1 socket.

Page 27: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 27 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Cost

Page

Timer

Page

Current

Page

Return

Icon

In AC1

Socket

Unit

Count Time

Min. : Sec.

Value

Figure 2-7 Cost Page

2.2.5 DALI Screen

After user pressed the DALI icon on the Main screen, the HMI emWin will enter the DALI screen as the following Figure 2-8. At the top-right corner of DALI screen, it shows the status whether a DALI master board has connected with this Intelligent Power Station. If a DALI master board does not connect with this Intelligent Power Station by an UART cable, the color of status will change to red. On the contrary, if a DALI master board has connected with this Intelligent Power Station by an UART cable, the color of status will change to green.

At the bottom-middle side of this screen, user can turn on or turn off the light on the DALI slave board by switching the ON/OFF icon.

The slider at the left side is for user to control the fade-out time of light on the DALI slave board. There are total 16 levels from zero to fifteen. The lesser the value means the fade-out time is shorter. At the right side of this screen, user can see an arc-slider and two +/- icons that can control the brightness (0 to 255) of light on the DALI slave board by sliding the arc-slider or by pressing the + or - icon. The greater the value means the brighter on the light. The fade-out time and brightness of the light can be adjusted immediately when the ON/OFF icon is in ON state. The DALI screen is as Figure 2-8 shown.

Page 28: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 28 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Return

Icon

ON/OFF

IconIncrease Icon

for brightness

Slider for

fade-out time

Arc-slider

for brightness

DALI Status

Red: Not connected

Green: Connected

Decrease Icon

for brightness

Figure 2-8 DALI Screen

2.2.6 Music Screen

After user pressed the Music icon on the Main screen, it will replay the nuvoTon GIF files on the TFT LCD screen as the following Figure 2-9 and then return to the Main screen.

Figure 2-9 Nuvoton GIF Files Replaying

Page 29: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 29 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

3 NUMAKER-IOT-M487 AND NUTFT-SPI_320X240 DAUGHTER BOARDS

Board Overview 3.1

3.1.1 NuMaker-IoT-M487 Board

The NuMaker-IoT-M487 is a development board using Nuvoton M487JIDAE MCU which includes Arm

® Cortex

® -M4 core and rich peripherals. It also has environmental sensor, motion sensor and Wi-

Fi connectivity on board as well as plenty of reference materials to let user to quickly develop IoT device applications.

Furthermore, the board provides several interface and connectors for expansion. There are Arduino Uno compatible interface, mikroBUS

™ interface, NuMaker Brick I

2C connector, and specific I/O

connector to simulate, for example, image sensor interface. Not only can various Arduino or mikroBUS

™ daughter boards be used directly, but it also is convenient for users to connect other

required components.

Figure 3-1 shows the NuMaker-IoT-M487 board and its components.

NuMaker Brick

Connector

NuMaker Brick

Connector

USB ICE

Connector Simulated

CMOS Sensor

Interface

Reset

ICE Controller

M487JIDAEUSB1.1

OTG

USB2.0

OTG

Headset

SPI Flash

Ethernet PHY

mikroBUS

Ethernet RJ-45

Connector

GPIOs

ButtonsLEDs

9-axis

Sensor Env.

Sensor

Wi-Fi

Module

GND

VCC

Arduino UNO

Interface

GND

VCC

SD Card

Slot

NAU88L25

Codec

Figure 3-1 NuMaker-IoT-M487 Board

For more detailed information about the NuMaker-IoT-M487 board, please visit Nuvoton NuMicro Family ARM

® Cortex

® -M4 MCUs website to get the related User Manual document.

https://www.nuvoton.com/hq/products/microcontrollers/arm-cortex-m4-mcus/m487-ethernet-series/User-Manual/?__locale=en&resourcePage=Y

Page 30: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 30 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

3.1.2 NuTFT-SPI_320x240 Daughter Board

This daughter board has a QVGA (320x240 pixels) TFT LCD module and use SPI interface that connected with MCU to control it for display. Figure 3-2 shows the NuTFT-SPI_320x240 daughter board.

QVGA

TFT LCD

ButtonsJoystick

Arduino UNO

Interface

Figure 3-2 NuTFT-SPI_320x240 Daughter Board

For more detailed information about the NuTFT-SPI_320x240 daughter board, please visit Nuvoton NuMicro Family ARM

® Cortex

® -M0 MCUs website to get the related hardware information and User

Manual document.

https://www.nuvoton.com/hq/products/iot-solution/emwin-platform/emwin-platform/numaker-emwin-nuc126/index.html?__locale=en

The Table 3-1 lists the dedicated GPIO pins of M487 chip on NuMaker-IoT-M487 board that used to connect with the TFT LCD module on the NuTFT-SPI_320x240 daughter board for displaying.

Page 31: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 31 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Table 3-1 GPIO Pins of M487 Chip Connected with NuTFT-SPI_320x240 Daughter Board

LCM Interface LCM Function M487 Chip

GPIO GPIO Mode

LCM_SPI_SS LCM SPI chip select PA.11 (SPI2) Output

LCM_SPI_CLK LCM SPI clock PA.10 (SPI2) Output

LCM_SPI_MISO LCM SPI data output PA.9 (SPI2) Input

LCM_SPI_MOSI LCM SPI data input PA.8 (SPI2) Output

LCM_DC LCM command or data PB.2 Output

LCM_RESET LCM reset PB.3 Output

LCM_LED LCM backlight PE.5 Output

Page 32: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 32 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Speech Recognition 3.2

The speech recognition is based on machine learning. A complete deep learning speech recognition system requires two platforms. As Figure 3-3 shows, one is PC platform. We program the deep learning code and train the model by Tensorflow and Python. Due to the supervised learning for the training mode, it is necessary to give the system a large amount of training data and labels. Then extract the features of speech data and train the model by deep neural networks (DNN). Until the system reaches the optimization, we evaluate the accuracy by modifying the training model repeatedly. The other platform is NuMaker-IoT-M487. The speech recognition system can be implemented based on the training parameters from PC platform.

Figure 3-3 The Flow of Speech Recognition

There are ten English digits used for this recognition scheme: One, Two, Three, Four, Five, Six, Seven, Eight, Nine and Zero. The NuMaker-IoT-M487 and the Nu TFT LCD GUI development platforms are utilized in the speech recognition system. When the user says “One” to the microphone, the number “1” will be shown on the LCD panel by identifying the keyword correctly. And the number command will be transferred to the M487 Intelligent Power Station via Wi-Fi to toggle the power switches of the AC sockets (number 1~3) or DC/USB sockets (number 4~6).

For more detailed information about the speech recognition reference design, please visit Nuvoton NuMicro Family ARM

® Cortex

® -M4 MCUs website to get the related application note document and

sample code.

https://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=EC0120180911100446

Page 33: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 33 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4 M487 SMART POWER BOARD

M487 Smart Power Board Overview 4.1

This M487 Smart Power (V1.1) board consists of a main board and a daughter board.

The main board controls and supplies the AC power for the AC power sockets and supplies a stable DC 5V power thru an AC-DC5V adaptor for the system. This board also uses a M487JIDAE chip as microcontroller to control the whole operations on this system. The M487 MCU controls the relay switches for the AC power sockets and measures the currents from the current sensors that monitoring on these AC power sockets by 3-channel ADC inputs of MCU.

The daughter board consists of three sets of MOSFET devices and three USB type-A sockets. The M487 MCU also controls the USB switch devices to supply the DC 5V for these USB type-A sockets and switches the MOSFET devices to measure the currents that passing through these sockets by 9-channel ADC inputs of MCU. These control signals and ADC channels come are connected with the main board thru three connectors.

Figure 4-1 shows the M487 Smart Power (V1.1) board that combined from a main board (bottom) and a daughter board (top).

Main Board

(Bottom)

Daughter Board

(Top)

Figure 4-1 M487 Smart Power Board

Page 34: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 34 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

M487 Smart Power Board Features 4.2

Main board

M487JIDAE MCU (512KB flash, 160KB SRAM).

Nu-Link-Me ICE bridge circuit to download the firmware binary code or to trace the source code in debug mode. It also provides the USB VCOM function to show debugging messages that depended by user.

One DC power jack for an AC-DC5V adaptor input to supply stable 5V power.

Three sets of pair connector pads to connect with three AC power sockets.

Three relay (SRD-05VDC-SL-C) devices.

Three current sensor (ACS714ELCTR-20A-T) devices.

One fuse (20A/250V) to protect the system.

Bridge rectifier (DF1510) and phototransistor coupler (4N25) to detect the zero-cross point of AC power.

DB9 connector with RS232 Transceiver (TI 75C3232E) for DALI interface.

Wi-Fi connector (UART interface) to communicate with NuMaker-IoT-M487 board for speech command input and transmit data to cloud thru the NuMaker-IoT-M487 board.

LCD connector (UART interface) to communicate with NuMaker-emWin-M487D board for HMI (Human-Machine Interface).

SPI flash (Winbond W25Q32) device for SPIM of MCU to extend the flash memory.

Six LEDs

Daughter board

Three USB switch (TPS2065CDBVR-2) devices are controlled by MCU to supply the 5V power to three USB type-A sockets and to detect whether there is an over current on each USB type-A socket.

Three sets of MOSFET (SI2302AD) devices. Each set of MOSFET devices can be switched to three different resistor paths by MCU to measure the current that passing through one USB type-A socket.

Three USB type-A sockets.

Page 35: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 35 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Front View of Main Board 4.3

Figure 4-2 shows the main components and connectors from the front side of the main board on M487 Smart Power board.

The following lists components and connectors from the front view:

M487JIDAE target chip (U1).

Nu-Link-Me ICE bridge circuit (ICEU2, ICEJ1) and switches (ISW1) for the USB VCOM function.

Pair connector pads J4 and J8 are for the AC power input that from the outside of case.

Pair connector pads J3 and J7 are for the AC power input to AC-DC5V adaptor.

Pair connector pads J1 and J2, J5 and J6, J9 and J10 are used to connect with AC power sockets.

20A/250V Fuse (F1).

Bridge rectifier DF1510 (U5) and phototransistor coupler 4N25 (U4).

DC power jack (CON1) is for AC-DC5V adaptor 5V input.

Relay (SRD-05VDC-SL-C) devices. (LS1, LS2 and LS3)

Current sensor (ACS714ELCTR-20A-T) devices. (U2, U3 and U6)

DB9 connector (CON5) with RS232 Transceiver (U11, TI 75C3232E) for DALI application.

Wi-Fi connector (J23) to communicate with NuMaker-IoT-M487 board for data transaction.

LCD connector (J24) to communicate with NuMaker-emWin-M487D board for HMI.

Connector J20 (VDD5V), connector J21 (VCC = 3.3V), connector J22 (GND) and the other three connectors (J17, J18 and J19) are for the combination with the daughter board.

SPI flash (U12, Winbond W25Q32) device for SPIM.

Six LEDs. (LED0 ~ LED5)

Two GPIO connectors. (J25 and J26)

Page 36: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 36 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

ICE Bridge

(ICEJ1, ICEU2)

Reset Key

(SW1)

VCOM

(ISW1)

DB9

(CON5)

RS232 Transceiver

(U11)

Relay

(LS1, LS2, LS3)

M487 Chip

(U1)

SPI Flash

(U12)

DC Power Jack

(CON1)

Current Sensor

(U2, U3, U6)

Phototransistor

Coupler (U4)

Fuse

(F1)

LED

(LED0~LED5)

Bridge Rectifier

(U5)

Adaptor AC Pads (J3/J7)

AC Power Input

(J4/J8)

AC

1 P

ads

(J1

/J2

)

AC

2 P

ads

(J5

/J6

)

AC

3 P

ads

(J9

/J1

0)

Figure 4-2 Front View of Main Board on M487 Smart Power Board

Page 37: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 37 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Rear View of Main Board 4.4

Figure 4-3 shows the rear side of the main board on M487 Smart Power board.

Figure 4-3 Rear View of Main Board on M487 Smart Power Board

Page 38: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 38 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Front View of Daughter Board 4.5

Figure 4-4 shows the main components and connectors from the front side of the daughter board on M487 Smart Power board.

The following lists components and connectors from the front view:

USB switch (TPS2065CDBVR-2) devices. (U8, U9 and U10)

Three sets of MOSFET (SI2302AD) devices. (Q4/Q5/Q6, Q7/Q8/Q9 and Q10/Q11/Q12)

Three USB type-A sockets. (CON2, CON3 and CON4)

Connector J14 (VDD5V), connector J15 (VCC = 3.3V), connector J16 (GND) and the other three connectors (J11, J12 and J13) are for the combination with the main board.

USB1 Socket

(CON2)

MOSFET SI2302

(Q4, Q5, Q6)MOSFET SI2302

(Q7, Q8, Q9)MOSFET SI2302

(Q10, Q11, Q12)

USB Switch

(U8, U9, U10)

VDD5V

(J14)

VCC

(J15)

GND

(J16)

USB2 Socket

(CON3)

USB3 Socket

(CON4)

Connector

for USB1

(J11)

Connector

for USB2

(J12)

Connector

for USB3

(J13)

Figure 4-4 Front View of Daughter Board on M487 Smart Power Board

Rear View of Daughter Board 4.6

Figure 4-5 shows the rear side of daughter board on M487 Smart Power board.

Figure 4-5 Rear View of Daughter Board on M487 Smart Power Board

Page 39: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 39 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

The Pin Function of M487 Chip on M487 Smart Power Board 4.7

The M487JIDAE chip provides many GPIO pins in LQFP144 package. Each pin has multi-functions that can be configured by user in the firmware. On this M487 Smart Power board, we used and defined a lot of pins that each used pin has a dedicated function for this system application.

The Table 4-1 to Table 4-4 shows the dedicated function tables on each used pin of M487 chip on this M487 Smart Power board.

Table 4-1 Dedicated Function on Pin1~36 of M487 Chip

M487 Chip M487 Smart Power

Board M487 Chip

M487 Smart Power Board

Pin # GPIO Function Pin # GPIO Function

1 PB.5 USB2_A_ADC (CH5) 19 PD.11 USB1_uA_EN

2 PB.4 USB2_mA_ADC (CH4) 20 PD.10 USB1_PWR_EN

3 PB.3 USB2_uA_ADC (CH3) 21 VSS GND

4 PB.2 USB1_A_ADC (CH2) 22 VDD VCC (3.3V)

5 PC.12 USB3_A_EN 23 PG.0 USB1_OC#

6 PC.11 USB3_mA_EN 24 PG.1 USB2_OC#

7 PC.10 USB3_uA_EN 25 PG.2 USB3_OC#

8 PC.9 USB3_PWR_EN 26 PG.3 -

9 PB.1 USB1_mA_ADC (CH1) 27 PG.4 -

10 PB.0 USB1_uA_ADC (CH0) 28 PF.11 -

11 VSS GND 29 PF.10 -

12 VDD VCC (3.3V) 30 PF.9 -

13 PA.11 USB2_A_EN 31 PF.8 -

14 PA.10 USB2_mA_EN 32 PF.7 -

15 PA.9 USB2_uA_EN 33 PF.6 -

16 PA.8 USB2_PWR_EN 34 VDD VCC (3.3V)

17 PC.13 USB1_A_EN 35 PF.5 XT32_I

18 PD.12 USB1_mA_EN 36 PF.4 XT32_OUT-

Page 40: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 40 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Table 4-2 Dedicated Function on Pin37~72 of M487 Chip

M487 Chip M487 Smart Power

Board M487 Chip

M487 Smart Power Board

Pin # GPIO Function Pin # GPIO Function

37 PH.0 LED0 55 PC.8 -

38 PH.1 LED1 56 PC.7 -

39 PH.2 LED2 57 PC.6 -

40 PH.3 LED3 58 PA.7 -

41 PH.4 LED4 59 PA.6 -

42 PH.5 LED5 60 VSS GND

43 PH.6 - 61 VDD VCC (3.3V)

44 PH.7 - 62 LDO LDO_CAP1

45 PF.3 XT1_IN 63 PA.5 -

46 PF.2 XT1_OUT 64 PA.4 -

47 VSS GND 65 PA.3 UART1_TXD (DALI)

48 VDD VCC (3.3V) 66 PA.2 UART1_RXD (DALI)

49 PE.8 UART2_TXD (Wi-Fi) 67 PA.1 -

50 PE.9 UART2_RXD (Wi-Fi) 68 PA.0 -

51 PE.10 MCU_PE10 69 VDDIO VCC (3.3V)

52 PE.11 MCU_PE11 70 PE.14 -

53 PE.12 MCU_PE12 71 PE.15 -

54 PE.13 MCU_PE13 72 nRESET RESET

Page 41: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 41 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Table 4-3 Dedicated Function on Pin73~108 of M487 Chip

M487 Chip M487 Smart Power

Board M487 Chip

M487 Smart Power Board

Pin # GPIO Function Pin # GPIO Function

73 PF.0 ICEDAT 91 PG.15 MCU_PG15

74 PF.1 ICECLK 92 PD.3 MCU_PD3

75 PD.9 - 93 PD.2 MCU_PD2

76 PD.8 - 94 PD.1 UART3_TXD (LCD)

77 PC.5 SPIM_D2 95 PD.0 UART3_RXD (LCD)

78 PC.4 SPIM_D3 96 PD.13 -

79 PC.3 SPIM_SS 97 PA.12 -

80 PC.2 SPIM_CLK 98 PA.13 -

81 PC.1 SPIM_MISO 99 PA.14 -

82 PC.0 SPIM_MOSI 100 PA.15 -

83 VSS GND 101 HSUSB_VRES -

84 VDD VCC (3.3V) 102 HSUSB_VDD33 -

85 PG.9 MCU_PG9 103 HSUSB_VBUS -

86 PG.10 MCU_PG10 104 HSUSB_D- -

87 PG.11 MCU_PG11 105 HSUSB_VSS -

88 PG.12 MCU_PG12 106 HSUSB_D+ -

89 PG.13 MCU_PG13 107 HSUSB_VDD12_CAP -

90 PG.14 MCU_PG14 108 HSUSB_ID -

Page 42: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 42 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Table 4-4 Dedicated Function on Pin109~144 of M487 Chip

M487 Chip M487 Smart Power

Board M487 Chip

M487 Smart Power Board

Pin # GPIO Function Pin # GPIO Function

109 PE.7 MCU_PE7 127 PG.8 MCU_PG8

110 PE.6 MCU_PE6 128 VSS GND

111 PE.5 MCU_PE5 129 LDO LDO_CPA2

112 PE.4 MCU_PE4 130 VDD VCC (3.3V)

113 PE.3 MCU_PE3 131 PC.14

114 PE.2 MCU_PE2 132 PB.15

115 VSS GND 133 PB.14

116 VDD VCC (3.3V) 134 PB.13 UART0_TXD (VCOM)

117 PE.1 MCU_PE1 135 PB.12 UART0_RXD (VCOM)

118 PE.0 MCU_PE0 136 AVDD VCC (3.3V)

119 PH.8 - 137 VREF VCC (3.3V)

120 PH.9 - 138 AVSS ADAVSS

121 PH.10 - 139 PB.11 AC3_ADC (CH11)

122 PH.11 - 140 PB.10 AC2_ADC (CH10)

123 PD.14 ZERO_CROSS 141 PB.9 AC1_ADC (CH9)

124 PG.5 AC1_RLY_EN 142 PB.8 USB3_A_ADC (CH8)

125 PG.6 AC2_RLY_EN 143 PB.7 USB3_mA_ADC (CH7)

126 PG.7 AC3_RLY_EN 144 PB.6 USB3_uA_ADC (CH6)

Page 43: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 43 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

PCB Placement 4.8

Figure 4-6 shows the front placement of main board of M487 Smart Power board.

Figure 4-6 Front Placement of Main Board

Figure 4-7 shows the front placement of daughter board of M487 Smart Power board.

Figure 4-7 Front Placement of Daughter Board

Page 44: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 44 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

M487 Smart Power Schematics 4.9

4.9.1 Nu-Link-Me (ICE Bridge)

Figure 4-8 shows the Nu-Link-Me circuit. This Nu-Link-Me circuit is an ICE bridge designed by Nuvoton, user can utilize this hardware circuit to download the firmware binary code to the embedded flash of Nuvoton‟s MCU with Nuvoton software ICP Programming Tool or microcontroller software development kit like Keil/IAR/GCC or to trace the firmware source code in the debug mode of these microcontroller software development kits. Note, user should install the Nuvoton software tool and driver at first before using these software functions.

The software ICP Programming Tool:

https://www.nuvoton.com/hq/support/tool-and-software/software/programmer/?__locale=en

The Nu-Link Driver for Keil and IAR:

https://www.nuvoton.com/hq/support/tool-and-software/software/development-tool/?__locale=en

Figure 4-8 Nu-Link-Me Circuit

RESET CIRCUIT

ICECT31uFC0603

ICEUSB_D+

ICECT410uF/10VC0603

N0

ICER333RR0603

ICER4

10K

R0603

RRSET1100KR0603

RTDA333RR0603

ICEUSB_D-ICEC31uFC0603

ICEL1

L0603

ICEJP1

HEADER 2.54 5X1 (NC)

12345

ICECT1

10uF/10V

C0805

ICECB20.1uFC0603

ICEU1ACE1117C33XM+H

IN3

GN

D1

OU

T2

OU

T4

ICER233RR0603

DAP1

RTDA1100KR0603

ICEJ1

USB MICRO-AB RECEP.MICRO_USB_AB_LS

GND5 NC4 DP3 DM2 VCC1

SHIELD6

SHIELD7

SHIELD8

SHIELD9

ICECB10.1uFC0603

ICEDM

ICEL2

L0603

POWER

RTDA20RR0603

MCU and USB

ICEDP

CRYSTAL

DEBUG

ICEU2

NUC12SRE3DE

PA0/ADC044PA1/ADC145PA2/ADC246PA3/ADC347PA4/ADC448INT0/PB14

1

CPO1/PB132

CPO0/PB123

VB

US

17

VD

D33

18

D-

19

D+

20

PB

0/R

X0

21

PB

1/T

X0

22

PB

2/R

TS

023

PB

3/C

TS

024

PC

2/S

DI0

026

PC

1/S

PC

LK

027

PC

0/S

S00

28

PC11/SDO1033PC10/SDI1034PC9/SPCLK135PC8/SS1036PA15/PWM337PA14/PWM238PA13/PWM139

X32I4

X32O5

I2C1SCL/PA116

I2C0SDA/PA89

I2C1SDA/PA107

I2C0SCL/PA98

RX1/PB410

TX1/PB511

RTS1/PB612

CTS1/PB713

PC

3/S

DO

00

25

AVSS43

ICE_CK42

ICE_DAT41

PA12/PWM040

LDO14

VSS16 VDD15

AD

C/P

A5

49

AD

C6/P

A6

50

AD

C7/P

A7

51

AV

DD

52

CP

N0/P

C7

53

CP

P0/P

C6

54

CP

N1/P

C15

55

CP

P1/P

C14

56

INT

1/P

B15

57

XT

1_O

ut

58

XT

1_In

59

/RE

SE

T60

VS

S1

61

VD

D1

62

PV

SS

63

ST

AD

C/T

M0/P

B8

64

PE

529

PB

11/T

M3

30

PB

10/S

S01/T

M2

31

PB

9/S

S11/T

M1

32

1 2

ICED1SS24A

DO-214AC

RTCK1100KR0603ICE_VCC

ICE_USBVBUS

ICE_USBVBUS

ICE_AVDD

ADAVSS

ICE_VCC

ICE_VCC

ICE_AVDD

ICE_VCC

ICE_USBVBUS

ICE_VCC

ICE_USBVBUS

ADAVSS

ICE_VCC

ICE_VCCICE_USBVBUS

RXD

ICE_VCC

TXD

ICE_VCC

ICE_RST

VCOM_En

P72PF.0 ICEDATP73nRESET RESETP72

P74P73

PB.13P134 M48x_TXDPF.1 ICECLKP74

P135P134

PB.12P135 M48x_RXD

RXDISW1

2. mm DIP SWITCHES PONIES 4 SMD(HPS604-E)

M48x_TXD

VCOM_EnM48x_RXD TXD

VCOM and mbed Switch

MSG_En

MSG_En

ICE_CLKICE_RST

ICE_DAT

ICECT2

10uF/10V

C0805

ICER1 0R

R0603

RESET TICERST

ICE Off Page

GNDGND

ICEUSB_D+ICEUSB_D-

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

1.1Nu-Link-Me V3.0Custom

1 8Tuesday , August 14, 2018

ICE

_R

ST

DAP

12

IDLE1

RedLED0805

(YELLOW)

(RED)

12

ICP1

YellowLED0805

ICPLED

N4

RED

12

ICE1

RedLED0805

N3

N1ICELED

12

BUSY1

GreenLED0805

ICERP1

8P4R-3308P4RA

1 23 45 67 8

ICE_VCC

GREEN LED(GREEN)

(RED)

N2

GREENREDICPLEDICELED

DAP

12M

_I

12M

_O

N5

ICEC120pF

12M_I

ICEC2

20pF

N6

VB

US

Y1

12MHz SMD X3225B

XIN1

GND2

GND4

XOUT3

12M_O

TICERSTICECLK

N7 ICEDAT

ICE_DATICE_CLK

N8

GN

D

Page 45: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 45 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.2 N487 Chip

Figure 4-9 shows all GPIO pins and their dedicated functions of M487 chip (LQFP-144pin) and its basic circuit with some external necessary devices.

Figure 4-9 M487 Chip Circuit

PG.12P88 MCU_PG12PG.11P87 MCU_PG11PG.10P86 MCU_PG10PG.9P85 MCU_PG9

PG.15P91 MCU_PG15PG.14P90 MCU_PG14PG.13P89 MCU_PG13

SW1SMD按 鍵 開 關 6X6X5H(黑 )卷 代

SW4-SMD

XT1_IN

C720pF

R1NC

C8

20pF

XT32_IN

Y3

X3215 32.768KHz SMD C5

20pF

XT1_OUT

C6

20pF

Y2

12MHz SMD X3225B

XIN1

GND2

GND4

XOUT3

R210KR0603

CRYSTAL

RESET

C9

1uFC0603

VCC

RESET

Off PageLED and GPIO

~

~

P109

P144

~

P37

P72

~

P73

P108

P127PG.8P127 MCU_PG8

P1

PG.2P25 USB3_OC#

P6

P5

P4

P3

P2

P24

P23

P24 PG.1 USB2_OC#

P23 PG.0 USB1_OC#

P144

P142

P143

P7P25

P4 PB.2 USB1_A_ADC

P3 PB.3 USB2_uA_ADC

P1 PB.5 USB2_A_ADC

P2 PB.4 USB2_mA_ADC

P7 PC.10 USB3_uA_EN

P6 PC.11 USB3_mA_EN

P5 PC.12 USB3_A_EN

P13 PA.11 USB2_A_EN

P10 PB.0 USB1_uA_ADC

P9 PB.1 USB1_mA_ADC

P16 PA.8 USB2_PWR_EN

P15 PA.9 USB2_uA_EN

P14 PA.10 USB2_mA_EN

P19 PD.11 USB1_uA_EN

P18 PD.12 USB1_mA_EN

P17 PC.13 USB1_A_ENP9

P8P8 PC.9 USB3_PWR_EN

P20 PD.10 USB1_PWR_EN

P17

P16

P15

P14

P13

P10

P20

P19

P18

PB.8P142 USB3_A_ADC

PB.6P144 USB3_uA_ADC

PB.7P143 USB3_mA_ADC

MCU to USB SocketOff Page

CB11

0.1uF

C0603

* But CM1 or CM2 should be 2.2uF for only one

LDO_CAP pin at the same package.

* If there are two LDO_CAP pins at the same package

of MCU chip, both CM1 and CM2 should be 1uF.

P12

P53P52P51P50P49

P54

PE.10P51 MCU_PE10PE.9P50 MCU_RXD2PE.8P49 MCU_TXD2

PE.13P54 MCU_PE13PE.12P53 MCU_PE12PE.11P52 MCU_PE11

UART to Wi-Fi Off Page

P37

P42P41P40P39P38

P47P46P45P44P43

P53P52P51P50P49P48

P58P57P56P55P54

P63P62P61P60P59

P69P68P67P66P65P64

P71P70

P72

HSUSB_VDD33 P102

L3

L0603

R3

200R 1%

R0603

HSUSB_VSSP105HSUSB_VRES P101

USB CAP

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1M487JIDAE MCUCustom

2 8Tuesday , August 14, 2018

P74P73

P80P79P78P77P76P75

P85P84P83P82P81

P90P89P88P87P86

P96P95P94P93P92P91

P101P100

P99P98P97

P106P105P104P103P102

XT32_OUT

P137

P138L2

L0603

P108P107

CT1

10uF/10VC0805

C3470pF

C0603

CB1

0.1uFC0603

CB20.1uF

C0603

L1

L0603

VREF

ADAVSSADAVSS

VCC AVDD

P138

P136

VREF & AVDD CAP

P94P95

PD.1P94 MCU_TXD3PD.0P95 MCU_RXD3

P92P93

PD.3P92 MCU_PD3PD.2P93 MCU_PD2

CB5

0.1uF

C0603

UART to LCD Off Page

CB6

0.1uF

C0603

P84

PC.1P81 SPIM_MISOPC.0P82 SPIM_MOSI

LDO_CAP2P129

VSS GNDP83

P116LDO_CAP1P62

VDD VCCP84

P61

PG.9P85 MCU_PG9PG.10P86 MCU_PG10PG.11P87 MCU_PG11

P48

PG.12P88 MCU_PG12PG.13P89 MCU_PG13

P22

PG.14P90 MCU_PG14

CB7

0.1uF

C0603

CB8

0.1uF

C0603

CB10

0.1uF

C0603

CB9

0.1uF

C0603

PG.15P91 MCU_PG15

PG.3P26PG.2P25 USB3_OC#

P2P1

PF.10P29PF.11P28PG.4P27

PF.6P33PF.7P32PF.8P31PF.9P30

P3

PF.5P35 XT32_INPF.4P36 XT32_OUT

P34 VDD VCC

P6P5P4

P22 VDDP21 VSS

P21

P24 PG.1 USB2_OC#P23 PG.0 USB1_OC#

P7

P25P24P23P22

P2 PB.4 USB2_mA_ADC

P4 PB.2 USB1_A_ADCP3 PB.3 USB2_uA_ADC

P1 PB.5 USB2_A_ADC

P7 PC.10 USB3_uA_ENP6 PC.11 USB3_mA_ENP5 PC.12 USB3_A_EN

P11 VSS GNDP10 PB.0 USB1_uA_ADCP9 PB.1 USB1_mA_ADC

P14 PA.10 USB2_mA_EN

P12 VDD VCCP13 PA.11 USB2_A_EN

P18 PD.12 USB1_mA_ENP17 PC.13 USB1_A_ENP16 PA.8 USB2_PWR_ENP15 PA.9 USB2_uA_EN

P28

P20 PD.10 USB1_PWR_ENP19 PD.11 USB1_uA_EN

P33

P31

P29P30

P27

P36

P34P35

P32

P8 PC.9 USB3_PWR_EN

P12P11P10

P9P8

P17P16

P26

P15P14P13

P20P19P18

P130

P1

P36

P72nRESET RESETP72

P74P73

PF.0 ICEDATP73PF.1 ICECLKP74

LDO_CAP

MCU bypass CAP

VCC

P135P134

PB.13P134 M48x_TXDPB.12P135 M48x_RXD

P110P111

P109

P116P117

P114P115

P112P113

P123

P120P121

P118P119

P126P127

P124P125

P122

P132P133

P130P131

P128P129

P139

P136P137

P134P135

PA.12P97PD.13P96

P142P143

P140P141

P138

HSUSB_VRESP101PA.15P100PA.14P99PA.13P98

P144

PE.4P112 MCU_PE4PE.5P111 MCU_PE5PE.6P110 MCU_PE6PE.7P109 MCU_PE7

HSUSB_D+P106HSUSB_VSSP105HSUSB_D-P104HSUSB_VBUSP103HSUSB_VDD33P102

VSS GNDP115PE.2P114 MCU_PE2PE.3P113 MCU_PE3

HSUSB_IDP108HSUSB_VDD12_CAPP107

PH.9P120

PE.0P118 MCU_PE0PE.1P117 MCU_PE1VDD VCCP116

VDD VCCP130PC.14P131

VSS GNDP128

PH.8P119

PB.14P133PB.13P134 M48x_TXD

LDO_CAP2P129

AVSS ADAVSSP138

PB.12P135 M48x_RXDAVDDP136

PB.15P132

PB.10P140 AC2_ADCPB.9P141 AC1_ADC

PB.11P139 AC3_ADC

VREFP137

PB.6P144 USB3_uA_ADCPB.7P143 USB3_mA_ADCPB.8P142 USB3_A_ADC

PD.14P123 ZERO_CROSS

PH.10P121PH.11P122

PG.5P124 AC1_RLY_EN

PG.8P127 MCU_PG8PG.7P126 AC3_RLY_ENPG.6P125 AC2_RLY_EN

PD.0P95 MCU_RXD3PD.1P94 MCU_TXD3PD.2P93 MCU_PD2PD.3P92 MCU_PD3

P81P82

P77P78P79P80

PC.5P77 SPIM_D2

PC.2P80 SPIM_CLKPC.1P81 SPIM_MISOPC.0P82 SPIM_MOSI

SPI Flash Off Page

PC.4P78 SPIM_D3PC.3P79 SPIM_SS

CT3

1uFC0805

CB3

0.1uFC0603

CM1

1uF

C0603

CM2

1uF

C0603

VSS GNDP47PF.2 XT1_OUTP46PF.3 XT1_INP45

PE.11P52 MCU_PE11PE.10P51 MCU_PE10PE.9P50 MCU_RXD2PE.8P49 MCU_TXD2VDD VCCP48

PC.6P57PC.7P56PC.8P55PE.13P54 MCU_PE13PE.12P53 MCU_PE12

LDO_CAP1P62VDD VCCP61VSS GNDP60PA.6P59PA.7P58

PA.1P67PA.2P66 MCU_RXD1PA.3P65 MCU_TXD1PA.4P64PA.5P63

nRESET RESETP72PE.15P71PE.14P70VDDIOP69PA.0P68

Off Page

PH.7P44PH.6P43

PH.4P41 LED4PH.5P42 LED5

CB4

0.1uF

C0603

VDDIOP69

PH.0P37 LED0PH.1P38 LED1

U1

M487JIDAE

PB

.51

PB

.42

PB

.33

PB

.24

PC

.12

5

PC

.11

6

PC

.10

7

PC

.98

PB

.19

PB

.010

VS

S11

VD

D12

PA

.11

13

PA

.10

14

PA

.915

PA

.816

PC

.13

17

PD

.12

18

PD

.11

19

PD

.10

20

VS

S21

VD

D22

PG

.023

PG

.124

PG

.225

PG

.326

PG

.427

PF

.11

28

PF

.10

29

PF

.930

PF

.831

PF

.732

PF

.633

VD

D34

PF

.535

PF

.436

PH.037PH.138PH.239PH.340PH.441PH.542PH.643PH.744PF.345PF.246VSS47VDD48PE.849PE.950PE.1051PE.1152PE.1253PE.1354PC.855PC.756PC.657PA.758PA.659VSS60VDD61LDO_CAP62PA.563PA.464PA.365PA.266PA.167PA.068VDDIO69PE.1470PE.1571nRESET72

PF

.073

PF

.174

PD

.975

PD

.876

PC

.577

PC

.478

PC

.379

PC

.280

PC

.181

PC

.082

VS

S83

VD

D84

PG

.985

PG

.10

86

PG

.11

87

PG

.12

88

PG

.13

89

PG

.14

90

PG

.15

91

PD

.392

PD

.293

PD

.194

PD

.095

PD

.13

96

PA

.12

97

PA

.13

98

PA

.14

99

PA

.15

100

HS

US

B_V

RE

S101

HS

US

B_V

DD

33

102

HS

US

B_V

BU

S103

HS

US

B_D

-104

HS

US

B_V

SS

105

HS

US

B_D

+106

HS

US

B_V

DD

12_C

AP

107

HS

US

B_ID

108

PE.7109

PE.6110

PE.5111

PE.4112

PE.3113

PE.2114

VSS115

VDD116

PE.1117

PE.0118

PH.8119

PH.9120

PH.10121

PH.11122

PD.14123

PG.5124

PG.6125

PG.7126

PG.8127

VSS128

LDO_CAP129

VDD130

PC.14131

PB.15132

PB.14133

PB.13134

PB.12135

AVDD136

VREF137

AVSS138

PB.11139

PB.10140

PB.9141

PB.8142

PB.7143

PB.6144

PH.3P40 LED3PH.2P39 LED2

P3

P2

P1

P7

P8

P9

P5

P6

P4

P15

P16

P10

P11

P12

P18

P19

P20

P13

P14

P28

P21

P22

P23

P24

P17

P31

P32

P25

P26

P27

CB12

0.1uF

C0603

P34

P34

P35

P36

P29

P30

P77

P75

P76

P74

P73

P33

CM3

4.7uF

C0603

P83

P84

P79

P80

P78

P86

P87

P88

P81

P82

P96

P89

P90

P91

P92

P85

P99

P100

P93

P94

P95

P102

P103

P104

P97

P98

P40

P105

P106

P107

P108

P101

P45P46

P37P38P39

P51

P41P42P43P44

P55P56

P47P48P49P50

P61P62

P52P53P54

P67

P57P58P59P60

P71P72

P63P64P65P66

P111P112

P68P69P70

P116P117P118

P109P110

P121P122P123

P113P114P115

P126P127P128

P119P120

P132P133P134

P124P125

P137P138P139

P129P130P131

VDD

P142P143P144

P135P136

P140P141

C41uF

C0603

CT22.2uF

C0805

C21uF

C0603

ICE Off Page

PF.0 ICEDATP73

PD.9P75PF.1 ICECLKP74

PC.5P77 SPIM_D2PD.8P76

PC.2P80 SPIM_CLKPC.3P79 SPIM_SSPC.4P78 SPIM_D3

C10.01uF

C0603

AC Power Off Page

P125P124

PG.5P124 AC1_RLY_EN

P139

P126PG.7P126 AC3_RLY_ENPG.6P125 AC2_RLY_EN

PB.9P141 AC1_ADCPB.10P140 AC2_ADCPB.11P139 AC3_ADC

P123

P141P140

PD.14P123 ZERO_CROSS

UART RS232 to DALI

P65PA.2P66 MCU_RXD1PA.3P65 MCU_TXD1

P66

P34 VDD

P69P34

VDDIOP69P137 VREF

DC Power Off Page

GND

VCC

P137

GNDICE_VCC

VDD5V

ICE_VCCVCC

VDD5V

VCC

P41P40P39P38P37

P42

PH.1P38 LED1

PH.4P41 LED4PH.5P42 LED5

PH.3P40 LED3PH.2P39 LED2

PH.0P37 LED0

P118PE.0P118 MCU_PE0

P117PE.1P117 MCU_PE1

P114

P112P113

P110P111

P109

PE.4P112 MCU_PE4PE.5P111 MCU_PE5PE.6P110 MCU_PE6PE.7P109 MCU_PE7

PE.2P114 MCU_PE2PE.3P113 MCU_PE3

HSUSB_VDD12_CAPP107

P86P85

P91P90P89P88P87

Page 46: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 46 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.3 AC Power

Figure 4-10 shows the AC power, relays and current sensor devices circuit. In this circuit, the bridge rectifier DF1510 (U5) and phototransistor coupler 4N25 (U4) can be used to detect the zero-cross of AC input power. The relay (LS1, LS2 or LS3) is a switch device that controlled by a GPIO pin of M487 MCU to enable or disable AC power supplying to the external AC socket. The current passing through the AC socket will be transformed by the current sensor (U2, U3 or U6) and its output can be monitored by the ADC channel of M487 MCU.

Figure 4-10 AC Power Circuit

LS1

SRD-05VDC-SL-C

35

412

D1

1N4001

LS2

SRD-05VDC-SL-C

35

412

D2

1N4001

AC1_ADC

N15

N21

AC2_RLY_EN N20R13 200R

R0603

N25

N22

AC_OUT2

N2

3

N14

VDD5V

AC_IN1

C11

1nF

C0603

N24

CB14

0.1uF

C0603

R10 5.1K (1%)

R0603

AC1_RLY_EN

U3

ACS714ELCTR-20A-TSO-8

IP1+1

IP2+2

IP1-3

IP2-4

VCC8

VIOUT7

FILITER6

GND5

VDD5V

J6

NC

1

J5

NC

1Q2

S8050 (NPN)

1

23

R1110K (1%)R0603

LS3

SRD-05VDC-SL-C

35

412

D3

1N4001

N26

N27

N28

AC_OUT2

AC3_RLY_ENR18 200R

R0603

N2

9

N31VDD5V

AC_IN1

C12

1nF

C0603

N30

CB15

0.1uF

C0603

U6

ACS714ELCTR-20A-TSO-8

IP1+1

IP2+2

IP1-3

IP2-4

VCC8

VIOUT7

FILITER6

GND5

VDD5V

AC2_ADC

J10

NC

1

J9

NC

1

R1710K (1%)R0603

Q3

S8050 (NPN)

1

23

2, Emitter

3, Collector

1, BASE

AC Relay and Current Sensor

AC_OUT2

R9 200R

R0603

N16VCC

GND

VCCGND

AC Power Off Page

VDD5VVDD5V

R1210K

R0603

VCC

N19

ZERO_CROSS

N1

7

VDD5V

AC_IN1

N18

C10

1nF

C0603

CB13

0.1uF

C0603

R16 5.1K (1%)

R0603

AC3_ADC

U4

4N25

16

2

5

4 - +

U5

DF1510

1

3

2

4

AC Power In

R15 47K 2W

R14 47K 2W

N12N10

N9

J4

NC

1N13

J7

NC

1

AC_OUT2

2

5

4

3

1

N11

J8

NC

1

J3

NC

1

AC_IN2

U2

ACS714ELCTR-20A-TSO-8

IP1+1

IP2+2

IP1-3

IP2-4

VCC8

VIOUT7

FILITER6

GND5

VDD5V

J2

NC

1

J1

NC

1Q1

S8050 (NPN)

1

23

R810K (1%)R0603

J4 and J8 for AC InputJ3 and J7 to DC5V Adapter

P126P125P124

PG.5P124 AC1_RLY_EN

PG.7P126 AC3_RLY_ENPG.6P125 AC2_RLY_EN

P139

P141P140

PB.9P141 AC1_ADCPB.10P140 AC2_ADCPB.11P139 AC3_ADC

P123PD.14P123 ZERO_CROSS

AC2

AC1

AC3

High: Relay 3 and 5 ON (default)

Low: Relay 3 and 4 ON

S8050

Top view

F1 FUSE (20A)

1234

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1AC Power and SocketCustom

3 8Tuesday , August 14, 2018

AC_IN1

R7 5.1K (1%)

R0603

Page 47: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 47 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.4 DC Power

Figure 4-11 shows the DC power VDD5V and VCC (3.3V) circuit. An additional AC-DC5V adaptor is added to this M487 Smart Power Station to supply a stable 5V power at the Power Jack (CON1) and is connected to the AC pads (J3 and J7) on the M487 Smart Power main board.

Figure 4-11 DC Power Circuit

JP2

VDD 5V (NC)

12

JP3

VDD 3.3V (NC)

12

JP4

VDD 3.3V (NC)

12

JP5

GND (NC)

12

JP6

GND (NC)

12

L4 L0603

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1DC PowerA

4 8Wednesday , August 15, 2018

VCCVDD5V

N33

N32

R20330R

R0603

VDD5V

VCC

GND

L8

L0603

VIN5V_IN 3VCC_IN

GND

VCC

CB16

0.1uF

C0603

1 2

D4SS24A

DO-214AC

U7ACE1117C33XM+H

IN3

GN

D1

OU

T2

OU

T4

VDD5V

CT4

10uF/10V

TANT-A

VDD5V

GND IN

CON1DC-CON

POWERJACK\3P

1

2

L9 L0603

R19330R

R0603

VCC

DC Power Supply (5V/3.3V)

P137 VREFP137

P69VDDIOP69

VCC

GND

DC Power Off Page

GND

VCCICE_VCC

ICE_VCC

VDD5VVDD5V

ICE_VCC

VCC

L5 L0603

L6 L0603VREF

VDDIO

12

PWR_5V

Red

LED0805

12

PWR_3V3

Red

LED0805

JP1

VDD 5V (NC)

12

Page 48: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 48 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.5 MCU Connector

Figure 4-12 shows the MCU connector circuit for the connection with the USB daughter board.

Figure 4-12 MCU Connector Circuit

GNDVCC

GND

VCC

MCU to USB SocketConnector Off Page

VDD5VVDD5V

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1MCU to USB Socket ConnectorA4

6 8Tuesday , August 14, 2018

USB2_PWR_ENUSB2_OC#USB2_uA_ENUSB2_uA_ADCUSB2_mA_ENUSB2_mA_ADCUSB2_A_ENUSB2_A_ADC

USB1_PWR_ENUSB1_OC#USB1_uA_ENUSB1_uA_ADCUSB1_mA_ENUSB1_mA_ADCUSB1_A_ENUSB1_A_ADC

USB3_PWR_ENUSB3_OC#USB3_uA_ENUSB3_uA_ADCUSB3_mA_EN

PG.2P25 USB3_OC#

USB3_mA_ADCUSB3_A_ENUSB3_A_ADC

P1

P2

P3

P4

P5

P6

P23 PG.0 USB1_OC#

P24 PG.1 USB2_OC#

P23

P24

P25P7

P143

P142

P144

P2 PB.4 USB2_mA_ADC

P1 PB.5 USB2_A_ADC

P3 PB.3 USB2_uA_ADC

P4 PB.2 USB1_A_ADC

P5 PC.12 USB3_A_EN

P6 PC.11 USB3_mA_EN

P7 PC.10 USB3_uA_EN

P9 PB.1 USB1_mA_ADC

P10 PB.0 USB1_uA_ADC

P13 PA.11 USB2_A_EN

P14 PA.10 USB2_mA_EN

P15 PA.9 USB2_uA_EN

P16 PA.8 USB2_PWR_EN

P17 PC.13 USB1_A_EN

P18 PD.12 USB1_mA_EN

P19 PD.11 USB1_uA_EN

P20 PD.10 USB1_PWR_EN

P8 PC.9 USB3_PWR_ENP8

P9

P10

P13

P14

P15

P16

P17

P18

P19

P20

PB.8P142 USB3_A_ADC

PB.7P143 USB3_mA_ADC

PB.6P144 USB3_uA_ADC

VDD5V VCC GND

J20

HEADER 4 (f emale)

1234

J21

HEADER 4 (f emale)

1234

J22

HEADER 4 (f emale)

1234

MCU to USB Socket Connector

J17

HEADER 8 (f emale)

12345678

J18

HEADER 8 (f emale)

12345678

J19

HEADER 8 (f emale)

12345678

Page 49: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 49 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.6 SPI Flash

Figure 4-13 shows the SPI flash device circuit for SPIM of M487 chip to extend the flash memory for MCU if it is necessary.

Figure 4-13 SPI Flash Circuit

SPI Flash

W25Q32

U12

GND4 IO23 IO12 /CS1

IO05CLK6IO37VCC8

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1SPI FlashA4

8 8Tuesday , August 14, 2018

P81P82

P77P78P79P80

PC.2P80 SPIM_CLKPC.1P81 SPIM_MISOPC.0P82 SPIM_MOSI

PC.5P77 SPIM_D2

SPI Flash Off Page

PC.4P78 SPIM_D3PC.3P79 SPIM_SS

PC.5 SPIM_D2PC.4 SPIM_D3PC.1 SPIM_MISO

PC.3 SPIM_SS

VCC

GNDCB37

0.1uFC0603

PC.2 SPIM_CLK

SPI Flash

PC.0 SPIM_MOSI

GNDVCC

VCC

GND

Page 50: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 50 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.7 UART to DALI

Figure 4-14 shows the UART to DALI circuit for the data communication with the DALI master board to control the brightness and fade-out time of light on the DALI slave board.

Figure 4-14 UART to DALI Circuit

MCU_TXD1MCU_RXD1

U11

TI 75C3232E SOP16

C1+1

V+2

C1-3

C2+4

C2-5

V-6

T2_OUT7

R2_IN8

VCC16

GND15

T1_OUT14

R1_IN13

R1_OUT12

T1_IN11

T2_IN10

R2_OUT9

CON5

DB9_FEMALEDB9_FEMALE

162738495

10

11

VCC

CB35

0.1uF

C0603 CB36

0.1uF

C0603

CB34

0.1uF

C0603

CB32

0.1uF

C0603

CB33

0.1uF

C0603N46

UART RS232 to DALI Off Page

VCC

GND

VCCGND

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1UART RS232 to DALIA

7 8Tuesday , August 14, 2018

RS232_RXD

RS232_RXDN50N51

RS232_TXD

N47

GND

N49RS232_TXDN48

P65P66

PA.2P66 MCU_RXD1PA.3P65 MCU_TXD1

Page 51: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 51 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.8 UART to Wi-Fi

Figure 4-15 shows the UART to Wi-Fi module circuit on M487 Smart Power board for the data communication with the NuMaker-IoT-M487 board to support the speech recognition command and send the current, power consumption and ON/OFF status of turned-on socket to the cloud thru Wi-Fi hotspot.

Figure 4-15 UART to Wi-Fi Circuit

Figure 4-16 shows the Wi-Fi module daughter board and Figure 4-17 shows the circuit of Wi-Fi daughter board. The following Table 4-5 lists the connection pins between Wi-Fi module daughter board and M487 Smart Power board.

Figure 4-16 Wi-Fi Module Daughter Board

P53P52P51P50P49

P54

PE.10P51 MCU_PE10PE.9P50 MCU_RXD2PE.8P49 MCU_TXD2

PE.13P54 MCU_PE13PE.12P53 MCU_PE12PE.11P52 MCU_PE11

UART Wi-Fi Off Page

GND

VCCVCCGND

J23

HEADER 8 (NC)

12345678

MCU_RXD2MCU_TXD2

VCC

MCU_PE13MCU_PE12MCU_PE11MCU_PE10

GND

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1UART to Wi-FiA

8 8Tuesday , August 14, 2018

Page 52: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 52 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

Figure 4-17 Wi-Fi Daughter Board Circuit

Table 4-5 UART Connection between Wi-Fi Daughter and M487 Smart Power Boards

Wi-Fi Daughter Board M487 Smart Power Board

Connector I/O

Mode Function Connector

I/O Mode

Function

J7.1 Power 3VCC J23.1 Power VCC (3.3V)

J7.2 Input Wi-Fi_TXD J23.3 Output UART2 RXD (PE.9)

J7.3 Output Wi-Fi_RXD J23.2 Input UART2 TXD (PE.8)

J7.4 Input Wi-Fi_RST - - NC

J7.5 Power GND J23.8 Power GND

Page 53: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 53 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.9 UART to LCD

Figure 4-18 shows UART to LCD circuit for the connection with NuMaker-emWin-M487D board to support the Human-Machine Interface (HMI) function based on the emWin engine on the NuMaker-emWin-M487D board. The UART connection pins between NuMaker-emWin-M487D board and M487 Smart Power board are listed in the following Table 4-6.

Figure 4-18 UART to LCD Circuit

Table 4-6 UART Connection between NuMaker-emWin-M487D and M487 Smart Power Boards

NuMaker-emWin-M487D Board M487 Smart Power Board Comment

GPIO I/O

Mode Function GPIO

I/O Mode

Function 0 1

PA.2 Input UART1 RXD PD.1 Output UART3 TXD -

PA.3 Output UART1 TXD PD.0 Input UART3 RXD -

PB.0 Input Wi-Fi Check PD.2 Output Wi-Fi Check Checking Done

PD.10 Input Wi-Fi Status PD.3 Output Wi-Fi Status No Wi-Fi Wi-Fi

Connected

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1UART to LCDA

8 8Tuesday , August 14, 2018

P94P95

PD.2P93 MCU_PD2

PD.1P94 MCU_TXD3PD.0P95 MCU_RXD3

UART to LCD Off Page

P92P93

PD.3P92 MCU_PD3

GND

VCCVCCGND

J24

HEADER 6 (NC)

123456

VCC

GNDMCU_PD3MCU_PD2MCU_RXD3MCU_TXD3

Page 54: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 54 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.10 LED and GPIO Connector

Figure 4-19 shows the LED and GPIO connector circuit. The LED shows the On/Off status of these AC and USB sockets and these two GPIO connectors are for user to extend the functions on this M487 Smart Power board.

Figure 4-19 LED and GPIO Connector Circuit

VCC

N5

7

R48330R

R0603

12

LED5

Green

12

LED4

Green

LED4

N5

6

R49330R

R0603

VCC

N5

51

2

LED3

Green

LED3

R50330R

R0603

VCC

LED5PG.10P86 MCU_PG10PG.9P85 MCU_PG9

PG.13P89 MCU_PG13PG.12P88 MCU_PG12PG.11P87 MCU_PG11

PG.15P91 MCU_PG15PG.14P90 MCU_PG14

LED and GPIOOff Page

P37

P127PG.8P127 MCU_PG8

P41P40P39P38

PH.5P42 LED5P42

PH.0P37 LED0PH.1P38 LED1

PH.4P41 LED4

PE.0P118 MCU_PE0

PH.3P40 LED3PH.2P39 LED2

P109

P117P118

PE.1P117 MCU_PE1

P114

P112P113

P110P111

PE.7P109 MCU_PE7

PE.4P112 MCU_PE4PE.5P111 MCU_PE5PE.6P110 MCU_PE6

P85

PE.2P114 MCU_PE2PE.3P113 MCU_PE3

P91P90P89P88P87P86

J25

HEADER 8 (NC)

12345678

MCU_PE3MCU_PE2MCU_PE1MCU_PE0

MCU_PE7MCU_PE6MCU_PE5MCU_PE4

MCU_PG11MCU_PG10MCU_PG9MCU_PG8

J26

HEADER 8 (NC)

12345678 MCU_PG15

MCU_PG14MCU_PG13MCU_PG12

GPIO

VCCVCC

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1LED and GPIOA

8 8Tuesday , August 14, 2018

N5

41

2

LED2

Green

VCC

R45330R

R0603

LED

12

LED1

Green

LED1

N5

3

R46330R

R0603

VCC

N5

21

2

LED0

Green

LED0

R47330R

R0603

VCC

LED2

Page 55: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 55 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

4.9.11 USB Daughter Board

Figure 4-20 shows the USB daughter board circuit. The Power-distribution Switch (U8, U9 or U10) is a switch device that controlled by a GPIO pin of M487 MCU to enable or disable DC 5V power supplying to the USB socket. This switch device will generate a LOW output on its #OC pin to indicate MCU to disable the 5V output when it detects an over current on the 5V output power. For each USB socket, the circuit utilizes three MOSFET devices (Q4/Q5/Q6, Q7/Q8/Q9 or Q10/Q11/Q12) that can be switched to three different resistor paths by three GPIO pins of MCU. The current passing through the USB socket will be measured by the one of three ADC channels of M487 MCU.

Figure 4-20 USB Daughter Board Circuit

CT10

10uF/10V

C0805

CT6

10uF/10V

C0805 USB1_LOAD

USB1_VBUS

USB Host Socket 1

USB2_LOAD

USB2_VBUS

USB Host Socket 2

USB2_PWR_EN_

N38

USB2_OC#_

USB2_A_EN_USB2_mA_ADC_USB2_mA_EN_USB2_uA_ADC_USB2_uA_EN_

R304.7K

R0603

USB2_A_ADC_

CB22

0.1uF

C0603

CON3

USB TYPE-A RECAP

VBUS1

D-2

D+3

GND4 Shield

5

Shield6

CB23

0.1uF

C0603

VCC_

R2910KR0603

VDD5V_

USB2_OC#_High Active+

CT9

1uF/10V

TANT-A

U9

TPS2065CDBVR-2

OUT1

GND2

OC#3

IN5

EN/EN#4USB2_PWR_EN_

GNDGND

R361KR0603

R350.1 (1%)R1206

CB26

0.1uF

C0603

N4

1

USB2_A_ADC_

USB2_A_EN_

OC# Active-lowopen-drain

CB25

0.1uF

C0603

R341KR0603

N4

0

R334.7 (1%)R1206

USB2_mA_ADC_

USB2_mA_EN_

Title

Size Document Number Rev

Date: Sheet of

M487 Smart Power

V1.1USB Host Socket (daughter board)A3

5 8Monday , August 27, 2018

R321KR0603

R311K (1%)R0603

USB2_uA_EN_

N3

9

CB24

0.1uF

C0603

USB2_uA_ADC_

USB3_VBUS

USB3_LOAD

USB Host Socket 3

USB3_uA_ADC_USB3_uA_EN_USB3_OC#_USB3_PWR_EN_

N42

USB3_A_ADC_USB3_A_EN_USB3_mA_ADC_USB3_mA_EN_

R384.7K

R0603

CON4

USB TYPE-A RECAP

VBUS1

D-2

D+3

GND4 Shield

5

Shield6

CB27

0.1uF

C0603

CB28

0.1uF

C0603

VDD5V_

VCC_

R3710KR0603

USB3_OC#_High Active+

CT13

1uF/10V

TANT-A

U10

TPS2065CDBVR-2

OUT1

GND2

OC#3

IN5

EN/EN#4USB3_PWR_EN_

R430.1 (1%)R1206

R441KR0603

CB31

0.1uF

C0603

USB3_A_EN_N

45

USB3_A_ADC_

OC# Active-lowopen-drain

R421KR0603

N4

4

CB30

0.1uF

C0603

R414.7 (1%)R1206

USB3_mA_ADC_

USB3_mA_EN_

R401KR0603

USB3_uA_EN_

N4

3

R391K (1%)R0603

USB3_uA_ADC_

CB29

0.1uF

C0603

USB1_OC#_USB1_PWR_EN_

N34

USB1_A_ADC_USB1_A_EN_USB1_mA_ADC_USB1_mA_EN_USB1_uA_ADC_USB1_uA_EN_

R224.7K

R0603

CB17

0.1uF

C0603

CON2

USB TYPE-A RECAP

VBUS1

D-2

D+3

GND4 Shield

5

Shield6R21

10KR0603

CB18

0.1uF

C0603

VDD5V_

VCC_

Q4 SI2302ADS

SOT-23

1

32

USB1_OC#_

Q5 SI2302ADS

SOT-23

1

32Q6 SI2302ADS

SOT-23

1

32

Q7 SI2302ADS

SOT-23

132

Q8 SI2302ADS

SOT-23

1

32Q9 SI2302ADS

SOT-23

1

32

Q10 SI2302ADS

SOT-23

1

32Q11 SI2302ADS

SOT-23

1

32Q12 SI2302ADS

SOT-23

1

32

High Active+

CT5

1uF/10V

TANT-A

U8

TPS2065CDBVR-2

OUT1

GND2

OC#3

IN5

EN/EN#4USB1_PWR_EN_

R270.1 (1%)R1206

R281KR0603

CB21

0.1uF

C0603

USB1_A_EN_

N3

7

USB1_A_ADC_

3, Drain

1, Gate 2, Source

OC# Active-lowopen-drain

R261KR0603

R254.7 (1%)R1206

N3

6

CB20

0.1uF

C0603

USB1_mA_EN_

USB1_mA_ADC_

R241KR0603

R231K (1%)R0603

USB1_uA_EN_

N3

5

CB19

0.1uF

C0603

USB1_uA_ADC_

VDD5V_ GNDVCC_

CT8

10uF/10V

C0805

CT7

10uF/10V

C0805

SI2302AD

J14

HEADER 4 (male)

1234

J15

HEADER 4 (male)

1234

J16

HEADER 4 (male)

1234

CT11

10uF/10V

C0805

CT12

10uF/10V

C0805

CT15

10uF/10V

C0805

CT16

10uF/10V

C0805

J11

HEADER 8 (male)

12345678

J12

HEADER 8 (male)

12345678

J13

HEADER 8 (male)

12345678

CT14

10uF/10V

C0805

Page 56: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 56 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

5 REVISION HISTORY

Date Revision Description

2018.11.28 1.00 1. Initially issued.

Page 57: M487 Intelligent Power Station User Manual - Nuvoton · M487 Intelligent Power Station Nov. 28, 2018 Page 1 of 57 Rev 1.00 N L er Nu-2 l ARM® Cortex®-M 32-bit Microcontroller M487

M487 Intelligent Power Station

Nov. 28, 2018 Page 57 of 57 Rev 1.00

M487

INT

ELLIG

EN

T P

OW

ER

ST

AT

ION

US

ER

MA

NU

AL

Maker N

u-m

bed

NU

C472 U

ser M

an

ual

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”.

Insecure usage 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 systems designed for vehicular use, traffic signal instruments, all types of safety devices, and other applications intended to support or sustain life.

All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay claims to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the damages and liabilities thus incurred by Nuvoton.