cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistency at SPI-behavior of Lite29 chip and ST7VD

wolfgang2399
Associate II
Posted on January 02, 2007 at 12:34

Inconsistency at SPI-behavior of Lite29 chip and ST7VD

1 REPLY 1
wolfgang2399
Associate II
Posted on January 02, 2007 at 12:34

In my application I'm using the SPI-interface of the ST7Flite29 only to send data. As I'm taking the sequence

while ((SPICSR & bit7) == 0); /* waiting for SPIF flag */

SPIDR = SR_value;

it works as espected on the chip: jointly clearing the SPIF-flag and writing to the SPIDR-register.

But using the ST7VD, I have to clear the SPIF flag separately before writing to the SPIDR.

e.g.

while ((SPICSR & bit7) == 0); /* waiting for SPIF flag */

SPIDR;

SPIDR = SR_value;

If any moderator attaches importance to this fact, he might forward it to the ST7VD-team.

WoRo