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 ...?
(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 ...
(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.
(no subject) (by Magomed)
AT89C51 same situation code C for UART is incorrectly produced accordingly Keil uVision program produces an error when compiling
(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 !