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 - UART

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

UART (by Ilie)
It is possible to send or receive, with instruction UART more characters simultaneously ex 'a1b5'?
Thank you very mach
Tue Aug 18 2009, 13:53:29
re-uart (by David R)
Have you tried the send formatted string over uart ?
Wed Aug 19 2009, 05:48:46
(no subject) (by Ilie)
I tried to create a prog with the ladder to move on a variable UART some characters, but I went to see a serial than one form of 'a' if you put no ghilimeme or more characters not will.
Wed Aug 19 2009, 12:32:57
(no subject) (by Ilie)
I succeeded, but only wanted to be an instruction, not so complicated.
Whatever time is good for that.
Wed Aug 19 2009, 15:03:41, download attachment Send more caracter Uart.ld
(no subject) (by Jonathan Westhues)
The way that you coded it works. But you could also just use the "formatted string over UART" op, as in the attachment.
Wed Aug 19 2009, 16:28:06, download attachment serout.ld
(no subject) (by Ilie)
Thanks for your example, I think of a way of communicating online with pic through UART , to send I can see how sending more characters, you can give me an example to receive more characters, and to execute something, I we were unable to receive only one character.
Fri Aug 21 2009, 07:07:21, download attachment Receiv one Caracter.ld
(no subject) (by Jonathan Westhues)
There's no one instruction to receive multiple characters. But if you want then you can code that yourself. Look at

http://cq.cx/ladder-forum.pl?action=viewthread&parent=49
Wed Aug 26 2009, 00:54:48
(no subject) (by Ilie)
I understand that it is an instruction to receive more characters.
I put some examples to receive more characters, I think it is seems better.
Progam need more instruction (if worked with other software with Ladder) but anyway , thank you very mach for what you make.
Wed Aug 26 2009, 14:55:38, download attachment Receiv more with counter.ld
uart connection (by rachmad)
hi and help, i tried connect and test my project but not success..
i use crystal 20Mhz in my Kit, and setting MCU Parameter Cycle time(ms)=10, Crystal Freq(Mhz)=20.000000, Uart Baud Rate=9600,
help me please.. thx
Sat Oct 24 2009, 05:26:03, download attachment TestUart.txt
(no subject) (by Jonathan Westhues)
R1 isn't doing anything useful. In your program, the UART is listening only when R1 is true, or half the time.

Try deleting R1, so that the rung-in condition for the UART op is always true.
Sat Oct 24 2009, 05:32:24
(no subject) (by David R)
Hi,
You don't need the osc contact before the receive uart and the crystal freq is 12 not 20mhz
please post .ld file
Regards
David
Sat Oct 24 2009, 05:38:07
Re UART (by rachmad)
i have tried connect againt but not success... i changed my setting and program but not success, sorry i'm beginner.. help me.. thank you very much
Sat Oct 24 2009, 07:27:39, download attachment test1.txt
(no subject) (by david R)
Hi,
Ware are you getting your test UART signal from ?
if it is a PC are you using A level converter to change the signal from rs232 to TTL level

also try putting a LED connected to the osc in the pic, so
you can see if the pic is running.

also please post the ladder file not .txt file so I can change and post back to you.

Try the program that I post in simulate mode it works well.
Sat Oct 24 2009, 16:19:28, download attachment test_uart.ld
(no subject) (by rachmad)
hi...,
i tried connection and ok.... thank you very much
but now... i have 4 pcs pic16f877,
how method to send and receive with 4 pcs pic16f877?
thank's
Sat Oct 31 2009, 02:52:00
(no subject) (by David R)
Sorry I don't understand
Do you want to connect 4 pic16f877 together so they talk to each other ?.
Sat Oct 31 2009, 04:45:16
(no subject) (by rachmad)
yes, i want to connect 4 pic16f877 together, i want to run 4pcs pic 16f877 together too, may i need address for each pic16f877, or may other method.
please give me example's... thank you very much
Sat Oct 31 2009, 06:12:13
(no subject) (by David R)
This is A system to address and send data etc to A network of pics is is quite complex I have not had time to add much comment yet.
Regards
David.
Sat Oct 31 2009, 17:33:36, download attachment uart_test_token_1_wire_01.ld
(no subject) (by David R)
here is the circuit I made to test, the value if the components may not be correct!
open with eagle PCB.

