software uart

hello friends,

i am doing software uart program that is in the arduino software itself,i am simulating it in proteus,i am using one hardware uart and one software uart, my problem is that,my software rx is notworking,hardware rx and tx and software tx is working fine, help me to fix the problem of software rx,herebelow i included my program and attached my circuit in proteus,please help me my friends..thank you very much

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup()
  // Open serial communications and wait for port to open:
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only

  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.println("Hello, world?");

void loop() // run over and over
  if (mySerial.available())
  if (Serial.available())

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

,i am simulating it in proteus,

Do you mean proteus is not simulating it properly?

Try using a real Arduino and let us know how you get on.