Hi, I'm unable to reset the pin P4.1(TXD1)on target though it's possible on the simulator. The register setting I'm doing are as follows:
SPCTL = 0x00; //not bit addressable. TXD1 = 0; // P4 is bit addressable.
the datashhet says "this port is not available as a general purpose I/O" Erik
No...there is a new data sheet available at http://www.semiconductors.philips.com/acrobat/datasheets/zip/P87C51MB2_MC2-02.zip which states "... Right now, SPI module is available, two more general purpose digital pins on P4 are present ... " -Sandy
page 8 states how to get the problem you see (SPEN). Also, when specs change the changes may only be relevant for the latest revision of the chip. Erik