Vous êtes sur la page 1sur 23

CAN PROTOCOL IMPLEMENTATION

FOR DATACOMMUNICATION

B.KISHORE KUMAR
07N71A0428
PROJECT OBJECTIVE

• Design and develop microcontroller based communication


system………

• Build a high secure way of data communication.


CHARACTERISTICS OF CAN
• ROBERT BOSCH
• Mainly used for automotive & automobile
applications
• Multi master protocol
• Message oriented transmission
• Highly securable protocol
• Reduces wiring cost
• Highly reliable
• Different range of bit rates..
INTRODUCTION OF THE PROJECT :

• Communication as the primary aspect


• Security of the level of communication
• Can be utilized in various different types of
communications….
• An access control system that allows only authorized
persons to access the received data.
BLOCK DIAGRAM
•   CANH CANL

CAN
CAN
Transceiver CONTROLLER AT89S52 LCD
MCP2551

CAN
CAN
Transceiver CONTROLLER AT89S52 PC
MCP2551
CAN PROTOCOL COMMUNICATION
MICROCONTROLLER

Compatible with MCS-51 Products


8K Bytes of In-System Reprogrammable Flash Memory
Fully Static Operation: 0 Hz to 33 MHz
Three-level Program Memory Lock
256 x 8-bit Internal RAM
32 Programmable I/O Lines
Three 16-bit Timer/Counters
Eight Interrupt Sources
Programmable Serial Channel
Low-power Idle and Power-down Modes
4.0V to 5.5V Operating Range
AT89S52 PIN CONFIGURATION
BLOCK DIAGRAM OF REGULATED POWER
SUPPLY
MAX 232
• FEATURES:
• Operates With Single 5-V
Power Supply
• Two Drivers and Two
Receivers
• 30-V Input Levels
• Low Supply Current . . . 8
mA Typical
RS 232
Devices which use serial cables for their
communication are split into two categories.
These are DCE and DTE.
1. A "Space" (logic 0) will be
between +3 and +25 Volts.

2. A "Mark" (Logic 1) will


be between -3 and -25 Volts.
3. The region between +3 and -3
volts is undefined.
MAX 232 interfacing RS 232 AND 89S52
MCP 2515
Features .
• 18-pin package
• Simple SPI interface to any
MCU
• One-shot mode ensures
message transmission is
attempted only once
• Data byte filtering
• Start-of-Frame (SOF) output
Low-power CMOS Technology
PIN DIAGRAM OF MCP2515
MCP 2551
Features
• Slope control input
• Supports 1 Mb/s operation
• Implements ISO-11898 standard
physical layer requirements
• Suitable for 12V and 24V systems
• Externally-controlled slope for
reduced RFI emissions
• Permanent dominant detect
• Low current standby operation
• High noise immunity due to
differential bus implementation
LCD
SCHEMATIC DIAGRAM
KEIL µVISION
µVision3 is an IDE (Integrated Development
Environment) that helps you write, compile, and
debug embedded programs. It encapsulates the
following components:
• A project manager.
• A make facility.
• Tool configuration.
• Editor.
• A powerful debugger
SAMPLE CODE

org 00h
back: mov P1,#55h
acall delay
mov P1,#0AAh
lcall delay
sjmp back
delay: mov r5,#30h
again: djnz r5,again
ret
end
APPLICATIONS
•Multi-master broadcast serial bus
•Bit rates
•Message based protocol
•FlexCAN
•CANopen
•Local Interconnect Network
•Flex Ray
•GMLAN
•Socketcan
•OSEK
CAN milestones
• 1983: Start of the Bosch internal project to develop an in-vehicle network
• 1986: Official introduction of CAN protocol
• 1987: First CAN controller chips from Intel and Philips Semiconductors
• 1991: Bosch’s CAN specification 2.0 published
• 1991: CAN Kingdom CAN-based higher-layer protocol introduced by Kvaser
• .1992: CAN in Automation (CiA) international users and manufacturers group
established
• 1992: CAN Application Layer (CAL) protocol published by CiA
• 1992: First cars from Mercedes-Benz used CAN network
• 1993: ISO 11898 standard published
• 1994: 1st international CAN Conference (iCC) organized by CiA
• 1994: DeviceNet protocol introduction by Allen-Bradley
• 1995: ISO 11898 amendment (extended frame format) published
• 1995: CANopen protocol published by CiA
• 2000: Development of the time-triggered communication protocol for CAN
(TTCAN)
CONCLUSION

The project “CAN PROTOCOL IMPLEMENTATION FOR


DATACOMMUNICATION” has been successfully
designed and tested. CAN protocol implementation
has many advantages and it can be used in various
important functions such as data communication in a
very secured manner and is also very useful in
private messages and also used in
variousgovernment applications……
THANK YOU

Vous aimerez peut-être aussi