Bit banging for 8051, SPI

Jun 12, 2005 21 Replies

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:

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. albert@spenarnc.xs4all.nl http://home.hccnet.nl/a.w.m.van.der.horst

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required