Jump to content
43oh

naren

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Setting UCB0BR0 to 3 or 4 works. I am trying to run at a lower frequency (8MHz) and setting UCB0BR0 to 2 should work in theory but looks like there are longer delays than the ws2812b is willing to tolerate... Right now with 16Mhz I see the leds work well with a 500KHz bitstream. If that's the (only) sweet spot for the leds, the code needs to be reworked if I want to run at a lower frequency... As an aside, for some reason the code lights up 14 of the 15 leds... the last one in the strip does not light up. The LED is not broken... and even after playing around with the array index I a
  2. Thanks roadrunner84 for the DCOCTL explanation. TI documentation hasn't been the easiest to read especially when it spans multiple documents. The for-loop intro was thoughtful and yes, I've had enough experience with code to see your point. Cheers. Naren
  3. Hi, I'm trying to drive 15 ws2812b leds using a g2553 sitting on a Launchpad I'm finding the following behaviour a bit confusing and am wondering if anyone can provide an explanation... The code below is borrowed from RobG's post (http://forum.43oh.com/topic/2680-group-buy-10-o-rgb-smd-led-with-built-in-controller/page-4#entry23841 ) If I try to run at 16MHz the strip does not behave/work as expected BCSCTL1 = CALBC1_16MHZ; DCOCTL = CALDCO_16MHZ; However, if I set DCOCTL to CALDCO_1MHZ and keep BCSCTL1 at CALBC1_16MHZ (see code below) , the strip works fine... Is the clo
×
×
  • Create New...