Posted: Tue Jul 16, 2019 7:24 am Post subject: SPI reading from different address
Hi,
I have this simple example of writing (to &H34) & reading (from &H74) from SPI addresses:
Code:
Spi_array(1)=&H34
Spi_array(2)=0 Reset Cs
Spiout Spi_array(1) , 2 Set Cs
Spi_array(1)=&H74
Spi_array(2)=0 Reset Cs
Spiin Spi_array_rx_status(1) , 2 Set Cs
It happens that SPIOUT remembers the address where data was sent (Spi_array(1) = &H34) and with SPIIN command it reads data from this address and not from the address that I need to read (Spi_array(1) = &H74).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum