nirbar11

Members
  • Content count

    6
  • Joined

  • Last visited

About nirbar11

  • Rank
    Noob Class

Profile Information

  • Location
    Tel Aviv
  1. Amazing, thank you! I just moved the connectios to the RXD and RXD and it works Only one more issue: I want to watch the serial communication through the monitor. i can not see nothing there. I have 2 options (COM3 and COM4). none of them works. Any suggestions? Thank you!!!
  2. Hello Im trying to send sms message by sending AT commands from MSP40F5529 to SIM900 (by Simcom). physical connections: Rx(P3_4) to Tx, Tx(P3_3) to Rx, GND to GND. When I plug the micro-usb cable and turn the serial monitor on ,I can see the commands and messages well. I scoped the signal from the UART pins of the MSP and I saw noting changes (constant 0) - the pins do not react to my code. this is my code (i print int 55 in order to see some changes in the uart pins value ,which didnt happend) : void setup(){ Serial.begin(9600); } void sendsms(){ Serial.println("AT\r"); delay(1000); Serial.println("AT+CMGF = 1\r"); delay(1000); Serial.println("AT+CMGS =\"+972****844095\"\r"); //my phone number delay(1000) Serial.println("HELLO WORLD"); delay(1000); Serial.println((char)26); delay(100); } void loop() { Serial.println(int(55)); //delay(200); sendsms(); } questions: 1. do i need to configure my UART pins in setup() or its done automatically when I use Serial? because I didn't declare anything 2. When I plug the usb cable - the serial reading and writing from the UART pins are stopped? because i scoped both cases (with and without usb cable) and the results were different 3. Why is the serial monitor shows all fine and when i scope the signals , the voltage value does not change? do i need to use some special library? Looking forward for help. Thank you Nir
  3. Hello Im trying to send sms message by sending AT commands from MSP40F5529 to SIM900 (by Simcom). physical connections: Rx(P3_4) to Tx, Tx(P3_3) to Rx, GND to GND. I scoped the Rx and Tx pins and they both have constant voltage value of 2.7 (logical 1) When I plug the micro-usb cable and turn the serial monitor on ,I can see the commands and messages well. this is my code (i print int 55 in order to see some changes in the uart pins value ,which didnt happend) : void setup(){ Serial.begin(9600); } void sendsms(){ Serial.println("AT\r"); delay(1000); Serial.println("AT+CMGF = 1\r"); delay(1000); Serial.println("AT+CMGS =\"+972544844095\"\r"); delay(1000); Serial.println("HELLO WORLD"); delay(1000); Serial.println((char)26); delay(100); } void loop() { Serial.println(int(55)); //delay(200); sendsms(); } questions: 1. do i need to configure my UART pins in setup() or its done automatically when I use Serial? because I didn't declare anything 2. When I plug the usb cable - the serial reading and writing from the UART pins are stopped? because i scoped both cases (with and without usb cable) and the results were different 3. Why is the serial monitor shows all fine and when i scope the signals , the voltage value does not change? Looking forward for help. Thank you Nir
  4. Hey.. Thanks for the above. regarding interrupts again, how should i handle the situation when I want to execute a specific procedure only when i get a specific input sequence. for example, I want to execute the procedure only if the input sequence is 0010. in this case I can't configure 4 pins with attachinterrupt() and send the program to the specific procedure. Can I use attachinterrupt() for the whole port? or any other suggestion? Thank you Nir
  5. Hello all, Im using the MSP430 connecting to a device which outputs 4 bits sequence (parallel) every once in a while and I want to get an interrupt for each new input sequence in port 1. The input sequence voltage level is 3.6V and the MSP powered from the micro-USB (connected to the PC). I also connected the GND of the device to the GND of the MSP. this is my code : void setup(){ Serial.begin(9600); pinMode(P1_2,INPUT); pinMode(P1_3,INPUT); pinMode(P1_4,INPUT); pinMode(P1_5,INPUT); attachInterrupt(P1,intFunc,CHANGE); }; void intFunc(){ Serial.print("this is an interrupt - the value of P3.1 is :"); Serial.println(digitalRead(P1_3)); } void loop() { delay(2000); Serial.println("the is the main routine"); }
  6. Hello all, Im using the MSP430 connecting to a device which outputs 4 bits sequence (parallel) every once in a while and I want to get an interrupt for each new input sequence in port 1. The input sequence voltage level is 3.6V and the MSP powered from the micro-USB (connected to the PC). I also connected the GND of the device to the GND of the MSP. this is my code : void setup(){ Serial.begin(9600); pinMode(P1_2,INPUT); pinMode(P1_3,INPUT); pinMode(P1_4,INPUT); pinMode(P1_5,INPUT); attachInterrupt(P1,intFunc,CHANGE); }; void intFunc(){ Serial.print("this is an interrupt - the value of P3.1 is :"); Serial.println(digitalRead(P1_3)); } void loop() { delay(2000); Serial.println("the is the main routine"); }