Jump to content
MaxBlitz

Converting a sketch from Tiva/Stellaris to cc3200

Recommended Posts

Hi,

 

my goal is to use WS2811/2812 LED Strips with TI CC 3200.

 

i found this sketch (see attachment from here) and want to use it on cc3200. When i try to compile in energia, it doesnt work for cc3200, it says "test_WS2811_stellaris.ino:25:24: fatal error: inc/hw_ssi.h: No such file or directory"

 

Can you point me in the right direction to adjust this sketch for CC3200?

 

Thanks,

 

Max

test_WS2811_stellaris.ino

Share this post


Link to post
Share on other sites

SSI on Tiva is the SPI peripheral.  Check out the SPI peripheral on the CC3200, and the SSI peripheral on the Tiva, and see what the first sketch is doing with the Tiva SSI as far as SPI bitrate and data, then see about porting it over to the CC3200's SPI implementation.

 

CC3200 Peripheral API documentation - http://software-dl.ti.com/ecs/cc31xx/APIs/public/cc32xx_peripherals/latest/html/index.html

Tiva peripheral driver library documentation - http://ti.com/lit/spmu298 (page 463 is where the SSI driverlib API is documented)

Share this post


Link to post
Share on other sites

Thanks,

 

i will look into that. Do you think this program is scalable to 1500 leds on a strip (the preset now is 8 ). So a much bigger number of leds...

Will this program be fast enough?

Share this post


Link to post
Share on other sites

Thanks,

 

i will look into that. Do you think this program is scalable to 1500 leds on a strip (the preset now is 8 ). So a much bigger number of leds...

Will this program be fast enough?

Not sure but that sounds like a lot.  It's not a question of the program being fast enough, it's a question of the WS2811's bus being fast enough for whatever your application may be.

Share this post


Link to post
Share on other sites

Hi, its actually for WS2812b / APA-104 LEDs. They are fast enough. Unfortunately i didnt manage to get them working with cc3200 yet. There doesnt seem to be any examples :(

Share this post


Link to post
Share on other sites

I could get 1300 WS2812b LEDs working fluently on the CC3200. I modified the Adafruit Neopixel library using Utilsdelay() timing and adjusted the registers, now it works :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×