Nuvoton NuMicro NuTiny-SDK-NUC029KGE User Manual Download Page 44

NUC029KGE

 

 

Mar 4, 2019 

Page 

44

 of 47 

Rev 1.00 

NUT

INY

-S

DK
-NU
C02

9K
G

E

 U

S

E


MA

NUA

L

 

  GPIO for 128 pin Schematic 

6.2

 

 
 

 

Title

Size

Document Number

Rev

Date:

Sheet

of

NuTiny-SDK-NUC029KGE

v1.0

Ext. Connector

A

3

3

Wednesday , December 19, 2018

P33 - P64

JP4

HEADER 2.54 16X2 (NC)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

JP6

HEADER 2.54 16X2 (NC)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

P97 - P128

External Connector

P1 - P32

JP3

HEADER 2.54 16X2 (NC)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

JP5

HEADER 2.54 16X2 (NC)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

P36

P40

P38

P48

P56

P54

P52

P50

P58

P33

P49

P47

P45

P43

P41

P37

P35

P57

P55

P53

P51

P1

P17

P15

P13

P11

P9

P7

P5

P3

P31

P29

P27

P23

P21

P19

P2

P18

P16

P14

P8

P6

P4

P32

P30

P26

P24

P22

P20

P97

P113

P111

P109

P107

P105

P103

P101

P99

P127

P125

P123

P121

P119

P117

P115

P98

P110

P108

P106

P104

P102

P100

P126

P124

P122

P120

P118

P65

P81

P79

P77

P75

P73

P71

P69

P67

P95

P91

P89

P87

P85

P66

P82

P80

P78

P76

P74

P72

P70

P68

P96

P94

P92

P90

P88

P86

P84

P65 - P96

PD3

PD4

PD2

PD1

X32O

VBAT

PF10

PD11

PF2

X32I

PB6

PB13

PD5

PD12

AVSS

PB14

PB15

PB5

PD8

PB7

nRESET

PD0

GND

PC8

PE3

PD6

PD9

VDD

VDD

PD7

GND

XT1OUT

VDD

PD14

XT1IN

PC9

PD15

PD13

PC11

LDO_CAP

PC12

PC2

PC1

PC13

PC10

PC3

PC0

PC14

PC4

PC6

PC7

PE4

PE0

PE6

PE7

PA8

PC5

PF5

PA7

PA6

PE5

PA5

PA10

PA11

PA9

PE10

PE9

PE1

PE8

PE11
PE13

PE12
VDDIO

GND

USB_VBUS

USB_DM

USB_DP

VDD

PA4

PB3

PB4

PC15

USB_VDD33_CAP

PF7

PA0

VDD

PA1

PF6

GND

PA14

PA12

PA13

PB11

PB12

PA15

PB10

PE2

PB8

AVDD

PB9

PB0

VREF

PB2

PB1

VDD

PA2

PA3

Summary of Contents for NuMicro NuTiny-SDK-NUC029KGE

Page 1: ...operty 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 sys...

Page 2: ...31 2 5 3 How to Start NuTiny SDK NUC029KGE on the Keil mdk ENVIRONMENT 32 Downloading and Installing Keil MDK Software 32 3 1 Downloading and Installing Nuvoton Nu Link Driver 32 3 2 Hardware Setup 3...

Page 3: ...3 Build and Download Code to NuTiny SDK NUC029KGE 41 5 3 4 Open the Serial Port Terminal 41 5 3 5 Reset Chip 42 6 NuTiny SDK NUC029KGE Schematics 43 Nu Link2 Me Schematic 43 6 1 GPIO for 128 pin Sche...

Page 4: ...r precision control and an integrated hardware divider to speed up the calculation for the control algorithms Apart from that the NUC029xGE also integrates SPROM Security Protection ROM which provides...

Page 5: ...Me Debug Adaptor connects your PC s USB port to your target system via Serial Wired Debug Port and allows you to program and debug embedded programs on the target hardware The Nu Link2 Me also suppor...

Page 6: ...CEVCC 1 8V or 3 3V ICEJPR2 ICE USB Connector ICEJ3 VCOM Switch ICESW2 ICE Status LED Off line Program Button ICESW1 Nu Link2 Me ICE Chip M48SSIDAE Figure 2 1 NuTiny SDK NUC029KGE PCB Board Target Chip...

Page 7: ...t pin 4 PB 5 I O General purpose digital I O pin ADC0_CH13 A ADC0 channel 13 analog input SPI0_MOSI I O SPI0 MOSI Master Out Slave In pin SPI1_MOSI I O SPI1 MOSI Master Out Slave In pin ACMP0_P2 A Ana...

Page 8: ...pin ACMP1_N A Analog comparator 1 negative input pin SC1_CLK O Smart Card 1 clock pin INT3 I External interrupt 3 input pin 9 AVSS P Ground pin for analog circuit 10 NC No connect pin leave floating 1...

Page 9: ...1 positive input 2 pin TM0 I O Timer0 event counter input toggle output pin EBI_nRD O EBI read enable output pin 18 PD 2 I O General purpose digital I O pin ADC0_ST I ADC0 external trigger input pin...

