nu-lb-nuc140 users guide v2.0.pdf
TRANSCRIPT
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
1/27
NuMicro Learn Boar
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 1 - Version: 1.0
Nu_LB-002 Rev 2.0Users Manual
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
2/27
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
3/27
NuMicro Learn Boar
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 3 - Version: 1.0
GPIO A ................................................................................................................................ 2
GPIO B ................................................................................................................................ 2
GPIO C ................................................................................................................................ 2GPIO D ................................................................................................................................ 2
GPIO E ................................................................................................................................ 2
12. SCHEMATIC .............................................................................................2
13. REVISION HISTORY ................................................................................2
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
4/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 4 - Version: 1.0
1. OverviewThe NUC1XX series are ARM Cortex-M0 core embedded microcontroller for industrial control and the applicationswhich needed Rich communication functions. The Cortex-M0 is the newest ARM embedded processor with 32-bitperformance and at a cost equivalent traditional 8-bit microcontroller.The NUC1XX series with Cortex-M0 core runs up to 50MHz, up to 32K/64K/128K-byte embedded flash, and4K/8K/16K-byte embedded SRAM, it also integrates Timers, Watchdog Timer, RTC, PDMA, UART, SPI/SSP, I2C, PWMTimer, GPIO, LIN, CAN, USB 2.0 FS Device, 12-bit ADC, Analog Comparator, Low Voltage Detector and Brown-outdetector.
2. System RequirementsThe PC running in Windows XP or Windows Vista.KEIL RVMDK (V3.7 or later)One available USB port
3. Software Setup.Install Nu-Link_Driver V1.01.
4. Hardware SetupThe Learn Board is connecting to a PC running the KEIL IDE via USB ICE as show in figure.1, Connect the 5V power adapter to power jack on the learn board.2, The PCs USB port to connect the ICE USB I/F.
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
5/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 5 - Version: 1.0
5. Learn Board Block Diagram
Cortex M0
50Mhz
Ext. 32K XTAL
Ext. 12M XTAL
GPIOA B C D
Connector
5V power
USB
Connector
INT
Switch
UART0
Buzzer
PS2
Connector
SPI/LCM
Flash
Key Matrix
LED
LIN
Connector
CAN
Connector
7 Segment
LCD
SD Card
Slot
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
6/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 6 - Version: 1.0
6. PCB Placement
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
7/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 7 - Version: 1.0
7. Learning Board Introduction
UART
ICE BridgeNu-Link
5V DCPower
USBDevice
GPIO
Buzzer
CAN/LIN
7-Segment LED
128*64 Dot MatrixLCD panel
LED
3x3 Key Matrix
VariableResistance
KeyGPB15
Reset
EEPROMSPI Flash
WAU8822Codec
Line out
Line in
NUC140VE3AN
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
8/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 8 - Version: 1.0
8. Learning Board Pin DefineBlock
Pin
Function
ICE Bridge Nu-Link ICE_CLKICE_DATA
SWD interface
UART GPB0GPB1
UART0 RxUART0 Tx
GPC0GPC1GPC2GPC3GPA15
I2SLRCLKI2SBCLK
I2SDII2SDO
I2SMCLK
GPA8GPA9
I2C0 SDAI2C0 SCL
GPE14 Line out Enable/Disable
WAU8822 codec
GPE15 Line in plug in/out detect
Key GPB15 GPB15 INT0
GPD6GPD7
CAN0 RxCAN0 Tx
CAN
GPB12~13 CAN transceiver speed
GPB4GPB5
UART1 RxUART1 Tx
GPB6 LIN transceiver wakeup function
LIN
GPB7 LIN transceiver Enable/Disable
GPE0~7 Row7-Seg LED
GPC4~7 Column
GPD8GPD9GPD10GPD11
SPI3 SS30SPI3 SPCLKSPI3 MISO0SPI3 MOSI0
Black Dot Matrix LCD Panel
GPD14 LCD backlight power
Variable Resistance GPA7 ADC interface
Buzzer GPB11 PWM4
Key Matrix GPA0~5 GPIOReset RESET Reset
EEPROM GPA10GPA11
I2C1 SDAI2C1 SCL
GPD12 SD power
GPD13 SD card detect
SD Slot
GPC8~11 SD interface
FLASH GPD0GPD1GPD2GPD3GPD4GPD5
SPI2 SS20SPI2 SPCLKSPI2 MISO0SPI2 MOSI0SPI2 MISO1SPI2 MOSI1
GPA12GPA13GPA14
PWM0PWM1PWM2
LED
GPC12~15 GPIO
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
9/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 9 - Version: 1.0
9. System Configuration
POWER ON SettingCON5 : Power Jack + 5V DC INVCC: VCC power in/outVCC5: 5VCC power in/outVCC33:3VCC power in/out
JP3: System voltageThe LB board is support 3V for system.
Debug ConnectICECON: USB connect to PC for debug NUC1XX.
USB ConnectJ3 mini USB Connector for NCU1XX USB function.
ResetSW_RESET:Reset NCU140(low reset)
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
10/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 10 - Version: 1.0
10. Function7-SEGMENT7-SEGMENT function(GPE0-GPE7, GPC4-GPC7 control)
7-SEGMENT
RP5
8P4R-3008P4RA
1 23 45 67 8
SB
S3
SF
GPC7
SG
RP4
8P4R-300
8P4RA
1 23 45 67 8
SE
SB
GPE0
DOT
segment2
A
B
C
D
E
F
G
H
U147-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
SE
Q6
8050
S3
GPE4
SA
S7
SC
SB
GPE7
DOT
S7S8
GPC6
SD
A
B
C
D
E
F
G
H
U127-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
DOT
segment2
SA
A
B
C
D
E
F
G
H
U117-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
S4
segment4
S2
RP3
8P4R-300
8P4RA
1 23 45 67 8
segment3
SG
S1
SD
S5
SD
SB
SE
segment1
SG
SB
SA
SC
GPE6
SC
SA
S1
DOT
S6
GPC5
VCC5
S2
DOT
SA
SF S
G
GPE3
SD
SF
SG
segment4
SF
GPE5
RP6
8P4R-5008P4RA
1
2
3
4
5
6
7
8
segment1
S4
SD
segment3
Q5
8050
GPE2
Q7
8050
SE
S6SF
S8
GPC4
SCS
E
1 2 3 4 5
A
B
C
D
E
F
G
H
U137-segment
6 7 8 9 10
A B
COMC D
E F COM
G H
SC
S5
GPE1
Q4
8050
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
11/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 11 - Version: 1.0
D function
KEYBOARDGPA0-GPA5 to control KEYBOAR
K9 SW
K6 SW
GPA0
GPA1
K1 SW K3 SW
GPA2
GPA4
K8 SW
K5 SW
KEYBOARD
GPA3
GPA5
K7 SW
K2 SW
K4 SW
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
12/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 12 - Version: 1.0
INTSW_INT connect to GPB15
GPB15
RINT1
10K
R0603
VCC
INT
SW_INT1
PUSH BOTTOM
SW
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
13/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 13 - Version: 1.0
LCDGPD8-GPD11 connect to LCD function.
GND
VCC33
SPI1_DO
CB4
0.1u
C0603
SPI1_CLK
VCC33
C11
4.7u
C0603GPD11
GND
SPI1_CLK
GND
C91uC0603VCC33
VCC33
GPD9GPD10
T1
A
L_RST#
T2
K
GPD8
VCC33
SPI1_CS#
L_RST#
R1310M
R0603
C81u
C0603
LCD
CON1
FPC30\0.5MMFPC 1X30
12345
6789
101112
1413
15161718192021222324252627282930
123456789101112
1413
1516171819202122232425
2627282930
SPI1_CS#
R1810K
R0603
GND
GND
C60.01u
C0603
SPI1_DO
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
14/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 14 - Version: 1.0
RGB LED
GPA12-GPA13 to control RGB LED function
VCC5
GPA13GPA14
RGBLED1
1234
RGB LED
RRGB3
500R0603
GPA12
RRGB2
500R0603
RRGB1
500R0603
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
15/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 15 - Version: 1.0
LEDGPC8-GPC15 to control LED function.
Q6
8050
SC
S7
GPE6
SB
SB
A
B
C
D
E
F
G
H
U117-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
SF
S7
GPC5
SE
SD
DOT
segment2
GPE3
SE
S4
GPE5
SA
S2
A
B
C
D
E
F
G
H
U147-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
SC
S1
GPE2
DOT
S5
S8
SE
GPC4
DOT
SG
Q7
8050
VCC5
segment3
SC
GPE1
segment4
S1
GPC7
SB
S2
SD
SAS
G
Q4
8050
GPE0
SA
SA
segment1
SF
Q5
8050
SB
SF
segment4
GPE4
S6
SG
SA
S4
DOT
segment3
A
B
C
D
E
F
G
H
U137-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
GPE7
SD
DOT
S6
SF
S8
GPC6
SC
7-SEGMENT
SD
SE
SG
S5
segment1
S3
SD
SG
RP4
8P4R-300
8P4RA
1 23 45 67 8
RP3
8P4R-300
8P4RA
1 23 45 67 8
SE
SB
SF
segment2
A
B
C
D
E
F
G
H
U127-segment
1 2 3 4 5
6 7 8 9 10
A B
COMC D
E F COM
G H
RP5
8P4R-3008P4RA
1 23 45 67 8
SC
S3
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
16/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 16 - Version: 1.0
UART
SW:UART on, GB0-GB3 connect UART Function
L4L0603
UART_RXD0
UART_TXD0
GND
C16
0.1uC0603
C120.1u
C0603
UART_TXD0
T1_OUT0
UARTGPB1
R1_IN0UART_RXD0
U5
SP232ECN
DIP16\SO
12345678
161514131211109
C1+V+
C1-C2+C2-V-T2_OUTR2_IN
VCCGN
T1_OUR1_I
R1_OT1_IT2_IN
R2_OUT
D
TN
UTN
GPB0
VCC33
C130.1u
C0603
CON2
DB9_MALE
16273849
VCC33
C14
0.1uC0603 10
C15
0.1u
C0603
115
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
17/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 17 - Version: 1.0
BuzzerGPB11 connect Buzzer.
R312K
R0603
GPB11
BUZZER
BZ1
2400Hz
12
Q1
8050
VCC
R1
220
BUZZER
BUZZER
I2CGPA10-GPA11 connect to I2C Flash
GPA10
EEPROMADDRESS: 0H
GPA11
I 2C- EEPROM
24LC64
U2
4321
5678
GNDA2A1A0
SDASCLWP
VCC
R7
2.2K
I2C VCC33
R8
2.2K
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
18/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 18 - Version: 1.0
SPI
GPD0-GPD5 connect to SPI Flash
SPI1_SO
SPI_SCK
VCC33
USPI3
W25X16VSSIG
SOIC-8P
1234 5
678
CS#DOWP#GND DI
CLKHOLD#
VCC
SPI_SCK
VCC33
GPD1
GPD4 SPI1_SIVCC33
GPD0
SPI1_SI
SPI_SCK
RSPI13
4.7K
SPI
SPI_SI
SPI_SI
GPD0
SPI_SCK
SPI_SO
SPI1_SO
SPI_SS
U3
W25X16VSSIG
SOIC-8P
1234 5
678
CS#DOWP#GND DI
CLKHOLD#
VCC
VCC33
R17
4.7K
GPD3
GPD5GPD1
RSPI14
4.7K
VCC33
VCC33
SPI_SS
R16
4.7K
SPI_SO
GPD2
SPI_SS
SPI_SS
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
19/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 19 - Version: 1.0
PS2
PS2 connect PS2CLK, PS2DAT pins
PS2DAT
PS2CLK
VCC
R4
4.7K
R0603
R2
4.7K
R0603
PS2
PS2DAT PS2DAT
PS2CLK PS2CLK
PS1
HEADER 3X1
123
ADCADC connect GPA7
VR1
20K
VCC
GPA7
ADCADC
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
20/27
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
21/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 21 - Version: 1.0
LIN and CAN
R21120
R0603
LIN_EN1
GPB12
RR2NC
R0603
R24
51K
R0603
GPD 7 C AN _TX0
LIN_WK1
LIN1
GPB13
VCC5
TPS61085
U7
4321
5678
GNDENFBCOMP
SWIN
FERQSS
GPB6
R231K
R0603
GPB7
C19
C0603
0.1u
LIN_RXD1
GPD 6 C AN _R X0
VCC33
R29
18K
R0603
LIN_EN1
GPB4
VCC5
VCC33
LIN_TXD1
L53.3uHL-3
JP2
HEADER 1X2
12
12
RR10
R0603
VCC12
R27
156K
R0603
VCC5
CANH
CB5
0.1u
C0603
U4
SN65HVD230SO-8
1234
876
R1910K
5
DGNDVCCR
RsCANHCANL
Vref
R0603
CAN_TX0
C20
1u
C0603
GND
CANH
VCC12
C17
4.7u
C0603
CANL
CT4
10uF/10V
TANT-A
ON : MASTER MODE
CANL
C18
220p
C0603
CAN_RX0 LIN_CAN1
HEADER 5X2
1 2
9 10
3 45 67 8
OFF : SLAVE MODE
LIN1
VCC33
LIN_RXD1
CT7
10uF/25V
TANT-B
CAN and LIN
GND
VCC12
1
2D1
1N4148
C21
1600p
C0603
LIN_RXD1
1 2D2
RB161M-20SOD-1231
LIN_WK1
VCC5
R2210K
R0603
CT6
10uF/25V
TANT-B
U6
TPIC1021SO-8
LIN_TXD1
1 82 7
65
ENWAKE
VSUPLIN
34
RXD
NTXD
INH
GND
GPB5
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
22/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 22 - Version: 1.0
SD Card Interface
VCC33
SPIMS_SO
Drain
GPC11
JS1
SD/MMC SOCKET
876543219
1011
1213
14
RSVDO
VSSCLKVDDVSS
DICS
RSV
WPGND
GNCDH
OLD
D#
(P-FET)
VCC33
Source
SD
Inteface
GPD12 SD_PWR
CC4
TBD
CC2
C/C,1uFSPIMS_CLK
SD_CD
CC1
C/C,0.1uF
SPIMS_SI
GPD13
RS3 22
QS1
Si2301ADS1
3
2
SPIMS_SS
SPIMS_SI
RPS1 8P4R-4.7K
1 8
SD_CD
GPC10 2 73 64 5
CC3
C/C,0.1uF
RS4 100K
SPIMS_SO
SPIMS_CLKGPC9
SPIMS_SS
RS1 33
RS2 220
GPC8
Gate
VDD3.3V
LEDS1
GREEN_LED
1 2LS1 FB
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
23/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 23 - Version: 1.0
11. GPIO OutputGPIO A
JP4
GPA Define
1 GPIOA0 ADC0
2 GPIOA1 ADC1
3 GPIOA2 ADC2
4 GPIOA3 ADC3
5 GPIOA4 ADC4
6 GPIOA5 ADC5
7 GPIOA6 ADC6
8 GPIOA7 ADC7 SPI_SS219 GPIOA8 I2C0SDA
10 GPIOA9 I2C0SCL
11 GPIOA10 I2C1SDA
12 GPIOA11 I2C1SCL
13 GPIOA12 PWM0
14 GPIOA13 PWM1
15 GPIOA14 PWM2
16 GPIOA15 PWM3
17-18 GND
GPIO B
JP5GPAB DEFINE
1 GPIOB0 RX0
2 GPIOB1 TX0
3 GPIOB2 RTS0
4 GPIOB3 CTS0
5 GPIOB4 RX1
6 GPIOB5 Tx1
7 GPIOB6 RTS1
8 GPIOB7 CTS1
9 GPIOB8 TM0 STADC
10 GPIOB9 TM1 SPI_SS11
11 GPIOB10 TM2 SPI_SS01
12 GPIOB11 TM313 GPIOB12 CPO0
14 GPIOB13 CPO1
15 GPIOB14 INT0 SPI_SS31
16 GPIOB15 INT1
17-18 GND
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
24/27
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
25/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
- 25 - Version: 1.0
GPIO E
JP8 GPE DEFINE
1 GPIOE0
2 GPIOE1
3 GPIOE2
4 GPIOE3
5 GPIOE4
6 GPIOE5
7 GPIOE6
8 GPIOE7
9 GPIOE8
10 GPIOE9
11 GPIOE10
12 GPIOE1113 GPIOE12
14 GPIOE13
15 GPIOE14
16 GPIOE15
17-18 GND
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
26/27
-
8/11/2019 Nu-LB-NUC140 Users Guide v2.0.pdf
27/27
NuMicro Learn Board
The above information is the exclusive intellectual property of Nuvoton Technology and shall not be disclosed, distributed or reproduced without permission from Nuvoton
6/7/2010
13. Revision historyversion date page description
1.0 May 17, 2010 -- Initial Issued