2011-04-01, 16:37:46
(This post was last modified: 2012-12-23, 19:56:22 by Mikael Gustavsson.)
Please help me .
How can I write code in the Offset?
#ORG ????????? How can I write code in the Offset?
my code is
How can I write code in the Offset?
#ORG ????????? How can I write code in the Offset?
my code is
Code:
#include <18F452.h>
#device ADC=10 // 10 bitlik ADC kullanılacağı belirtiliyor.
#fuses HS, NOWDT,NOLVP, NOPROTECT,NOBROWNOUT, NOPUT, STVREN, NODEBUG, NOWRT, NOWRTD, NOWRTB, NOWRTC, NOCPD, NOCPB, NOEBTR, NOEBTRB
#use delay(clock=10000000)
#use fast_io(a)
#define MODBUS_TYPE MODBUS_TYPE_SLAVE
#define MODBUS_SERIAL_RX_BUFFER_SIZE 64
#define MODBUS_SERIAL_BAUD 38400
#define MODBUS_SERIAL_RX_PIN PIN_C7
#define MODBUS_SERIAL_TX_PIN PIN_C6
#define MODBUS_SERIAL_ENABLE_PIN PIN_C5
#define MODBUS_SERIAL_RX_ENABLE PIN_C5 // Controls RE pin for RS485 transceiver
#define MODBUS_SERIAL_INT_SOURCE MODBUS_INT_RDA
#define MODBUS_SERIAL_TYPE MODBUS_RTU // use MODBUS_ASCII for ASCII mode
#include <modbus.c>