Page 10: ...Send input pin PWM0_BRAKE1 I PWM0 Brake 1 input pin TM1 I O Timer1 event counter input toggle output pin 22 PE 3 I O General purpose digital I O pin SPI1_MOSI I O SPI1 MOSI Master Out Slave In pin UAR...

Page 11: ...er input toggle output pin USCI2_DAT0 I O USCI2 data 0 pin 31 PD 11 I O General purpose digital I O pin TM3 I O Timer3 event counter input toggle output pin USCI2_DAT1 I O USCI2 data 1 pin 32 PD 12 I...

Page 12: ...O source for internal PLL and digital circuit 38 PD 7 I O General purpose digital I O pin USCI1_CTL1 I O USCI1 control 1 pin SPI0_I2SMCLK I O SPI0 I2S master clock output pin PWM0_SYNC_IN I PWM0 count...

Page 13: ...ter Out Slave In pin I2C1_SDA I O I 2 C1 data input output pin USCI2_DAT1 I O USCI2 data 1 pin PWM1_CH1 I O PWM1 channel 1 output capture input 50 PC 11 I O General purpose digital I O pin SPI0_MISO I...

Page 14: ...d output pin USCI0_DAT1 I O USCI0 data 1 pin ACMP1_WLAT I Analog comparator 1 window latch input pin PWM0_CH1 I O PWM0 channel 1 output capture input EBI_AD9 I O EBI address data bus bit 9 56 PC 2 I O...

Page 15: ...ve floating 63 NC No connect pin leave floating 64 NC No connect pin leave floating 65 PE 0 I O General purpose digital I O pin SPI0_CLK I O SPI0 serial clock pin I2C1_SDA I O I 2 C1 data input output...

Page 16: ...n SC0_PWR O Smart Card 0 power pin PWM1_BRAKE0 I PWM1 Brake 0 input pin EBI_nCS0 O EBI chip select 0 output pin INT0 I External interrupt 0 input pin 70 PE 5 I O General purpose digital I O pin I2C0_S...

Page 17: ...output pin I2C1_SDA I O I 2 C1 data input output pin UART1_RXD I UART1 data receiver input pin SC0_RST O Smart Card 0 reset pin SC1_PWR O Smart Card 1 power pin TM_BRAKE1 I TM_BRAKE1 I Timer Brake in...

Page 18: ...r2 external capture input toggle output pin TM_BRAKE3 I TM_BRAKE3 I Timer Brake input pin EBI_AD5 I O EBI address data bus bit 5 81 PA 4 I O General purpose digital I O pin SPI1_SS I O SPI1 slave sele...

Page 19: ...pin EBI_AD7 I O EBI address data bus bit 7 TM0_EXT I O Timer0 external capture input toggle output pin 89 PE 11 I O General purpose digital I O pin SPI1_MOSI I O SPI1 MOSI Master Out Slave In pin SPI0...

Page 20: ...nal D 97 PF 7 I O General purpose digital I O pin 98 USB_VDD33_CAP A Internal power regulator output 3 3V decoupling pin 99 PF 6 I O General purpose digital I O pin 100 PC 15 I O General purpose digit...

Page 21: ...EBI address data bus bit 1 105 PA 0 I O General purpose digital I O pin UART1_nCTS I UART1 clear to Send input pin UART1_TXD O UART1 data transmitter output pin USCI1_CTL0 I O USCI1 control 0 pin SC0_...

Page 22: ...L1 I O USCI1 control 1 pin TM2 I O Timer2 event counter input toggle output pin 110 PA 15 I O General purpose digital I O pin UART2_nRTS O UART2 request to Send output pin USCI1_CLK I O USCI1 clock pi...

Page 23: ...0 reset pin PWM0_SYNC_OU T O PWM0 counter synchronous trigger output pin EBI_nWRH O EBI high byte write enable output pin USCI1_DAT1 I O USCI1 data 1 pin 120 PB 2 I O General purpose digital I O pin A...

Page 24: ...BI address data bus bit 7 USCI0_CTL1 I O USCI0 control 1 pin UART2_RXD I UART2 data receiver input pin TM1_EXT I O Timer1 external capture input toggle output pin 123 PB 8 I O General purpose digital...

Page 25: ...T1 request to Send output pin TM_BRAKE3 I TM_BRAKE3 I Timer Brake input pin PWM0_CH2 I O PWM0 channel 2 output capture input USCI0_CTL0 I O USCI0 control 0 pin 128 NC No connect pin leave floating Not...

Page 26: ...e Regulator 5V Source Comment ICEUP1 USB_HS_VBUS ICEUP1 converts USB_HS_VBUS to 3 3 V and supplies 3 3V to NUC029KGE platform or ICE chip Table 2 3 3 3 V Power Sources 2 3 3 1 8 V Power Sources Table...

Page 27: ...gures the ICE chip operating voltage at 1 8 V 3 3 V Table 2 7 Power Switches 2 3 7 Power Supply Models External Power Supply through Nu Link2 Me to Target Chip 2 3 7 1 The external power supply source...