Regards
David.
Sat Oct 31 2009, 17:49:35, download attachment test_board.sch
(no subject) (by David R)
here is the second pic in the circuit note the different address
and the pass on address the last pic in the circuit needs to call the number one pic
Sat Oct 31 2009, 17:52:36, download attachment uart_test_token_1_wire_02.ld
(no subject) (by rachmad)
hi..., i have little project... the project like quiz in school, with led as output indicator Question from teacher and 4 button's as answer from student. i have making design with pic16f877a but i don't know the design is right or no..., and don't know method program in laddermicro..., please give comment and example... thank you very much
Thu Nov 5 2009, 00:50:27, download attachment Design Quiz.bmp
(no subject) (by David R)
Do you need to use 16F877 it is A vary big chip and you are only using about 6 in/out pins I would use 16F886 much cheaper??

Can you explain how the system needs to work step by step
Thu Nov 5 2009, 02:08:39
(no subject) (by rachmad)
you right, i need 1 pin output for answer indicator for student, 4 pins input for entry answer from student to teacher, 2 pins for rs-232, and i will explain to you about the system quiz :
1. the teacher have any question, texts of question show on screen projector,then the teacher start to choise table student button, for example : on pc/monitor the theacer click/press button 1, so pc will transmit data to pic16Fxxx until led indicator on table student 1 will be status "ON"
2. if led indicator on table student status "ON" , and the student must be choise and press the button for answer.
3. pressing button from student as transmited data to pc, after pc received data from pic16fxxx then start to score process.

i'm sorry my english not good...
thank you very much
Thu Nov 5 2009, 04:58:23, download attachment Design Quiz1.bmp
(no subject) (by Ilie)
Thu Nov 5 2009, 15:21:44
(no subject) (by David R)
Hi whay does the teacher ask each table? why does all tables not answer at the same time ?
Thu Nov 5 2009, 20:12:53
(no subject) (by rachmad)
sometimes the teacher ask each student and sometime all students.. thank's
Thu Nov 5 2009, 23:10:10
(no subject) (by David R)
Hi,
I will have A work on it over the weekend and post you some code to see if we are going the correct way.
Fri Nov 6 2009, 04:10:05
(no subject) (by rachmad)
Hi,
Thank you very much for your help
Fri Nov 6 2009, 05:12:59
(no subject) (by David R)
Hi Rachmad,
Sorry I have not forgot about you I have had A lot on, Do you still need help?

Regards
David.
Mon Nov 16 2009, 04:58:02
(no subject) (by rachmad)
Hi David...,
thank you very much about your attention... i'm still need your help..
thank you very much david..
Wed Nov 18 2009, 06:25:00
(no subject) (by deny_jae)
can you give an example program which can read digital input and send the data using modem serial via serial port?
thanks
Fri Nov 20 2009, 21:44:34
(no subject) (by David R)
Hi Rachmad,
do you want
1: the controller to call each pic in the room in turn
or
2: do you want the first pic to hand over to the next pic an so on around

the problem with 2 is if one pic is missing the system will pause until there is A time out.
Regards
David.
Sat Nov 21 2009, 03:19:43
(no subject) (by rachmad)
Hi David,

i want
1. my rs232 can transmited data from each or all pic
2. rs232 can received data from each or all pic.

I have try the program.
No problem when received data from rs232.
The Problem, when transmited data to rs232, pic cannot transmited more than 2 pic.
So, pic can transmited to rs232 just 2 pic

1. can you help me about communication pic to rs-232 (multi point)?
2. can you help me about communication pic to pic

thank you for your attention
Mon Nov 30 2009, 03:19:35
(no subject) (by David R)
Hi,
I think I would use RS485

see
http://datasheets.maxim-ic.com/en/ds/MAX1487-MAX491.pdf


that way you use twisted par between each PIC with A resistor at each end of the network
and each PIC can see the other PIC transmition
Regards
David
Tue Dec 1 2009, 21:18:43
(no subject) (by David R)
Sorry, I ment each PIC can see the other PICs UART transmission.
D.
Tue Dec 1 2009, 21:22:13
(no subject) (by rachmad)
Hi David,...
1. what could be one of pin PIC16f877 to output serial ?..
2. or how to make keypad? like keypad 2X3, 3x3 etc
thank you very much
regards
rachmad
Mon Feb 8 2010, 08:55:33
Can't send data from PC to PIC (by jose)
Have someone made a projet that send data from pc to pic?
My intention is to controll Pic via Pc. If someone could did, send me project.ld.I can send data from Pic to Pc, but I can't do inverse; send data from PC to Pic.
Look to a precise clock example:
Wed Feb 10 2010, 14:46:29, download attachment 628relogTeste.ld
data PC to MICRO (by simon)
Hi Jose
I have one project with atmega8 ,you need to convert ldmicro program for pic .
Wed Feb 10 2010, 16:36:39, download attachment txrx8com.ld
(no subject) (by Frank Mc Alinden)
Hi Jose

