can protocol implementation for datacommunication

23
CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION B.KISHORE KUMAR 07N71A0428

Upload: mani-kanta

Post on 27-Apr-2015

377 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

B.KISHORE KUMAR 07N71A0428

Page 2: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

PROJECT OBJECTIVE

• Design and develop microcontroller based communication system………

• Build a high secure way of data communication.

Page 3: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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..

Page 4: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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.

Page 5: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

BLOCK DIAGRAM

• CAN

TransceiverMCP2551

CAN CONTROLLER AT89S52 LCD

CAN TransceiverMCP2551

CAN CONTROLLER AT89S52 PC

CANH CANL

Page 6: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

CAN PROTOCOL COMMUNICATION

Page 7: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

MICROCONTROLLER

Compatible with MCS-51 Products8K Bytes of In-System Reprogrammable Flash MemoryFully Static Operation: 0 Hz to 33 MHzThree-level Program Memory Lock256 x 8-bit Internal RAM32 Programmable I/O LinesThree 16-bit Timer/CountersEight Interrupt SourcesProgrammable Serial ChannelLow-power Idle and Power-down Modes4.0V to 5.5V Operating Range

Page 8: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

AT89S52 PIN CONFIGURATION

Page 9: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

BLOCK DIAGRAM OF REGULATED POWER SUPPLY

Page 10: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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

Page 11: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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.

Page 12: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

MAX 232 interfacing RS 232 AND 89S52

Page 13: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

MCP 2515Features• 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

.

Page 14: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

PIN DIAGRAM OF MCP2515

Page 15: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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

Page 16: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

LCD

Page 17: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

SCHEMATIC DIAGRAM

Page 18: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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

Page 19: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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

Page 20: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

APPLICATIONS

• Multi-master broadcast serial bus• Bit rates• Message based protocol• FlexCAN• CANopen• Local Interconnect Network• Flex Ray• GMLAN• Socketcan• OSEK

Page 21: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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)

Page 22: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

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……

Page 23: CAN PROTOCOL IMPLEMENTATION FOR DATACOMMUNICATION

THANK YOU