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

any shift register(74hc595) example code for nRF52?

FormerMember
FormerMember

Hello!

I'm trying to nRF52 soc chip to drive the matrix sensors array (16x16), because there is no enough I/O pins for my project and thinking of use the shift register (74HC595) to drive multiple pins.

Does anyone know how to get the shift register (74HC595) to work on nRF52 or is there have any example code about shift register for nRF51/2?

Thanks.

Parents
  • I am afraid that we do not have any code specific to the 74HC595, but you should be able to use the nRF52s SPI peripheral to clock data in to the 74HC595. I suggest that you take a look at the SPI Master example in the SDK.

    In order to clock data into the 74HC595 using the SPI of the nRF52 you have to connect the following pins

    74HC595   nRF52
     SRCLK --> SCK 
     SER   --> MOSI
     RCLK  --> SS
    

    Best regards

    Bjørn

Reply
  • I am afraid that we do not have any code specific to the 74HC595, but you should be able to use the nRF52s SPI peripheral to clock data in to the 74HC595. I suggest that you take a look at the SPI Master example in the SDK.

    In order to clock data into the 74HC595 using the SPI of the nRF52 you have to connect the following pins

    74HC595   nRF52
     SRCLK --> SCK 
     SER   --> MOSI
     RCLK  --> SS
    

    Best regards

    Bjørn

Children
Related