Program Example Of Can Controller - Fujitsu MB90895 Series Hardware Manual

16 bit, controller manual
Table of Contents

Advertisement

16.7

Program Example of CAN Controller

This section shows the program example of CAN controller.
I Program Example of CAN Transmission and Reception
G
Processing specification
• Set buffer 5 of CAN to data frame transmit mode and buffer 0 to data frame receive mode.
• Setting of frame format: Standard frame format
• Setting of ID: Buffer 0 ID = 1, Buffer 5 ID = 5
• Baud rate: 100 Kbps (machine clock = 16 MHz)
• Acceptance mask selection: full-bit comparison
• After entering the bus mode (HALT = 0), data A0A0
• A transmission request (TREQx=1) is made within the transmission complete interrupt routine to
transmit the same data.(When TREQx is set to start sending, the transmission complete interrupt bit is
cleared)
• The reception interrupt bit is cleared within the reception interrupt routine.
CHAPTER 16 CAN controller
is transmitted.
H
553

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx

Table of Contents