当前位置:文档之家› 芯唐NuEdu-SDK-NUC240开发工具简介

芯唐NuEdu-SDK-NUC240开发工具简介


Including Header file
(1)Include adapter board header file to Main procedure =>NuEdu-Basic01.h
(2)All function header files in adapter board header file =>NuEdu-Basic01_LED.h =>NuEdu-Basic01_Buzzer.h
USB Device Arduino Connection DC5V Adapter
Nu-Link-Me NuMicro Ext Pin
12
Reset Key
NuEdu-EVB-NUC240 with Module
GPIO
Timer ADC
UART PWM
I2C
SPI GPIO
13
Different Kinds of Combinations
VREF
VSS
I2C1
POWER
24
Pin Definition (1/3)
Header
NU1.1 NU1.2 NU1.3
Function
NC VDD MCU_RESET
Basic01
VDD MCU_RESET
Header
NU3.1 NU3.2 NU3.3
Function
PC.15 PC.14 PE.15 PE.14
NuMicro Tool Installation and Practice
NuMicro@
Agenda
• • • • • • Disc Content Introduction Software Installation NuEdu-SDK-NUC240 Introduction Run 1st NuEdu sample NuMicro Product Flow Chart Tools
ADC_MEASURE ADC_IN 7-Segment_A 7-Segment_B 7-Segment_C 7-Segment_D 7-Segment_E 7-Segment_F
I2C_SCL I2C_SDA LED_1 LED_2 LED_3 LED_4 LED_5 Button_2
N U 2
N U 4
25
Pin Definition (2/3)
Header
NU5.1 NU5.2 NU5.3 NU5.4 NU5.5 NU5.6 NU5.7 NU5.8 NU6.1 NU6.2 NU6.3 NU6.4 NU6.5 NU6.6 NU6.7 NU6.8 NU6.9 NU6.10
Function
UART_RX0
6
NuEdu-SDK-NUC240 Education / Development Kit
NuMicro@
Agenda
• • • • • NuEdu-SDK board? Feature Hardware Settings Sample Code for NuEdu Supported Function List
19
Sample Code Naming Rule
NuEdu-Basic01
Naming Rule: Smpl_board name_function =>Smpl_Basic01_StartKit
20
Support various adapter board in the future
EX: Advance, Wi-Fi, Sensor…
main
Header File Naming Rule:
NuEdu-Basic01.h
NuEdu-board name_function
=>NuEdu-Basic01_7_Segment.h
21
Supported Function List
22
Supported Function List
• • • • • • • • • • • • • SPI Flash Access I2C EEPROM Access ADC and Comparator PWM DAC to ADC PWM and Capture Buzzer CIR TX and RX Button LED TM0 Output and TM1 Capture Interrupt input 7 Segment PWM LED
1
Disc Content Introduction
2
Software Installation
Double Click “autorun.exe”
3
Step 1. Install the Keil uVision4
1. Keil RVMDK EV Version 2. Install Keil RVMDK EV Version
UART_TX0 PWM0 PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 PWM7 PC.4 PB.9 PC.5 PE.6 VSS VREF
Basic01
NUCOM1_RX
NUCOM1_TX LED_R LED_G LED_B PWM Cap PWM_DAC BUZZER PWM_OUT CIR_Cap 7-Segment_G 7-Segment_H 7-Segment_CTRL1 7-Segment_CTRL2 VSS VREF
N U 5
N U 7
N U 6
I2C1_DAT
I2C1_SCL
EEPROM
EEPROM
26
Pin Definition (3/3)
Header
NU8.1 NU8.3 NU8.5 NU8.7 NU8.9 NU8.11 NU8.13 NU8.15 NU8.17 NU8.19 NU8.21 NU8.23 NU8.25 NU8.27 NU8.29 NU8.31 NU8.33 NU8.35
9
BoxLeabharlann What’s Inside in NuEdu-SDK-NUC240 ?
(1)NuEdu-EVB-NUC240 (2)NuEdu-Basic01
(3)Nu-Bridge
(4)Connector and USB Line
10
Feature
11
Feature
• • • • An Evaluation or development kit for NUC230/240 Series Support Keil RVMDK, IAR EWARM development environment Support on-line ICP(In-Circuit Programming) Pin-compatible with Arduino
Header
NU7.1 NU7.3 NU7.5 NU7.7 NU7.2 NU7.4 NU7.6 NU7.8
Function
SPI2_MISO SPI2_CLK MCU_RESET SPI2_SS VCC SPI2_MOSI VSS PD.12
Basic01
SPI FLASH SPI FLASH MCU_RESET SPI FLASH VCC SPI FLASH VSS BUTTON_1
NU4
32 33 34 35 36 37 38 39 0 1 2 3 4 5
CLKO
46
NU5
6 7 8 9 10 11 12 13
RESET
ADC (0~7)
VIN
NU1
NC
POWER
NU6
14 15
NU8*
I2C0
UART (1~2)
GPIO
UART0
PWM (0~5)
PWM (6~7)
GPIO
3VCC
5VCC VSS VSS
N U 3
NU3.4
NU3.5 NU3.6 NU3.7 NU3.8 NU4.1 NU4.2 NU4.3 NU4.4 NU4.5 NU4.6 NU4.7 NU4.8
LED_7
PWM_DAC LED_8
PD.4
PD.5 CAN0_RX CAN0_TX I2C0_SCL I2C0_SDA UART_RX1 UART_TX1 UART_RX2 UART_TX2 PE.7 PE.8
INT1 INT0
SMBus
NU3
NU2
GPIO
78 76 74 72
SPI1
70 68 66
GPIO
44
43
SPI2
RESET
VSS SPI2 VCC
42 41 40
ACMP
64 62
SPI2
TM1_OUT
60 58 56 54
TIMER
TM0_CAP
NU7
GPIO
I2S
52 50 48
NuEdu-EVB-NUC240
23
Pin Assignment
5VCC 3VCC VSS VSS VDD
CAN
GPIO
31 30 29 28 27 26 25 24 80 79 77 75 73 71 69 67 65 63 61 59 57 55 53 51 49 47 45
UART1
23 22 21 20 19 18 17 16
16
Other Arduino Kits
Compatible with Any Other Arduino Kits
17
Sample Code for NuEdu
18
Advantage for BSP 3.00
NUC230_240 SeriesBSP_CMSIS_V3.00.001 • Unify API name • Lower barrier for engineer • Rich applications inside
相关主题