Search Engine www.edaboard.com

rs485 Code

Add Question

1000 Threads found on edaboard.com: rs485 Code
hi friends! i wanted to implement rs485 communication b/w an avr and a pc.. the reason being distance up to 50 m b/w the two.. i am using the max485 ic, being the first time for such project wanted help and guidence.. i have a rs232-485 converter that i am going to use. as far as my thw knowledge i have upto now is that aprt from being half dupl
Hello, I have a slave card with a ultrasounds detector which work on Uart2 and MAX485 on Uart1 to share data on rs485Bus. - rs485 Bus work well when i use only Uart1 in my code. - Ultrasounds detector SRF02 work well when i use only Uart2 in my code. I want share distance mesurement on my rs485 Bus. (...)
Hi, Much simplier to use a 16F628 or similar with built in USART and use an rs485 transceiver like MAX487. Than all u have to do is send and receive with the USART and control the direction with MAX's T/R pin (Transmit/Receive). Zed
Hello I intend to make a master / slave rs485 communication between 2 pic micros. I found a example about how to make this in mikroE compiler help, then I edited few lines in it to suit my application. The problem that the micros do not perform the supposed logic of the code. Master code: char dat; // buffer fo
hi i am using atmel microcontroller use of code vision avr + proteus . i am going to use rs485 protocol. so i need the coding for that, any one give me that? thanks
Hi friends!!! iam new to edaboard please help me the c code for rs485 protocol in pic32
I want to do a rs485 network, based in SNAP protocol with PIC'S 16F84A. If somebody know could help with information, I'm agree. Thanks
Hi, Can any body explain "turn-around delay" in rs485 Half duplex communication. How to take care of this delay. Thank you Itp
rs485_RX.bas '*************************************************** '***** mbyka - (c) Copyright 2002 ********** '*************************************************** ' rs485 comminications 'TX include "modedefs.bas" datap var porta.0 dir var porta.1 'dir=1 then output, dir=0 then input led1 var portb.0 led2
Hi, I'm working now on designing a control network over rs485 I have three questions 1-I'll use max3082E or max3060E (half duplex, 1/8unit load, slew rate limited, 15kv protection, 5v). any one here has a good or bad experience with this chip? 2-I want to distribute power over rs485, how can this be done ? 3-How rs485 repeater (...)
I must connect three united with protocol master\slave have any example code function, for the serial comunication in 8051 whit the rs485 protocol? Just to be clear: rs485 is hardware (current signals ...), protocol is one you write. Mr.Cube To IanP: Is there anyone with more help points then you? BTW. nice picture yo
eidtechm, that means your problem lies in your program. If you do not trust your rs485 line driver - get a 2 PC and put 2 converters in duplex mode then check the communication by hyperterminal or similar .
Hi Are you looking for full duplex rs485 or half duplex? for half duplex network use MAX485 as drivers & receivers to interface the network from the hardware point of view use 1 I/O line from the PIC as the Tx & RX select line for the MAX485 transceivers and PIC uart TX for & PIC uart RX for RX All slave in the network must be in
Hi , I was communicating with master slave concept for rs485. If i communicate with the one master and one slave it is woking good . But if i connect one master and two slaves , the second slave gets hanged, i.e display displays some wrong character.I had connected the second slave as only hardware(no query is sent to it from master
Project : controlling 8 PIC16F877A through PC via rs485 sending and receiving through PC Rs232. Problem: On rs485 data transfer between master and slave controllers are perfect but now i want to send data from terminal via RS232 comport to master and try to pass on this code to slaves one, and result send back on to master then t
Hi, I need to know if it is possible to broadcast the data of master microcontroller to all microcontrollers connected on bus using rs485? Or it is limited to one address at a time? Thank you
in case of rs485 u have to control RE,DE pin. all you have to do join both pin and connect to PIC pin. in normal mode RE,DE = 0 that time u are in RX mode. in case of transmit the data make RE,DE=1 send your data and get back in to RX mode ie. RE,DE=0 Regards.
hi friends.. i have a circuit on Pcb, for rs 485 and am using avr atmega8, now when i make the power on and conncet the rs485 to pc using rs485-rs232 converter using hyper terminal i get this error "cannot open COM Port3 check port settings" now when the power is removed this msg is not displayed, moreover if just avr is removed fro
Hi all, How to implement rs485 communication between PC and PIC micro controller. I have used MAX485 to convert RX and TX signal to D+ and D-. In PC side rs485 to RS232 converter is used. I think the hardware part is ok.. How to write a C code for communication between microcontroller and PIC . #include #include
Regards All! i am tring to make a simple circuit that has ds1820 thats interfaced to atmega8, and atmega8 has a rs485 interface with pc. i have the circuit as shown in attached pdf, sensor is fine and transmit is also fine , i am having problems with rx, the circuit should give the temperature when it resscieves the character 's' but it dosen
Hi you guys! I'm working with rs485 network.I use max485 as control chip.I had a program to control.But they only well done without max485, and everything become worse when I add max485 into my network :(( anyone could help me? this is my code and schematic by proteus:55191
Hello, I need to estimate the code size of my project to decide upon MCU to be used. At present moment I have following inputs about the project 1. 128x64 LCD for display. 2. Temperature sensor interface using MCU ADC. 3. one external intr triggering circuit. 4. Transfer the data using rs485. 5. three key keypad to configure setting.
I think RS232 and rs485 coding is not the same, because when coding for rs485, you should manually switch between the transmitter mode and receiver mode by setting relevant signal lines. if you want to communicate multiple MCUs utilizing rs485, you can take a look at MODBUS. Hope it will help you.
.. or any way to connect 18f458 to computer throw rs485 The MikroC Pro Library has RS-485 Routines to implement a RS-485 Interface. Reference: MikroC Pro Compiler User Manual RS-485 Master code Example char dat; // buffer for receving/sending messages char i,j; sbit r
Hello, I' using MikroC example of code for rs485 communication between one Master and one Slave. It's work well. However, i'm trying now with two Slaves, One Master and i have problem. After serveral secondes (between 2seconds and 10seconds), i enter in my error if() on Master. if (dat) { UART_Set_Active(&UART2_Read, &UAR
I want to make a communication MASTER (PC) - SLAVE (ATMEGA2560) using rs485. I want the MASTER to send a data of 8 bytes, on the SLAVE , i need use bascom-avr Can anyone help me with some sample code ? Thanks in advance.
hello, i am trying to interface an rs485 chip to my 8051 controller, this is the tesing circuit i have made 73836 i have problem communicating between 8051 and pc through this is my schematic J1 and J2 jumpers are connected only when programming the cable length between max 485s is mot even 10cm the program i h
I have a problem in serial communication between At89s52 micro controllers. I thought to use rs485 for connecting more devices in network. for testing I connect two controller alone. I assume one as a master and another as slave. If I initiate transmission from master it reaches slave correctly. And when I write a code for slave to response maste
Hi, Ive got a USB to rs485 converter for PC and trying to communicate with PIC16f887. I am trying to simulate in Proteus, Here is my Schematic: 77535 Here is my code unsigned char ch; void InitUsart(void) { // TX Pin - output TRISC=0b01000000; TRISD=0b00000000; PORTD=
for rs485 communication between control and ballot unit i m using Sn75176 between two pic18f452
i have a problem in rs485 communication with keyboard as the i/p (ps2) ...the o/p i get has a great delay...i use it to run h bridge...motors take about 3- 5 seconds running after i remove the i/p from the keyboard and sometimes there is no delay at stops immideatly if i push the last button again...this is the code on mikroc ,i am using
I need help to creat a code(.asm) for communication between multiple microcontrollers using rs485.So,pls help me with some sampule code (Using At89s51/52)
I'm doing rs485 communication consists of one master and one slave, using CCS C, people who have the sample code for my reference to
Hi i want to use rs485 with microc pro but not with the 485 microc library... like uart with an sn65176 transceiver, cause my project dont need address and other data from 485 microc library i have to send to unit preamble (FF FF FF FF FF) some data and at end checksum value at 1200 baud 8 bit odd parity 1 stop bit i try an 18f2580 at 40mhz p
dear all I have a code in FPGA that transmits data via RS232. Now I have to send this data at 1Km distance. I think rs485 will do this job. My question is that will my code for RS232 work for rs485, and second what are the changes I should made at receiver end where I am using a PC. Thanks to all members in advance.
hi guys, I'm trying to create a converter which convert rs485 signal to USB signal using PIC18F25K50. In other words, whatever I received on the rs485 side, I will straightaway transmit it out through the USB port. I will describe my application. I have a device A and a device B which both using rs485 to communicate with each other. My (...)
hi to all I'm trying to communicate with the energy meter (MODBUS protocol) using st nucelo F401RE via MAXIM MAX485 chip. I'm unable to receive any data from the energy meter. I can confirm that all my hardware is working correctly as i have extra for each component.I'm not sure if is the connection or the program's problem. I using Arduino uno
I want to design a simple yet robust serial communication protocol over rs485. There will be multiple slaves and one master. What I could not decided is how to determine the end of a message. I may do it like the one in modbus e.g. using a time-out technique but I want it to be more flexible. I may think to use a special end of message character(s)
The term rs485 such as RS232 refers to the electric standard levels at which data can be sent at the physical layer. Therefore, you can take a search for UART based examples using this compiler. Right here on forum there are a lot applied to the most varied applications.
Please let me know I want to include my ATmega16 based ammeter with rs485 protocol which can send ampere rating to PC.
Hi, I am having a H&T sensor with rs485 interface. The website is useless regarding the documentation. Any idea how to interface this device with Windows and Linux system? The webpage for the product is here: Thanks.
Hi All, I am looking for C source code to build uC based webserver with SLIP interface. I am looking for ANSI C and portable C code. Thanks Zastereo
Hi guys, someone know about a decompiler for microcontroller's code like 16F84. Decompiler! Not Disassembler. Thanks for support
Hi everybody Is there a way to extract the code out of a programmed , and most certainly , protected 89C55 . The chip is valuable , and i only have one , so i can't risk losing it . Is there a safe way ??
For reduing the debug effort,how to write best RTL code? Thanks
Hi Here is the VHDL code for 8051 MC. tnx Uploaded file: 8051 in VHDL.zip
I'm looking for schematics and source code PIC for Dejan-Box to connect nokia phones. Anyone knows about?
I have an ST10 project that requires a smartmedia card for data storage, this must be compatible with windows storage fat16/32. The data I store on the card must be readable by PC. does anyone have the 'C' code for such a project. Thanks in advance
Hi The Linux Home Automation project is a bit of a misnomer. It's really meant for use under any Unix like operating system. We already have one gentleman who uses QNX so he'll keep me honest. :wink: I fully intend to keep the source code as portable as possible. And I'm working on getting a *BSD system up and running real soon. The initial inte
Does anyone have 8051 C code for controlling a graphic LCD? tnx ...