English
Language : 

SH7047 Datasheet, PDF (500/764 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTMRISC engine Family/SH7000 Series
15.4 Operation
15.4.1 Hardware and Software Resets
The HCAN2 can be reset by hardware or software.
• Hardware Reset
At power-on reset, manual reset, or in hardware or software standby mode, the HCAN2 is
initialized by automatically setting the reset request bit (MCR0) in MCR and the reset status
bit (GSR3) in GSR. At the same time, all internal registers, except for mailboxes (MB0 to
MB31), are initialized by a hardware reset. Figure 15.5 shows a flowchart in a hardware reset.
• Software Reset
In the normal operating state, the HCAN2 can be reset by setting the reset request bit (MCR0)
in MCR (software reset). In a software reset, if the CAN controller is performing a
communication operation (transmission or reception), the HCAN2 enters the initialization state
after message transmission or reception has completed. A software reset is enabled after the
HCAN2 has entered from the bus off state to the error active state. The reset status bit (GSR3)
in GSR is set during initialization. In this initialization, error counters (TEC and REC) are
initialized, but other registers and RAM are not initialized.
Figure 15.6 shows a flowchart in a software reset.
15.4.2 Initialization after Hardware Reset
After a hardware reset, the following initialization processing should be carried out:
1. Clearing of IRR0 bit in the interrupt request register (IRR)
2. Port settings of HCAN2 pins
3. Bit rate setting
4. Mailbox (RAM) initialization
5. Mailbox transmit/receive settings
6. Message transmission method setting
These initial settings must be made while the HCAN2 is in configuration mode. Configuration
mode is a state in which the GSR3 bit in GSR is set by a reset. If the MCR0 bit in MCR is cleared
to 0, for a while, configuration mode is aborted shortly after the HCAN2 automatically clears the
GSR3 bit in GSR. There is a delay between clearing the MCR0 bit and clearing the GSR3 bit
because the HCAN2 needs time to be internally reset. After the HCAN2 exits configuration mode,
the power-up sequence begins, and communication with the CAN bus is possible as soon as 11
consecutive recessive bits have been detected.
Rev. 2.00, 09/04, page 460 of 720