Nuvoton ARM Cortex M0 M4

 Forgot password?
Hot search: MINI51 NUC M051 M4 NANO
View: 98516|Reply: 0

Nuvoton NUC140VE3CN Example Code for CoOS Free RTOS [Copy this link to quote]

Rank: 9Rank: 9Rank: 9

Post time: 2014-01-20 09:07:21
|Show all posts
Nuvoton NUC140VE3CN Example Code for CoOS Free RTOS

Evaluation Board:




Initialize all the hardware ,Create all the flag and mutex in this application.


This function use to ring the alarm clock.


This task use to set the time or the alarm.


This function use to blink lcd,when time or alarm is in setting.


This task use to Complete time and alarm display.


Complete keyboard scan, digital control of dynamic display


1. In general, press the key 1(The first key in Matrix keyboard) will Switch display time and alarm. If now LCD is display the alarm without pressing the key 1 any more, then LCD will display time after 10 seconds.

2. This example simulates a real-time clock and alarm on a 128*64 LCD with which users can set time and alarm freely: key 2 and key 3 could configure the time or alarm which is currently displayed.
Press key 2(The second key in Matrix keyboard) to choose the month, day, hour, minute or second that you want to modify, the selected bit will blink at the same time. When press it 7 times, you will exit the configuration mode.
Press key 3(The third key in Matrix keyboard) to increase the month, day, hour, minute or second which was choosen to modify by key 2.

3. System samples the value of AD at regular intervals and show it by the 7-segment LED. You can adjust the input voltage of AD converter by the regulation resistance on board, and you could see the change on the last three 7-segment LED.

4. The first 7-segment LED will show the key vaule.

5. When the alarm is ringing, press any key will stop it ringing. If you press Key 7, it will end Ring-again mode; if you press the other key, it will ring again after one minute.

System Configuration:

The max user task:10
Enable Mutexes(CFG_MUTEX_EN) and software timer (CFG_TMR_EN).

Clock Settings:

  • XTAL   freq         = 12.00 MHz
  • SYSCLK freq       = 12.00 MHz
  • System Tick freq = 300Hz (3.3ms)

Download File
Nuvoton NUC140VE3CN Example Code for CoOS Free RTOS (using CoIDE V1.1.0)

Attachment: You have to Login to download or view attachment(s). No Account?

Use magic Report

You have to log in before you can reply Login | Register

Archiver| Nuvoton ARM Cortex M0 M4

2017-03-26 03:41 GMT+8 , Processed in 0.054710 sec., 11 queries

Powered by Discuz! X2, Release 20111010 © 2001-2011 Comsenz Inc.

English version, Rev. 146, © 2009-2011 Valery Votintsev

To Top