Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


gordon last won the day on October 11 2012

gordon had the most liked content!

About gordon

  • Rank
    Level 3

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. gordon


  2. gordon


    Just remember... no killy jsolarski... no killy jsolarski... again...
  3. gordon

    Dumbing the interface down?

    Almost, but that is getting quite workable now. I could kiss you. Metaphorically.
  4. gordon

    Dumbing the interface down?

    No, it's that the above js makes everything a hot spot in the mobile interface. Which is good if you are actually on a mobile phone, I guess. But whatever, I have filtered a couple of javascripts, now at least it doesn't do random things. Anything like active topics in the old forum? No, "new content" by far isn't what active topics was. Active topics was a sort order -- you still got all of the index with unread posts marked. "New content" is a filter.
  5. gordon

    Dumbing the interface down?

    Ah, http://forum.43oh.com/public/js/mobile_touch.js With that gone at least the foam is back in my mouth.
  6. gordon

    Dumbing the interface down?

    Is there some way (another skin or a list of javascripts I could block or whatever) to make this shiny javascripty Web2.0 abomination go away? I may be whiny, but trying to simply select a piece of text making me go in places I never even knew existed isn't very... nice. I am already using the mobile skin, but even this is bordering on being unusable. Or should I say, this is bordering on being usable, but isn't quite there yet.
  7. ... and make an array of three radio buttons to choose from: Microchip, Atmel, Renesas. Those who complain, pass.
  8. gordon

    Magnetic rotary position sensors

    The link is truncated.
  9. gordon

    Problem with interrupts on P1 and a timer

    This was working a couple of days back... Load on a LaunchPad, poke button. Scratch that, I didn't notice the Energia part. You could still adapt, though. #include #include #include #define LED BIT6 #define BUTTON BIT3 #define DEBUG #undef DEBUG #ifdef DEBUG #define DEBUGLED BIT0 #endif void __attribute__((interrupt (PORT1_VECTOR))) port1_isr(void); void __attribute__((interrupt (WDT_VECTOR))) wdt_isr(void); #define PWM_PERIOD 128 static const uint16_t brightness_levels[] = { 0, 6, 23, 56, PWM_PERIOD }; #define n_brightness_levels ( sizeof( brightness_levels ) / sizeof( brightness_levels[0] ) ) static volatile uint8_t cur_brightness = 0; static volatile uint8_t debounce_ctr = 0; /* /3 -- WDT_ADLY_250 assumes LFXTCLK @ 32KiHz, VLO is ~12KHz */ #define POWEROFF_TIMER (2400 / 3) /* 10m @ 250ms */ #if 0 #undef POWEROFF_TIMER #define POWEROFF_TIMER (40 / 3) /* TEST: 10 seconds */ #endif static volatile uint32_t poweroff_timer = POWEROFF_TIMER; static volatile bool poweroff = false; void main(void) { WDTCTL = WDT_ADLY_250; /* 750ms if running on VLO */ BCSCTL2 |= SELM_3 | SELS; /* MCLK to LFXTCLK, SMCLK to LFXTCLK */ BCSCTL3 |= LFXT1S_2; /* LFXT1 to VLO */ IE1 |= WDTIE; IFG1 &= ~WDTIFG; P1DIR |= LED; CCR0 = PWM_PERIOD; CCTL1 = OUTMOD_7; TACTL = TASSEL_1; P1DIR &= ~BUTTON; P1IE |= BUTTON; P1REN |= BUTTON; P1IFG &= ~BUTTON; P1OUT |= BUTTON; #ifdef DEBUG P1DIR |= DEBUGLED; P1OUT &= ~DEBUGLED; #endif __eint(); while( 1 ) { if( poweroff || cur_brightness == 0 ) { TACTL |= MC_0; CCR1 = 0; P1SEL &= ~LED; P1OUT &= ~LED; __bis_status_register( debounce_ctr == 0 ? LPM4_bits : LPM3_bits ); } else { TACTL |= MC_0; if( cur_brightness == n_brightness_levels - 1 ) { P1SEL &= ~LED; P1OUT |= LED; } else { P1SEL |= LED; CCR1 = brightness_levels[ cur_brightness ]; TACTL |= MC_1; } __bis_status_register( LPM3_bits ); } } WDTCTL = 0xDEAD; } void __attribute__((interrupt (PORT1_VECTOR))) port1_isr(void) { P1IE &= ~BUTTON; debounce_ctr = 1; if( !poweroff && ( ++cur_brightness >= n_brightness_levels ) ) { cur_brightness = 0; } poweroff_timer = 0; poweroff = false; P1IFG &= ~BUTTON; __bic_status_register_on_exit( LPM4_bits ); } void __attribute__((interrupt (WDT_VECTOR))) wdt_isr(void) { #ifdef DEBUG P1OUT ^= DEBUGLED; #endif /* Decrement debounce_ctr iff > 0, else WDT timer will keep * it on for one more loop, causing a delay in poweroff */ if( debounce_ctr > 0 && --debounce_ctr == 0 ) { P1IFG &= ~BUTTON; P1IE |= BUTTON; } if( ++poweroff_timer == POWEROFF_TIMER ) { poweroff = true; } IFG1 &= ~WDTIFG; __bic_status_register_on_exit( LPM4_bits ); }
  10. gordon

    [S]IV-18 VFD Clock Booster Pack

    Thread got me interested, and here's something that I bumped across, might be useful to your application as well: Theory and Applications of the MC34063 and
  11. gordon

    www.ti.com registration

    Welcome to the wonderful world of TI Websites. Get used to it *G*...
  12. gordon

    Different Duty Cycle Clocks

    viewtopic.php?f=10&t=2207 viewtopic.php?f=10&t=2240
  13. gordon

    Inactive members will be pruned/deleted

    Why, you are used to that aren't you :) *SCNR*
  14. gordon

    Code Composer Studio on Linux? no USB FET...

    You can use MSPDebug (I think it can be integrated into CCS, but if not, you can use it separately). No USB FET support in Linux CCS, this fact is noted (I was going to say "prominently" but now I can't find it, so perhaps not that prominently ) in the release notes. Or on the TI wiki. Or someplace else. Anyway, case in point, no TI support, yes MSPDebug support.
  15. gordon

    MS430G2452 REV1.5 Issues

    P1REN |= BUTTON; Also, make blink volatile.