更换语言:
   Contact us
  • Follow CooCox
  •         
  • CooCox Market
  •         
  • Tech Support
  •     
Home  › CoOS › Examples

Nuvoton NUC140VE3AN CAN Example Code for CoOS Free RTOS


Device:

Evaluation Board:

Complier:

Tasks:
task_init Initialize all the hardware ,Create all the flag and mutex in this application.
send_id This task use to send the card ID.
send_val This task use to send the Consumption.
make_action This task use to make a action to indicate the statue.
uart_print Print the the information in this application.

Descriptions:

This example simulates a punch card consumption sub-machine system. The test the hardware needs to dock with a punch card host system.

1. Using serial input to simulate the insert card movement, using AD input analog the amount of consumption's input action.

2. If communication with host is successful, system will show the card's balance, consumer status and post-consumer balance.


System Configuration:
Clock Settings:
  • XTAL   freq         = 12.00 MHz
  • SYSCLK freq       = 12.00 MHz
  • System Tick freq = 100Hz (10ms)

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

CooCox CoOS

© 2009 -2011 CooCox - Terms of Use         Business Model         Market             About us