文件名称: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)
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
......................\.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