Serial communication between PC and 8051, simulate and display the input characters.

Status
Not open for further replies.

luwen

New Member
Hello....
I am a newbie to 8051 programming. I am using Proteus for circuit design and simulation and Keil for coding. I have uploaded the HEX file onto the microcontroller and then used a virtual port. However,there is no character displayed and I'm failing to see where the problem is.

I have uploaded the .asm file and jpg file of the circuit.

Thank you for help and guidance!
 
I cant see where you read a character from the SOBUF.... Also the comport model already has TTL outputs so there is no need for the RS232 translator.
 
I can see though that he's enabling the serial interrupt, yet there's no serial interrupt handler present. The characters that it is currently displaying are in a table stored in program code, which cannot be changed during program execution.

What needs to happen is you need to designate buffer registers in RAM that hold the display characters. Upon receiving characters from the PC, the received characters get stored into the character buffers in RAM. You can use the stack to implement this. The display routine will cycle through each character RAM location as it multiplexes the display.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…