We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have to design a circuit using AT89C51 with no hardware SPI and use it as SPI master. The SPI slave device I am using is AT89C2051 which is controlling the RTC chip DS1307 using I2C protocol. When ever a particular event occurs the AT89C2051 records the timing registers. These RTC registers need to read by the master controller that is AT89C51 from the slave AT89C2051 using SPI protocol.
So by basic doubt is whether can I use AT89C2051 slave without a hardware SPI. Can I implement the whole of the SPI protocol between Master and the slave using software SPI.
Raghu
I missed that the OP was discussing bit-bagging for both master and slave side.
That would require the master to run _very_ slow to make sure no bits are lost in either direction.
By the way: How I hate when the blasted site complains about my email address - at the same time I can hear it bing, receiving mails... If Keil could just permanently mark an email OK - especially if it is an email address that I have managed to mail them from - and they have managed to mail me back on...
Thanks for your reply. I would like to know is there any micro controller which is cost effective and minimum number of pins such as AT89C2051 with hardware SPI to implement a slave on the device. Raghu.
look at NXP LPC9xx series sub $1 sub 30 pins
www.nxp.com/.../index.html
Erik