[PIC] Use of SPI and I2C interfaces

Status
Not open for further replies.

adeel.sid

Advanced Member level 4
Joined
Feb 15, 2008
Messages
108
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Visit site
Activity points
1,958
On PIC16f877A, there is common pin for clock (pin 18), I wonder if I could use the same pin for data input to PIC via I2C and data output via SPI?
is there any effect on pin out?
 

The dedicated pin functions or overriding GPIO function when the respective communication function is enabled in special function register. Review the RC4 description in data sheet chapter I/O-Ports.
 

yes u can use both function on same pin but one after another and should enable and disable and vice versa.
care should be taken than no both interface enable.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…