This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem in spi driver

i am working with energy metering chipade7758 and cygnal 8051f120.communication between cygnal and 8051f120 take place through SPI bus. the driver is working fine only if we initialize the SPI just before writing a byte . that means i have to reload the SPI configuration registers .
SPIEN = 0;
SPI0CFG = 0x60;
SPI0CN = 0x0C;
SPI0CKR = 0x17;
SPIEN = 1;
why this happens? I want to save the time of reloading . suggestion are most welcome …