MSM9225 [OKI]
CAN (Controller Area Network) Controller; CAN (控制器局域网)控制器![MSM9225](http://pdffile.icpdf.com/pdf1/p00077/img/icpdf/MSM9225_403227_icpdf.jpg)
型号: | MSM9225 |
厂家: | ![]() |
描述: | CAN (Controller Area Network) Controller |
文件: | 总74页 (文件大小:482K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
![](http://public.icpdf.com/style/img/ads.jpg)
E2F0016-19-43
Preliminary
Thisversion: Apr. 1999
¡ Semiconductor
MSM9225
CAN (Controller Area Network) Controller
GENERAL DESCRIPTION
The MSM9225 is a microcontroller peripheral LSI which conforms to the CAN protocol for
high-speed LANs in automobiles.
FEATURES
•Conforms to CAN protocol specification (Bosch Co., V.2.0 part b/Full CAN)
• Maximum 1 Mbps real-time communication control (programmable)
• Communication system:
Transmission line is bi-directional, two-wire serial communications
NRZ (Non-Return to Zero) system using bit stuff function
Multi-master system
Broadcast system
• Maximum 16 messages ¥ 8 bytes of message buffer
Number of messages can be extended by group message function (max: 2 groups)
• Priority control by identifier
18
Normally 2032 types, 2032 ¥ 2 types at extension
• Microcontroller interface
Corresponding to both parallel and serial interface
Parallel interface: separate address/data bus type (with address latch signal/no
address latch signal) and multiplexed address/data bus type.
Serial interface:
Interrupt is used for three outputs: transmission/receive/error
• Error control:
Synchronous communication type
Bit error/stuff error/CRC error/form error/acknowledge error detection functions
Retransmission / error status monitoring function when error occurs
• Communication control by transmission request function
• Sleep/Stop mode function
• Supply voltage: 5 V ±10%
• Operating temperature: -40 to +115˚C
• Package: 44-pin plastic QFP (QFP44-P-910-0.80-2K) (Product name: MSM9225GA-2K)
1/73
¡ Semiconductor
MSM9225
BLOCK DIAGRAM
CS
A7-0
AD7-0/D7-0
8
8
Bit stream
logic
(BSL)
Bit timing logic (BTL)
PALE
PWR
RD
PRD/SRW
RDY
Transmission
control logic
(TCL)
Tx0
Tx1
PRDY/SWAIT
RW
WAIT
Data
manege-
ment
SCLK
SDI
SDO
INT
Error
management
logic (EML)
Data
memory
logic
Mode1, 0
XT
Receive
control logic
(RCL)
Rx0
Rx1
Timing
generator
XT
RESET
VDD
GND
AVDD
AGND
CONFIGURATION EXAMPLE
ABS
CAN
Power steering
CAN
Suspention
CAN
Engine
controller
Seat-position controller
CAN
CAN
CAN Bus
CAN
Transmission
CAN
Automatic
air conditioner
CAN
Power window
CAN
Outside mirror controller
2/73
¡ Semiconductor
MSM9225
PIN CONFIGURATION (TOP VIEW)
A4
A5
AD2/D2
AD1/D1
AD0/D0
Mode1
Mode0
GND
1
2
33
32
31
30
29
28
27
26
25
24
23
A6
3
A7
4
SDO
GND
SDI
5
6
PALE
7
SCLK
PRD/SRW
CS
PWR
RESET
VDD
8
9
10
11
INT
Tx1
44-Pin Plastic QFP
3/73
¡ Semiconductor
MSM9225
PIN DESCRIPTIONS
Symbol
Pin
10
Type
Description
CS
I
Chip select pin. When "L", PALE, PWR, PRD/SRW, SCLK and SDO pins are valid.
Address bus pins (when using separate buses). If used with a multiplexed bus or if
used in the serial mode, fix these pins at "H" or "L" levels.
Multiplexed bus: Address/data pins
41-44,
1-4
A7-0
I
I/O
I
AD7-0
/D7-0
Separate buses: Data pins
31-38
26
If used in the serial mode, fix these pins at "H" or "L" levels.
Write input pin during parallel mode. Data is captured when this pin is at a "L" level.
If used in the serial mode, fix this pin at a "H" or "L" level.
Parallel mode: Read signal pin.
PWR
When at a "L" level, data is output from the data pin.
Serial mode: Read/write signal pin.
RPD/SRW
9
I
When at a "H" level, data is output from the SDO pin.
When at a "L" level, the SDO pin is at high impedance, and data is captured beginning
with the second byte of data input from the SDI pin.
Address latch signal pin.
When at a "H" level, addresses are captured.
PALE
SDI
27
7
I
I
If used in the parallel mode and the address latch signal is unnecessary or in the
serial mode, fix this pin at a "H" or "L" level.
Serial data input pin.
Addresses (1st byte) and data (beginning from the 2nd byte) are input to this pin,
LSB first. If used in the parallel mode, fix this pin at a "H" or "L" level.
Serial data output pin.
When the CS pin is at a "H" level, this pin is at high impedance. When CS is at a "L"
level, data is output from this pin LSB first.
SDO
SCLK
5
O
I
If used in the parallel mode, fix this pin at a "H" or "L" level.
Shift clock input pin for serial data.
At the rising edge of the shift clock, SDI pin data is captured. At the falling edge, data
is output from the SDO pin.
8
Ready output pin.
If the microcontroller's bus cycle is fast, a signal is output to extend the bus cycle
until the internal access is completed.
PRDY
/SWAIT
16
O
Internal access in progress After completion of access
Parallel mode
Serial mode
"L" level output
"H" level output
High impedance output
"L" level output
4/73
¡ Semiconductor
MSM9225
Symbol
Pin
Type
Description
Microcontroller interface select pins.
Mode1 Mode0
Interface
0
0
1
1
0
1
0
1
Parallel mode
Serial mode
Separate buses No address latch signal
With address latch signal
Mode1, 0 29, 30
I
Multiplexed buses
Interrupt request output pin.
When an interrupt request occurs, a "L" level is output.
Three types of interrupts share this pin: transmission complete, reception complete,
and error.
INT
11
25
O
I
Reset pin.
RESET
System is reset when this pin is at a "L" level.
Clock pins. If internal oscillator is used, connect a crystal oscillator. If external
clock is input, input clock via XT pin. The XT pin should be left open.
Receive input pin. Differential amplifier included.
Transmission output pin.
XT
13
14
I
O
I
XT
RX0, RX1 18, 19
TX0, TX1 22, 23
O
12, 24,
VDD
—
—
Internal logic power supply pin.
Internal logic GND pin.
40
6, 15, 21
GND
28, 39
AVDD
20
17
—
—
Power supply pin for receive input differential amplifier.
GND pin for receive input differential amplifier.
AGND
5/73
¡ Semiconductor
MSM9225
FUNCTIONAL DESCRIPTION
Data Memory
Before starting communication, messages for communication and various control registers
must be set at the data memory.
Addresses X0hex to XDhex are the message memory, which stores control registers, identifiers
and the contents of each message.
In this address space, the higher 4 bits of an address corresponds to the number of messages,
and a maximum of 16 (0Xhex to FXhex) can be stored. Each message has an area to store a
maximum of 8 bytes of data memory, 1 byte of control register, and a maximum of 5 bytes of
an identifier.
Thismeansthatthedatamemorycapacityformessagesis:16messages¥(8bytesforamessage
+ 1 byte for a control register + 5 bytes for an identifier) = 224 bytes.
Addresses XEhex to XFhex are allocated to the control registers.
The configuration of data memory is as follows
Data memory configuration
Address
Function
A7 A6 A5 A4 A3 A2 A1 A0
IDFM = 0 (standard)
IDFM = 1 (extended)
Message control register
Identifier 0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Corresponds to
number of
Identifier 1
messages
Message 0
Identifier 2
Identifier 3
Identifier 4
Message 0
Message 1
Message 2
Message 3
Message 4
Message 5
Message 6
Message 7
Message 1
Message 2
Message 3
Message 4
Message 5
Message 6
Message 7
—
0
1
0
0
0
1
Ø
1
1
—
—
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
Ø
Various control registers
6/73
¡ Semiconductor
MSM9225
Message Memory
The message memory stores messages to be transmitted/received.
For transmission, only messages stored in the message memory can be transmitted. A message
with the highest priority among messages requested for transmission is sent.
For receiving, only messages that have an identifier stored in the message memory can be
received. When a message is received normally, and its identifier matches with the identifier
stored in the message memory, data of the received message is written to the message area of
the corresponding message in the message memory.
Themessagememorycanstoreamaximumof16messages. SetmessagesattheNMESregister.
1. Inside message control register (X0hex)
This register performs various controls for a message.
Set this register for each message.
The bit configuration is as follows:
Address MSB
¥ 0h
LSB
0
7
6
5
4
3
2
1
ARES : Automatic transmission
FRM : Message format setting
EIT : Transmission completion interrupt enable
EIR : Receive completion interrupt enable
RCS : Receive status
TRQ : Transmission request
Not used
MMA : Message memory access enable
(1) Message memory access request/enable bit: MMA
This bit prevents contention between the microcontroller and CAN when accessing the
message memory.
When the microcontroller accesses the message memory, "1" is written to the MMA bit
regularly. The microcontroller confirms that the MMA bit is "1", and then accesses the
message memory. Write "0" to the MMA bit when the microcontroller accessing ends.
Operations by the MMA bit are shown in the following table.
At reset, the MMA bit is set to "0".
MMA
Microcontroller
Reception
Transmission
Accesses from microcontroller
Operate
0
Operate
Stop
to message memory are disabled Reading of received data
Accesses from microcontroller
Stop
Rewriting of control area
1
to message memory are enabled Rewriting of control area
Rewriting of transmission data
7/73
¡ Semiconductor
MSM9225
(2) Transmission request: TRQ
When a message is transmitted, the microcontroller writes "1" to this bit. When
transmission ends normally, CAN writes "0". This means that the TRQ bit is "1" during
transmission. Therefore, to request transmission, confirm that the TRQ bit is "0" first,
then write "1" to the TRQ bit. When the remote frame is received while the ARES bit is
"1", the TRQ bit is set to "1".
At reset, the TRQ bit is set to "0".
(3) Receive status: RCS
When receiving completes, the RCS bit becomes "1". Write "0" to the RCS bit before the
microcontroller calls up receive data. When receiving the remote frame, the RCS bit
becomes "1" just after the reception.
At reset, the RCS bit is set to "0".
(4) Receive completion interrupt enable: EIR
The microcontroller sets interrupt request signal generation disable/enable when
receiving completes.
The EIR bit is valid when the EINTR bit of the CANI register is “1”.
At reset, the EIR bit is set to "0".
(5) Transmission completion interrupt enable: EIT
The microcontroller sets interrupt request signal generation disable/enable when
transmission completes.
The EIT bit is valid when the EINTT bit of the CANI register is “1”.
At reset, the EIT bit is set to "0".
(6) Message format setting: FRM
The microcontroller sets the format of the message to be sent/received. A message in a
format other than the specified format cannot be sent/received.
For the relationship between setting and format, see the table below.
When a message specified to a group message is received, the content of the RTR bit is
written.
At reset, the FRM bit is set to "0".
FRM
Message Type
Standard message
Transmission Format
Data frame
Receive Format
Remote frame
0
Group message
Standard message
Group message
Transmission disable
Remote frame
Data frame
Data frame
Remote frame
1
Transmission disable
(7) Automatic transmission : ARES
If the data frame is automatically transmitted after remote frame reception, the ARES bit
should be set to "1".
At reset, the ARES bit is set to "0".
8/73
¡ Semiconductor
MSM9225
2. Identifier 0 (X1hex)
This register sets the data length code and a part of the identifier.
Set this register for each message.
The bit configuration is as follows:
Address MSB
¥ 1h
LSB
0
7
6
5
4
3
2
1
IDB26 :
IDB27 :
IDB28 :
DLC0 :
DLC1 :
DLC2 :
DLC3 :
Identifier
Data length code
IDFM : Format setting
(1) Format setting: IDFM
The microcontroller sets the message format.
At reset, the IDFM bit is undefined.
IDFM
Operation
0
I
Standard format (ID = 11 bits)
Extended format (ID = 29 bits)
(2) Data length code: DLC3 to DLC0
This is control field data to set the number of bytes of a data field. 0 to 8 can be set.
At reset, these bits are undefined.
(3) Identifier: IDB28 to IDB26
These bits set the identifier field.
For standard format (IDFM = 0), the higher 3 bits of the 11 bits are set.
For extended format (IDFM = 1), the higher 3 bits (ID28 to ID26) of the 29 bits (ID28 to
ID0) are set.
At reset, these bits are undefined.
9/73
¡ Semiconductor
MSM9225
3. Identifier 1 (X2hex)
This register sets the identifier.
Set this register for each message.
The bit configuration is as follows:
Address MSB
LSB
0
¥ 2h
7
6
5
4
3
2
1
IDB18 :
IDB19 :
IDB20 :
IDB21 :
IDB22 :
IDB23 :
IDB24 :
IDB25 :
Identifier
(1) Identifier: IDB25 to IDB18
These bits set the lower 8 bits of the 11 bits of the identifier field.
For standard format (IDFM = 0), the lower 8 bits of the 11 bits are set.
For extended format (IDFM = 1), ID25 to ID18 of the 29 bits (ID28 to ID0) are set.
At reset, these bits are undefined.
4. Address: X3 to XDhex
For standard format (IDFM = 0), addresses X3 to XAhex become the transmission/receive
data storage area.
Forextendedformat(IDFM=1), addressesX3toX5hexareusedtosettheidentifierfield, and
addresses X6 to XDhex become the transmission/receive data storage area.
For both, a maximum of 8 bytes of transmission/receive data can be stored, but the number
of transmittable/receivable bytes must have been set by data length code.
At reset, message content is undefined.
The relationship between address and identifier bits for extended format (IDFM = 1) is as
follows:
10/73
¡ Semiconductor
MSM9225
Adderss MSB
¥ 3h
LSB
0
7
6
5
4
3
2
1
IDB10 :
IDB11 :
IDB12 :
IDB13 :
IDB14 :
IDB15 :
IDB16 :
IDB17 :
Identifier 2
Address MSB
¥ 4h
LSB
0
7
6
5
4
3
2
1
IDB2 :
IDB3 :
IDB4 :
IDB5 :
IDB6 :
IDB7 :
IDB8 :
IDB9 :
Identifier 3
Address MSB
¥ 5h
LSB
0
7
6
5
4
3
2
1
Not used (Don't care)
Not used (Don't care)
Not used (Don't care)
Not used (Don't care)
Not used (Don't care)
Not used (Don't care)
IDB0 :
Identifier 4
IDB1 :
11/73
¡ Semiconductor
MSM9225
Control Register
These registers listed below control various operations of CAN.
Address
0EH
0FH
1EH
1FH
2EH
2FH
3EH
3FH
4EH
4FH
5EH
5FH
6EH
6FH
7EH
7FH
8EH
8FH
9EH
9FH
AEH
AFH
BEH
BFH
CEH
CFH
DEH
DFH
EEH
EFH
FEH
FFH
Symbol
CANC
CANI
Name
CAN control register
CAN interrupt control register
NMES
BTR0
BTR1
TIOC
Number of message specification registers
CAN bus timing register 0
CAN bus timing register 1
Communication input/output control register
GMR0 Group message register 0
GMR1 Group message register 1
GMSK00 Message mask register 00
GMSK01 Message mask register 01
GMSK02 Message mask register 02
GMSK03 Message mask register 03
GMSK10 Message mask register 10
GMSK11 Message mask register 11
GMSK12 Message mask register 12
GMSK13 Message mask register 13
STBY
Standby control register
Not used (reserve area)
TMN
CANS
TEC
Communication message number register
CAN status register
Transmission error counter
Receive error counter
REC
Not used (reserve area)
12/73
¡ Semiconductor
MSM9225
1. CAN control register (CANC: 0Ehex)
This register controls the operation of CAN.
The bit configuration is as follows:
Address MSB
LSB
0
0Eh
7
6
5
4
3
2
1
INIT : Initialize
TIRS : Transmission identifier retrieval
Not used
SYNC : Bit synchronization
CANA : CAN write flag
T x F : Transmission flag
R x F : Receive flag
Not used
(1) Initialize: INIT
This bit is used to initialize the communication control area. To start initialization, write
"1" to INIT, read INIT and confirm that INIT is "1", then initialize. To end initialization,
write "0" to INIT, read INIT, and confirm that INIT is "0". For both, initialization mode
is not set/cleared until the above procedure is executed.
If the INIT bit is set to "1" during the transmission or receive operation, the initialization
will start after the communication completes.
When the INIT bit is set to "1", the communication operation stops but the error counter
and data memory are held.
To initialize message memory, write the number of messages to be used to the number
of messages setting register, NMES, then write the inside message control register,
identifier 1, and identifier 2 sequentially from message 0 for all messages.
At reset, INIT is set to "1".
(2) Transmission identifier retrieval: TIRS
This bit is used to scan identifiers sequentially from message 0 to the last message of the
message memory, detecting priority of the message for which the transmission request
TRQ is "1" and starting to transmit the messages. TIRS will be set to "0" when there are
no transmission request messages after scanning or transmitting.
At reset, TIRS is set to "0".
(3) Bit synchronization: SYNC
This bit is used to set the bit synchronization edge to synchronize at the CAN bus.
When SYNC is "0", the synchronization edge is set at the falling edge of data.
When SYNC is "1", the synchronization edge is set at both the rising and falling edges of
data.
At reset, SYNC is set to "0".
13/73
¡ Semiconductor
MSM9225
(4) CAN write flag: CANA
This bit is used to indicate receive data write status to the message memory. CANA is
"1" while CAN is writing receive data to the message memory.
This is a read-only flag.
(5) Transmission flag: TxF
This bit is used to indicate transmission operation status.
When TxF is "0", CAN is in transmission operation stop status.
When TxF is "1", CAN is in transmission operation status. TxF becomes "0" when
transmission completes.
This is a read-only flag.
(6) Receive flag: RxF
This bit is used to indicate receive operation status.
When RxF is "0", CAN is in receive operation stop status.
When RxF is "1", CAN is in receive operation status. RxF becomes "0" when receiving
completes.
This is a read-only flag.
2. CAN interrupt register (CANI: 0Fhex)
This register controls CAN interrupts.
The bit configuration is as follows:
Address MSB
0Fh
LSB
0
7
6
5
4
3
2
1
EINTT : Transmission interrupt output enable
EINTR : Receive interrupt output enable
EINTE : Error interrupt output enable
Not used
ITF
IRF
IEF
: Transmission interrupt request flag
: Receive interrupt request flag
: Error interrupt request flag
MEINT : Master interrupt control enable
(1) Transmission interrupt output enable: EINTT
This bit is used to output transmission interrupt signal INTT from interrupt pin INT
when transmission completes.
When EINTT is "0", a transmission interrupt signal is not output from the interrupt pin.
When EINTT is "1", a transmission interrupt signal is output from the interrupt pin.
At reset, EINTT is set to "0".
(2) Receive interrupt output enable: EINTR
This bit is used to output receive interrupt signal INTR from interrupt pin INT when
reception completes.
When EINTR is "0", a receive interrupt signal is not output from the interrupt pin.
When EINTR is "1", a receive interrupt signal is output from the interrupt pin.
At reset, EINTR is set to "0".
14/73
¡ Semiconductor
MSM9225
(3) Error interrupt output enable: EINTE
Whenanerroroccurs,thisbitisusedtooutputerrorinterruptsignalINTEfrominterrupt
pin INT.
When EINTE is "0", an error interrupt signal is not output from the interrupt pin.
When EINTE is "1", an error interrupt signal is output from the interrupt pin.
At reset, EINTE is set to "0".
(4) Transmission interrupt request flag: ITF
ITF becomes "1" when a transmission interrupt is generated. Only "0" can be written to
this bit.
At reset, ITF is set to "0".
(5) Receive interrupt request flag: IRF
IRF becomes "1" when a receive interrupt is generated. Only "0" can be written to this bit.
At reset, IRF is set to "0".
(6) Error interrupt request flag: IEF
IEF becomes "1" when an error occurs. Only "0" can be written to this bit.
At reset, IEF is set to "0".
(7) Master interrupt control enable: MEINT
This bit is used to set enable/disable of communication interrupts.
The flowchart of interrupt control is shown below.
When MEINT is "0", interrupt request control is disabled.
When MEINT is "1", interrupt request control is enabled.
At reset, MEINT is set to "0".
MEINT
EINTT
EINTR
EINTE
0
0
ITF
Interrupt factor
1
1
INT pin
(transmission completion)
EIT (each message)
0
IRF
Interrupt factor
(reception completion)
EIR (each message)
1
0
IEF
1
Interrupt factor (An error occurs)
15/73
¡ Semiconductor
MSM9225
3. Number of messages specification register (NMES: 1Ehex)
This is a register to set the number of messages to be stored in the message memory.
A maximum of 16 messages can be set, with message numbers 0 to 15.
Writing to NMES is enabled when initialize bit INIT of the CAN control register (CANC:
OEhex) is "1".
At reset, NMES is set to "0000".
The bit configuration and relationship between message number and number of messages
are as follows:
Address MSB
1Eh
LSB
NMES0
NMES3
NMES2
NMES1
* * *
*
Number of message
0
0
·
0
0
·
0
0
·
0
0
·
1
2
* * * *
* * * *
·
·
·
·
·
·
·
·
·
·
·
·
·
·
1
1
1
1
1
1
0
1
15
16
* * * *
* * * *
: Don't Care
*
4. CAN bus timing register 0 (BTR0: 1Fhex)
This register sets the baud rate prescaler and synchronization jump width (SJW) used for bus
timing. Writing to the BTR0 bit is enabled, when the INIT bit of the CAN control register
(CANC: 0Ehex) is "1".
The bit configuration is as follows:
Address MSB
1Fh
LSB
0
7
6
5
4
3
2
1
BRP0 :
BRP1 :
BRP2 :
BRP3 :
BRP4 :
BRP5 :
SJWA :
SJWB :
Baud rate
prescaler
Synchronization
Jump Width
16/73
¡ Semiconductor
MSM9225
(1) Baud rate prescaler: BRP5 to BRP0
This is a 6-bit prescaler to set the BTL cycle time and SJW of the basic clock for
communication operation.
The relationship between the bit content and BTL is as follows:
At reset, BRP5 to BRP0 are set to "000000".
BRP5 BRP4 BRP3 BRP2 BRP1 BRP0
BTL cycle time
1X system clock cycle
2X system clock cycle
·
0
0
·
0
0
·
0
0
·
0
0
·
0
0
·
0
1
·
·
·
·
·
·
·
·
1
1
1
1
1
1
1
1
1
1
0
1
63X system clock cycle
64X system clock cycle
The BTL cycle time is given by the following operation.
5
4
3
2
1
BTL cycle time = 2 ¥ (2 ¥ BRP5 + 2 ¥ BRP4 + 2 ¥ BRP3 + 2 ¥ BRP2 + 2 ¥ BRP1 + BRP0
+ 1)/f
OSC
*)
System clock is 1/2 division of oscillation frequency.
f
is the oscillation frequency.
OSC
(2) SJW: SJWA, SJWB
This is a 2-bit register to set SJW.
The relationship between bit content and SJW is as follows:
At reset, SJWA and SJWB are set to “00”.
SJWB
SJWA
SJW1, SJW2
1 ¥ BTL cycle
2 ¥ BTL cycle
3 ¥ BTL cycle
4 ¥ BTL cycle
0
0
1
1
0
1
0
1
17/73
¡ Semiconductor
MSM9225
5. CAN bus timing register 1 (BTR1: 2Ehex)
This register sets the sampling count, sampling point and transmit point used for bus timing.
Writing to the BTR1 bit is enabled, when the INIT bit of the CAN control register (CANC:
0Ehex) is "1".
The bit configuration is as follows:
Address MSB
2Eh
LSB
0
7
6
5
4
3
2
1
TSEG10 :
TSEG11 :
TSEG12 :
TSEG13 :
TSEG20 :
TSEG21 :
TSEG22 :
Not used :
Time
segment 1
Time
segment 2
(1) Time segment 1: TSEG13 to TSEG10
This is a 4-bit register to set the sampling point.
The relationship between bit content and TSEG1 is as follows:
At reset, TSEG13 to TSEG10 are set to "0000".
TSEG13 TSEG12 TSEG11 TSEG10
TSEG1
1 ¥ BTL cycle
2 ¥ BTL cycle
·
0
0
·
0
0
·
0
0
·
0
1
·
·
·
·
·
·
1
1
1
1
1
1
0
1
15 ¥ BTL cycle
16 ¥ BTL cycle
(2) Time segment 2: TSEG22 to TSEG20
This is a 3-bit register to set the transmit point.
The relationship between the bit content and TSEG2 is as follows:
At reset, TSEG22 to TSEG20 are set to "000".
TSEG22 TSEG21 TSEG20
TSEG2
1 ¥ BTL cycle
2 ¥ BTL cycle
·
0
0
·
0
0
·
0
1
·
·
·
·
·
1
1
1
1
0
1
7 ¥ BTL cycle
8 ¥ BTL cycle
18/73
¡ Semiconductor
MSM9225
(3) Bit timing
Bit timing is set by CAN bus timing registers 0 and 1. The relationship between 1 bit time
of a message and a CAN bus timing (the MSM9225 register) is as follows:
1 bit time
SYNC-SEG
PROP-SEG
SJW1
PHASE-SEG1
TSEG1
PHASE-SEG2
TSEG2
(BTR1 : TSEG22-20)
SJW2
(= SJW1)
(BTR0 : SJWB/A) (BTR1 : TSEG13-10)
1BTL
cycle
Sampling
point
If setting is :
BTR0 = "01000001" ...SJWB = "0" SJWA = "1" BRP5-0 = "000001"
BTR1 = "00000001"...TSEG2 = "000" TSEG1 = "0001"
then the bit timing is as follows
Sync segment 1 BTL cycle (fixed)
SJW 1
2 BTL cycle
2 BTL cycle
1 BTL cycle
2 BTL cycle
8 BTL cycle
TSEG 1
TSEG 2
SJW 2
1 bit time
Sampling point = 5 BTL cycle
If f = 16 MHz, then 1 BTL cycle is :
osc
5
4
3
2
1
BTL cycle = 2 ¥ (2 ¥ 0 + 2 ¥ 0 + 2 ¥ 0 + 2 ¥ 0 + 2 ¥ 0 + 1 + 1) / 16 MHz = 0.25 ms
Therefore 1 bit time is :
8 BTL cycle = 8 ¥ 0.25 ms = 2.0 ms
(= 500 Kb/s)
6. Communication input/output control register (TIOC: 2Fhex)
This register sets the communication mode and output buffer format.
Writing to the TIOC bit is enabled, when the INIT bit of the CAN control register (CANC:
0Ehex) is "1".
The bit configuration is as follows:
19/73
¡ Semiconductor
MSM9225
Address MSB
LSB
0
2Fh
7
6
5
4
3
2
1
OCMD0
OCMD1
OCPOL0
OCTN0
OCTP0
OCPOL1
OCTN1
OCTP1
:
:
:
:
:
:
:
:
Output mode
setting
Tx0 output
buffer format
Tx1 output
buffer format
(1) Time segment 1: OCMD1 to OCMD0
These bits are used to set the output mode of output pins Tx0 and Tx1.
The relationship between the bit content and output mode is as follows:
At reset, OCMD1 to OCMD0 are set to “00”.
OCMD1 OCMD0
Output mode of Tx0 and Tx1
[Double layer mode]
Transmission data "0" is output from Tx0 and Tx1 altermately.
Output example
0
0
Data
Tx0
1
0
1
0
1
0
Tx1
0
1
1
0
[Disabled]
[Single layer mode]
Same bit string data is output from both Tx0 qnd Tx1.
Output example
Data
Tx0
1
0
1
0
1
0
Tx1
[Clock output mode]
Bit string data is output from Tx0.
Synchrinization clock is output from Tx1.
Output example
1
1
Data
Tx0
1
0
1
0
1
0
Tx1
20/73
¡ Semiconductor
MSM9225
(2) Output driver format setting: OCPOL, OCTN, OCTP
OCPOL is used to set the polarity of output.
OCTN is used to set the open/drain mode of the Nch transistor of the output driver.
OCTP is used to set the open/drain mode of the Pch transistor of the output driver.
The circuit configuration of the output driver and the relationship between bit content
and output driver format are as follows:
At reset, all bits are set to "0".
Circuit configuration
VDD
Pch
Output data
Tx0
Nch
GND
Output control
circuit
VDD
Pch
Synchronization
clock
Tx1
Nch
GND
21/73
¡ Semiconductor
MSM9225
Output driver format
OCTP OCTN OCPOL Output data Pch Tr Nch Tr Tx pin output level
Mode
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
off
off
off
off
off
off
off
off
off
on
on
off
off
on
on
off
off
off
off
off
on
off
off
on
off
off
off
off
on
off
off
on
Floating
Floating
Floating
Floating
"0"
Floating
Floating
Floating
"0"
Pulldown
Pullup
Floating
"1"
"1"
Floating
"0"
"1"
Push-pull
"1"
"0"
22/73
¡ Semiconductor
MSM9225
7. Group message register (GMR0: 3Ehex, GMR1: 3Fhex)
These are registers to set the group message mode.
Two messages can be set to the group message mode.
At reset, all bits are set to "0".
The group message mode is valid when the EGM0/EGM1 bit is "1".
Using GMR03 to GMR00 and GMR13 to GMR10, set the message numbers of messages that
are to be set to the group message mode.
The bit configuration is as follows:
Address MSB
3Eh
LSB
GMR03 GMR02 GMR01 GMR00
EGM0
EGM1
0
0
0
0
0
0
GMR0
GMR1
3Fh
GMR11 GMR12 GMR11 GMR10
8. Group message mask register (GMSK)
This is a register to judge identifiers when a message with a message number specified by the
group message mode GMR is received.
Using MiID28 to MiID0, set the bits to mask the identifier of a message set by the GMR bit.
Setting "1" masks the bit, setting "0" does not mask the bit.
(M0ID28 to M0ID0 are for GMR0, and M1ID28 to M1ID0 are for GMR1.)
At reset, all bits are set to "0".
The bit configuration is as follows:
Address MSB
4Eh
LSB
M0ID28 M0ID27 M0ID26 M0ID25 M0ID24 M0ID23 M0ID22 M0ID21
GMSK00
4Fh
5Eh
5Fh
M0ID20 M0ID19 M0ID18 M0ID17 M0ID16 M0ID15 M0ID14 M0ID13 GMSK01
M0ID12 M0ID11 M0ID10 M0ID9
M0ID4 M0ID3 M0ID2 M0ID1
M0ID8
M0ID0
M0ID7
0
M0ID6
0
M0ID5
0
GMSK02
GMSK03
Address MSB
LSB
6Eh
6Fh
7Eh
7Fh
M1ID28 M1ID27 M1ID26 M1ID25 M1ID24 M1ID23 M1ID22 M1ID21
GMSK10
M1ID20 M1ID19 M1ID18 M1ID17 M1ID16 M1ID15 M1ID14 M1ID13 GMSK11
M1ID12 M1ID11 M1ID10 M1ID9
M1ID4 M1ID3 M1ID2 M1ID1
M1ID8
M1ID0
M1ID7
0
M1ID6
0
M1ID5
0
GMSK12
GMSK13
23/73
¡ Semiconductor
MSM9225
9. Standby control register (STBY: 8Ehex)
This register sets various modes, such as stop mode.
The bit configuration is as follows:
Address MSB
8Eh
LSB
7
6
5
4
3
2
1
0
STOP : Stop mode
SLEEP : Sleep mode
Not used
Not used
Not used
Not used
Not used
Not used
(1) Stop mode: STOP
If STOP is set to "1", the MSM9225 will enter the stop mode when the CAN bus is idle.
In stop mode, the content of data memory is held but the oscillator and all circuits stop
to save power consumption. Access to/from external units is therefore disabled.
Stop mode is cleared by a reset signal input from the RESET pin or CS pin = "0".
At reset, STOP is set to "0".
(2) Sleep mode: SLEEP
If SLEEP is set to "1", the MSM9225 will enter the sleep mode when the CAN bus is idle.
In sleep mode, the content of data memory is held and the differential input of Rx0 and
Rx1 operates, but the oscillator and other circuits stop operation. Access to/from
external units is therefore disabled.
Sleep mode is cleared by a reset signal input from the RESET pin or CS pin = "0", or by
the differential input of Rx0 and Rx1.
When both stop mode and sleep mode are set at the same time, the MSM9225 enters stop
mode.
At reset, SLEEP is set to "0".
24/73
¡ Semiconductor
MSM9225
10. Communication message number register (TMN: 9Ehex)
The communication message number is recorded in this register.
The bit configuration is as follows:
Address MSB
9Eh
LSB
0
7
6
5
4
3
2
1
TRSN0 :
TRSN1 :
TRSN2 :
TRSN3 :
Not used
Not used
Not used
Not used
Transmission
message number
register
(1) Transmission message number register: TRSN3 to TRSN0
This is a register to store the message number when a message is transmitted/received.
When transmission completes, the transmitted message number is stored. When
receiving completes, the received message number is stored. And when an error occurs,
the message number of the message being transmitted/received at that time is stored.
This is a read-only register and is set to "0000" at reset.
25/73
¡ Semiconductor
MSM9225
11. CAN status register (CANS: 9Fhex)
This is a status register to indicate the status of CAN.
Bit6 to bit4 are flags for the transmitter and bit1 and bit0 are for the receiver, and this register
is read only.
The bit configuration is shown below.
Address MSB
9Fh
LSB
0
7
6
5
4
3
2
1
REW : Receiver Error Warning
REP : Receiver Error Passive
Not used
Not used
TEW : Transmitter Error Warning
TEP : Transmitter Error Passive
BOFF : Bus OFF flag
Not used
(1) Receiver Error Warning: REW
When the Receiver Error Counter (REC) ≥ 96, REW becomes "1". If REW = "1", the bus
may be seriously damaged. The bus must be tested for this condition.
At reset or when REC < 96, REW becomes "0".
(2) Receiver Error Passive: REP
When the Receive Error Counter (REC) ≥ 128, REP becomes "1".
At reset or when REC < 128, REP becomes "0" (error active)
(3) Transmitter Error Warning: TEW
When the Transmit Error Counter (TEC) ≥ 96, TEW becomes "1".
If TEW = "1", the bus may be seriously damaged. The bus must be tested for this
condition.
At reset or when TEC < 96, TEW becomes "0".
(4) Transmitter Error Passive: TEP
When the Transmit Error Counter (TEC) > 128, TEP becomes "1".
At reset or when TEP < 128, TEP becomes "0".
(5) Bus OFF: BOFF
This flag indicates the CAN bus status.
When the Transmit Error Counter (TEC) > 256 BOFF becomes "1" and the CAN bus is in
the BUS OFF state.
At reset or when TEP < 256, BOFF becomes "0".
26/73
¡ Semiconductor
MSM9225
12. Transmit Error Counter (TEC: AEhex)
TEC indicates the lower 8 bits of the 9-bit Transmit Error Counter.
The bit configuration is shown below.
Address MSB
AEh
LSB
0
7
6
5
4
3
2
1
TEC0 :
TEC1 :
TEC2 :
TEC3 :
TEC4 :
TEC5 :
TEC6 :
TEC7 :
Transmit Error Counter
At reset, TEC is set to "0000 0000".
The relation between the Transmit Error Counter and TEC is shown below.
TEC (AEh)
Transmit Error
Counter
8
7
6
5
4
3
2
1
0
BOFF (CANS: bit6) TEP (CANS: bit5)
1: Bus off state 0: Error active state
1: Error passive state
27/73
¡ Semiconductor
MSM9225
13. Receive Error Counter (REC: AFhex)
The Receive Error Counter is read-only.
The bit configuration is shown below.
Address MSB
LSB
0
AFh
7
6
5
4
3
2
1
REC0 :
REC1 :
REC2 :
REC3 :
REC4 :
REC5 :
REC6 :
REC7 :
Receive Error Counter
At reset, REC is set to "0000 0000".
The relation between the Receive Error Counter and each register is shown below.
REC (AFh)
Receive Error
Counter
7
6
5
4
3
2
1
0
REP (CANS: bit1)
0: Error active state
1: Error passive state
28/73
¡ Semiconductor
MSM9225
OPERATIONAL DESCRIPTION
MSM9225 operation is described below.
Operational Procedure
Procedures to set and operate various communication protocols are indicated below.
1. Initial setting
The initial setting procedure is indicated below.
Start initial setting
Set INIT bit of CANC register
(0Ehex) to "1"
Read INIT bit
*) Since the INIT bit cannot be set to "1" during
transmission or reception, read and verify its value.
INIT = 1?
NO
YES
Set the number of messages with
the NMES register (1Ehex)
CAN bus timing settings
BTR0 (1Fhex)
Set the inside message
control register (X0hex)
BTR1 (2Ehex)
Set Tx0, Tx1, Rx0, Rx1 states
with the TIOC register (2Fhex)
Set the message unit
(FRM/DCL3-DCL0, /ID28-ID0)
Group message settings
(GMR/GMSK)
All message
settings complete?
NO
Set INIT bit of the CANC register
(0Ehex) to "0".
YES
Set the interrupt control with the
CANI register (0Fhex)
Initial setting complete
29/73
¡ Semiconductor
MSM9225
2. Transmit Procedure
The transmit procedure is indicated below.
Start transmit setting
Set TIRS bit of CANC register
(0Ehex) to "0"
Set MMA bit of the inside message
control register (X0hex) to "1"
Read MMA bit
*) Since the MMA bit cannot be set to
"1" while the message is being accessed,
read and verify its value.
MMA = 1?
NO
YES
Write message data to data memory
Set inside message control
register's MMA = 0 and TRQ = 1
All transmit message
settings complete?
NO
YES
Set TIRS bit of CANC register
(0Ehex) to "1"
Transmit setting complete
Transmission operation
30/73
¡ Semiconductor
MSM9225
3. Receive Procedure
The receive procedure is indicated below.
Receive procedure
(MSM9225)
Interrupt signal is generated when
reception is complete
INT: 1 Æ 0
Verify that IRF bit of CANI register
(0Fhex) is "1"
*) Verify that the interrupt is caused by the
reception completion.
Set IRF bit of CANI register
(0Fhex) to "0"
Verify reception message number
with TMN register (9Ehex)
Set RCS bit of inside message
control register (X0hex) to "0"
Read reception data from
data memory
Inside message
control register's
RCS = 0?
*) Check whether new reception data has
been written to the same message while data
was being read.
NO
YES
*) Check whether reception data has been written
to another message while data was being read.
This step may be omitted and evaluation performed
based on the interrupt signal.
CANC register's (0Ehex)
CANA = 0?
NO
YES
Receive complete
31/73
¡ Semiconductor
MSM9225
4. Message unit rewrites during operation
The procedure to rewrite the IDentifier (ID) and Data Length Code (DLC) during operation
is indicated below. The number of messages set in the NMES register at the initial setting is
the number of (valid) messages that may be rewritten.
Start rewrite
Set MMA bit of inside message
control register (X0hex) to "1"
Read MMA bit
MMA = 1?
NO
YES
Rewrite message unit
FRM/DLC3-DLC0/ID28-ID0
Set MMA bit of inside message
control register to "0"
All message
settings complete?
NO
YES
Rewrite complete
32/73
¡ Semiconductor
MSM9225
5. Remote Frame Operation
The following two methods are available for transmission after remote frame reception.
(1) Automatically transmit message data that has been previously set
(2) Set message data and then transmit
5-1. Automatic response
After remote frame reception, this method automatically transmits previously set message
data.
Settings of the inside message control register are listed in the table below.
Bit
5
Symbol
TRQ
Value
Comments
0* When reception is complete, TRQ bit changes from 0 Æ 1
3
EIR
—
2
EIT
1
0
1
Set transmit interrupt to verify the end of transmission.
Set the remote frame.
1
FRM
ARES
0
Set automatic response.
A flow chart of the operation is shown on the following page.
33/73
¡ Semiconductor
MSM9225
Microcontroller (user) operation
MSM9225 operation
Start automatic response
Set MMA bit of inside message
control register (X0hex) to "1"
Read MMA bit
MMA = 1?
YES
NO
Transmit data
setting
Set the inside message data register
(X0hex) as shown in previous table
Write transmit data to data memory
Set MMA bit to "0"
Remote frame reception?
NO
YES
Remote reception
and transmission
Data frame transmission
Transmission completion generates
interrupt
INT: 1 Æ 0
Verify that ITF bit of CANC
register (0Fhex) is "1"
Remote transmission
verification
Set ITF bit to "0"
Set RSC bit of inside message
control register to "0"
Figure: Automatic Response Operation Flow Chart
34/73
¡ Semiconductor
MSM9225
5-2. Manual response
In this method, after remote frame reception, the transmit data is set and then transmission
begins.
Settings of the inside message control register are listed in the table below.
Bit
5
Symbol
TRQ
Value
Comments
0
1
1
0
0
Set to receive message.
3
EIR
Set interrupt to verify (remote frame) reception.
Set interrupt to verify the end of transmission.
Set the remote frame.
2
EIT
1
FRM
ARES
0
Specify that there will be no automatic response.
A flow chart of the operation is shown on the following page.
The basic operation is a combination of receive and transmit procedures.
35/73
¡ Semiconductor
MSM9225
Microcontroller (user) operation
MSM9225 operation
Start Manual response
Remote frame reception?
YES
NO
Remote reception
Message reception generates
interrupt
INT: 1 Æ 0
Verify reception interrupt
with CANI retgister (0Fhex)
Verify receive message number
with TMN retgister (9Ehex)
Set RCS bit of inside message
control register (X0hex) to "0"
Set MMA bit of inside message
control register to "1"
Transmit data setting
MMA = 1?
NO
YES
Write transmit data to data memory
Set inside message control
registers MMA = 0 and TRQ = 1
Set TIRS bit of CANC register
(0Ehex) to "1"
Data frame transmission
Remote transmission
Transmission completion generates
interrupt
INT: 1 Æ 0
Verify transmission is complete
Figure: Manual Response Operation Flow Chart
36/73
¡ Semiconductor
MSM9225
Operation at Receiving Message
1. Priority of message
A message has the priority determined by the identifier setting. To determine priority,
identifiers of messages are compared from the higher bit, and the identifier (set to "0") detected
first has the higher priority. (see the example below)
Identifier (example)
Priority
Second
First
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
1
1
0
0
0
0
0
1
1
1
1
1
0
0
0
0
1
1
1
1
Fourth
Third
In this example, priority is determined at the shaded bits.
2. Data length code
When the received data length code (hereafter DLC) matches the DLC being set to the message
memory, the number of bytes of data indicated by the received DLC is received and written to
the message memory. When the received DLC does not match with the DLC being set to
message memory, the MSM9225 operates as follows:
(1) Received DLC > DLC on message memory
The number of bytes of data indicated by the DLC on the message memory is received
and written to the message memory.
The data exceeding the number of bytes indicated by DLC on the memory is not written
to message memory.
(2) DLC on message memory > received DLC
The number of bytes of data indicated by the received DLC is received and written to the
message memory.
3. Group message function
If the group message function is used, a part of an identifier can be masked. This can increase
the number of receivable identifiers.
To use the group message function, set the message number of the target message to set the
group message function at the GMR register. Then set the bits to be masked at the GMSK
register. Depending on the location of bits to be masked, an another identifier being set at the
message memory may be received.
In this case, the priority of identifiers being set on the message memory is calculated and the
identifier having the highest priority is received. The received data is written to the message
memory indicated by the message for which the identifier with the highest priority is set.
37/73
¡ Semiconductor
MSM9225
When same identifiers are set to multiple messages on message memory
When same identifiers are set to multiple messages on the message memory, operations are as
follows.
1. Transmit operation
Messages are transmitted sequentially from the smaller message number.
2. Receive operation
The message is always written to the smallest message number.
For example, the same identifier is set at message numbers 1 to 4, as shown below.
Message
number
Identifier (example)
0
1
2
3
4
5
6
0
1
1
1
1
0
1
0
1
1
1
1
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
1
1
1
0
0
1
1
1
1
1
0
0
1
1
1
1
1
0
0
1
0
0
0
0
1
0
1
0
0
0
0
1
1
1
1
1
1
1
1
1
The range in which the same
identifier is set.
• Transmit operation
If every message above is a transmit message, messages are transmitted sequentially in the
order of message number 5 Æ 0 Æ 6 Æ 1 Æ 2 Æ 3 Æ 4.
• Receive operation
When the identifier "11100111001" is received from the CAN bus, received data is always
written to the message memory which is indicated by the message number 1.
38/73
¡ Semiconductor
MSM9225
MICROCONTROLLER INTERFACE
There are basically two methods of interfacing to the microcontroller.
(1) Synchronous serial interface (serial mode)
(2) Parallel bus interface (parallel mode)
Each interface is selected with the Mode0 and Mode1 pins. Refer to the section, PIN
DESCRIPTIONS, "PIN DESCRIPTIONS" for the relation between pin values and interface
selection.
Serial Interface
The transfer timing is indicated in the figure.
Address/data transfers begin when the CS pin is at a "L" level and end when it changes to a "H"
level. Because the MSM9225 has an address increment function, the basic transfer consists of "1
address + multiple data." Therefore, to access a nonconsecutive address, the CS must be first
pulled to a "H" level, and then the address reset.
Perform address/data transfers LSB first, in 8-byte units. During a transfer, an interval (WAIT)
is necessary between address and data and between consecutive data transfers. (Refer to the
section, ELECTRICAL CHARACTERISTICS, for interval values.) Note that the WAIT signal is
only generated during the interval between address and data transfers.
(1) Data write
Data write operations are performed with the follwing procedure.
After setting the CS pin and PRD/SRW pin to "L" levels, input an address to the SDI pin.
Synchronized to the rising edge of synchronous clock SCLK, the MSM9225 captures the address
in an internal register. When 8 SCLK clocks are received, the MSM9225 loads the address into
the internal address counter and waits for data reception.
Next, input data to the SDI pin. An internal register captures data in a similar manner to the
address capture, at the rising edge of SCLK. When 8 bits of data have been captured, the
MSM9225 writes the data to the internal memory or register specified by the address that was
received previously, and then increments the counter by 1. If data is to be written to consecutive
addresses, continue the data transfer. After all data has been transferred, set the CS pin to a "H"
level.
(2) Data read
Data read operations are performed with the following procedure.
After setting the CS pin to a "L" level and the PRD SRW pin to a "H" level, in the same manner
asforthedatawriteoperation, inputanaddresstotheSDIpin. When8SCLKclocksarereceived,
the MSM9225 loads the address into the internal address counter, reads data from the internal
memory or register specified by the address, latches data into a shift register for data output and
increments the address counter. Then, when SCLK is input, latched data is output from the SDO
pin synchronized to the falling edge of SCLK. At this time, the contents of the data input from
the SDI pin does not matter. If there exists remaining data to be read, input another 8 SCLK
clocks. After all the data (at consecutive addresses) has been read, set the CS pin to a "H" level.
If the count value overflows (exceeds XFh), without changing the upper 4 bits of the address, the
address increment function will reset the count value of the lower 4 bits to 0, and will continue
counting.
39/73
(1) Data write timing
CS
SCLK
SDI
A0 A1 A2 A3 A4 A5 A6
(HiZ)
A7
D0 D1 D2 D3 D4 D5 D6
D7
D0 D1 D2 D3 D4 D5 D6
D7
SDO
R/W
WAIT
Internal
processing
interval
Internal processing
interval
Internal processing
interval
Address reception
Data reception
Data reception
(Data write &
address + 1)
(Data write &
address + 1)
(2) Data read timing
CS
SCLK
SDI
A0 A1 A2 A3 A4 A5 A6
A7
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
SDO
*
*
*
*
*
*
*
*
D0 D1 D2 D3 D4 D5 D6
D7
D0 D1 D2 D3 D4 D5 D6
D7
R/W
WAIT
Internal processing
interval
Internal processing
interval
Internal processing
interval
Address reception
Data transmission
Data transmission
(Data read &
address + 1)
(Data read &
address +1 )
(Data read &
address + 1)
*: Don't Care
Figure: Serial Interface Transfer Timing
¡ Semiconductor
MSM9225
Parallel Interface
The following three types of parallel interfaces are available.
(1) Address/data separate bus type, no address latch signal
(2) Address/data separate bus type, with address latch signal
(3) Multiplexed bus type
For transfer timings, refer to the timing diagrams for electrical characteristics.
41/73
¡ Semiconductor
MSM9225
MSM9225 CONNECTION EXAMPLES
Microcontroller Interface
(1) Address/data separate bus (no address latch signal)
+5 V
Microcontroller
MSM9225
11
10
27
9
INT
INT
CS
CS
PALE
RD
WR
PRD/SRW
PWR
26
16
WAIT
A7-0
D7-0
PRDY/SWAIT
A7-0
CST16MXW040
4-1, 44-41
38-31
13
14
XT
AD7-0/D7-0
SDO
XT
5
7
8
If the clock is supplied
externally,in the same
manner as for the serial
interface, input the clock
to the XT pin and leave
the XT pin open.
SDI
30
29
SCLK
Mode1
Mode0
25
RESET
RESET
Reset signal
(2) Address/data separate bus (with address latch signal)
+5 V
Microcontroller
MSM9225
11
10
27
9
INT
INT
CS
ALE
CS
PALE
RD
PRD/SRW
PWR
26
16
WR
WAIT
A7-0
D7-0
PRDY/SWAIT
A7-0
CST16MXW040
4-1, 44-41
38-31
13
14
XT
AD7-0/D7-0
SDO
XT
5
7
8
SDI
30
29
SCLK
Mode1
Mode0
25
RESET
RESET
Reset signal
42/73
¡ Semiconductor
MSM9225
(3) Address/data multiplexed bus
+5 V
Microcontroller
MSM9225
11
10
27
9
INT
CS
INT
CS
ALE
RD
PALE
PRD/SRW
PWR
26
16
WR
WAIT
PRDY/SWAIT
A7-0
CST16MXW040
4-1, 44-41
38-31
13
14
XT
AD7-0
AD7-0/D7-0
SDO
XT
5
7
8
SDI
30
29
SCLK
Mode1
Mode0
25
RESET
RESET
Reset signal
(4) Serial interface
+5 V
Microcontroller
MSM9225
11
10
27
9
INT
INT
CS
ALE
RD
CS
PALE
PRD/SRW
PWR
If self-excitation is used,
in the same manner as for
the separate bus, connect
an external oscillator.
26
16
WR
WAIT
PRDY/SWAIT
A7-0
4-1, 44-41
38-31
13
14
XT
AD7-0/D7-0
SDO
XT
Open
5
7
8
SDIN
SDOUT
SCLK
SDI
30
29
SCLK
Mode1
Mode0
25
RESET
RESET
CLK
Reset signal
43/73
¡ Semiconductor
MSM9225
CAN Bus Interface
(1) Electrically isolated from bus transceiver (PCA82C250)
+5 V
6N137
124 W
MSM9225
PCA82C250
2
8
7
3
2
VCC
19
18
0.1 mF
Rx1
1
0.1 mF
Open
GND
5
3
4
Open
390 W
4
6
Rx0
RxD
7
6
CANH
6N137
ANODE
CANL
8
7
2
1
VCC
E
0.1 mF
5
8
Vref
Open
Open
23
5
3
GND
Tx1
Tx0
4
6
Open
Open
Rs
390 W
1
22
CATH O.P.
TxD
124 W
124 W
(2) Directly connected to bus transceiver (PCA82C250)
MSM9225
PCA82C250
3
2
VCC
0.1 mF
5
4
19
GND
Vref
Rx1
18
Rx0
RxD
7
6
CANH
CANL
23
Tx1
Open
1
8
22
Tx0
TxD
470 kW
From microcontroller (port pin)
Rs
124 W
(Normal "L" output)
44/73
¡ Semiconductor
MSM9225
(3) Monitoring the CAN bus
Battery
+5 V
10
13
VCC
GND
19
Rx1
8
RTH
1
3
INH
PCA82C252
11
12
18
23
Open
22
MSM9225
CANH
Rx0
RxD
Tx1
CANL
2
Tx0
TxD
9
RTL
5
4
6
Port
STB
NERR
EN
Microcontroller
Port
Port
45/73
¡ Semiconductor
MSM9225
PROTOCOL
The CAN (Controller Area Network) is a high-speed multiplexed communication protocol
designed to perform real-time communication inside an automobile. CAN specifications are
broadly classified into two layers, the physical layer and the data link layer. The data link layer
consists of logical link control and medium access control.
The configuration of each layer is listed below.
Upper
Application layer (not including object)
Data link layer
• Logical link control (LLC): message and status handling
• Medium access control (MAC): as per protocol
Physical layer: signal level and bit representation
Lower
Protocol Mode Function
(1) Standard format mode
2032 types of identifiers can be set in this mode.
Since the identifier is 11 bits, 2032 types of messages can be handled.
(2) Extended format mode
18
2032 ¥ 2 types of identifiers can be set in this mode.
Inthestandardformatmode, theidentifieris11bits. However, intheextendedformatmode,
the identifier is extended to 29 bits (11 + 18).
If the SRR and IDE bits of the arbitration field are both "recessive", the mode changes to the
extended format mode.
If remote frames for an extended format mode message and a standard format message are
transmit simultaneously, the node that transmit the extended format message will change to
the receive state.
Message Format
CAN protocol messages have the following 4 types of frames.
(1) Data frame
(2) Remote frame
(3) Error frame
: transmit data frame
: transmit request frame from the receive side
: frame that is output when an error is detected
(4) Overload frame : framethatisoutputwhenthereceivesidehasnotcompletedpreparing
for reception
*
In a wired-OR logic circuit, the stronger value is defined as "dominant" and the weaker value
as"recessive". Infigureshereafter,dominant(abbreviation: D)=0,andrecessive(abbreviation:
R) = 1.
46/73
¡ Semiconductor
MSM9225
1. Data frame and remote frame
(1) Data frame
The data frame is for data transmission and consists of 8 fields.
Data frame
R
D
1
2
3
4
5
6
7
8
Interframe space
End-of-frame
Ack field
CRC field
Data field
Control field
Arbitration field
Start-of-frame
(2) Remote frame
This frame is transmit when the receive node requests transmission.
The data field is deleted from the data frame and the RTR bit of the arbitration field is made
"recessive".
Remote frame
R
D
1
2
3
5
6
7
8
Interframe space
End-of-frame
Ack field
CRC field
Control field
Arbitration field
Start-of-frame
*
Even when the data length code of the control field is nonzero, there will be no data frame
transfer.
47/73
¡ Semiconductor
MSM9225
(3) Description of each frame
(a) Start-of-frame
Start-of-frame indicates the beginning of a data frame or remote frame and is one dominant
bit.
(Interframe space
Start-of-frame
1 bit
(Arbitration field)
or bus idle)
R
D
The start-of-frame begins when the bus line level changes.
If "dominant" is detected at the sample point, reception continues.
If "recessive" is detected at the sample point, the bus becomes idle.
(b) Arbitration field
This field sets priority and data frame/remote frame protocol modes.
The arbitration field consists of an identifier, RTR bit, and extended format setting bits.
Standard format mode
Arbitration field
(Control field)
R
D
Identifier
RTR
IDE
(r1)
(1 bit) (1 bit)
r0
ID28
ID18
(11 bits)
Extended format mode
Arbitration field
(Control field)
R
D
Identifier
(11 bits)
SRR
IDE
Identifier
(18 bits)
RTR
r1
r0
ID28
ID18
ID17
ID0
(1 bit) (1 bit)
(1 bit)
*
Notes:
ID28 to ID0 is the identifier.
The identifier is transmitted MSB first.
It is prohibited to set the identifier = 1111111XXXXX.
48/73
¡ Semiconductor
MSM9225
Number of Identifier Bits
Protocol mode
Standard format mode
Extended format mode
No. of bits
11 bits
29 bits
RTR Bit Setting
RTR bit
Dominant
Recessive
Frame type
Data frame
Remote frame
Mode Setting
Protocol mode
Standard format mode
Extended format mode
SRR bit
None
IDE bit
Dominant
Recessive
Recessive
(c) Control field
The control field sets the number of data bytes (N) in the data field. (N: 0 to 8)
r1 and r0 are fixed as "dominant". The number of bytes is set with DLC3 to DLC0.
(Arbitration field)
R
Control field
(Data field)
D
RTR
r1
r0
DLC3
DLC2
DLC1
DLC0
(IDE)
During the standard format mode, the r1 bit and IDE bit of the arbitration field are the same bit.
49/73
¡ Semiconductor
MSM9225
Data Length Code Setting
Data length code
No. of data bytes
DLC3
DLC2
DLC1
DLC0
0
0
•
0
0
•
0
0
•
0
1
•
0
1
•
•
•
•
•
•
0
1
1
0
1
0
1
0
7
8
*
In the case of a remote frame, even when the data length code ≠ 0, there is no data field.
(d) Data field
The data field contains the number of data groups set by the control field. A maximum of 8
data groups can be set.
8 bits form 1 data group. (MSB first)
(Control field)
Data field
(CRC field)
R
D
Data
Data
(8 bits)
(8 bits)
(e) CRC field
A 15-bit CRC sequence checks for transmission errors.
The CRC field consists of a 15-bit CRC sequence and a 1-bit CRC delimiter.
(Data field, control field)
CRC field
Ack field
R
D
CRC sequence
(15 bits)
CRC delimiter
(1 bit)
• The polynominal P(X) that generates the 15-bit CRC is expressed as follows.
15
14
10
8
7
4
3
P(X) = X + X + X + X + X + X + X + 1
• The transmit node transmits a CRC sequence computed from all basic data bits of the start-of-
frame, arbitration field, control field, and data field, without bit stuffing.
• The receive node, compares the CRC sequence computed from data bits of the received data
(excluding stuff bits) with the CRC sequence in the CRC field. If they do not match, the node
switches to an error frame.
50/73
¡ Semiconductor
MSM9225
(f) Ack field
The field verifies correct reception.
The Ack field consists of a 1-bit Ack slot and a 1-bit Ack delimiter.
(CRC field)
Ack field
(Ebd-of-frame)
R
D
ACK slot
(1 bit)
Ack delimiter
(1 bit)
If the receive node detects an error between the start-of-frame and the CRC field, Ack slot =
"recessive" is output. If an error is not detected, Ack slot = "dominant" is output.
The transmit node outputs 2 "recessive" bits, and verifies the reception status of the receive node.
(g) End-of-frame
This frame indicates the completion of transmission or reception.
The end-of-frame consists of 7 "recessive" bits.
(Interframe space or
overload frame)
(Ack field)
End-of-frame
(7 bits)
R
D
(h) Interframe space
The interframe space is inserted between the data frame, remote frame, error frame, and
overload frame and the next frame. The interframe space indicates the separation between
frames.
Output is prohibited during intermission.
• Error active: The interframe space consists of a 3- or 2-bit intermission and bus idle.
(Each frame)
Interframe space
(Each frame)
R
D
Intermission
(3/2 bits)
Bus idle
(0 to • bits)
• Error passive: The interframe space consists of intermission, suspend transmission, and bus
idle.
(Each frame)
Interframe space
(Each frame)
R
D
Intermission
(3/2 bits)
Suspend transmission
(8 bits)
Bus idle
(0 to • bits)
51/73
¡ Semiconductor
MSM9225
Intermission Bit Length
Protocol mode
Bit length
Standard format mode
3 bits
Error Status and Operation
Error status
Operation
When the bus becomes idle, each node is able to transmit. The node with a transmit
request begins to transmit.
Error active
After bus idle has continued for 8 bits, transmission becomes possible. If another
node begins transmission while the bus is idle, the node changes to reception.
Errpr passive
Operation when the 3rd Intermission Bit is "Dominant"
Transmit status
Operation
Evaluated as a start-of-frame output from another node.
Reception is performed.
No transmit hold
Transmit hold
Evaluated as a start-of-frame from own node. The identifier is transmit.
Bus idle: State where bus is not being used by any node.
52/73
¡ Semiconductor
MSM9225
2. Error frame
When an error occurs, the node that detected the error will output this frame.
While a passive error flag is being output, if another node outputs "dominant", the passive error
flag will not end until 6 consecutive bits at the same level are detected.
If 6 consecutive bits are "recessive" but the 7th bit is "dominant", the error flag will end after the
bit level changes to "recessive".
Error frame
R
D
(4)
1
2
3
(5)
Interframe space of overload frame
Error delimiter
Error flag
Error flag
Error bit
Field Definitions
No.
Name
No. of bits
Difinition
Error active node: Outputs 6 consecutive "dominant" bits.
Error passive node: Outputs 6 consecutive "recessive bits".
The node that has received an "error flag" detects a bit stuff error and
outputs an "error flag" again.
1
Error flag
6
2
3
Error flag
0 to 6
8
Outputs 8 consecutive "receive" bits.
If the 8th bit is observed to be "dominant", an overload frame is transmit
biginning at the next bit.
Error delimiter
Error bit
Output following the bit in which an error occurred.
(In the case of a CRC error, this field is output following the Ack delimiter.)
4
5
—
Interframe space/
overload frame
3/10
"Interframe space" or "overload frame" continues.
20 Max
53/73
¡ Semiconductor
MSM9225
3. Overload frame
When reception preparations are not complete, the receive node outputs this frame from the 1st
intermission bit.
If a bit error is detected during intermission, this frame is output from the next bit after a bit error
is detected.
Overload frame
R
D
(4)
1
2
3
(5)
Interframe space or overload frame
Overload delimiter
Overload flag (node n)
Overload flag (node m)
Each frame
Field Definitions
No.
Name
No. of bits
Difinition
Outputs 6 consecutive "dominant" bits.
Overload flag
from node m
The overload flag is output because node m has not finished reception
preparations.
1
6
Overload flag
from node n
Having received an "overload flag" during an "interframe space", node n
outputs an overload flag.
2
3
0 to 6
8
Outputs 8 consecutive "recessive" bits.
If the 8th bit is observed to be "dominant", an overload frame is transmit
biginning at the next bit.
Overload delimiter
4
5
Each frame
—
Output following end-of-frame, error delimiter, and overload delimiter.
Interframe space/
overload frame
3/10
"Interframe space" or "overload frame" continues.
20 Max
54/73
¡ Semiconductor
MSM9225
FUNCTIONS
1. Bus priority decisions
(1) When a single node has started transmission
While the bus is idle, the node that outputs data first will transmit.
(2) When multiple nodes have started transmission
Beginning from the 1st bit of the arbitration field, the node that outputs the longest
consecutive string of "dominant" bits will have priority. (Since the bus has a wired-OR
configuration, "dominant" is strong.)
The transmit node compares the arbitration field that it has output with the data levels on the
bus.
Matching levels
Transmission continues.
Data output is terminated from the next bit after non-matching is detedted. The operation
changes to reception.
Non-matching levels
(3) Data frame and remote frame priority
If a data frame and remote frame contend for control of the bus, the data frame whose last bit,
RTR, is "dominant" will be given priority.
2. Bit stuffing
If 5 or more consecutive bits have the same level, bit stuffing prevents a burst error by appending
1 bit of inverted data, and then re-synchronizing.
When transmitting a data frame or remote frame, if there are 5 consecutive bits with the
same level between the start-of-frame and the CRC field, 1-bit of data at the inverted level
of the previous 5 bits is inserted before the next bit.
Transmission
Reception
When receiving a data frame or a remote frame, if there are 5 consecutive bits with the
same level between the start-of-frame and the CRC field, the next bit is deleted and the
data received
3. Multi-master
So that bus priority can be determined by the identifier, any node may become the bus master.
4. Multi-cast
There is one transmit node, however since multiple nodes can be set with the same identifier,
multiple nodes can simultaneously receive the same data.
5. Sleep and stop mode functions
These modes are low-power consuming standby modes.
Setting the SLEEP bit of the STBY register to "1" sets the sleep mode.
(after bus idle)
Setting the STOP bit of the STBY register to "1" sets the stop mode.
(after bus idle)
The sleep mode is released when the Rx0 and Rx1 differential inputs, the RESET pin input, or the
CS pin input is at a "L" level.
The stop mode is released when the RESET pin input or the CS pin input is at a "L" level.
55/73
¡ Semiconductor
MSM9225
6. Error control functions
(1) Types of errors
Error description
Detection state
Type of error
Detection method Detection condition Transmit/Receive
Field/Frame
Bits that output data onto the
bus, start-of-frame to end-of-
frame, error frame, and
overload frame
Comparison of output
Both levels do not
match
Transmit/Receive
node
level and bus level
Bit error
(excluding stuff bits)
Verify received data
with the stuff bit
CRC generated from
received data
Same level of data for
6 consecutive bits
Transmit/Receive Start-of-frame to CRC
Stuff error
CRC error
node
saquence
CRC's do not match
Receive node
Start-of-frame to data field
compared to received
CRC sequence
CRC delimiter
• Ack field
Verify fixed format
field/frame
Detection of fixed
format violation
• End-of-frame
• Error frame
• Overload frame
Form error
Ack error
Receive node
Transmit node
Detection of a
"recessive" bit during
Ack slot
Verify Ack slot by
transmit node
Ack slot
(2) Error frame output timing
Type of error
Output timing
Bit error, stuff error,
Error frame is output at the next bit after the error is detected.
Error frame is output at the next bit after the Ack delimiter.
form error, Ack error
CRC error
(3) Procedure when an error is generated
After the error frame, the transmit node retransmits a data frame or a remote frame.
56/73
¡ Semiconductor
MSM9225
(4) Error states
(a) Types of error states
• There are three types of error states: error active, error passive, and bus OFF.
• Error states are managed by the transmit error counter and the receive error counter.
• Each error state is classified according to the error counter value.
• The error flag that is output differs depending upon whether the error state is a transmit or
receive operation
• If the value of the error counter is 96 or greater, the bus may be heavily damaged. The bus must
be tested for this condition.
• If only one node is active at startup, even if data is transmit an Ack will not be returned.
Therefore, errorframeanddataretransmissionarerepeated. Inthiscase,thebusOFFstatewill
not be entered. Even if an error state is repeated at the node that transmits messages, the bus
OFF state will not be entered.
• After reset and after the sleep mode wakes up, the error passive state continues until Ack is
received. Regardless of the number of errors that occur, the transmit error counter will be 255.
• Reception can be performed even if transmission is in the bus OFF state.
Type of error state
Operation
Error counter value
Type of error flag to be output
Active error flag
Error active
Transmit/Receive
from 0 to 127
(6 consecutive "dominant" bits)
Passive error flag
Transmit
Receive
from 128 to 255
128 or greater
Error passive
(6 consecutive "recessive" bits)
Communication not possible.
If 11 consecutive "recessive" bits occur 128
times, then when the error counter = 0, the
state can return to error active.
No bus OFF
Transmit
Receive
256 or greater
—
Bus OFF
(b) Error counter
The error counter is incremented when errors occur and is decremented when transmission or
reception is performed correctly. Timing of the increment or decrement occurs at the 1st bit of
the error flag.
57/73
¡ Semiconductor
MSM9225
State
Transmit error counter Receive error counter
Receive node has detected an error
(excluding bit errors within the active error flag or
overload flag)
No change
No change
+1
+8
Receive node detects "dominant" after error flag output
of error frame
Transmit node transmits error flag
[when error counter = 0]
(1) Error passive state and Ack error detected, but
"dominant" not detected in passive error flag output
(2) Stuff error occurred during arbitration field
Bit error detected in output of active error flag, overload flag
(error active transmit node)
+8
No change
+8
No change
+8
Bit error detected in output of active error flag, overload flag
(error active receive node)
No change
Each node detects 14 consecutive "recessive" bits from the
beginning of the active error flag or overload flag, and 8
consecutive "dominant" bits detected thereafter
Each node detects 8 consecutive "dominant" bits after the
passive error flag
+8
+8
–1
Transmit node completes transmission without errors
No change
( 0 when error counter = 0)
(1) –1
(1 £ REC £ 127)
(2) 0 (REC = 0)
(3) Set to 127
Receive node completes reception without errors
No change
*
REC: Receive Error Counter
(c) Bit error occurring during intermission
Overload frame is generated.
Note) When an error has occured, error control is performed by the error counter at that time.
After an error flag is output, the indicated values are added to the error counter.
58/73
¡ Semiconductor
MSM9225
7. Baud rate control function
(1) Prescaler
The MSM9225 has a prescaler that divides the frequency of the system clock. The prescaler
divides the system clock frequency by a factor of 1 to 64 to generate clock CK . (BTL: Bit
BTL
Time Logic)
(2) Bit timing
The timing for 1 data bit is defined below.
Definition for CAN protocol
Bit time
Phase segment 1
Sync segment
Prop segment
Phase segment 2
Sampling point
Definition for MSM9225
Sync segment
Bit time
TSEG1
SJW1
TSEG2
SJW2
Sampling point
• Sync segment
• Prop segment
: This is the first segment for bit synchronization.
: This segment absorbs the delay of the output buffer, CAN bus and input
buffer.
Set the prop segment so that Ack will be returned by the start of phase
segment 1.
Prop segment time ≥ (output buffer delay) + (CAN bus delay) + (input
buffer delay)
• Phase segments
• SJW
: These segments compesate for deviations in the data bit timing.
The larger these segments, the greater the allowable deviation, however
communication speed will decrease.
: Abbreviation of reSynchronization Jump Width. These bits set the bit
synchronization range.
Segment name
Segment length (BTL)
MSM9225
CAN protocol
Sync segment
Sync segment
1
(Synchronization segment)
Prop segment
(Synchronization segment)
SJW1
1 to 4, programmable
1 to 16, programmable
1 to 8, programmable
1 to 4, programmable
(Propagation segment)
Phase segment 1
TSEG1
(Time segment)
(Phase Buffer segment)
TSEG2
Phase segment 2
(Time segment)
SJW2 protocol
(Phase buffer segment)
59/73
¡ Semiconductor
MSM9225
(3) Data bit synchronization
Since there is no sync signal for the receive node, synchronization is obtained from level
changes on the bus.
The transmit node transmits data is synchronization with the transmit node bit timing.
(a) Hardware synchronization
Hardwaresynchronizaionisthebitsynchronizationperformedwhenareceivenodeinthebus
idle state detects a start-of-frame.
If a falling edge is detected on the bus, that bit is the sync segment and is followed by the prop
segment. In this case, syncronization is obtained without regard for SJW.
After reset and after wake up, it is necessary to obtain bit synchronization.
Therefore, hardware synchronizes to the first bus level change only.
Bus idle
Start-of-frame
CAN bus
Phase
Phase
Bit timing
Sync segment Prop segment
segment 1
segment 2
(b) Bit synchronization
If a level change is detected on the bus during receprion, bit synchronization is obtained.
There are two methods of synchronization.
Normal operation: falling edge of level
Low-speed operation: falling edge and rising edge of level
During the bit timing interval specified by SJW, synchronization is obtained only if an edge is
detected.
The data sampling point of the receive node will move in relation to the shift in baud rate
between the transmit node and receive node.
The range of allowable "shift" is defined as "SJW". The SJW range is centered on the sync
segment and extends both before and after that segment (+/– baud rate). If an edge occurs
within the SJW range, synchronization is obtained.
If an edge occurs outside the SJW range, synchronization is not obtained.
The bit detected at the edge forces the sync segment, and is followed by the prop segment.
The bit timing is restarted.
Previous bits
Later bits
CAN bus
Phase
Phase
Bit timing
Sync segment Prop segment
SJW
segment 1
segment 2
60/73
¡ Semiconductor
MSM9225
8. State transition diagrams
(1) Transmit state transition diagram
Receive
C
Start-of-frame
Complete
Output bit is "1" but
bus level is "0" error
Output bit is "0" but
bus level is "1" error
Arbitration field
A
Receive
RTR = 1
Bit error
Bit error
Bit error
Ack error
Bit error
Control field
RTR = 0
Data field
Complete
CRC field
Complete
Ack field
Complete
End-of-frame
Complete
Error frame
Complete
Bit error
Form error
Bit error
Intermission 1
Error active
Overload frame
Complete
Error passive
Intermission 2
Initial setting
8 bits of "1"
Bus idle
Start-of-frame reception
Start-of-frame transmission
B
Reception
61/73
¡ Semiconductor
MSM9225
(2) Receive state transition diagram
Transmit
B
Start-of-frame
Complete
Transmit
A
Stuff error
Stuff error
Stuff error
Arbitration field
RTR = 1
Control field
RTR = 0
Data field
Complete
CRC error
Stuff error
CRC field
Complete
Form error
Bit error
Ack field
Complete
Form error
Bit error
End-of-frame
Complete
Error frame
Preparation not
complete
Preparation
not
complete
Complete
Form error
Overload frame
Bit error
Intermission 1
Complete
Initial setting
Bus idle
Start-of-frame reception
Start-of-frame transmission
C
Transmission
62/73
¡ Semiconductor
MSM9225
(3) Error state transition diagram
(a) Transmit
Error active
TEC ≥ 128
0 £ TEC £ 127
128 £ TEC £ 255
TEC ≥ 256
TEC £ 127
Error passive
TEC ≥ 256
Bus OFF
11 consecutive bits are "1", occurs 128 times
TEC = 0
*TEC: Transmit Error Counter
(b) Receive
Error active
REC ≥ 128
0 £ REC £ 127
Error passive
128 £ REC £ 255
Reception successful
REC = 127
*REC: Receive Error Counter
63/73
¡ Semiconductor
MSM9225
ABSOLUTE MAXIMUM RATINGS
Parameter
Symbol
Condition
Rating
Unit
VDD
–0.3 to +7.0
–0.3 to +7.0
V
Power Supply Voltage
Ta = 25°C
AVDD
V
(AVDD = VDD
–0.3 to VDD + 0.3
–0.3 to VDD + 0.3
615
)
Input Voltage
VI
VO
—
—
V
V
Output Voltage
Power Dissipation
Operating Temperature
Storage Temperature
PD
Ta £ 25°C
—
mW
°C
°C
TOP
TSTG
–40 to +115
–65 to +150
—
RECOMMENDED OPERATING CONDITIONS
Parameter
Power Supply Voltage
Operating Temperature
Symbol
VDD
Condition
Min.
4.5
Typ.
Max.
5.5
+115
Unit
V
V
DD = AVDD
—
5.0
TOP
–40
+25
°C
64/73
¡ Semiconductor
MSM9225
ELECTRICAL CHARACTERISTICS
DC Characteristics
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C)
Parameter
"H" Input Voltage
"L" Input Voltage
Symbol
VIH
Applicable pin
Applies to all inputs
Applies to all inputs
XT
Condition
Min.
Max. Unit
—
—
0.8VDD VDD + 0.3
V
V
VIL
–0.3
3
+0.2VDD
25
IIH1
mA
mA
mA
mA
V
"H" Input Current
VI = VDD
VI = 0 V
IIH2
Other inputs
XT
–1.0
–25
+1.0
–3
IIL1
"L" Input Current
IIL2
Other inputs
INT, PRDY/SWAIT
AD7-0/D7-0
INT, PRDY/SWAIT
AD7-0/D7-0
PRDY/SWAIT,
AD7-0/D7-0
—
–1.0
VDD – 1.0
+1.0
—
VOH1
VOH2
VOL1
VOL2
I
OH1 = –80 mA
IOH2 = –400 mA
OL1 = 1.6 mA
"H" Output Voltage
"L" Output Voltage
Output Leakage Current
VDD – 1.0
—
V
I
—
—
0.4
V
IOL2 = 3.2 mA
0.4
V
IIH1
VI = VDD/0 V
–1.0
+1.0
mA
Dynamic Supply Current
Static Supply Current
IDD
f
OSC = 16 MHz, No Load
—
—
15
mA
IDDS
—
SLEEP/STOP Mode
100
mA
Rx0, Rx1 Characteristics
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C)
Parameter
Input Voltage
Symbol
Condition
Min.
0.5
Max. Unit
VRXI
VOFF
ILK
—
—
—
—
AVDD – 1.5
V
Input Offset Voltage
Input Leakage Current
AVDD Supply Current
–20
–10
—
+20
+10
4
mV
mA
mA
AIDD
Tx0, Tx1 Characteristics
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C)
Parameter
Symbol
Condition
IOH = –3.0 mA
IOH = –6.0 mA
IOL = 10.0 mA
IOL = 20.0 mA
Min.
AVDD – 0.4
AVDD – 1.0
—
Max. Unit
VOH
VOH
VOL
VOL
—
—
V
V
V
V
"H" Output Voltage
0.4
1.0
"L" Output Voltage
—
65/73
¡ Semiconductor
MSM9225
AC Characteristics
Parallel mode
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C, fOSC = 16 MHz)
Parameter
ALE Address Setup Time
ALE Address Hold Time
PRD Output Data Delay Time
PRD Output Data Hold Time
ALE "H" Level Width
Symbol
tAS
Condition
Min
10
10
—
5
Max Unit
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
40
—
—
—
—
—
—
35
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
tAH
tRDLY
tRDH
tWALEH
tcyc
20
4T
10
20
20
—
—
30
5
Access Cycle Time
Address Hold Time from PRD
ALE Delay Time from PRD
PRD "H" Level Width
tRAH
tHRA
tWRDH
tARLDLY
tARHDLY
tWDS
tWDH
tWS
PRDY "L" Delay Time
PRDY "H" Delay Time
2.5T + 35 ns
Input Data Setup Time
Input Data Hold Time
—
—
—
—
—
—
—
—
—
ns
ns
ns
ns
ns
ns
ns
ns
ns
PWR Delay Time
10
20
20
40
20
0
Address Hold Time from PWR
ALE Delay Time from PWR
PWR "H" Level Width
tWAH
tHWA
tWRH
tWRL
tHRC
PWR "L" Level Width
CS Delay Time from PRD
CS Delay Time from PWR
tHWC
0
Serial mode
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C, fOSC = 16 MHz)
Parameter
CS Setup Time
Symbol
tCS
Condition
Min
10
8T
167
83
30
5
Max Unit
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
30
30
30
—
—
2T
6T
—
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
CS Hold Time
tCH
SCLK Cycle
tCP
SCLK Pulse Width
SDI Setup Time
tCW
tDS
SDI Hold Time
tDH
SDO Output Enable Time
SDO Output Disable Time
SDO Output Delay Time
SRW Setup Time
SRW Hold Time
tCSODLY
tCSZDLY
tPD
—
—
—
10
0
tRS
tRH
SWAIT Output Delay Time
SWAIT "H" Level Width
Byte Delay
tSRDLY
tWRDY
tWAIT
—
—
8T
66/73
¡ Semiconductor
MSM9225
Other timing characteristics
(VDD = AVDD = 4.5 to 5.5 V, Ta = –40 to +115°C)
Parameter
Symbol
tclkcy
Condition
Min.
62
Max. Unit
System Clock Cycle
—
—
—
—
—
—
—
—
ns
ms
ms
ns
RESET "H" Level Input Width
RESET "L" Level Input Width
INT "L" Level Output Width
tWRSTH
tWRSTL
tWINTL
5
5
32T
(*) T = 1/f
OSC
67/73
¡ Semiconductor
MSM9225
TIMING DIAGRAMS
Separate Bus Mode
Read access timing
CS
tHRC
tcyc
A7-0
tRAH
AD7-0/
D7-0
tWS
tRDH
tWRDH
tRDLY
PRD/SRW
tARHDLY
PRDY/SWAIT
tARLDLY
Write access timing
tHWC
CS
tcyc
A7-0
tWAH
AD7-0/
D7-0
tWDS
tWDH
tWS
tWRH
tWRL
PWR
tARHDLY
PRDY/SWAIT
tARLDLY
68/73
¡ Semiconductor
MSM9225
Separate Bus/Address Latch Mode
Read access timing
tHRC
CS
tWALEH
tHRA
PALE
tAS
tcyc
A7-0
tRAH
AD7-0/
D7-0
tRDH
tRDLY
tWRDH
PRD/SRW
tARHDLY
PRDY/SWAIT
tARLDLY
Write access timing
tHWC
CS
tWALEH
tHWA
PALE
A7-0
tAS
tcyc
tWAH
AD7-0/
D7-0
tWDS
tWDH
tWS
tWRH
tWRL
PWR
tARHDLY
PRDY/SWAIT
tARLDLY
69/73
¡ Semiconductor
MSM9225
Multiplexed Bus Mode
Read access timing
tHRC
CS
tWALEH
tHRA
PALE
tAS
tcyc
tAH
AD7-0/
D7-0
tRDH
tRDLY
tWRDH
PRD/SRW
tARHDLY
PRDY/SWAIT
tARLDLY
Write access timing
tHWC
CS
tWALEH
tHWA
PALE
tAS
tcyc
tAH
AD7-0/
D7-0
tWDS
tWDH
tWS
tWRH
tWRL
PWR
tARHDLY
PRDY/SWAIT
tARLDLY
70/73
¡ Semiconductor
MSM9225
Serial Mode
Read access timing
CS
tCS
tCH
tWAIT
tCP
tCW
SCLK
SDI
tCW
tDH
tDS
A0
A1
A6
A7
Don't Care
tPD
tCSZDLY
tCSODLY
DMY0
DMY1
DMY6
DMY7
D0
SDO
tRH
tRS
PRD/SRW
tWRDY
tSRDLY
PRDY/SWAIT
Write timing
CS
tCS
tCH
tWAIT
tCP
tCW
SCLK
SDI
tCW
tDH
tDS
A0
A1
A6
A7
A0
(HiZ)
SDO
tRS
tRH
PRD/SRW
tWRDY
tSRDLY
PRDY/SWAIT
71/73
¡ Semiconductor
MSM9225
Other Timings
tWRSTL
tWRSTH
RESET
tWINTL
INT
tclkcy
CLK
(XT)
tclkcy
72/73
¡ Semiconductor
PACKAGE DIMENSIONS
QFP44-P-910-0.80-2K
MSM9225
(Unit : mm)
Mirror finish
Package material
Lead frame material
Pin treatment
Solder plate thickness
Package weight (g)
Epoxy resin
42 alloy
Solder plating
5 mm or more
0.41 TYP.
Notes for Mounting the Surface Mount Type Package
The SOP, QFP, TSOP, TQFP, LQFP, SOJ, QFJ (PLCC), SHP, and BGA are surface mount type
packages, which are very susceptible to heat in reflow mounting and humidity absorbed in
storage. Therefore, before you perform reflow mounting, contact Oki’s responsible sales person
ontheproductname,packagename,pinnumber,packagecodeanddesiredmountingconditions
(reflow method, temperature and times).
73/73
E2Y0002-29-11
NOTICE
1.
The information contained herein can change without notice owing to product and/or
technical improvements. Before using the product, please make sure that the information
being referred to is up-to-date.
2.
The outline of action and examples for application circuits described herein have been
chosen as an explanation for the standard action and performance of the product. When
planning to use the product, please ensure that the external conditions are reflected in the
actual circuit, assembly, and program designs.
3.
4.
When designing your product, please use our product below the specified maximum
ratings and within the specified operating ranges including, but not limited to, operating
voltage, power dissipation, and operating temperature.
Oki assumes no responsibility or liability whatsoever for any failure or unusual or
unexpected operation resulting from misuse, neglect, improper installation, repair, alteration
or accident, improper handling, or unusual physical or electrical stress including, but not
limited to, exposure to parameters beyond the specified maximum ratings or operation
outside the specified operating range.
5.
6.
Neither indemnity against nor license of a third party’s industrial and intellectual property
right, etc. is granted by us in connection with the use of the product and/or the information
and drawings contained herein. No responsibility is assumed by us for any infringement
of a third party’s right which may result from the use thereof.
The products listed in this document are intended for use in general electronics equipment
for commercial applications (e.g., office automation, communication equipment,
measurement equipment, consumer electronics, etc.). These products are not authorized
for use in any system or application that requires special or enhanced quality and reliability
characteristics nor in any system or application where the failure of such system or
application may result in the loss or damage of property, or death or injury to humans.
Such applications include, but are not limited to, traffic and automotive equipment, safety
devices, aerospace equipment, nuclear power control, medical equipment, and life-support
systems.
7.
Certain products in this document may need government approval before they can be
exported to particular countries. The purchaser assumes the responsibility of determining
thelegalityofexportoftheseproductsandwilltakeappropriateandnecessarystepsattheir
own expense for these.
8.
9.
No part of the contents cotained herein may be reprinted or reproduced without our prior
permission.
MS-DOS is a registered trademark of Microsoft Corporation.
Copyright 1999 Oki Electric Industry Co., Ltd.
Printed in Japan
相关型号:
©2020 ICPDF网 联系我们和版权申明