Tool/software:
Question 1:
I have a question about the pin arrangement of P6.
I'm thinking of the pins as follows. Is this correct? This is to make sure I don't break it.
The circles are my own interpretation. Is this correct? Please let me know.
〇SPISTE is the same as chip select, so the microcontroller should set it as output.
〇Can be connected to the interrupt input pin of an external microcontroller. means the microcontroller should set it as input.
〇Can be connected to the port pin of an external microcontroller. means the microcontroller should set it as output.
Question2
I believe that even without any special settings,
it will be forcibly detected by the MSB.
From data sheet page 38
Is this the correct way of thinking?
Question3
Question about datasheet P51 and onwards
In Figure 59. CONTROL0: Control Register 0 (Address = 00h, Reset Value = 0000h), there are Address and Reset Value, but what are these?
It's not written in detail, so this is my interpretation, but if there are any mistakes, please let me know.
The Address is the writing location
It's like this. (Sorry if this is hard to understand.)
P52 AFE Register Description
Write 0x00 in spi to specify AFE Register Description
Then, Bit 0 SPI READ: SPI read
0 = SPI read is disabled (default after reset)
1 = SPI read is enabled
To change this to 1 = SPI read is enabled
Write 0x01 in SPI
Therefore, to set SPI read is enabled for AFE Register Description, write
spi_write(0x00); →ADRESS
spi_write(0x00); →8/24 BIT
spi_write(0x00); →8/24 BIT
spi_write(0x01); →8/24 BIT
This can be done.
Reset Value Unknown
Question4 About reading data sheet P46
Is the following write order okay?
Step 1
Set CS HIGH to LOW
Step 2
Write 0x000001 to register 0x00
Step 3
Directly send the address you want to read
Read after this
Reference
e2e.ti.com/.../afe440-on-arduino
uint32_t AFE4490Read (uint8_t address)
Question5 About controlling the LEDs TXP and TXN
I think the contents on data sheet P31 are the necessary environment to pass current to LEDs other than 0x22.
Other than that, there are some that do not need to be set because they are for adjustment
Is that correct?