文档介绍:堡塔,谊牛工泥条件十分若劣,各种电5E干扰对熊年健格及敷免松跪为壬第工作都有产3的好购,这整对笠剧系筑是极大的威西,琴¥夺号号斐系 统柯费•为了・大程支池保证网电系统正常工作,录取了以下再和布辕;第一冲描券是电,闲其・逆德电趣是网辂系统手殳干扰♦大的能分,而且 缶的干加也慢喜男/通信电澳迨入系统,从而用变后统的工作不正"・・在CAM2MM今收发■之即■加了 ・
星二0范篷是在总线上nm保护11件・!t或会假算收贸t1・为了密止干扰对收发■的!8 ****nvs作总&・ X (约为800 0,因此本设计中・在幼雪*后注加了TVS和PTC电:a, V以下, 变保护作用: HICCAX L与地之间各自接一个30 *的小电容,可以起到W除总线上的育经干扰和防 电童电时的作用. CAX气发器电气保护匠芝姐刘二斫乐,
//
//
//
//
// DEVICE: C8051F040
//
// AUTHOR: LS
//
// TOOLS: Keil C-compiler and Silicon Labs IDE
//
//
12.
//
and are a
simple
example of
configuring
a
CAN
network to
13.
//
transmit and receive data
on a
CAN network,
and how
to
move
information to
14.
//
and from CAN RAM message
objects.
Each C8051F040-TB
CAN
node
is configured
15.
//
to
send a message when it's
button
is depressed/released
with a 0x11
16.
//
to
indicate the button is
pushed,
and
0x00 when released.
Each node also has
17.
//
a
message object configured
to receive
messages. The C8051
tests the
18.
//
received data and will turn
on/off
the
target board's LED.
When one target
19.
//
is
loaded with and
the other
is
loaded with ,
one target
20.
//
board's push-button will control the
other target board's LED, establishing
21.
//
a
simple control link via
the CAN
bus
and can be observed
directly on the
// target boards.
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////////////////
#include <> // SFR declarations
// CAN Protocol Register Index for CAN0ADR, from TABLE of the C8051F040
// datasheet
////////////////////////////////////