This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About SBUF

Hi, in a serial communication program, do I have to "SETB P3.0" in order to receive from the serial port ??

Parents
  • Well, this bit seems pretty clear and explicit:

    "The alternate functions can only be activated if the corresponding bit latch in the port SFR contains a 1. Otherwise the port pin remains at 0"

    Have you also enabled the receiver?

    Serial comms is a very common requirement on any microcontroller, and there's loads of examples readily available - including for the 8051.

Reply
  • Well, this bit seems pretty clear and explicit:

    "The alternate functions can only be activated if the corresponding bit latch in the port SFR contains a 1. Otherwise the port pin remains at 0"

    Have you also enabled the receiver?

    Serial comms is a very common requirement on any microcontroller, and there's loads of examples readily available - including for the 8051.

Children