(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
re-uart (by David R)
Have you tried the send formatted string over uart ?
(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.
(no subject) (by Ilie)
I succeeded, but only wanted to be an instruction, not so complicated.
Whatever time is good for that.
(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.
(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.
(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.
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
(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.
(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
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
(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.
(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
(no subject) (by David R)
Sorry I don't understand
Do you want to connect 4 pic16f877 together so they talk to each other ?.
(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
(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.
(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.
(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
(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
(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
(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
(no subject) (by David R)
Hi whay does the teacher ask each table? why does all tables not answer at the same time ?
(no subject) (by rachmad)
sometimes the teacher ask each student and sometime all students.. thank's
(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.
(no subject) (by rachmad)
Hi,
Thank you very much for your help
(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.
(no subject) (by rachmad)
Hi David...,
thank you very much about your attention... i'm still need your help..
thank you very much david..
(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
(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.
(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
(no subject) (by David R)
Sorry, I ment each PIC can see the other PICs UART transmission.
D.
(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
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:
data PC to MICRO (by simon)
Hi Jose
I have one project with atmega8 ,you need to convert ldmicro program for pic .
(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
(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.
(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.
(no subject) (by Frank Mc Alinden)
Hi Jose
Heres a copy of my moisture app which uses serial receive and works ok..
HTH
Frank
(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!
no subject (by simon)
Hi Jose
I use HyperTerminal to send 'a' , 'b' , 'c' .
Thanks (by jose)
Thanks all you guys
Those examples will solve my problem, now let's go working;
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...
DISPLAY LCD 128x64 SERIAL (by Sidnei)
Hi,
I need help for use this display in Ldmicro.
ex.: backlight on, backlight off, etc.
Thanks.
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 ...
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
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,
Post a reply to this comment:
|