swapnilsayansaha
New member
Library: https://github.com/PaulStoffregen/Tlc5940 (comes with Teensyduino installation)
I connected a TLC5940NT from TI to a Teensy 3.2. While the LEDs light up, I observed that the PWM frequency is 977 Hz as expected by default. I tried changing the PWM frequency by modifying the TLC_config.h file, using the following guide as reference: https://www.oxgadgets.com/2011/10/u...able-frequency-pwm-signals-using-arduino.html.
As per the guide, to obtain 244 Hz PWM, I changed TLC_PWM_PERIOD to 32768 and TLC_GSCLK_PERIOD to 3. However, when observed with an oscilloscope, the PWM frequency is still 977 Hz.
I then set both the constants to 0, and still the PWM frequency was 977 Hz.
Does the library for teensy use the two constants from the config file at all? The math also does not add up, given Teensy 3.2 can run at 96 MHz and not 16 MHz.
I connected a TLC5940NT from TI to a Teensy 3.2. While the LEDs light up, I observed that the PWM frequency is 977 Hz as expected by default. I tried changing the PWM frequency by modifying the TLC_config.h file, using the following guide as reference: https://www.oxgadgets.com/2011/10/u...able-frequency-pwm-signals-using-arduino.html.
As per the guide, to obtain 244 Hz PWM, I changed TLC_PWM_PERIOD to 32768 and TLC_GSCLK_PERIOD to 3. However, when observed with an oscilloscope, the PWM frequency is still 977 Hz.
I then set both the constants to 0, and still the PWM frequency was 977 Hz.
Does the library for teensy use the two constants from the config file at all? The math also does not add up, given Teensy 3.2 can run at 96 MHz and not 16 MHz.