logs archiveBotHelp.net / Freenode / #43oh / 2015 / September / 1 / 3
Rickta59
addx ...
instead of add
http://www.ti.com/lit/ug/slau367f/slau367f.pdf#page=203
ccs has a way to use the msp430 vs msp430x2
options someplace
* the c compiler i mean
and yeah that chip has a 32 bit hardware multiplier
Striker|
I'm trying to pull up how many cycles that takes on an Atmega
Seems like a massive time saver for some things
Rickta59
wait nm i was looking at the 5959 chip
Striker|
FR4133 has a 32x32 hardware multiplier
Rickta59
no hw mult on this one
Striker|
The G2332 doesn't though
Rickta59
hmm .. no hw
$ grep HAS_M msp430fr4133.h
#define __MSP430_HAS_MSP430XV2_CPU__ /* Definition to show that it has MSP430XV2 CPU */
$ grep HAS_M msp430fr5959.h
#define __MSP430_HAS_MSP430XV2_CPU__ /* Definition to show that it has MSP430XV2 CPU */
#define __MSP430_HAS_MPU__ /* Definition to show that Module is available */
#define __MSP430_HAS_MPY32__ /* Definition to show that Module is available */
it would have a define .. __MSP430_HAS_MPU__
and then the type ...
__MSP430_HAS_MPY32__
supposedly there are optimized math code for the TI CCS compiler
* << doesn't have much experience with the ti compiler
Striker|
Do you know what family "UCB0CTL0" might come from?
Rickta59
probably a g or f2
those have a "USCI"
Striker|
The code I have is actually for neither the x2xx or the x5xx as far as I can tell
Rickta59
the newer stuff has a "EUSCI"
the smaller chips .. have a "USI"
which doesn't have a UART
UCB0CTL0 is probably a g2553 code
although it could be a EUSCI
what is it code for?
Striker|
Maybe I didn't confirm something, let me check. It just failed on my compiler on every reference to UCB stuff
NeoPixels
(Or WS2812s really)
Rickta59
who's code?
Striker|
Controlled RGB leds
Rickta59
robg?
Striker|
https://github.com/RoXXoR/ws2812
I see a distinct lack of the intended family being mentioned
Rickta59
k haven't seen that
the clocks indicate is is a f2 or g series
wait no
looks like an f5529
https://github.com/RoXXoR/ws2812/blob/master/main.c#L169
that line use the UCA0CTL .. as a word
the smaller one are 8 bits not 16
and it is using DMA ..
so a bigger chip
ah here it is
Striker|
Where's this Robg code you mentioned?
Rickta59
https://github.com/RoXXoR/Energia/commit/24c13a3964e317a6f752c1a574f6d35b293553ad
that is for a 2274
Striker|
Welp
Rickta59
those are an F2 chip
looks like a fatter g2
more memory .. * 1k .. and more flash .. 32k
older thing
Striker|
Found a library for the G2553 specfically, I'll just use that instead then.
https://github.com/mjmeli/MSP430-NeoPixel-WS2812-Library
Rickta59
have you found 43oh.com
Striker|
If that gives me too much trouble, to hell with it I'll just use a Teensy and I'll come up with a different project to learn MSP430s
Rickta59
there are a lot of approaches to ws2812s on the 430
software only ..
Striker|
I've only really interacted with the forums.
"interacted" as in "found them via google"
Rickta59
https://github.com/RickKimball/msp430_code/blob/master/fabooh/msp430/cores/fabooh/drivers/ws2811.h
that won't compile with ti ccs though
gcc asm inline
http://forum.43oh.com/topic/2852-ws2811-led-controller-driver/ some good ccs code
some usci code * would be fairly easy to update for eusci
http://forum.43oh.com/topic/3971-wearable-ws2812-strip-controllers/#entry37424
Striker|
Uh...hmm
Rickta59
i thought i put some code out there for the fr5969 ..
but now thinking about it .. it was probably for those apa102 chips
Striker|
https://github.com/mjmeli/MSP430-NeoPixel-WS2812-Library
"The library was written to work on the MSP430G2553, which comes with the G2 Launchpad"
:(
I hadn't noticed that earlier
Rickta59
yeah you could tweak code but usci isn't eusci
slight changes
Striker|
"UCB0CTL0 |= UCCKPH + UCMSB + UCMST + UCSYNC; // 3-pin, MSB, 8-bit SPI master" contains that code
Rickta59
the best approach with the msp430 is to use the spi to spew
that is the fastest thing on the chip
it will go as fast as the MCLK ...
so if you run at 16MHz .. it will go that fast
Striker|
"Which microcontroller is this forum based on? If not sure, mail admin at 43oh.com with a one line sentence on why you wish to join. "
Rickta59
msp430 maybe? :)
Striker|
I..uh...what? How is that even a question? Is that there soley to elicit amusing emails?
The mail bit I mean
Rickta59
no it is to cut down on spam bots
seems to work fairly well
we don't get much spam
Striker|
Most don't have a "Mail the admin" line :P
With the code you posted from oPossoum, what family is that for?
How do you usually differentiate on the forums?
Rickta59
he mostly posted code for the g2 series
« prev 1 2 3 4 5 6 7 8 next »