English
Language : 

SH7047F Datasheet, PDF (15/85 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7047 Series
1.7 Software Description (Reception)
Module Description
Module
Main routine
Label
r_main
Function
Performs initial settings and reception settings for HCAN-2.
Description of Registers Used
Register
Function
MBbuff
Storage area for received data (address:
H'FFFFD100).
work
Work register used for mailbox
initialization.
PB.PBCR1
PB.PBCR2
Sets pins PB1 and PB0 (pins 56 and 57) to
HRxD1 and HTxD1.
HCAN_MCR
Clears reset request bit.
HCAN_IRR
Clears reset, hold, and sleep interrupt
flags. (To clear, write 1.)
HCAN_BCR0
HCAN_BCR1
Sets bit rate to 250 kbps when φ is
50 MHz.
HCAN_MB0.MC0
Sets data frame and standard format for
mailbox 0. Also sets identifier (H'555).
HCAN_MB0.MC4
Sets mailbox 0 as for reception.
HCAN_MB0.MC5
Sets mailbox 0 reception size to a data
length of 1 byte.
HCAN_MB0.LAFM15 Sets identifier filter mask for mailbox 0.
HCAN_RXPR0
Checks and clears mailbox 0 reception end
flag. (To clear, write 1.)
Initial Value Module
―
Main routine
―
0x0000
0x000F
0x0000
0x0001
0x0009
0x4300
0x5550
0x03
0x01
0x0000
0x0001
Rev. 1.00, 08/03, page 7 of 74