Skip to main content
Visitor II
February 28, 2025
Question

Addressable LED Programming in STM8

  • February 28, 2025
  • 2 replies
  • 1096 views

We are trying to program addressable LEDs through STM8 microcontroller. For the initial development, we use the NUCLEO-8S208RB. The architecture is as below image. Eight "IN-PI33QBTPRPGPBPW-60" LEDs connected to a data line in daisy chain.

PreethiT_0-1740717336412.png

We face some issues in turning ON the LEDs. The colors doesn't match the input code or few of the LEDs doesn't turn ON at all. We couldn't achieve the data transmission period of 1.20us with the controller. Is the controller not capable of achieving this? Or is that we need to fine tune our code to achieve the required data transmission time?

    This topic has been closed for replies.

    2 replies

    ST Employee
    February 28, 2025

    Hi @PreethiT 

     

    This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

     

    Regards,

    Billy

    Graduate II
    February 28, 2025

    Expect that you'll need to break out an oscilloscope or logic analyzer and debug YOUR code / implementation, and understand what the problem is, and what speed the signals are, and if your approach need to be refined.

    Are you bit banging the GPIO or using TIM to modulate the signal?

    PreethiTAuthor
    Visitor II
    March 3, 2025

    Hi Tesla,

    Yes, we use logic analyzer to debug the code and we are using TIM to modulate the signal. My question is whether the STM8 controller is capable for providing a 1.20us data?