Sei sulla pagina 1di 12

NUC140

Nu-LB-NUC140 Software Directory


Directory Introduction for 32-bit NuMicro® Family

Directory Information

Nu-LB-NUC140_BSP Cortex-M0 learning board Board Software Package

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

June 23, 2016 Page 1 of 12 Rev 1.0


NUC140

1 Nu-LB-NUC140_BSP Information

Document Driver reference manual and reversion history.

Library Driver header and source files.

SampleCode Learning board sample code.

June 23, 2016 Page 2 of 12 Rev 1.0


NUC140

2 Document Information

Revision History.pdf This document shows the revision history of Nu-LB-NUC140


Software

RH_NUC100 Series This document describes the usage of drivers in NUC100


BSP_CMSIS_V3.00.002.pdf BSP.

June 23, 2016 Page 3 of 12 Rev 1.0


NUC140

3 Library Information

CMSIS Cortex® Microcontroller Software Interface Standard


(CMSIS) V3.01 definitions by ARM® Corp.

Device CMSIS compliant device header file.

NUC1xx-LB_002 Library for on-board devices (such as 3x3 keypad, Seven


Segment LEDs, SD card, LCD, TFT, Audio Codec)

NuMakeLib Library for external sensors / peripherals

StdDriver All peripheral driver header and source files.

June 23, 2016 Page 4 of 12 Rev 1.0


NUC140

4 SampleCode Information

Nu-LB-NUC140 Nu-LB-NUC140 learning board sample code

NUC140 pin table.xls Excel file of NUC140 pin table including LQFP100,64,48

June 23, 2016 Page 5 of 12 Rev 1.0


NUC140

5 Nu-LB-NUC140 Sample Code Information

ADC Analog-to-Digital Converter to read Sensor

Analog-to-Digital Converter continuoulsy read 8


ADC_8ch
channels

ADC_Joystick Analog-to-Digital Converter reading a joystick

ADC_Photoresistor Analog-to-Digital Converter reading a photoresistor

Analog-to-Digital Converter (ADC7) read VR1 then set


ADC_PWM
PWM0/GPA12 to dim blue-LED

ADC_Thermistor Analog-to-Digital Converter reading a thermistor

Analog-to-Digital Converter reading the on-board


ADC_VR1
variable resistor

Running CAN basic mode (without message RAM) to


CAN_BasicMode_Keypad
read 3x3 keypad and transmit the keyin digit

Running CAN basic mode (without message RAM) to


CAN_BasicMode_RX
receive data

Running CAN basic mode (without message RAM) to


CAN_BasicMode_TX
transmit data

Running CAN normal mode (with message RAM) to


CAN_NormalMode_RX
receive data

Running CAN normal mode (with message RAM) to


CAN_NormalMode_TX
transmit data

GPIO_7seg GPIO driving quad seven segment LEDs

GPIO input 3x3 keypad and display the digit on seven


GPIO_7seg_keypad
segment LEDs

June 23, 2016 Page 6 of 12 Rev 1.0


NUC140

GPIO_Buzzer GPIO output control the on-board buzzer (GPB11)

GPIO_EXTINT GPIO external interrupts

GPIO_IRQ GPIO interrupt triggered by buttons

GPIO_Keypad GPIO input 3x3 keypad and output control LED

GPIO_L298N GPIO output control dual full-bridge DC motor driver

GPIO_LED GPIO output control on-board red LED (GPC12)

GPIO_LED8x8 GPIO output control 8x8 matrix LED

GPIO_LED16x16 GPIO output control 16x16 matrix LED

GPIO_PIR GPIO input the passive infrared sensor

GPIO_RGBLED GPIO output control the on-board RGB LED

GPIO_Stepmotor GPIO output control a small step motor

I2C_BMP085 I2C read pressure and temperature from a barometer

I2C_HTU21D I2C read humidity & temperature from a sensor

I2C_LM75A I2C read temperature sensor

I2C_MPU6050 I2C read IMU and print on Debug Session View

I2C_MPU6050_Tilt I2C read Accelerometer to calculate the tilt angles

June 23, 2016 Page 7 of 12 Rev 1.0


NUC140

LCD LCD display 4 lines of text

LCD_Bmp LCD display multiple bitmaps of logo (128x64)

