This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 SPI pins incompatibility

Hi, i'm using nRF52 DK to communicate CX93510 encoder chip via SPI. I'm using nrf_drv_spi library with SPI0 connected to pins:

#define CX93510_MISO_PIN 22
#define CX93510_MOSI_PIN 23
#define CX93510_SCK_PIN 24
#define CX93510_CS_PIN 25
#define CX93510_PDRAM_PIN 26
#define CX93510_PD_PIN 27

When my development board with CX93510 not connected to NRF52 DK i can see SPI working correct:

however when i connect CX93510 to my DK board SPI communication ruins - MOSI line dont operate correctly and timings dont match the settings:

I tryied to add 120 Ohm resistors to SPI lines to be sure it is not problem with current flowing through pin - this didnt help. I know that CX93510 chip works good, because i can operate with it with STM8 controller without any problems. Anyone has suggestions how to solve this problem?

Parents Reply
  • There is the datasheet file for CX93510: 4540.CX93510 Reflector DSH-202155-003.pdf . Host interfaces are described at page 45.
    This device requires not much time (a few ns) after CS goes low to clock out data.

    Yes, there are differences in timing and i dont know why, SPI configuration is the same at both diagrams.

    First 0x00 byte specifies the "read register" command, next byte (here it is 0x50) is register address, 3rd byte should be 0x00. After this actions one byte of data should be clocked out from the device.

    Below is the diagram of communicating to this device with STM8 controller. First transmittion is needed for interface selecting as described in datasheet, the second gives us valid output data (0x01)

Children
No Data
Related