2020-03-17 09:36 AM
2020-03-23 08:39 PM
In the the latest L9826 datasheet (rev 10), Diagnostic Table for outputs 1 to 8 in SPI controlled mode is in Table 9.
https://www.st.com/resource/en/datasheet/l9826.pdf
The following (number of the Figures or Tables) will be based on datasheet rev 10.
Please refer to Figure 5 for the output control register structure:
These bits can be configured through the serial interface (SPI).
In addition, Output 1 and 2 can be configured also with parallel pins - NON1 and NON2.
To configure thru SPI, control data are transmitted to SDI (NOT SDO) through the micro controller. The bits shall be transmitted at every CLK falling edge.