[SOLVED] Interfacing 89C52 with 23s17

Status
Not open for further replies.

Rajarajan2809

Newbie level 2
Joined
Jan 7, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
Is it possible to interface 89C52 with 23s17 (port Expander), If it is possible means whether interfacing through TXD and RXD is good or using General purpose Port pins for SPI
 

You can't use UART for SPI. A software SPI, using any 4 available port pins will work. Using an I2C port expander could reduce the pin count to 2, but needs slightly complexer software.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Thanks...can u explain about SPI using 4 port pins
 

Pins are SCK, SDO(MOSI), SDI(MISO) and chip select (SS). All signals are generated by software (so called bit-banging). There are plenty of examples on the internet.
 
Reactions: Rajarajan2809

    V

    Points: 2
    Helpful Answer Positive Rating

    Rajarajan2809

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…