Other Parts Discussed in Thread: HALCOGEN
Hi, there. Since my master SPI control 2 slaves, what is the proper, good, safety way to control that? I think I cannot always write such things,
while ((spiREG4->FLG & 0x0200) == 0);
spiREG4->DAT1 = 0x0080 | 0x10FE0000; // Send first 8 bit
while ((spiREG4->FLG & 0x0200) == 0);
spiREG4->DAT1 = (val & 0xFF) | 0x00FE0000; // Send 2nd 8 bit
Since I do not want such dead loop. Is there have any safe way for polling method? If no, then we must use interrupt method?