LCD_Bmp_Cartoon LCD display multiple bitmaps of cartoon icon (64x64)

LCD_Bmp_Keypad Read 3x3 keypad to move a bitmap on LCD

LCD_Game_AngryBird Emulate the game Angry Bird on LCD

LCD_Game_FlappyBird Emulate the game Flappy Bird on LCD

LCD_Game_Frogger Emulate the game Frogger on LCD

LCD_Game_Invader Emulate the game Space Invader on LCD

LCD_Graph_2D Drawing 2D graphs on LCD

LCD_Graph_pingpong Rendering a pingpong ball and two bars on LCD

LCD_Graph_SinCos Plotting Sin & Cos waveform on LCD

LCD_Keypad GIO read 3x3 keypad and display the input digit on LCD

proj_BT2RC Use Android App to remote control bluetooth car

proj_IMU_DCservo Use tilt angle read from IMU to control the DC servo

proj_IMU_pingpong Use tilt angle read from IMU to control pingpong on LCD

proj_PPG_LCD Read PPG sensor and display pulse on LCD

June 23, 2016 Page 8 of 12 Rev 1.0


NUC140

PWM PWM0 set ch0 & ch1 output 125KHz, duty cycle at 50%

PWM_4ch PWM0 set 4 channels (ch0~3) output

PWM_Capture PWM0 ch0 output to PWM0 ch2 capture

PWM_Deadzone PWM output with Deadzone protection

PMW_DS04 PWM output to drive 360-degree rotation DC servo

PWM_Music PWM0 ch0 output music "Fur Elise"

PMW_SG5010 PWM output to drive 180-degree rotation DC servo

PWM output generate the siren of police car and


PWM_Siren
ambulance

PWM_Sound PWM0 ch0 output single tone (to speaker or buzzer)

RTC_Alarm RTC alarm in 5 second (printf to display)

RTC_LCD Display RTC Date & Time on LCD (with PowerDown)

RTC_LCD_Clock Draw a Clock & draw clock pointer every RTC tick

SEMIHOST Using Keil MDK Debug Session

SEMIHOST_CPUASM Using Keil MDK Debug Session with an assembly code

SPI_Loopback SPI MOSI to MISO loopback test

SPI_NRF24L01 nRF24L01 Tranmitter & Receiver Testing

June 23, 2016 Page 9 of 12 Rev 1.0


NUC140

SPI_RFID-RC522 SPI to access RFID Reader RC522 reading RFID Tag

TFT_Text SPI TFT to display 4 lines of text

TMR_Capture_SR04 Timer Capture for Ultrasonic Sensor Ranger

TMR_Counters One Timer to generate 4 counters

TMR_Delay Timer to count the delay

TMR_EventCount Timer to count times of external event

TMR_LED Timer interrupt to switch LED on/off

TMR_Modes Each Timer present one Timer operational mode

UART_ADC UART send out ADC 8 channels data continuously

UART_ESP8266 UART connect to ESP8266 (WiFi module)

UART receive data from HC05 (Bluetooth 2.0 module)


UART_HC05
and display data by printf

UART receive data from HC05 (Bluetooth 2.0 module)


UART_HC05_LCD
and display data on LCD

UART_Loopback UART Loopback Test (TX connected to RX)

UART_RC522 UART interface to RC522 RFID Reader

USBD_HID_Gamepad Emulate USB HID Device Gamepad

USBD_HID_Keyboard Emulate USB HID Device Keyboard

June 23, 2016 Page 10 of 12 Rev 1.0


NUC140

USBD_HID_Mouse Emulate USB HID Device Mouse

USBD_HID_Transfer Emulate USB HID Device Data Transfer

USBD_MassStorage_DataFlash Emulate USB Mass Storage Data Flash

USBD_VCOM Emulate USB Device Virtual Comm Port

WDT_Interrupt WatchDog Timer timeout to interrupt MCU

WDT_Reset WatchDog Timer timeout to reset MCU

WatchDog Timer timeout to wake MCU up from power-


WDT_Wakeup
down mode

June 23, 2016 Page 11 of 12 Rev 1.0


NUC140

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.

June 23, 2016 Page 12 of 12 Rev 1.0

Potrebbero piacerti anche