Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I'd be happy to buy to the three remaining leftovers after that.
  2. Is there any chance there'll be a second GB for these at some point? I missed out and would love to get a couple of these.
  3. Interesting. It's not surprising that the bitfield would generate big code (lots of of logical ops for doing sign/zero extensions), but I'm a little surprised that just using an array index turned out so bad. But it does! In my test, the pointer-based version took 426 bytes, while the array-indexed version took 588 bytes. One alternative that I still might experiment with is storing a signed 8-bit pointer offset in the next field. Computing the address of the next element would become "p + p->next". It'd save a byte of storage per node, and I'm hopeful that the code overhead would
  4. I think you could save another byte per node by preallocating 9 nodes in an array and storing the next pointer as an 8 bit index into the array rather than a 16 bit pointer. In fact, you might be able to do better with bitfields since the offset really only needs 4 bits.
  5. Thanks for the help guys. I'm pretty much ready to declare this crystal dead. Here's the crystal testcode that I distilled from the test430 code and the G2553 datasheet. The intention is to light up the red LED on the Launchpad until the crystal stabilizes, then turn it off and activate the green LED once it does. When I run it on my Launchpad, the LED never goes green. #include #include void main (void) { // Setup P2.6 and P2.7 as XIN/XOUT P2DIR |= BIT7; P2SEL |= BIT6 | BIT7; P2SEL2 = 0; // Disable VLO, enable crystal BCSCTL3 &= ~LFXT1S_3; BCSCTL3 |= XCAP_3; // Turn on re
  6. Hey folks, I'm having trouble using the 32KHz crystal that came with my Launchpad. I had previously been using VLO for ACLK, but needed a more precise frequency for a project and decided to try soldering on the microcrystal. I'm using the code below, which makes the P1.6 LED blink nicely when running in VLO mode, but does nothing at all when running in crystal-driven ACLK mode. Is there some important setup step I'm missing, or have I fried my crystal? FWIW, I've used the connectivity tester on my multimeter to check that the pins on the microcrystal aren't bridged, and that each le
  7. I'd be quite interested in that, if the price came out something reasonable.
  8. If this is still open, I'd like to get in for two. I'm not international.
  • Create New...