Beruflich Dokumente
Kultur Dokumente
Sridhar Lingam
Product Marketing Manager
Renesas MCU CAN Solutions
M16C/R32C, H8S/H8SX Product Families
TFT-LCD solution for H8S and H8SX
Education
MSEE from the Clemson University, Clemson, SC
Work Experience
16 years experience with semiconductor Industry with focus on
Industrial applications
Varied experience as Product Engineer, FAE and Product
Marketing
Responsible for definition and Marketing of Memory & MCU
product families
Previously worked at National Semiconductor,
STMicroelectronics & Atmel
2
Microcontrollers
& Microprocessors
#1 Market share
worldwide *
ASIC, ASSP
& Memory
Advanced and
proven technologies
Solutions
for
Innovation
Analog and
Power Devices
#1 Market share
in low-voltage
MOSFET**
*
Microcontrollers
& Microprocessors
#1 Market share
worldwide *
ASIC, ASSP
& Memory
Advanced and
proven technologies
Solutions
for
Innovation
Analog and
Power Devices
#1 Market share
in low-voltage
MOSFET**
*
General Purpose
Up to 10 DMIPS, 130nm process
350 uA/MHz, 1uA standby
Capacitive touch
Embedded Security
Up to 25 DMIPS, 180, 90nm process
1mA/MHz, 100uA standby
Crypto engine, Hardware security
General Purpose
Up to 10 DMIPS, 130nm process
350 uA/MHz, 1uA standby
Capacitive touch
Embedded Security
Up to 25 DMIPS, 180, 90nm process
1mA/MHz, 100uA standby
Crypto engine, Hardware security
Innovation
Agenda
CAN in Embedded Networks
What is CAN & its benefits?
Can Basics
What is LIN and its benefits?
Renesas MCU CAN Solutions
Q&A
Key Takeaways
10
What is CAN ?
Controller Area Network
Developed in 1983 by Robert Bosch
To solve the networking issues in automotive
Main Benefits
Economical
Reliable
Real Time response
Scalable
Standards
CAN 2.0A (ISO11519)
Can 2.0B(ISO11898)
11
12
Question
Please give 3 reasons for the growing popularity of
CAN in embedded applications
Reliability (works well in noisy environment)
Economical ( Have low wiring costs)
Scalability
Availability
13
14
Partially
implemented by
higher-level CAN
protocols
(CANOpen)
3. Network Layer
2. Data Link Layer
1. Physical Layer
15
Standard CAN
implementation
Managed in
Hardware.
Dramatic Real-time
advantage to
System Design
Transmitting Node
Node Configured to
receive identifier
MCU Firmware
MCU Firmware
MCU Firmware
Identifier [id_n]
Identifier [id_n]
Data [values_x]
Data [values_x]
Data [values_x]
Data [values_x]
CAN Peripheral
CAN Peripheral
CAN Peripheral
CAN Transceiver
CAN Transceiver
CAN Transceiver
16
Data Frame
11/29
ID extend 1
Identifier
Rem Req 1
S
O
F
Control
Data
(Bytes)
C
R
C
A
C
K
E
O
F
0-8 bytes
15
7+
Question
Why do most CAN applications use CAN 2.0A (11-bit
identifiers) and not CAN 2.0B (29-bit identifiers)?
18
Dominant bits (0s) override recessive bits (1s) on the CAN bus.
Maintaining Synchronization
Bit Stuffing is applied to keep the bus synchronized
Five bits of consecutive dominant or recessive bits inserts a bit
of the opposite polarity
Resulting signal edge is used to establish timing synchronization
at all nodes
Stuffed bits are managed by hardware
20
21
Node A
Node B
CAN_H
U diff
CAN_L
(dominant level)
CAN_H
+
CAN_L
EMI
CAN-Bus
(Differential Serial Bus)
22
Node C
1000
500
Bus lines
assumed to be
an electrical
medium
(e.g. twisted pair)
200
Bit Rate
[kbps]
100
50
20
10
5
0
10
40 100
200
1000
23
10,000
24
CAN
Controller
Physical Layer
CAN_Txd
CAN_Rxd
CAN_Txd
Differential
CAN_Rxd Transceiver
CAN_Txd
CAN_Rxd
Optical
Transceiver
Optical Fiber
25
Common Connector
9-pin Dsub
5-pin mini style
Terminal blocks
Application specific (e.g. telephone jacks)
26
What is LIN ?
Local Interconnect Network
A slower & low cost alternative to CAN
27
Speed up to 20Kbps
No arbitration necessary
Self Synchronization
No external crystal
28
Simplex
12V Operation
29
Node A
Node B
Node C
Node D
SCI
XCVR
SCI
XCVR
SCI
XCVR
SCI
XCVR
Synchronization
Frame
message response
Identifier Byte
Synchronization
Field
30
0 to 8 data fields
checksum
Message
VBAT
8...18V
master: 1k
slave: 30k
UART
Rx
60%
Bus
40%
Tx
GND
Example capacitances
master: 2.2nF
slave: 220pF
31
Bus Voltage
recessive
logic 1
controlled slope
~2V/s
dominant
logic 0
Time
Sense voltage
Data timing
32
33
Question
What are the reasons when LIN is preferred over CAN?
34
35
Access Control
Single Master
Multiple Master
20 Kbps
1 Mbps
Typical # nodes
2 to 16
4 to 20
Message Routing
6-bit Identifier
11/29-bit Identifier
Data byte/frame
2,4,8 bytes
0-8 bytes
Error detection
8-bit checksum
16-bit CRC
Physical Layer
Single-wire
Twisted-pair
36
Multi
CAN
SH7216
200MHz@3/5V
High End
Up to 1 MB Flash
1-2 CAN
176 pin
RX600
100MHz@3V
New
SH7264/62
144MHz@3V
SH7286
100MHz@3/5V
Mid End
Up to 1 MB Flash
1-2 CAN
100/144/176 pin
R32C/117
R32C/118
With FPU
With FPU
64MHz@3/5V
CAN API
Compatible
64MHz@3/5V
M16C/29
20MHz@3/5V
Low End
Up to 128 KB Flash
1 CAN
48-64 pin
37
www.america.renesas.com/CAN
R8C/2x
20MHz@3/5V
16/32
Message Buffers
INTs
Clock
Data
Control
Message Buffer
CPU
Interface
Acceptance
Filter
Control
Registers
Common
Control/Status
Registers
38
R32C
Dedicated LIN
Hardware
M16C Platform
M32C
M16C
M16C/Tiny
R8C/3x
39
UART LIN
www.america.renesas.com/CAN
40
Innovation
41
Questions?
42
Feedback Form
Please fill out the feedback form!
If you do not have one, please raise your hand
43
Thank You!
44
Appendix
45
Serial Communications
CAN, LIN, RS-485, RS-232, SPI, I2C, etc. are all serial
communications
Advantages
No line-to-line timing skew
Fewer wires lowering cable, connector, and design costs
Saves on board space and power consumption per bit
Disadvantages
Generally point-to-point
Overhead above actual data payload that uses bandwidth
Higher signal rates shorten transmission distances
46
Transmission Topologies
Point-to-Point (Simplex)
One transmitter and one receiver per line
Transmission is possible only in one direction, i.e. unidirectional.
47
Transmission Topologies
Multipoint (Multiplex)
Many transmitters and many receivers per line.
Transmission is possible in either direction, i.e. bidirectional.
48
CAN
Lighting
System
Motion
Sensor
Monitor
CAN
CAN
Transceiver
Transceiver
Temp
Sensor
50
HVAC
Motor
Control
CAN Bus 1
CAN Bus 2
Low-Speed
High-Speed
Similar costs
Similar distances
Similar electrical immunity
Similar chip availability
Similar connectors
Same 32 nodes (loads) standard
Duplex (4 wire) or Half-Duplex (2 wire) options available
51
Partially
implemented by
higher-level
RS-485 protocols
(i.e. MODBUS)
3. Network Layer
2. Data Link Layer
Standard RS-485
implementation
1. Physical Layer
Only Low Layer specification
52
Managed by
CPU in Software
53
Termination Settings
High-Speed CAN (125Kbps+)
For High-Speed CAN, both ends of the pair of signal wires (CAN_H and
CAN_L) must be terminated
ISO 11898 requires a cable with a nominal impedance of 120 ohms
54
Termination Settings
Low-Speed CAN (Up to 125Kbps)
Each device on the network needs a termination resistor for each data
line: R(RTH) for CAN_H and R(RTL) for CAN_L
Requires termination on the transceiver rather than on the cable
The resistance of each resistor is calculated through several formulas
55
56