basic-can-project
Default mainpagebasic-can-project
Description Graph
basic-can-project
 
Purpose
This demo implement a basic CAN driver.

Requirements
This package can be used with all Atmel evaluation kits that have CAN interface

Description
Open HyperTerminal before running this program, use SAM-BA to download this program to SRAM or SDRAM, make the program run, the HyperTerminal will give out the test results.

Usage
  1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. For SAM7A3, user can connect the 2 CAN in loop, and launch the software.
  4. User should launch the software on 2 boards, connected by the CAN. In this case, users should press a key in the HyperTerminal for send a frame. Two HyperTerminal should be open on each boards.
  5. Upon startup, the application will output the following lines on the DBGU.
    -- Basic CAN Project xxx --
    -- AT91xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    -I- CAN_Synchronisation
    -I- CAN0 Initialisations Completed
    -I- CAN1 Initialisations Completed
    
 
Source
The documentation for this Directory was generated from the following files:
  • main.c