Jump to content
Forum sending old emails Read more... ×

touch

Members
  • Content Count

    107
  • Joined

  • Last visited

  • Days Won

    8
  1. touch

    MSP430F550x based frequency meter

    cool project, I've wanted to do something like this for awhile.. will this work with only square wave signals? Some signals I deal with are 15v ptp, what would be the best way of reducing these to the logic level voltages the MSP430 expects?
  2. touch

    Manchester decoding

    Here's some code I wrote in a hurry to test out some alarm system modules I got on eBay... If memory serves me right they used some sort of PT2262 encoder (it seemed like a chinese knockoff clone) that generates a 16us sync code pulse and then uses Manchester encoding for the data. The code's pretty sloppy but it worked for what I was testing and I guess I used the "analog style" that jpnorair was talking about. #include <msp430g2553.h> #include <stdio.h> void startTimerA(void){ TAR = 0; TACTL = TASSEL_2 + MC_2; } void stopTimerA(void){ TACTL = TASSEL_2 + MC_0; } void main(void) { //Kill WDT and setup clocks WDTCTL = WDTPW + WDTHOLD; BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; P1DIR |= 0x01; P1IES &= ~BIT4; // P1.4 Hi/lo edge P1IFG &= ~BIT4; // P1.4 IFG cleared P1IE |= BIT4; // P1.4 interrupt enabled P1SEL = BIT1 + BIT2; P1SEL2 = BIT1 + BIT2; UCA0CTL1 |= UCSSEL_2; UCA0BR0 = 104; UCA0BR1 = 0; UCA0MCTL = UCBRS0; UCA0CTL1 &= ~UCSWRST; _BIS_SR(LPM4_bits + GIE); // Enter LPM4 w/interrupt } // Port 1 interrupt service routine #pragma vector=PORT1_VECTOR __interrupt void Port_1(void) { if(P1IFG & BIT4){ int sync = 0; while((P1IN & BIT4)){} startTimerA(); while(!(P1IN & BIT4)){} sync = TAR; stopTimerA(); if(sync > 14500 && sync < 16700){ int j = 0; char bitcnt = 7; char byte = 0; char data[3] = {0,0,0}; for(j=0; j < 24; j++){ int low = 0; int high = 0; startTimerA(); while(P1IN & BIT4){} high = TAR; stopTimerA(); startTimerA(); while(!(P1IN & BIT4)){} low = TAR; stopTimerA(); if(low > 1200 && high > 300){ data[byte] |= (0 << bitcnt); } else if(low > 300 && high > 1200){ data[byte] |= (1 << bitcnt); }else { } if(bitcnt == 0){ bitcnt = 7; byte++; }else{ bitcnt--; } } while (!(IFG2&UCA0TXIFG)); UCA0TXBUF = data[0]; while (!(IFG2&UCA0TXIFG)); UCA0TXBUF = data[1]; if(data[0] == 0xFD && data[1] == 0x4F){ P1OUT ^= 0x01; } if(data[0] == 0xFF && data[1] == 0xF5){ P1OUT ^= 0x01; } } P1IFG &= ~0x10; } }
  3. touch

    Free STM32F3 dev boards

    I ordered some - hope they'll approve them. I've been using these STM32 Discovery dev boards for awhile and once you get a good tool-chain working, they're excellent development boards with a good set of peripherals, much more than the Stellaris has (DMA!), but they're quite a steep learning code from the simple stuff.
  4. While it's true raising the minimum wage does cause price increases, in the last few years the prices have increased drastically while the amount of money people are making has not. Adjusted for inflation people are making less now than they were in the 70's and yet many companies are having record profits (that go back to the investors) while they raise the price of goods and do not pay their employees anymore.
  5. touch

    Am I frying my crystals?

    Strange! Are you soldering the launchpad with any ground/neutral connected to it? I ask because I've seen soldering guns that leak mains A/C onto the tip and if yours was doing this, it would surely blow the LP if the LP is grounded. If you want to test, just put a DMM lead on ground and another on the TIP of your soldering gun and see what you read. Highly unlikely this is the problem but you never know!
  6. touch

    Am I frying my crystals?

    Have you tried powering the launchpad by a different computer?
  7. You know half the problem with food-stamps are companies that wont pay a decent wage to their employees and play the law so they work their employees right under the limit to get benefits, for example Walmart employees more people that make just under the poverty level than any other company, so most of their employees can get food-stamps which are probably then spent at Walmart and we the taxpayers end up subsidizing Walmart. But to be honest, I don't see the need to why everyone points at food-stamps as if they are magically what will cure the economy if we take them away. Look at disability, it's basically another form of welfare, I know there are people that are disabled and should get it, but I also know people that get $1,500 a month because their ears ring and another that gets them because of headaches. Then you have social security and medicare which are costing billion to taxpayers because of fraud and waste. And then you have taxes, the rich can pay less in taxes than me because they have accountants that can play the books and investments that are taxed much lower than payroll taxes, then you have some people who pay no taxes at all! I think everyone should pay the same share of taxes.
  8. touch

    Wifi Antenaes

    What about using them with a NRF24L01 + PA/LNA booster pack?
  9. touch

    The 43oh Store will be closing temporarily

    I've had a bit of experience with this, I worked on a project where we wrote and designed a custom storefront/inventory/shipping system. I would certainly look into label printers that can print customs/postage & flat rate envelopes & boxes. You probably already know this but if you plan on doing this software and organization is the key, its also not a bad idea to speak with a accountant/lawyer about opening a LLC or a C-Corp for it, that way you can get a Paypal, bank account, etc in the business name and don't have to use your personal accounts anymore and this simplifies tax related stuff as well. Hope you get it sorted out!
  10. Awesome, thanks. Sent you a PM confirming paypal ammount.
  11. I just noticed this - is it too late to get 2M of 60/m strips?
  12. touch

    ASM questions...

    You can find the example ASM code in here for the 2xx3 series MSP430's http://www.ti.com/lit/zip/slac485, ton's of other code examples here: http://www.ti.com/ls...430codeexamples I've been wanting to learn ASM myself, I have modified ASM code a few times and found it very easy to understand the gist of whats going on, much more so than looking at C/C++ code and trying to figure out whats happening. As to your question about grounds, I'm pretty sure as long as the circuit you're testing is not isolated any ground should work, be it the frame, battery or 12 outlet. I'm pretty sure stuff like the airbag is isolated though. You will need to filter the input to the uC/ADC as the DC on cars can have A/C noise due to bad rectifiers and the sort a lot of times.
  13. Got my LED's today. Got any strips left? I got my LED's today and now wish I ordered some strips.
  14. touch

    IRC

    Whats the channel?
×