资源简介
基于CCP driver的标定通信,能对RAM和EEPROM中的数据实现测量和标定操作。
note:
1. ccppar.h中的CCP_CRO_ID与CCP_DTO_ID,要将CANape中的ID号加上SRR/IDE
/RTR位换算。
2. 打开ccppar.h中的#define CCP_WRITE_EEPROM,否则不能对EEPROM操作。
代码片段和文件信息
/*----------------------------------------------------------------------------
| File:
| ccp.c
|
| Project:
| CCP driver
|
| Description:
| CCP driver main module
|
----------------------------------------------------------------------------*/
/* CCP Definitions and Parameters */
#include “ccp.h“
#ifndef C_DISABLE_CCP
/* Version History:
V1.29 24.9.2000
- new define CCP_CHECKSUM_BLOCKSIZE
V1.30 29.11.2000
- #ifndef CCP_EXTERNAL_STATION_ID
V1.31 08.02.2001
- new define CCP_DAQ_base_ADDR
- new function ccpGetDaqPointer
V1.32 30.05.2001
- Reserved word “data“ in KEIL Compiler for C5x5
- Prefix CCP_ for all #defines
V1.33 14.09.2001
- #define CCP_ODT_ENTRY_SIZE
- #define CCP_INTELCCP_MOTOROLA
V1.34 28.10.2001
- ccpSend return value removed
Transmission error handling should be done by the user
V1.35 8.4.2002
- #define CCP_CPUTYPE_32BIT
- Max checksum block size is DWORD on 32 bit CPUs
V1.36 2.6.2002
- #undef CCP_DAQ for drivers without DAQ fixed
- double - float conversion for SHORT_UPLOAD DNLOAD and DAQ
V1.37 17.7.2002
- Fixed the version nr. because the version was in the comment 1.36 but 135
- was define.
- Set #define CCP_DRIVER_VERSION to 137
*/
#define CCP_DRIVER_VERSION 137
/*--------------------------------------------------------------------------*/
/* Performance measurements */
#ifndef CCP_PROFILE
#define SET_PORT_BIT(i)
#define RST_PORT_BIT(i)
#else
/*
t[0] - ccpCommand
t[1] - ccpCallBack
t[2] - ccpBackground
t[3] - ccpDaq
*/
unsigned int t0[4]t[4];
#define SET_PORT_BIT(i) t0[i-1]=ccpGetTimestamp();
#define RST_PORT_BIT(i) t[i-1]=T3-t0[i-1];
#endif
/*--------------------------------------------------------------------------*/
/* Test */
#ifdef CCP_TESTMODE
#include
static void ccpPrintCANapeSettings( void );
static void ccpPrintDaqList( CCP_BYTE daq );
#endif
/*--------------------------------------------------------------------------*/
/* ROM */
/*--------------------------------------------------------------------------*/
/*
Identification
Must be 0 terminated !!
This string is used by CANape as the ASAP2 database filename
The extension .A2L or .DB is added by CANape
*/
#ifdef CCP_EXTERNAL_STATION_ID
extern ROM CCP_BYTE ccpStationId[];
#else
CCP_ROM CCP_BYTE ccpStationId[] = CCP_STATION_ID;
#endif
/*--------------------------------------------------------------------------*/
/* RAM */
/*--------------------------------------------------------------------------*/
/*
The following structure containes all RAM locations needed by the CCP driver
It has to be word aligned on a C167 !!!
*/
CCP_RAM struct ccp ccp;
/*--------------------------------------------------------------------------*/
/* CODE */
/*------------------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 261569 2004-07-07 13:54 ccpdriver(eeprom)\bin\P&E_ICD.abs
文件 5362 2004-07-07 13:54 ccpdriver(eeprom)\bin\P&E_ICD.abs.phy
文件 5342 2004-07-07 13:54 ccpdriver(eeprom)\bin\P&E_ICD.abs.s19
文件 12 2004-07-07 13:57 ccpdriver(eeprom)\bin\P&E_ICD.bpt
文件 183655 2004-07-07 13:54 ccpdriver(eeprom)\bin\P&E_ICD.map
文件 21 2004-07-07 13:57 ccpdriver(eeprom)\bin\P&E_ICD.mrk
文件 105 2004-07-05 18:20 ccpdriver(eeprom)\bin\Simulator.map
文件 117966 2012-06-12 16:57 ccpdriver(eeprom)\ccpdriver(eeprom).mcp
文件 70060 2004-07-08 16:39 ccpdriver(eeprom)\ccpdriver(eeprom).old.mcp
文件 67532 2004-08-31 14:18 ccpdriver(eeprom)\ccpdriver(eeprom).old2.mcp
文件 4380 2012-06-12 16:58 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\CWSettingsWindows.stg
文件 21808 2004-07-07 11:15 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 8524 2004-07-06 15:22 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 7456 2004-07-06 17:44 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 6071 2004-07-07 13:53 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 242770 2004-07-06 15:22 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 24680 2004-07-07 13:54 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 5893 2004-07-06 15:22 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\ob
文件 53474 2012-06-12 16:58 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\P&E_ICD\TargetDataWindows.tdt
文件 53478 2012-06-12 16:58 ccpdriver(eeprom)\ccpdriver(eeprom)_Data\Simulator\TargetDataWindows.tdt
文件 2655 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Erase_unsecure_hcs12.cmd
文件 108 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Postload.cmd
文件 60 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Preload.cmd
文件 60 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Reset.cmd
文件 59 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Startup.cmd
文件 77 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Vppoff.cmd
文件 78 2004-07-05 18:20 ccpdriver(eeprom)\cmd\P&E_ICD_Vppon.cmd
文件 108 2004-07-05 18:20 ccpdriver(eeprom)\cmd\Simulator_Postload.cmd
文件 60 2004-07-05 18:20 ccpdriver(eeprom)\cmd\Simulator_Preload.cmd
文件 60 2004-07-05 18:20 ccpdriver(eeprom)\cmd\Simulator_Reset.cmd
............此处省略36个文件信息
相关资源
- ExampleCode_RDC_AD2S1210官方例程内含模拟
- ADS1256原理与特点
- 第六届飞思卡尔电磁组全国三等奖全
- ucos-ii在mc9s12xdp512上的移植
- accp8.0y2课件
- 最新 飞思卡尔Verilog HDL规范.rar
- 飞思卡尔s12g128移植最新的FreeRTOS_V10
- 飞思卡尔DG128单片机ds18b20程序
- 24位高性能模数转换器ADS1274_ADS1278及其
- 飞思卡尔 舵机和电机的PID控制算法
- 近10个团队的飞思卡尔小车程序源代码
- MC9S12XET256 AD 程序
- MC9S12DG128最小系统原理图和PCB板
- unlock kinetis
- 飞思卡尔S12X CAN接收发送源代码
- S12单片机的脉冲累加器
- Freescale MC9S12XEP Bootloader 下位机
- 基于MC9S12XS128的温湿度传感器DHT11程序
- 电磁环岛相关资料.zip
- ACCP8.0Y2Web前端框架与移动应用开发第
- MC9S12XS128驱动0v7620 图像采集源程序C代
- MC9S12HY64 上的休眠 按键唤醒例程
- S120在线、离线调试说明
- ACCP8.0S1 S2 Y2课程
- ADS1274、ADS1278及其应用
- 惠普HRes1200.txt
- 转换思科SCCP话机为SIP话机
- 智能车曲率 斜率资料
- OPA2350两级运放,飞思卡尔智能车电磁
- 恩智浦 智能车 原理图
评论
共有 条评论