dear all, i m interfacing 7366 with c8051f120.
according to datasheet of 7366 its clock is 5Mhz (100nSec and 100nSec of SCK high and low pulse)
pls tell me which lines of among 4 pins i.e mosi,miso,nss,sck are pushpull and open drain.
because i made mosi as pushpull and rest as opendrain
i have given pullup to miso,nss,sck
i have written the code according to sample program.
and the sequence of the code is running according to timing diagram of 7366
i am writing 0x03 in MDR1 register and reading it
but i still receive 0xff or 0x00
i even have problem in sck display i.e clock doesnt get displayed properly
pls tell me where i m wrong.
spi settings are: spi0cfg = 0x40; spi0cn = 0x0d; spickr = 0x00; for 5Mhz (datasheet of 7366 under ac characteristics of 5V)
i m using spi in interrupt.
pls replay thank you all