96340_can-v14
所属分类:单片机开发
开发工具:Objective-C
文件大小:107KB
下载次数:15
上传日期:2011-12-21 21:29:27
上 传 者:
wenzhengshu
说明: 富士通CAN口通讯程序,用于汽车CAN总线,替代传统开关
(FUJITSU CAN communication program,used for CAN bus,instead of the traditional switch.)
文件列表:
96340_can-v14 (0, 2008-12-09)
96340_can-v14\96340_can.prj (1401, 2008-07-10)
96340_can-v14\96340_can.wsp (290, 2007-04-05)
96340_can-v14\ABS (0, 2008-12-09)
96340_can-v14\ABS\96340_can.mhx (3680, 2008-12-09)
96340_can-v14\LST (0, 2008-12-09)
96340_can-v14\LST\96340_can.mp1 (44825, 2008-12-09)
96340_can-v14\MB2198-01_COM1.sup (2769, 2007-01-04)
96340_can-v14\MB2198-01_COM2.sup (2772, 2007-01-04)
96340_can-v14\MB2198-01_LAN.sup (702, 2006-08-02)
96340_can-v14\MB2198-01_USB.sup (3459, 2008-07-10)
96340_can-v14\OBJ (0, 2008-12-09)
96340_can-v14\OBJ\Start.obj (3144, 2008-12-09)
96340_can-v14\OPT (0, 2008-12-09)
96340_can-v14\options.dat (774, 2008-07-10)
96340_can-v14\OPT\96340_can.opa (123, 2008-12-09)
96340_can-v14\Prc (0, 2008-12-09)
96340_can-v14\Prc\romconst.prc (6121, 2007-01-03)
96340_can-v14\Simulator.sup (3489, 2007-01-23)
96340_can-v14\Src (0, 2008-12-09)
96340_can-v14\Src\MAIN.C (13739, 2008-12-09)
96340_can-v14\Src\mb96346rw.asm (68875, 2007-01-17)
96340_can-v14\Src\mb96346rw.h (604661, 2007-02-09)
96340_can-v14\Src\START.ASM (65445, 2008-07-10)
96340_can-v14\Src\vectors.c (9134, 2007-02-09)
==========================================================================
CAN Project for MB9634x Series
==========================================================================
Fujitsu Microelectronics Europe GmbH
The following software is for demonstration purposes only. It is not
fully tested, nor validated in order to fullfill its task under all
circumstances. Therefore, this software or any part of it must only be
used in an evaluation laboratory environment.
This software is subject to the rules of our standard DISCLAIMER, that is
delivered with our SW-tools on the Fujitsu Microcontrollers DVD
(V4.1 or higher "\START.HTM").
==========================================================================
History
Date Ver Author Softune Description
23.01.02 1.0 RSc/HWe V30L33R09 first version
09.02.07 1.1 MWi V30L33R09 updated header files
16.04.07 1.2 HWe V30L33R09 function CAN0_ReceiveMessage fixed
10.07.08 1.3 PHu V30L34R06 use IF2 register set for receiving
09.12.08 1.4 PHu V30L34R06 write to message buffer through IF1 (CAN0_buffer1)
==========================================================================
This is a demo project for the MB96346R devices. It includes some basic
settings for e.g. Linker, C-Compiler which must be checked and modified in
detail, corresponding to the user application.
The basic usage of CAN module is shown.
The CAN interface is setup for 100kBaud (100k_20_70_4)
CAN buffer 1 is prepared as full CAN receive object for standard ID #2.
First one message is sendout by CAN buffer #2, using ID #3.
Each incoming message of buffer 1 (ID #2) will be echoed to ID #3
This demo provides 4 functions which can be adapted to users requirements.
Change the source code where marked by <<< according to the required setting.
1) CAN0_init
Initialization of CAN ch0 and setting up the required bit timing.
2) CAN0_buffer1
Setup CAN ch0 buffer 1 as full CAN receive object.
3) CAN0_SendMessage
Transmit a CAN message with given ID and data via buffer n.
The function is blocking for a time intervall since it is polling
during a time intervall for successful transmission of the message.
4) CAN0_ReceiveMessage
This function returns '1' if a message was received by the selected message buffer
and saves the received ID and data to the given data address.
Clock settings:
---------------
Crystal: 4 MHz
CLKB: 48 MHz
CLKP1: 48 MHz
CLKP2: 16 MHz
NOTE:
-----
This project uses the RAM/ROM configuration of the MB96F346:
RAM: 16K
ROM: 288K
For devices with less RAM/ROM size please modify linker settings according
start and end addresses described in hardware manual or data sheet!
近期下载者:
相关文件:
收藏者: