Hi there,
I use the simple loop:
Code: Select all
while(1) {
start_clock(ltc.blk);
//read value from 'in buffered port:32'
ltc.miso :> wert;
//stop clocking
stop_clock(ltc.blk);
}
to read a adc @50MHz using spi. However, I only need the first 18bits from the device. Is it possible to interrupt the read and simply read out the fifo after a certain time? I saw the
Code: Select all
{twidth_t, counter_t} getHead(FIFO f)
function in the IO specification. Anyone used that and would care to share a usage example?
Best regards
Stefan