>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 25 January 2006 07:09 >To: piclist@mit.edu >Subject: [PIC] SPI question > > >I am using the SPI module on the 16f877a to interface to a >ADC;therefore the SDO pin is of no use in this interface as >the PIC will only be receiving data from the ADC. The >datasheet states "If the SPI is only going to receive, the >SDO output could be disabled (programmed as an input)." > >Does this mean that in the above case,SDO can be used as only >a general purpose INPUT and not as a general purpose OUTPUT? >Is there any way it can be made to function as a general >purpose output even while using the SPI module? The answer is no because the MSSP peripheral overrides the port data latch. You can use it as a digital input or as SDO with the MSSP configured for SPI. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist