English
Language : 

SH7052 Datasheet, PDF (584/919 Pages) Renesas Technology Corp – SuperHTM RISC engine
15.5 Usage Notes
1. Reset
The HCAN is reset by a power-on reset, and in hardware standby mode and software standby
mode. All the registers are initialized in a reset, but mailboxes (message control
(MCx[x])/message data (MDx[x]) are not. However, after powering on, mailboxes (message
control (MCx[x])/message data (MDx[x]) are initialized, and their values are undefined.
Therefore, mailbox initialization must always be carried out after a power-on reset or a
transition to hardware standby mode or software standby mode. The reset interrupt flag (IRR0)
is always set after a power-on reset or recovery from software standby mode. As this bit cannot
be masked in the interrupt mask register (IMR), if HCAN interrupt enabling is set in the
interrupt controller without clearing the flag, an HCAN interrupt will be initiated immediately.
IRR0 should therefore be cleared during initialization.
2. HCAN sleep mode
The bus operation interrupt flag (IRR12) in the interrupt register (IRR) is set by bus operation
in HCAN sleep mode. Therefore, this flag is not used by the HCAN to indicate sleep mode
release. Also note that the reset status bit (GSR3) in the general status register (GSR) is set in
sleep mode.
3. Port settings
Port settings must be made with the PFC before the HCAN begins CAN bus communication.
When using the two HCAN pins in a 2-channel/32-buffer configuration (wired-AND), set the
other two HCAN pin locations as non-HCAN.
4. DMAC activation
When the DMAC is activated automatically by reception of a message in HCAN0’s mailbox 0
(receive-only mailbox), a signal is not sent to the INTC.
5. Interrupts
When the mailbox interrupt mask register (MBIMR) is set, the interrupt register (IRR8.2.1) is
not set by reception completion, transmission completion, or transmission cancellation for the
set mailboxes.
6. Error counters
In the case of error active and error passive, REC and TEC normally count up and down. In the
bus off state, 11-bit recessive sequences are counted (REC + 1) using REC. If REC reaches 96
during the count, IRR4 and GSR1 are set, and if REC reaches 128, IRR7 is set.
7. Register access
Byte or word access can be used on all HCAN registers. Longword access cannot be used.
8. Register initialization in standby modes
All HCAN registers are initialized in hardware standby mode and software standby mode.
558