Page 28: ...ase do not switch to 1 8V power source Table 2 8 Supply External Power through Nu Link2 Me External Power Supply through NUC029KGE platform to Target Chip 2 3 7 2 The external power supply sources on...

Page 29: ...ctor J2 External VDD Connector JP1 External VSS Connector JP2 Separate Nu Link2 Me Table 2 9 presents all power models when supplies external power through NUC029KGE platform The NUC029KGE platform ex...

Page 30: ...red PC 5 I O LED The LED is connected to the target chip PC 5 ICE ISP RED and GREEN Nu Link2 Me status LED Table 2 12 LEDs Nu Link2 Me 2 4 The Nu Link2 Me is a debugger and programmer that supports on...

Page 31: ...Mar 4 2019 Page 31 of 47 Rev 1 00 NUTINY SDK NUC029KGE USER MANUAL NuTiny SDK NUC029KGE PCB Placement 2 5 Figure 2 4 shows the NuTiny SDK NUC029KGE PCB placement Figure 2 4 NuTiny SDK NUC029KGE PCB P...

Page 32: ...official Nuvoton NuMicro website http www nuvoton com NuMicro to download NuMicro Keil Vision IDE driver file When the Nu Link driver has been well downloaded please unzip the file and execute the Nu...

Page 33: ...system manager controller and clock controller Start uVision Start debug mode When using the debugger commands you may Project Open Open the SYS uvproj project file Review variables in the watch wind...

Page 34: ...4 2 Please visit the official Nuvoton NuMicro website http www nuvoton com NuMicro to download the NuMicro IAR EWARM Driver file When the Nu Link driver has been well downloaded please unzip the file...

Page 35: ...will show some functions about system manager controller and clock controller Start IAR Embedded Workbench Project Download and Debug Program the application code into on chip Flash ROM File Open Wor...

Page 36: ...ton com NuMicro to download the NuMicro ICP Programming Tool file After the ICP Programming Tool driver is downloaded please unzip the file and execute the ICP Programming Tool exe Simply follow the i...

Page 37: ...NUC029KGE Mar 4 2019 Page 37 of 47 Rev 1 00 NUTINY SDK NUC029KGE USER MANUAL Figure 5 3 Install Nuvoton Universal Serial Bus Controllers...

Page 38: ...9KGE transmits through UART0 to VCOM to send out data Switch ICESW2 off when using UART0 function without VCOM function Development Tool Setup 5 3 The example is demonstrated on the Keil Vision IDE 5...

Page 39: ...5 3 2 Check the Target Device and Debug Setting The target device has to be the same as the setting in Debug Please click Target Option to open the Option windows and find the setting in Device Debug...

Page 40: ...NUC029KGE Mar 4 2019 Page 40 of 47 Rev 1 00 NUTINY SDK NUC029KGE USER MANUAL Step 2 Step 3...

Page 41: ...ANUAL 5 3 3 Build and Download Code to NuTiny SDK NUC029KGE Please build the project and download code to the NuTiny SDK NUC029KGE 5 3 4 Open the Serial Port Terminal User can use serial port terminal...

Page 42: ...nt out debug message Figure 5 6 Serial Port Terminal Windows Note Please switch ICESW2 on before the NuTiny SDK NUC029KGE is connected to the PC When the NuTiny SDK NUC029KGE is connected to the PC wi...

Page 43: ...SN74LV2T45DCUR ICEU4 SOP8 3 1 0 5 GND 4 A2 3 VCCA 1 DIR 5 A1 2 B2 6 B1 7 VCCB 8 ICER1 200 1 R0603 HSUSB_VDD33 HXT_O ICEC11 20p C0603 ICEC10 20p C0603 HXT_I 12M Crystal ICEX1 12MHz SMD X3225B 1 XIN 2 G...

Page 44: ...6 P54 P52 P50 P58 P33 P49 P47 P45 P43 P41 P37 P35 P57 P55 P53 P51 P1 P17 P15 P13 P11 P9 P7 P5 P3 P31 P29 P27 P23 P21 P19 P2 P18 P16 P14 P8 P6 P4 P32 P30 P26 P24 P22 P20 P97 P113 P111 P109 P107 P105 P1...

Page 45: ...PA1 PF6 PC15 P9 AVSS PA14 PA12 PA13 PA0 P112_NC PA15 GND PC7 PE4 PE0 PB12 P11 VDD P10 PE7 PA8 PC5 PC6 P12 PA7 PA6 PE5 PE6 P13 VSS PA10 PA11 PA9 PF5 P14 PE9 PE1 PE8 PA5 P15 PE13 PE12 VDDIO PE10 P16 US...

Page 46: ...NUC029KGE Mar 4 2019 Page 46 of 47 Rev 1 00 NUTINY SDK NUC029KGE USER MANUAL 7 REVISION HISTORY Date Revision Description 2019 03 04 1 00 1 Initially issued...

Page 47: ...t 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 v...

Reviews: