English
Language : 

SH7760 Datasheet, PDF (862/1345 Pages) Renesas Technology Corp – SuperHTM RISC engine
22.6 Operation
22.6.1 Test Mode Settings
The HCAN2 has various test modes. The register TST[7:0] (MCR[15:8]) is used to select the
HCAN2 test mode. The default (initialized) settings allow HCAN2 to operate in Normal mode.
The following table is examples for test modes.
Bit 15: Bit 14: Bit 13: Bit 12: Bit 11: Bit 10: Bit 9: Bit 8:
TST7 TST6 TST5 TST4 TST3 TST2 TST1 TST0
Description
0
0
0
0
0
0
0
0
Normal mode (initial value)
1
0
0
0
1
0
1
0
Listen-Only Mode (Receive-Only Mode)
1
0
0
1
—
0
0
0
Self Test Mode 1 (External)
1
0
0
1
—
1
1
1
Self Test Mode 2 (Internal)
1
1
0
—
—
—
—
—
Error Passive Mode 1
1
—
1
—
—
—
—
—
Error Passive Mode 2
• Normal Mode: HCAN2 operates in the normal mode.
• Listen-Only Mode: ISO-11898 requires this mode for baud rate detection etc. The Error
Counters are disabled so that TEC/REC does not increase the value, and the Tx Output is
disabled so that HCAN2 does not generate error frames.
• Self Test Mode 1: HCAN2 generates its own Acknowledge bit. The Rx/Tx pin must be
connected to the CAN bus.
• Self Test Mode 2: HCAN2 generates its own Acknowledge bit. The Rx/Tx pin does not need
to be connected to the CAN bus or any external devices, as the internal Tx is looped back to
the internal Rx.
• Error Passive Mode 1: HCAN2 can be forced to become Error Passive node by writing a
value (greater than 127) into the Error Counter (MCR1 must be 1 when writing to the Error
Counter). The value written into TEC is written into REC, so only the same value can be set to
these registers. Also, HCAN2 needs to be put into Halt Mode when writing into TEC/REC.
• Error Passive Mode 2: HCAN2 can be forced to become an Error Passive node by setting the
TST5.
Rev. 1.0, 02/03, page 812 of 1294