thank you for answering so rapido, But there is still some confusion on my side.
I'm not sure I understand well, Does every rising edge, the MSB of SPDAT (bit number 7) shifted out on MOSI pin and a new LSB bit is shifted in? is the value of the new LSB that shifted in is accorrding to the logic level on MISO pin when it was sample (when rising edge occured)?
and what if there were no data (no transmit going on) on MISO? what is the value of the LSB (bit 0) in SPDAT in that case?
Another question, is SPDAT register is bit addressable? meaning I can address to a spesific bit of the register with softwere (like SPDAT.5)?
I will thank you very much if you can try arrange all the confusion that going on in my head about the SPI with this uController.
Thank you!