文件名称:NUC122RD2AN_CoOS

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 487kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • pe***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

设备:

Nuvoton NUC122RD2AN



评估板:

NuTiny-EVB-122



编译器:

CoIDE V1.4.2



任务:

task_init  初始化所有的硬件,创建所有的事件标志和互斥体.

Task_TimeBlink  用于当在设置时间时,闪烁LCD液晶屏.

Task_Monitor  用于显示当前时间.格式"**:**:**"

Task_TimeSet  用于设置时间.

led_blink  闪烁7个发光二极管.



描述:

1.这个例子使用1602的液晶屏来显示时间,用户可以通过敲击按键来任意的调整时间。按下键1(PD0)可以选择你需要调节的位,比如:小时、分钟、秒,在选择后相应的位会闪烁,在连续按下七次后退出设置时间。按下键2(PD1)可以将按键1选择的位加一。

2.七个发光二极管将不停地闪烁。



系统配置:

时钟设置:

XTAL freq = 12.00 MHz

SYSCLK freq = 60.00 MHz

System Tick freq = 100Hz (10ms)-Equipment: Nuvoton NUC122RD2AN evaluation board: NuTiny-EVB-122 compiler: CoIDE V1.4.2 task: task_init initialize all of the hardware, to create all of the event flag and mutex. Task_TimeBlink used when in set-up time, the flashing LCD LCD screen. Task_Monitor used to display the current time format " **:**:**" Task_TimeSet used to set the time. led_blink flashing 7 light-emitting diode Descr iption: This example uses the 1602' s LCD screen to display the time, the user can be arbitrary by hitting the button to adjust the time. Press key 1 (PD0) can choose the bits you need to adjust, such as: hours, minutes, seconds after selecting the corresponding bit flashes exit the set time after seven continuous press. Press the key 2 (PD1) button 1 Select the bit can be incremented by one. Seven light-emitting diodes will stop flashing. System configuration: clock settings: XTAL freq = 12.00 MHz SYSCLK freq = 60.00 MHz System Tick freq = 100Hz (10ms)
(系统自动生成,下载前可以参看下载内容)

下载文件列表

NUC122RD2AN_CoOS

................\.cproject

................\.project

................\App

................\...\AppConfig.c

................\...\AppConfig.h

................\...\LCD_4bit.c

................\...\LCD_4bit.h

................\...\main.c

................\build.xml

................\cmsis_boot

................\..........\NUC122.h

................\..........\startup

................\..........\.......\startup_NUC122.c

................\..........\system_NUC122.c

................\..........\system_NUC122.h

................\cmsis_core

................\..........\core_cm0.c

................\..........\core_cm0.h

................\cmsis_lib

................\.........\Include

................\.........\.......\Driver

................\.........\.......\......\DrvGPIO.h

................\.........\.......\......\DrvRTC.h

................\.........\.......\......\DrvSYS.h

................\.........\.......\......\DrvUART.h

................\.........\.......\System

................\.........\.......\......\ModuleID.h

................\.........\.......\......\SysInfra.h

................\.........\Src

................\.........\...\Driver

................\.........\...\......\DrvGPIO.c

................\.........\...\......\DrvRTC.c

................\.........\...\......\DrvSYS.c

................\.........\...\......\DrvUART.c

................\CoOS

................\....\Document

................\....\........\readme.txt

................\....\kernel

................\....\......\coocox.h

................\....\......\CoOS.h

................\....\......\core.c

................\....\......\event.c

................\....\......\flag.c

................\....\......\hook.c

................\....\......\kernelHeap.c

................\....\......\mbox.c

................\....\......\mm.c

................\....\......\mutex.c

................\....\......\OsConfig.h

................\....\......\OsCore.h

................\....\......\OsError.h

................\....\......\OsEvent.h

................\....\......\OsFlag.h

................\....\......\OsKernelHeap.h

................\....\......\OsMM.h

................\....\......\OsMutex.h

................\....\......\OsQueue.h

................\....\......\OsServiceReq.h

................\....\......\OsTask.h

................\....\......\OsTime.h

................\....\......\OsTimer.h

................\....\......\queue.c

................\....\......\sem.c

................\....\......\serviceReq.c

................\....\......\task.c

................\....\......\time.c

................\....\......\timer.c

................\....\......\utility.c

................\....\......\utility.h

................\....\portable

................\....\........\arch.c

................\....\........\GCC

................\....\........\...\port.c

................\....\........\OsArch.h

................\Debug

................\.....\bin

................\.....\...\history.xml

................\.....\...\NUC122RD2AN_CoOS.bin

................\.....\...\NUC122RD2AN_CoOS.elf

................\.....\...\NUC122RD2AN_CoOS.hex

................\.....\...\NUC122RD2AN_CoOS.map

................\.....\...\NUC122RD2AN_CoOS.txt

................\.....\obj

................\.....\...\AppConfig.o

................\.....\...\arch.o

................\.....\...\core.o

................\.....\...\core_cm0.o

................\.....\...\dependencies.xml

................\.....\...\DrvGPIO.o

................\.....\...\DrvPWM.o

................\.....\...\DrvRTC.o

................\.....\...\DrvSYS.o

................\.....\...\DrvUART.o

................\.....\...\event.o

................\.....\...\flag.o

................\.....\...\history.xml

................\.....\...\hook.o

................\.....\...\kernelHeap.o

................\.....\...\LCD_4bit.o

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org