DSP 28335 ECAN模块
时间:10-02
整理:3721RD
点击:
谁有发送接收程序呀! 谢谢。
- // TI File $Revision: /main/2 $
- // Checkin $Date: July 30, 2009 18:44:23 $
- //###########################################################################
- //
- // FILE: Example_2833xECanBack2Back.c
- //
- // TITLE: DSP2833x eCAN Back-to-back transmission and reception in
- // SELF-TEST mode
- //
- // ASSUMPTIONS:
- //
- // This program requires the DSP2833x header files.
- //
- // This progrm uses the peripheral's self test mode.
- // Other then boot mode configuration, no other hardware configuration
- // is required.
- //
- // As supplied, this project is configured for "boot to SARAM"
- // operation. The 2833x Boot Mode table is shown below.
- // For information on configuring the boot mode of an eZdsp,
- // please refer to the documentation included with the eZdsp,
- //
- // $Boot_Table:
- //
- // GPIO87 GPIO86 GPIO85 GPIO84
- // XA15 XA14 XA13 XA12
- // PU PU PU PU
- // ==========================================
- // 1 1 1 1 Jump to Flash
- // 1 1 1 0 SCI-A boot
- // 1 1 0 1 SPI-A boot
- // 1 1 0 0 I2C-A boot
- // 1 0 1 1 eCAN-A boot
- // 1 0 1 0 McBSP-A boot
- // 1 0 0 1 Jump to XINTF x16
- // 1 0 0 0 Jump to XINTF x32
- // 0 1 1 1 Jump to OTP
- // 0 1 1 0 Parallel GPIO I/O boot
- // 0 1 0 1 Parallel XINTF boot
- // 0 1 0 0 Jump to SARAM MDL.all; // = 0x9555AAAn (n is the MBX number)
- TestMbox2 = Mailbox->MDH.all; // = 0x89ABCDEF (a constant)
- TestMbox3 = Mailbox->MSGID.all;// = 0x9555AAAn (n is the MBX number)
- } // MSGID of a rcv MBX is transmitted as the MDL data.
- void mailbox_check(int32 T1, int32 T2, int32 T3)
- {
- if((T1 != T3) || ( T2 != 0x89ABCDEF))
- {
- ErrorCount++;
- }
- else
- {
- PassCount++;
- }
- }
- //===========================================================================
- // No more.
- //===========================================================================