Hi, in a serial communication program, do I have to "SETB P3.0" in order to receive from the serial port ??
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.
You are working at the level where that kind of understanding is imoprtant!
You need to either gain some understanding, or ensure that your team includes someone with that understanding.
- All right, When I go back to LAB, I'll try it out (setting P3.0) By the way, yes, I have enabled the receiver using SCON register.
should, of course, be: "important".
Here's some basic electronics links:
http://www.kpsec.freeuk.com/ www.electronics-tutorials.ws/ www.google.com/search