Closed imuguruza closed 2 years ago
Hi, right after the reset you probably have bad data on signal DIN, even though signal DIN_VLD is set to '1'. You must have the DIN_VLD signal active only when you have the correct data on the DIN signal. Data from the DIN signal is accepted only in the clock cycle when DIN_VLD and DIN_RDY are active at the same time.
Hi again! I am triying to write from the slave 4x data transfer of 16bit spi data field. This is executed every 5ms. I am facing an "issue" with the reset state.
In order to handle the
spi slave
, I am using a state machine that checks the value ofdin_vld
to set the value ofdin
. So the state machine waits to see an edge ofdin_vld
to set a different value each time.something like:
What I see is that the slave is sending a
0x0000
first, and after the data I am sending back to the master. I am unsure gow to force the slave to not to send this0x0000
and start with my first 16bit data.To put it more clear:
The first message I want to send is
0xCAFE
, but it is not registered after the reset. I am not sure how to handle this, as I see that in the first execution I am seeing 5 rising edges ofdin_rdy
and after 4, as expected:How should I handle it? Thanks!