Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: WS2812Serial Question

  1. #1
    Senior Member
    Join Date
    Feb 2017
    Posts
    313

    WS2812Serial Question

    Hi All:

    Is seen in the example code for the WS2812Serial libary the following line:
    Code:
    //   Teensy 3.2:  1, 5, 8, 10, 31   (overclock to 120 MHz for pin 8)
    Just curious why the need for 120 MHz to use Pin 8.
    Any insight appreciated.
    Thanks.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,674
    Quote Originally Posted by gfvalvo View Post
    Just curious why the need for 120 MHz to use Pin 8.
    Serial3 on Teensy 3.2 runs from the slower F_BUS clock, which is too slow for WS2812Serial unless you run at 120 MHz.

    Serial1 and Serial2 run from the faster F_CPU clock.

  3. #3
    Senior Member
    Join Date
    Feb 2017
    Posts
    313
    Thanks Paul. I was just about to post that I found that info after digging through the datasheet for a while.

  4. #4
    Senior Member
    Join Date
    Feb 2017
    Posts
    313
    So, if I'm reading the datasheet and source code correctly, it looks like the Baud is actually set to 3.75 MHz on a T3.2 (overclocked) when Pin 8 / UART2 is selected. Right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •