English
Language : 

SH7047F Datasheet, PDF (51/85 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7047 Series
4.4 Software Description (Transmission)
Module Description
Module
Main routine
Label
t_main
Function
Performs initial settings and transmission settings for HCAN-2.
Description of Registers Used (See example 1 for information on pins and port registers.)
Register
work
HCAN_MCR
HCAN_IRR
HCAN_BCR0
HCAN_BCR1
HCAN_MBx.MC0
HCAN_MBx.MC4
HCAN_MBx.MC5
HCAN_MBx.MD7 to 14
HCAN_TXPR0
HCAN_TXACK0
Function
Work register used for mailbox
initialization.
Clears reset request bit. Also sets
transmissions based on priority of
mailbox identifier.
Clears reset, hold, and sleep interrupt
flags. (To clear, write 1.)
Sets bit rate to 250 kbps when φ is
50 MHz.
Sets data frame and standard format
for mailboxes 1 to 15. Also sets
identifiers (see table 4.1 for setting
values).
Sets mailboxes 1 to 15 as for
transmission.
Sets transmission size for mailboxes 1
to 15 to a data length of 8 bytes.
Sets transmission data for mailboxes 1
to 15. Also sets identifiers (see table
4.1 for setting values).
Sets mailboxes 1 to 15 to transmission
wait status.
Checks and clears transmission end
flags for mailboxes 1 to 15. (To clear,
write 1.)
Initial Value Module
―
Main routine
0x0000
0x0001
0x0009
0x4300
―
0x01
0x08
―
0xFFFE
0xFFFE
Rev. 1.00, 08/03, page 43 of 74