Jump to content

morelius21

Members
  • Content count

    27
  • Joined

  • Last visited

Everything posted by morelius21

  1. hello. I'm trying to use Proteus to make my simulations, the problem is that I don't find the device msp430g2553 in proteus. Can anyone tell me where i can find this msp for proteus? thank you very much
  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. CSS compiler: pointer mouse is a cross

    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
  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. MPS430F5529L reading multiple potentiometer

    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!
  7. Buy books msp430

    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
  8. Buy books msp430

    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
  9. change the clock in msp430f5529

    Hi I try to change the clock in f5529 but i don't find tutorials . Someone can you recommend a tutorial please? thanks
  10. change the clock in msp430f5529

    @@zeke, Ok i will see the documentation. thanks again
  11. Buy books msp430

    Hi thanks for recommendations , i didn't know the book by Baugh: i read the index and i find very interesting.
  12. 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,
  13. I'm looking for an Analog Discovery

    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
  14. I'm looking for an Analog Discovery

    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.
  15. I'm looking for an Analog Discovery

    Hi, It's possible that someone sells one second hand condition? I can pay via PayPal. thanks again
  16. Hi, I'm a newbie and I have a problem with debounce of 3 switches in an interrupt. Each switch toggles a led with an interrupt in P1. this software works when i press the switch slowly but when i press faster it doesn't work correctly (goes on an off not according to the button pressed). I use the example of RobG that he explains in this topic using the watchdog (Thanks RobG): http://forum.43oh.com/topic/1968-dual-edge-interrupts-on-one-pin/ I post the code, maybe you can help me resolve the problem? #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 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 } #pragma vector=WDT_VECTOR __interrupt void WDT_ISR(void) { IE1 &= ~WDTIE; // disable WDT interrupt IFG1 &= ~WDTIFG; // clear flag WDTCTL = WDTPW + WDTHOLD; // hold WDT P1IE |= buttonTotal; // enable interrupts on S2 } thanks for your time main.c
  17. Debounce switch routine watchdog not work

    #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
  18. Assembler nop in ccs

    Hi, i try to make a simple program in C to control a lcd. I need to make two "nop" in one function but i don't know the syntax . Always, the compiler make a assembler error and i can't run the program. function: void Toggle_A_Lcd(void){ LcdControl |= En; asm (nop); asm (nop); LcdControl &=~ En; } somebody could tell me how make this, please? thanks
  19. Assembler nop in ccs

    Hi people thanks for the information, I try today to test all.
  20. methods of burn a msp430

    Hi, I'm newbie and i need to know how to program msp430 mcu (SPI, JTAG , etc...). Now i have the launchpad but i don't know which pin are used to burn or for debugging and if i can use the launchpad to burn another mcu. Somebody know a document that explain methods of programming and debugging msp430? thanks for your time
  21. methods of burn a msp430

    Thanks for the information, now i can find the info about sbw and the thread is very helpful.
  22. Hello, I'm total newbie and i have my first problem: I try define a pin in my launchpad with msp430g2553 but i don't get it. In IAR i know this: #define LCD_4 P1OUT_bit.P1OUT_0 But in code composer don't work and i think it's because i don't use io430.h because there isn't in CCS. I use the msp430.h library. can somebody tell me pleaso how can i define the pin in CCS? Thanks
  23. How to define a pin in Code composer studio

    Hi, i'm very appreciate your response. Ok i understand it and i will use this form of define. Is true that this method is useful than the another. Thanks
  24. Hello, I see in the web of proteus, they don't have the library for many msp430. And seeing the parts list, I see that thislist don't have the g2553. So now I have to find another software simulation. Greetings and thanks
×