English
Language : 

SH7047F Datasheet, PDF (12/85 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7047 Series
1.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
Register
PB.PBCR1
PB.PBCR2
work
HCAN_MCR
HCAN_IRR
HCAN_BCR0
HCAN_BCR1
HCAN_MB1.MC0
HCAN_MB1.MC4
HCAN_MB1.MC5
HCAN_MB1.MD7
HCAN_TXPR0
HCAN_TXACK0
Function
Sets pins PB1 and PB0 (pins 56 and 57) to
HRxD1 and HTxD1.
Work register used for mailbox initialization.
Clears reset request bit.
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
mailbox 1. Also sets identifier (H'555).
Sets mailbox 1 as for transmission.
Sets mailbox 1 transmission size to a data
length of 1 byte.
Sets mailbox 1 transmission data (H'AA).
Sets mailbox 1 to transmission wait status.
Checks and clears mailbox 1 transmission
end flag. (To clear, write 1.)
Initial Value Module
0x0000
Main routine
0x000F
―
0x0000
0x0001
0x0009
0x4300
0x5550
0x01
0x01
0xAA
0x0002
0x0002
Rev. 1.00, 08/03, page 4 of 74