Interface Products Design Guide Using CAN, LIN and Infrared Connectivity
Interface Products Design Guide Using CAN, LIN and Infrared Connectivity
Interface Products Design Guide Using CAN, LIN and Infrared Connectivity
Design ideas in this guide are based on many of the interface devices available from Microchip Technology. A complete device list and
corresponding data sheets for these products can be found at www.microchip.com
Stand-alone CAN Controller
MCP2515
CAN Transceiver
MCP2551
CAN I/O Expander
MCP250xx
LIN Transceiver
MCP201
General Purpose I/O Expander
MCP23016
Microcontrollers
PIC12F675
PIC18F6680
IrDA Encoder/Decoder
MCP2120
IrDA Protocol Handler
MCP2140
MCP215x
n
n
n
n
n
n
n
n
n
n
n
n
The diagram shows CAN added to a high-end application, as many high-end processors do not have embedded
CAN peripherals.
The MCP2515 can be used to easily add dual CAN capabilities for a given node.
n
n
n
n
n
n
n
n
n
n
n
Infrared Communications
Example Designs: Infrared Data Applications
MCP2150 and MCP2155 IrDA Protocol
Stack Controller
The MCP215x devices allow an embedded systems
designer to interface to popular IrDA standard devices
(such as PDAs and PCs) using the embedded systems
host controller UART and some I/O pins.
The MCP215x implements the IrDA standard stack.
At the application layer, the IrCOMM protocol (9-wire
Note 1:
Note 2:
n
n
n
n
The CD and RI signals have different directions (and functions) between the MCP2150 and the MCP2155.
Please refer to MCP2150 Data Sheet (DS21655) or MCP2155 Data Sheet (DS21690) for the function of the Host
UART signals (TX, RX, RTS, CTS, DSR, CD, and RI). Not all signals may be required in your application (see AN858)
MCP215x Features:
n
cooked service class) is the IrDA standard replacement for the serial cable. Thus the embedded systems
designer will interface to the MCP215x as if it was a
serial cable. The MCP215x does not implement the IR
transceiver of the physical layer.
n
n
n
n
n
n
n
Note 1: Not all microcontroller I/O pins are required to be connected to the MCP2140.
MCP2120 Features:
n
n
n
n
n
n
MCP23016 Features:
n
n
n
n
n
n
n
n
n
Interface Products
Selected Product Specifications
See Microchip Product Selector Guide for complete product selection and specifications
MCP2510 (1)
2.7 to 5.5
-40 to +125
MCP2515
2.7 to 5.5
-40 to +125
MCP25020
2.7 to 5.5
-40 to +125
MCP25025
2.7 to 5.5
-40 to +85
MCP25050
2.7 to 5.5
-40 to +125
MCP25055
2.7 to 5.5
-40 to +85
MCP2551
4.5 to 5.5
-40 to +125
Unique Features
CAN 2.0B Active controller with SPI interface to MCU, 3 transmit
buffers, 2 receive buffers, HW and SW message triggers
MCP2510 pin compatible upgrade with enhanced features including
higher throughput and data byte filtering
CAN 2.0B Active I/O Expander, Configurable I/O, 2 PWM outputs
CAN 2.0B Active I/O Expander, Configurable I/O, 2 PWM outputs,
One-wire CAN option
Mixed-Signal CAN 2.0B Active I/O Expander, Configurable I/O, 4 10bit ADCs, 2 PWM outputs
Mixed-Signal CAN 2.0B Active I/O Expander, Configurable I/O, 4 10bit ADCs, 2 PWM outputs, One-wire CAN option
High-Speed CAN Transceiver (1 Mbps max. CAN bus speed),
ISO11898 compatible, Industry standard pinout
Package
18-Pin PDIP, 18-Pin SOIC,
20-Pin TSSOP
18-Pin PDIP, 18-Pin SOIC,
20-Pin TSSOP
14-Pin PDIP, 14-Pin SOIC
14-Pin PDIP, 14-Pin SOIC
14-Pin PDIP, 14-Pin SOIC
14-Pin PDIP, 14-Pin SOIC
8-Pin PDIP, 8-Pin SOIC
Infrared Products
Min./Max.
Baud Rate
(Kbaud)
Part #
Operating
Voltage (V)
Operating Temp.
Range (C)
MCP2120
2.5 to 5.5
-40 to +85
0/325
MCP2140
2.7 to 5.5
-40 to +85
-/9.6
MCP2150
3.0 to 5.5
-40 to +85
9.6/115.2
MCP2155
3.0 to 5.5
-40 to +85
9.6/115.2
Unique Features
Packages
Description
LIN Transceiver with
integrated VREG
Vreg Output
Voltage (V)
Operating
Temperature
Range (C)
4.75 TO 5.25
-40 TO +125
Vreg Output
Current (mA)
50(1)
Max Baud
Rate
LIN Specification
Supported
20
Kbaud
Revision 1.2
Packages
8-pin PDIP,
8-pin SOIC
Serial Peripherals
Part #
MCP23016
Description
Operating
Voltage (V)
2.0 to 5.5
Operating
Temperature Range
(C)
-40 to +85
Bus
Type
I2C
Max. Bus
Frequency
(kBits/s)
400
Features
3 H/W address inputs, H/W
interrupt, 25 mA source/sink
capability per I/O
Packages
28-Pin PDIP,
28-Pin SOIC,
28-Pin SSOP
Interface Products
Related Application Notes
Complete Application Note library is available on the Microchip website: www.microchip.com
CAN Communications
AN212: Smart Sensor CAN Node Using the MCP2510 and
PIC16F876. Demonstrates a way to implement a simple input
pressure switch connected to a node board, along with a visual
light source to display the value in terms of brightness. Several
uses for different types of inputs and outputs can be implemented by using the basic techniques from this design.
AN215: A Simple CAN Node Using the MCP2510 and
PIC12C67X. Describes the design, development and implementation of a smart, low cost, stand-alone Controller Area Network
(CAN) node. Combines the 8-pin PIC12C672 with the 18-pin
MCP2510 stand-alone CAN controller to create a fully autonomous CAN node, which supports both time-based and event
driven message transmission.
I/O Expander
AN245: Interfacing the MCP23016 I/O Expander with the
PIC16F877A. This application note describes how to use a
PIC16F877A as an I2C master to communicate with the
Microchip MCP23016 I2C I/O Expander slave device. An I/O
Expander can also be used to monitor switches and/or sensors,
drive LEDs and/or relays, as well as other general-purpose I/O
functions.
LIN Bus Communications
Integration
n One of the first to market with integrated LDO with
Reset, and Fan Controller with temperature sensor
n PGA integrates MUX, resistive ladder, gain switches,
high-performance amplifier, SPI interface
Space Savings
n Resets and LDOs in SC-70, ADCs in 5-lead SOT-23
n CAN and IrDAStandard protocol stack embedded in
an 18-pin package
Robustness
n MOSFET Drivers lead the industry in latch-up
immunity/ stability
Accuracy
n Offset trimmed after packaging using non-volatile
memory
Innovation
n Low pincount embedded IrDA Standard stack,
FanSense technology
n SelectMode operation
For more information, visit the Microchip website at
www.microchip.com