Jump to content
43oh

spirilis

Members
  • Content Count

    3,394
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by spirilis

  1. Official release, sans documentation for the moment- https://github.com/spirilis/msprf24 Lots of cleanup/changes compared to that .zip file, which I'm going to purge for now (no copyright notice on those files). It's a permissive ISC license. The docs are going to be on the github wiki.
  2. Got USI, USCI_A, USCI_B all working and confirmed with logic analyzer; had the LaunchPad blinking its red LED with my USCI_B boosterpak installed, responding to periodic (every 250ms) transmissions from an Arduino I had 2ft away. You could see the blinking stop when I hit the arduino's reset button or yanked the nRF transceiver from its shield. Likewise with a PTX test program on the MSP, I had an LED plugged into that arduino lighting up with a receiver sketch running on it. Need to examine the code/clean up anything excessively ugly and document it, then throw it up on github for al
  3. Tossing in a side note here, I was peeking at the MSP430F5172 (http://www.ti.com/product/msp430f5172) while surfing TI's site the other day, that sounds like a neat chip--has an option of making some I/O's 5V. Would there be any interest in making an Arduino shield-compatible dev board that works with Energia based on that chip? Flash & SRAM are comparable to the ATmega328P used in the Arduino UNO too (32KB flash, 2KB SRAM). Could be cool to use existing 5V arduino shields on it... (assuming some stuff like SPI, I2C actually work with the 5V I/O, which I am not certain of yet.)
  4. Oh this is a fun thread/idea..... http://www.ebay.com/itm/TI-TEXAS-INSTRU ... 1c28d32196 6 available, 4 SOLD!?!?!? Not only are they selling them for $9.99, but the main pic of the device clearly lists how the launchpad costs $4.30!
  5. Still working on this, got a pretty complete library coming together although I've been swamped in SPI hell due to it not working right ... Finally figured it out, USICKPH has to be 1. Also yanked USIGE from USICTL0 since it's not needed. Bought a logic analyzer (Saleae Logic16) which I received tonight, and looking at several scans of the I/O you wouldn't expect anything is wrong, until a single-bit error cropped up which seemed bizarre as it simply shouldn't have happened--I was sampling 16x as often as I needed to. Turns out the waveform (USICKPH=0) looked "almost" right (and once in
  6. Thanks... Went ahead and added it- https://sourceforge.net/tracker/?func=d ... tid=432701
  7. I'm thinking the BIC is using one of the constant generators, while the AND.B is not. Page 58 in the user's guide mentions how immediate mode can be 2 or 3 words depending on whether CG1/CG2 can be used. Another example with a more complex operand for the BIC yields 3 words: USI_TXRX: 0fd50: f2 c0 11 00 79 00 BIC.B #0x0011, &0x0079 0fd56: b1 c0 10 00 00 00 BIC #0x0010, 0x0000(SP) 0fd5c: 00 13 RETI Ok, so a very minor (nearly insignificant) optimization.
  8. I had IAR Kickstarter installed at one point, but since removed it... maybe I'll break that back out (or see if CCS installs on my little win7 netbook...)
  9. Weird, I always use -Os with my compiles. Looks like the code difference is 2 bytes saved in the BIC.B vs AND.B when clearing bits. Using my BIS/BIC macros, a P1_IRQ ISR: C: #pragma vector = PORT1_VECTOR __interrupt void P1_IRQ (void){ if(P1IFG & nrfIRQpin){ __bic_SR_register_on_exit(LPM4_bits); BIS_B(rf_irq, 0x80); //rf_irq |= 0x80; BIC_B(P1IFG, nrfIRQpin); //P1IFG &= ~nrfIRQpin; } } Disassembled machine code in mspdebug: P1_IRQ: 0fd5e: 0f 12 PUSH R15 0
  10. I know about the BIS/BIC macros for manipulating the SR register, but I didn't see anything for general purpose use with memory variables/SFRs and such so I decided to create these: #ifdef __GNUC__ #define BIC(sfr, val) asm("bic %[src], %[dest]" : [dest] "=m" (sfr) : [src] "i" (val)) #define BIS(sfr, val) asm("bis %[src], %[dest]" : [dest] "=m" (sfr) : [src] "i" (val)) #define BIC_B(sfr, val) asm("bic.b %[src], %[dest]" : [dest] "=m" (sfr) : [src] "i" (val)) #define BIS_B(sfr, val) asm("bis.b %[src], %[dest]" : [dest] "=m" (sfr) : [src] "i" (val)) #else #define BIC(sfr, val) sfr &= ~
  11. I see... looks like it's a DSP series too, makes sense.
  12. Neato, what's the allure of the C2K if anyone here's familiar enough with it to tell? Vs. ARM, anyhow. Simpler to code for? Does it feel like the MSP430 (on massive steroids)? Cost?
  13. Eh, looks like the pinout I used for my boosterpak doesn't work with the 2231's USI anyhow... I set it up for the 2553's UCA pins for SIMO/SOMI/CLK. I'll work on building out another boosterpak for the 14pin USI compatible chips (e.g. 2231, which is what I have).
  14. Hmm well I finally put together a boosterpak (toner-transfer PCB) to use my nRF24L01+ modules from some chinese ebay vendor, and it looks like I have IRQ on P1.0 (red LED) and CSN on P1.6 (green LED)... also had to swap in my G2231 as the code uses USI. A couple changes needed to be made to make it compile with my newish GCC, but it runs, doesn't do anything useful yet (I have an arduino + custom shield for using a comparable module which I'll use to transmit/receive test data once I figure out the code). One thing that has me curious though, is the CSN LED is not lit except for a quick f
  15. Heh on the topic of ASM and gcc, I was going to ask, does gcc make use of those Constant Generator registers when it cranks out ASM code?
  16. Nice to see some initial support for this, I got an order of 10 cheapo breakout boards from ebay for the nRF24L01+ and have been helping someone over at arduino.cc write a BSD-licensed lib for the chip... Going to download your code soon and take a peek.
  17. Hi folks, bought myself a LaunchPad as a shipping-stuffer on one of my Mouser orders back in March. Got the old version of the board... ended up purchasing some G2553's in a later order just to have 'em. Finally got the environment working on my Mac, at least with mspdebug only (no serial port) but that's OK for now. Later on I might buy an FTDI 3.3V cable and make my own breakout board for attaching it. So far I got some LED blink programs running and that "breathing LED" one functional, though right now I'm putting the hardware down to kick back and digest the datasheets. Light re
×
×
  • Create New...