morelius21

Members
  • Content count

    27
  • Joined

  • Last visited

About morelius21

  • Rank
    Member

Contact Methods

  • Website URL
    http://www.farb.es

Profile Information

  • Gender
    Not Telling
  • Location
    Barcelona_Spain
  1. Hi I restar the complier and the cross is out. I don't know how i have activate this function. But now is solved thanks
  2. Hi I'm in Barcelona, Spain and i like to buy the next book; MSP430 State Machine Programming: with the ES2274 the cost new in europe is 100$ and for me this is very expensive. I like to buy one of second hand . if somebody have one and want sells it, please send me a message. Thanks
  3. Hi i don't know why but my mouse pointer is a cross and i don't know how can i return to a normal pointer. any idea? thanks
  4. hi thanks for all replies, @Fmilburn: ok i understand but the samme code in arduino uno work well my code, Maybe is coincidence with the pins coincidence i I was lucky @@enl, you are right is i<5, i will yous your array, i find is the clearest way. now the code work well, thanks!
  5. Hi i try to read five potentiometer and print this values to serial monitor. I use a for loop but don't work. only work when i use A0, A1,etc.. in analogRead function. Any idea? thanks /* AnalogReadSerial Reads an analog input on pin A0 to A4 (P6.0 to P6.4), prints the result to the serial monitor. Hardware Required: * MSP-EXP430G2 LaunchPad * 10-kilohm Potentiometer * hook-up wire This example code is in the public domain. */ int i = 0; int sensorValue = 0; // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); // msp430g2231 must use 4800 } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin A0-A4: for (i=0; i < 6; i++){ sensorValue = analogRead(i); Serial.println(sensorValue); delay(300); // delay in between reads for stability } }
  6. Hi Finally i see that the Tom baugh book is the best choice for me now. If somebody can sell me this book i will appreciate this Thanks
  7. @@zeke, Ok i will see the documentation. thanks again
  8. Hi I try to change the clock in f5529 but i don't find tutorials . Someone can you recommend a tutorial please? thanks
  9. Hi thanks for recommendations , i didn't know the book by Baugh: i read the index and i find very interesting.
  10. Hi i like the next books: MSP430 Microcontroller Basics Microcontroller Programming and Interfacing: Texas Instruments MSP430 (Synthesis Lectures on Digital Circuits and Systems) anyone? thanks
  11. Hi Jake, thanks for your reply and interest to help me. I don't want to cause you any problems, especially if you say you'd have to buy another one. I was thinking more of someone who doesn't use his anymore. Seems you really like yours!! Thanks a lot, Marc
  12. I asked the distributor of digilent in Spain and they tell me that the price of the unit is 258 euros (292.35$).. for me is too much. Therefore, I 'm looking for a unit second-hand.
  13. Hi, It's possible that someone sells one second hand condition? I can pay via PayPal. thanks again
  14. Hi, I'm a student of electronics in Barcelona and I would like to buy an analog discovery. http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,1040,1043&Prod=ANALOG-DISCOVERY If I buy this device from Spain the cost of it is very expensive. if someone could help me I appreciate this. best regards,
  15. #2. Thanks for the reply. I understand the problem but when i make this modification don't work properly yet. I try to put the reads in P1IN inside whatchdog ISR and now it works. I wasn't understanding the function of the watchdog. I post the code. is possible that something can be better. #include <msp430.h> /* * main.c */ #define button1 BIT5 #define button2 BIT4 #define button3 BIT3 #define led1 BIT0 #define led2 BIT1 #define led3 BIT2 #define ledTotal (led1 | led2| led3) #define buttonTotal (button1 | button2| button3) void main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ;// Use 1Mhz cal data for DCO DCOCTL = CALDCO_1MHZ;// Use 1Mhz cal data for DCO P1DIR |= ledTotal; P1OUT |= buttonTotal; //on pullups P1OUT &=~ ledTotal; P1REN |= buttonTotal; // up pullups P1IES |= buttonTotal; //interrupT hig to low edge P1IFG &=~ buttonTotal; //Flag to 0 P1IE |= buttonTotal; //Activ interrupt button __enable_interrupt(); while(1){ } } #pragma vector=PORT1_VECTOR __interrupt void Port_1(void) { P1IE &=~ buttonTotal; //disable interrupt WDTCTL = WDT_MDLY_32; // start WDT, interrupt after 32ms (depending on your clock) IFG1 &= ~WDTIFG; // clear WDT flag IE1 |= WDTIE; // enable WDT interrupt } #pragma vector=WDT_VECTOR __interrupt void WDT_ISR(void) { IE1 &= ~WDTIE; // disable WDT interrupt IFG1 &= ~WDTIFG; // clear flag WDTCTL = WDTPW + WDTHOLD; // hold WDT if((P1IN & button1)==0x00){ P1OUT ^= led1; } if((P1IN & button2)==0x00){ P1OUT ^= led2; } if((P1IN & button3)==0x00){ P1OUT ^= led3; } P1IE |= buttonTotal; //activ interrupt P1IFG &=~ buttonTotal; //clean flag } Thanks for all people