Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - pic16f877 master slave

(you are viewing a thread; or go back to list of threads)

pic16f877 master slave (by anikigos)
i used to make a program for master slave PIC16F877A using ProtonIDE before. but i dont know how to write it in LDmicro for both master and slave PIC using SDA and SCL..help me..
Tue Dec 27 2011, 10:23:45
(no subject) (by MGP)
Stay with Proton, LDmicro does not support SDA/SCL communication.
Tue Dec 27 2011, 13:01:00
(no subject) (by anikigos)
Is there a way to write a program between master and slave for serial communication other than SDA/SCL in LDmicro? I just want to know if there any way..
Wed Dec 28 2011, 04:41:21
(no subject) (by anikigos)
Is there a way to write a program between master and slave for serial communication other than SDA/SCL in LDmicro? I just want to know if there any way..
Wed Dec 28 2011, 04:42:16
(no subject) (by simon)
serial uart rs232 is ok with LDmicro
Wed Dec 28 2011, 09:30:52
(no subject) (by anikigos)
I've tried the program created by adli from thread 'serial PIC master-slave'. Is that the way to write it? It didn't work at all. Can someone give an example of that, please?
Wed Dec 28 2011, 21:28:44
(no subject) (by anikigos)
This is my example circuit for the PIC serial master slave. Is that correct? When the button from the master PIC is pushed, the LED slave PIC will turn on.
Wed Dec 28 2011, 21:38:29, download attachment master slave.PDF
(no subject) (by simon)
post the ldmicro program's you used
Thu Dec 29 2011, 08:18:27
(no subject) (by anikigos)
Now, i've solve my first problem. But it is problem when i tried to send a character from master PIC to the slave. Is it because i need to send a character from master PIC by bit per bit so that the slave PIC can receive and read them by bit per bit? Is there any way for LDmicro to read the character or string?

*i use Proteus7.6 for the PIC simulation
Thu Dec 29 2011, 12:05:14, download attachment master slave.rar
ask for the opinion (by anikigos)
I would like to ask the opinion of my program. The character are sent continuously. Is there any problem will happens if that so?
Mon Jan 9 2012, 12:02:20, download attachment master slave - serial string.rar
(no subject) (by David R)
Hi I think the problem you are having is the scan time of the receiver is to slow, It needs to be faster than in incoming data
in order to process it.

I am most likely wrong but the maths is something like 2400pbs/10 = chars/sec 1/charsec= time required to send
4.2ms for 2400 and 1ms for 9600
I have found A scan time halve this works well 2ms for 2400

I have posted the master that i would use

There is nothing wrong with sending continually.
Regards
David
Mon Jan 9 2012, 14:11:42, download attachment master_davidR.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):