hi all:
as the title says, i use spi2@CS0 as slave, and I config the SPI2 register as below:
clkmod=master=0;
somifun=simofun=sclkfun=1,scs1fun=0,scsfun=1;
cshold=1,dfsel=0,csnr=2;
scs1def=scs0def=1;
shiftdir=0,polarity=0,phase=0,charlen=0;
finally set SPIEN=1,
So I write data to SPIDAT1 to send out the data.
However, when the clock and cs coming, it just shift two bytes. and never shift any more.
when the second clock and cs come , it also shift two bytes.
Question1: In kernel driver code , I saw a register named SPIDAT0, can we use it? because I cannot see
any explanation about it.
Question2: what is the trigger condition starting shifting the data? is when the CS becomes active? or when the clock become active?
Any tips will be appreciated !