English
Language : 

CP3BT23 Datasheet, PDF (93/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
18.0 CAN Module
Each of the two CAN modules provides a Full CAN class, — Two filtering capabilities: global acceptance mask and
CAN (Controller Area Network) serial bus interface for low/
individual buffer identifiers
high speed applications. They support reception and trans- — One of the buffers uses an independent acceptance
mission of extended frames with a 29-bit identifier, standard
filtering procedure
frames with an 11-bit identifier, applications that require ! Programmable transmit priority
high speed (up to 1 MBit/s), and a low-speed CAN interface ! Interrupt capability
with CAN master capability. Data transfer between the CAN — One interrupt vector for all message buffers (receive/
bus and the CPU is handled by 15 message buffers, which
transmit/error)
can be individually configured as receive or transmit buffers. — Each interrupt source can be enabled/disabled
Every message buffer includes a status/control register ! 16-bit counter with time stamp capability on successful
which provides information about its current status and ca- reception or transmission of a message
pabilities to configure the buffer. All message buffers are ! Power Save capabilities with programmable Wake-Up
able to generate an interrupt on the reception of a valid over the CAN bus (alternate source for the Multi-Input
frame or the successful transmission of a frame. In addition,
an interrupt can be generated on bus errors.
An incoming message is only accepted if the message iden-
tifier passes one of two acceptance filtering masks. The fil-
tering mask can be configured to receive a single message
ID for each buffer or a group of IDs for each receive buffer.
One of the buffers uses a separate message filtering proce-
te dure. This provides the capability to establish a BASIC-CAN
path. Remote transmission requests can be processed au-
tomatically by automatic reconfiguration to a receiver after
transmission or by automated transmit scheduling upon re-
ception. A priority decoder allows any buffer to have one of
16 transmit priorities including the highest or lowest abso-
lute priority, for a total of 240 different transmit priorities.
Wake-Up module)
! Push-pull capability of the input/output pins
! Diagnostic functions
— Error identification
— Loopback and listen-only features for test and initial-
ization purposes
18.1 FUNCTIONAL DESCRIPTION
As shown in Figure 32, each CAN module consists of three
blocks: the CAN core, interface management, and a dual-
ported RAM containing the message buffers.
There are two dedicated device pins for each CAN interface,
CANnTX as the transmit output and CANnRX as the receive
input.
le A decided bit time counter (16-bit wide) is provided to sup-
port real time applications. The contents of this counter are
captured into the message buffer RAM on reception or
transmission. The counter can be synchronized through the
CAN network. This synchronization feature allows a reset of
o the counter after the reception or transmission of a mes-
sage in buffer 0.
Each CAN module is a fast CPU bus peripheral which al-
lows single-cycle byte or word read/write access. The CPU
s controls the CAN module by programming the registers in
the CAN register block. This includes initialization of the
CAN baud rate, logic level of the CAN pins, and enable/dis-
able of the CAN module. A set of diagnostic features, such
b as loopback, listen only, and error identification, support de-
velopment with the CAN module and provide a sophisticat-
ed error management tool.
Each CAN module implements the following features:
O ! CAN specification 2.0B
The CAN core implements the basic CAN protocol features
such as bit-stuffing, CRC calculation/checking, and error
management. It controls the transceiver logic and creates
error signals according to the bus rules. In addition, it con-
verts the data stream from the CPU (parallel data) to the se-
rial CAN bus data.
The interface management block is divided into the register
block and the interface management processor. The regis-
ter block provides the CAN interface with control information
from the CPU and provides the CPU with status information
from the CAN module. Additionally, it generates the interrupt
to the CPU.
The interface management processor is a state machine ex-
ecuting the CPU’s transmission and reception commands
and controlling the data transfer between several message
buffers and the RX/TX shift registers.
15 message buffers are memory mapped into RAM to trans-
mit and receive data through the CAN bus. Eight 16-bit reg-
— Standard data and remote frames
isters belong to each buffer. One of the registers contains
— Extended data and remote frames
control and status information about the message buffer
— 0 to 8 bytes data length
configuration and the current state of the buffer. The other
— Programmable bit rate up to 1 Mbit/s
registers are used for the message identifier, a maximum of
! 15 message buffers, each configurable as receive or up to eight data bytes, and the time stamp information. Dur-
transmit buffers
ing the receive process, the incoming message will be
— Message buffers are 16-bit wide dual-port RAM
stored in a hidden receive buffer until the message is valid.
— One buffer may be used as a BASIC-CAN path
! Remote Frame support
Then, the buffer contents will be copied into the first mes-
sage buffer which accepts the ID of the received message.
— Automatic transmission after reception of a Remote
Transmission Request (RTR)
— Auto receive after transmission of a RTR
! Acceptance filtering
www.national.com
92