Thanks Peter House. Look im trying to comunicate with an SD memory. In order to initializate i have to send 6 bytes 0x41,0x00,0x00,0x00,0x00,0x95 and then wait for a response byte 0x01, the response interval is 1 to 8 bytes. What I did was move the first byte into the spi data register, then move the second....to the last one. Everytime I sent one byte I cheked the SPRF flag to see if I could send the next one. After this I should send the dummy byte (could be any byte?), and once I send it read the SPI data register and check if I recived my response? and in case I didn´t, send another dummy byte again?
Thanks