modbus

所属分类:单片机开发
开发工具:C/C++
文件大小:12785KB
下载次数:7
上传日期:2015-09-15 21:35:44
上 传 者WWZ0034
说明:  MODBUS详细原理文档和源码,pic18系列的CAN通信。
(MODBUS details about documentation and source code, pic18 series of CAN communications.)

文件列表:
modbus (0, 2015-09-14)
modbus\37基于Modbus协议的DSP2812的Sci模块与触摸屏通信程序-2.doc (17435, 2015-04-24)
modbus\6089012modbus_2407 (0, 2015-09-14)
modbus\6089012modbus_2407\modbus_2407 (0, 2015-09-14)
modbus\6089012modbus_2407\modbus_2407\modbus.c (23934, 2015-04-23)
modbus\6089012modbus_2407\modbus_2407\modbus.h (4987, 2008-09-04)
modbus\90180331SCI_MODBUS1 (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1 (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cc_build_Debug.log (859, 2011-08-10)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cmd (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cmd\28335_RAM_lnk.cmd (7326, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cmd\DSP2833x_Headers_BIOS.cmd (8645, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cmd\DSP2833x_Headers_nonBIOS.cmd (8623, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\cmd\F28335.cmd (9569, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug.lkf (247, 2011-08-11)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_ADC_cal.obj (1267, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_CodeStartBranch.obj (1544, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_CpuTimers.obj (126438, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_DefaultIsr.obj (167830, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_GlobalVariableDefs.obj (135223, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_Gpio.obj (124893, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_PieCtrl.obj (125409, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_PieVect.obj (132625, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_Sci.obj (126318, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_SysCtrl.obj (129942, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\DSP2833x_usDelay.obj (1276, 2011-08-08)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\modbus16.obj (190338, 2011-08-10)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\Sci_Modbus.obj (131744, 2011-08-11)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\SCI_MODBUS1.map (29194, 2011-08-10)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\Debug\SCI_MODBUS1.out (211931, 2011-08-10)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\gel (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\gel\DSP2833x_DualMap_EPWM.gel (10178, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\gel\DSP2833x_Peripheral.gel (6053, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\gel\f28335.gel (120515, 2009-06-12)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\include (0, 2015-09-14)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\include\DSP2833x_Adc.h (10476, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\include\DSP2833x_CpuTimers.h (5881, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\include\DSP2833x_DefaultIsr.h (6326, 2009-08-04)
modbus\90180331SCI_MODBUS1\SCI_MODBUS1\include\DSP2833x_DevEmu.h (2901, 2009-08-04)
... ...

Readme File for Code Example: ECAN Ex1 ----------------------------------------------------------------------------------------- This file contains the following sections: 1. Code Example Description 2. Folder Contents 3. Suggested Development Resources 4. Reconfiguring the project for a different PIC18F with ECAN module device 5. Revision History NOTE: The example code makes use of Peripheral Library support available with MCC18. 1. Code Example Description: ---------------------------- In this code example, ECAN module in PIC18F46K80 is been configured in mode 0. Device communicates with (Microchip) CAN BUS Analyzer at 100Kbps or 125Kbps or 500Kbps or 1Mbps. Connections: ECAN/LIN Daughterboard CAN BUS Analyzer(Microchip) PC CANH <-------------------------> CANH P1 DB9 DB9 USB <-------------------------> USB CANL <-------------------------> CANL In ECAN.c file: * // ECAN bitrate define, only can choose one rate * #define F_ECAN_100 0 // 1 set ECAN module on 100Kbps * #define F_ECAN_125 0 // 1 set ECAN module on 125Kbps * #define F_ECAN_500 0 // 1 set ECAN module on 500Kbps * #define F_ECAN_1000 1 // 1 set ECAN module on 1Mbps In (Microchip) CAN BUS Analyzer PC soft: bps set: Setup>> Hardware setup>>CAN Bitrate Control Choose 100Kbps or 125Kbps or 500Kbps or 1000Kbps, then use 'Set' button to save the config hex/decimal: View>>View in hexadecmal Receive window: Tools>>Rolling Trace Send window: Tools>>Transmit ID: 0x196 0x19E can be received, the board will ignore all the other ID On PIC18 Explorer Demo Board: Send message: RB0 button 2. Folder Contents: ------------------- This folder refers the following sub-folders: a. C:\MCC18\bin\LKR This folder will have the device LKR file, it is used for building the project. This file was provided with the MCC18 toolsuite. b. C:\MCC18\h This folder contains C header files useful in building this project. Device register and bit definitions are provided in the *.h file that follows the device name. These files were provided with the MCC18 toolsuite.The peripheral library header files contains the macro definition & API prototypes. c. C:\MCC18\lib This folder contains library archive files, which are a collection of precompiled object files. The file named "*.lib" in the name of device contains the C run-time, start-up & Peripheral library. These file were provided with the MCC18 toolsuite. d. C:\MCC18\src This folder contains all the C ,Assembler, Peripheral library source files (*.c, *.s) used in demonstrating the described example. e. C:\MCC18\doc This folder contains the Peripheral Library description for all modules. 3. Suggested Development Resources: ----------------------------------- a. MPLAB IDE with MCC18 v3.36 or above b. PIC18 Explorer Demo Board with PIC18F46K80 (PIC18F66K80 family) controller + ECAN/LIN Daughterboard c. Microchip CAN BUS Analyzer or other High speed CAN BUS Analyzer 4. Reconfiguring the project for a different PIC18F with ECAN module device: ------------------------------------------------------------- The Project/Workspace can be easily reconfigured for any PIC18F with ECAN module device. Please use the following general guidelines: a. Change device selection within MPLAB IDE to a PIC18F with ECAN module device of your choice by using the following menu option: MPLAB IDE>>Configure>>Select Device b. To configure the device settings, either choose from the MPLAB IDE>>Configure>>"Configuration bits" and configure for necessary settings or the corresponding configuration macros to be added into the code can be obtained from device.INC file at the following default location: "C:\MCC18\mpasm" These macros can be added as depicted in example code. c. Re-build the MPLAB project using the menu option: MPLAB IDE>>Project>>Build All d. Download the hex file into the device and run. 5. Revision History : --------------------- 12/20/2010 - Initial Release of the Code Example

近期下载者

相关文件


收藏者