This project uses the Controller Area Network (CAN).
This examples requires one of the following evaluation kits:
Upon startup, the program will configure the CAN, and make synchronization. If connected to other board, user can send a frame by pressing a key.
The basic will :
BOARD 1: (we press the key 1)
-- Basic CAN Project 1.4 --
-- AT91SAM7X-EK
IP version: 0x121
CAN_Synchronisation
-I- CAN0 Initialisations Completed
INIT OK
CAN0 Mailbox 1, transmit, with acceptance mask
BOARD 2:
-- Basic CAN Project 1.4 --
-- AT91SAM7X-EK
IP version: 0x121
CAN_Synchronisation
-I- CAN0 Initialisations Completed
INIT OK
Press a Key [1:transmit 2:transmit 3:dump register]
Receive Maibox Number: 5
Read data low 0xAABBCCDD
Read data high 0x11223344
CAN0 Mailbox 1, transmit, with acceptance mask
Dump registers
CAN_MR: 0x1
CAN_IMR: 0x1F0000FF
CAN_SR: 0x610000
CAN_BR: 0x23534
CAN_ECR: 0x0
CAN_MB_MMR: 0x1000000
CAN_MB_MAM: 0x20080000
CAN_MB_MID: 0x80000
CAN_MB_MSR: 0x0
CAN_MB_MDL: 0x0
CAN_MB_MDH: 0x0
-- Basic CAN Project 1.4 --
-- AT91SAM7A3-EK
IP version: 0x121
CAN_Synchronisation
-I- CAN0 Initialisations Completed
-I- CAN1 Initialisations Completed
With Interrupt CAN0 Mailbox 0 transmitting to CAN1 Mailbox 0
Test passed
With Interrupt CAN0 Mailboxes 1 & 2 transmitting to CAN1 Mailbox 15
Test passed
With Interrupt CAN0 Mailboxes 1 & 2 transmitting to CAN1 Mailbox 15
Wait, wait, wait, wait
Test passed
With Interrupt CAN0 Mailbox 3 asking for CAN1 Mailbox 3 transmission
Test passed
Without Interrupt CAN0 Mailbox 0 transmitting to CAN1 Mailbox 0
Test passed
Without Interrupt CAN0 Mailboxes 1 & 2 transmitting to CAN1 Mailbox 15
Test passed
Without Interrupt CAN0 Mailboxes 1 & 2 transmitting to CAN1 Mailbox 15
Test passed
Without Interrupt CAN0 Mailbox 3 asking for CAN1 Mailbox 3 transmission
Test passed