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 on MCU-8051 (89C51, 89C2051)

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

UART on MCU-8051 (89C51, 89C2051) (by Ivan)
Good afternoon.
I use the micro to the microcontroller 8051 (89C51, 89C2051).
But I did not get to transmit and receive data on the serial port UART.
Can I do something wrong ...?
Thu Jan 21 2016, 03:29:30, download attachment Serial_LDMICRO_8051.rar
(no subject) (by MGP)
Did you simulate your program? it also does not work in the simulator.
I've tweaked your program but can not test it because I have no 8051.
Thu Jan 21 2016, 05:41:40, download attachment LCD_UART_8051_V2.ld
(no subject) (by Ivan)
Yes, I usually check the program on Proteus Simulator.
Conventional logic works very well. But the serial port does not work.
At the weekend I will try to check on the microcontroller. Can the simulator does not work correctly ...
Thu Jan 21 2016, 07:54:06
(no subject) (by MGP)
There are too many problems with Proteus.

Next time mentioned that you use Proteus then I dont have to look at it. :(
Thu Jan 21 2016, 10:30:22
(no subject) (by Ivan)
Good evening.
Yesterday evening and today tried to send through the serial port on the microcontroller ...
I did not work out ... Maybe I'm doing something wrong ...
Maybe you will find the opportunity to test the serial port on the 8051 microcontroller ...?
Thank you..
Fri Jan 22 2016, 13:06:56
(no subject) (by MGP)
Do you have a schematic in jpeg (jpg) format?
And which type of lcd do you use? link?
Fri Jan 22 2016, 13:34:53
(no subject) (by Ivan)
Unfortunately the circuit I do not have ...
LSD display using a conventional 1602 ...
I Founded in Internet link to the serial LCD

http://www.microcontroller-pro...ceived-from-pc-using-8051.html
Fri Jan 22 2016, 14:17:35
(no subject) (by MGP)
You have to program the 8051 with the program on the site, not with the ldmicro program.

I can't help you because the lack of information.
Fri Jan 22 2016, 15:56:26
(no subject) (by Ivan)
What you're telling me I understand ....
The unit that I was trying to make is composed of two microcontrollers.
One microcontroller I program software from the site and connect to it by the LCD display. It turns out a separate device serial UART LCD. This equipment has been tested and works.
And another microcontroller I program in LDmikro. He must pass through UART serial data by the LCD. But nothing happens. I think that microcontroller programmed in LDmikro nothing passes through the serial port of UART.


I would like to ask you to simulate and test the microcontroller 8051 (89S52). I think there is a mistake in LDmikro. It seems to me that the 8051 family of microcontrollers is programmed in LDmikro not transmit data UART.

P.S. Please forgive me for my bad English.
Sat Jan 23 2016, 05:39:18
(no subject) (by Magomed)
AT89C51 same situation code C for UART is incorrectly produced accordingly Keil uVision program produces an error when compiling
Fri Jul 28 2017, 09:25:28
(no subject) (by Magomed)
Here is the generated ldmicro code C

if(Read_I_rung_top()) {
uart recv int 'I_rung_top', have? into '5'; }

Error here !
Fri Jul 28 2017, 09:41:27
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):