Hi all,
I have been looking at the following datasheet: https://www.ti.com/lit/ds/symlink/drv8323r.pdf?ts=1592105520148&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FDRV8323R%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Dasc-null-null-gpn_en-cpc-pf-google-sa%2526utm_content%253Ddrv8323r%2526ds_k%253DDRV8323R%2526dcm%253Dyes%2526gclid%253DCjwKCAjw8pH3BRAXEiwA1pvMsayCjLs0kdJ6t8WJmKTXAfr7aRzISU0UIQzyPJdl64uGqJnYyy35phoC0PIQAvD_BwE%2526gclsrc%253Daw.ds
and have some queries on the SPI read operation. Appreciate it if someone can shed some light:
1. My understanding of the SPI read operation is as follows: 1. We need 2 frames for the read operation, the first frame to set the WO= 1 and the address of the register we are interested to read from, the second frame is to clock out the content of the register.
Question: Since every frame require 16 SCLK cycles, during the first frame of the read operation after sending WO =1 and the 4 bit address, does it matter what's the value of the remaining 11 bits of data?
2. Assuming we are not concerned about new values being written into a particular address(that support both R/W operation), can we utilize the write operation to read out the content of the register within a single frame? I asked this because the datasheet (page 51, last sentence) mentioned that: For a write command, the existing data in the register being written to is shifted out on the SDO pin following the 5-bit command data.
3. What happened if we attempt a write operation to a Read Only address?
Thank you in advance for your attention on this question.
Best regards,
Kevin
Thank you!