文件名称:NUC140_CAN_Master_CoOS

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

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

设备:

Nuvoton NUC140VE3AN



评估板:

Nu-LB_002 Rev2.0



编译器:

CoIDE V1.1.0



任务:

task_init  初始化目标板的资源,并创建其它任务,然后自我删除并退出调度。

get_datab  根据从子机接收到的ID数据,获得该ID的数据库信息。

update_db  等待输入消费金额,然后通过CAN发送消费金额到主机。

uart_print  打印余额。



描述:

本例子模拟了一个打卡消费系统的子机。在测试时,需要和一个打卡消费系统的主机对接:

1. 利用串口输入模拟打卡动作,利用AD输入模拟消费金额的输入动作。

2. 和主机通讯成功后,子机会显示此时插入卡的余额、消费状态和消费后余额。



系统配置:

时钟设置:

XTAL freq = 12.00 MHz

SYSCLK freq = 12.00 MHz

System Tick freq = 100Hz (10ms)-Equipment: Nuvoton NUC140VE3AN evaluation board: Nu-LB_002 Rev2.0 compiler: CoIDE V1.1.0 task: task_init initialize the target board resources, and create other tasks, and then self-delete and exit scheduling. get_datab according to the ID of the data received from the sub-machine, access to the ID database information. update_db waiting for input the amount of consumption, the consumption amount to the host and then be sent via CAN. uart_print Print balance. Descr iption: This example simulates a punch card consumer' s handset. Test and the butt of a punch card the consumption system' s host: 1 serial input analog punch action, take advantage of the AD the input analog spend the input action. 2 and host communication is successful, the child the opportunity to insert the card balance, consumption status and post-consumer balance. System configuration: clock settings: XTAL freq = 12.00 MHz SYSCLK freq = 12.00 MHz System Tick freq = 100Hz (10ms)
(系统自动生成,下载前可以参看下载内容)

下载文件列表

NUC140_can_CoOS_master

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

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

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

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

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

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

......................\..........\NUC1xx.h

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

......................\..........\.......\startup_NUC1xx.c

......................\..........\system_NUC1xx.c

......................\..........\system_NUC1xx.h

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

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

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

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

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

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

......................\.........\.......\......\DrvADC.h

......................\.........\.......\......\DrvCAN.h

......................\.........\.......\......\DrvCMP.h

......................\.........\.......\......\DrvFMC.h

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

......................\.........\.......\......\DrvI2C.h

......................\.........\.......\......\DrvI2S.h

......................\.........\.......\......\DrvPDMA.h

......................\.........\.......\......\DrvPS2.h

......................\.........\.......\......\DrvPWM.h

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

......................\.........\.......\......\DrvSPI.h

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

......................\.........\.......\......\DrvTimer.h

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

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

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

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

......................\.........\Source

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

......................\.........\......\......\DrvADC.c

......................\.........\......\......\DrvCAN.c

......................\.........\......\......\DrvCMP.c

......................\.........\......\......\DrvFMC.c

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

......................\.........\......\......\DrvI2C.c

......................\.........\......\......\DrvI2S.c

......................\.........\......\......\DrvPDMA.c

......................\.........\......\......\DrvPS2.c

......................\.........\......\......\DrvPWM.c

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

......................\.........\......\......\DrvSPI.c

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

......................\.........\......\......\DrvTimer.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

相关说明

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

相关评论

暂无评论内容.

发表评论

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

源码中国 www.ymcn.org