What baud rate are you using ??? ...To get reliable serial receive using the pic i had to set the baudrate to 2400....With a cycle time setting of 1mSec
HTH
Frank
Thu Feb 11 2010, 19:39:42
(no subject) (by jose)
Hello Rachmad and Frank Mc Alinden
Thanks for answer! i'll test the project you sent. About the baud rate I've been used a pic 16f628a crystal 4mhz 2400b,I have others too like 16F877 and ATmega16. On PC Hyper Terminal 2400 8-N-1. But as I sad no problem to transmit data to PC.
Fri Feb 12 2010, 16:51:35
(no subject) (by jose)
Hello simon
I made the project you sent and burned pic16F628a crystal 4Mhz, 300 baud. That's all right. But wich softer did you use on PC to output characters 'a' 'b' 'c'?
Sorry for bad english, I'm Brazilian.
Fri Feb 12 2010, 18:28:08, download attachment IMAG0214.jpg
(no subject) (by Frank Mc Alinden)
Hi Jose
Heres a copy of my moisture app which uses serial receive and works ok..

HTH
Frank
Sat Feb 13 2010, 03:59:37, download attachment Moisture2.ld
(no subject) (by jose)
Thank you Frank
It's a very good project, I liked it. But now I realized that I don't know how to transmit characters using PC Hyperterminal. Before I used it to receive data and no problem, I can't do inverse.
Sorry for so many questions!
Sat Feb 13 2010, 14:36:37
(no subject) (by Frank Mc Alinden)
Hi Jose

I use this app for serial testing ,easy to use

http://www.laser.com/dante/spca/spcahelp.htm

HTH
Frank
Sat Feb 13 2010, 17:10:07
(no subject) (by Frank Mc Alinden)
Heres a link for download
http://www.laser.com/dante/

HTH
Frank
Sat Feb 13 2010, 17:15:21
no subject (by simon)
Hi Jose
I use HyperTerminal to send 'a' , 'b' , 'c' .
Sat Feb 13 2010, 17:24:14, download attachment tutorial.rar
Thanks (by jose)
Thanks all you guys
Those examples will solve my problem, now let's go working;
Sun Feb 14 2010, 14:30:23
UART Connection without using Terminal Software (by Matsuyana)
Hi,...
Please Help me !

I have tried UART connection without open the terminal software but no succes...( I must always using terminal software if I will to try UART connection.)
Can the program make UART connection without using (open) terminal software?

Thanks...
Tue Sep 25 2012, 00:07:28
DISPLAY LCD 128x64 SERIAL (by Sidnei)
Hi,
I need help for use this display in Ldmicro.

ex.: backlight on, backlight off, etc.

Thanks.
Tue Oct 9 2012, 18:17:07
manejo de cargas con pic y comunicacion rs232 (by dioniz)
I would like UART settings for sending and receiving data between two pic, Activation pic1 entries and through the uart enable outputs in pic2, would help to make that setting the uart in ldmicro.

Greetings ...
Wed Feb 13 2013, 13:46:08
Darwin (by Darwin)
hello I wonder if you can use LDmicro as PIC burner ie LDmicro want to send information from a to a hardware travez of a communication protocol such as RS232 or if I can give some idea of how to do it thank you very much
Sat Aug 15 2015, 16:47:08
Uart communication (by hasan farhat)
Dear ALL

How to control keys using a Uart by send & receive.


How it works If we press four keys at the same time, the four LED will be turn on, and if we leave the keys, the LED will turn off

thanks for all

regards,
Sat Mar 11 2023, 15:36:56
(no subject) (by MGP)
Here you have a program to experiment with.

I made it years ago and you can customize it to your liking.

The outputs are set/reset.

------

If you use the LCD version, change the lower case char. to upper case.
https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
Sun Mar 12 2023, 03:38:05, download attachment uarttransmitter5digitalinputs_V2.zip
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):