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 …
Can you read-back these registers after writing a byte, and see what's changed? Yes he can, he is using SILabs and have ICE functionality. Erik