Bit banging for 8051, SPI

Hi Jim,

Whats happening is that its sending the right data for the first 16 clock cycles...

Then its not stopping...

It send all 0's

Again the right data...

So somehow the spi0dat reg is receiving the info repeatedly....

I have tried using delays between the bytes

I have also tried with just one byte for 8 clock cycles...

Same error...

It is due to SW....but i dont see wats wrong with the SW....

thanks, Methi Jim Granville wrote:

Reply to
methi
Loading thread data ...

Go to my page below. Select the subject "flash programming ..."

--

--
Albert van der Horst,Oranjestr 8,3511 RA UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
 Click to see the full signature
Reply to
Albert van der Horst

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.