• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!

nickn

Members
  • Content count

    81
  • Joined

  • Last visited

  • Days Won

    1
  1. I have several Pi's around the house. My latest project involving a Pi is playing around with automation and temperature logging. I have an esp8266 board with a temperature sensor board connected that sends a temperature reading to my Pi every so often. Plan to get back to working on it soon.
  2. The CEO of Espressif has confirmed on Facebook that the I/O pins of the ESP8266 are 5V tolerant . He also mentioned that the ESP32 and the ESP8285 I/O are also 5V tolerant. https://www.facebook.com/groups/1499045113679103/permalink/1731855033731442/?hc_location=ufi
  3. Thanks for the answer and suggestion. I shall go see if that works. UPDATE: Your suggestion worked
  4. Up until now I've been using Energia for projects that required the use of UART, but I decided to get my hands dirty and just use the msp430-gcc toolchain. The below program is simply a test program I made to send a number over UART at 9600. when I compile it without optimization, everything works just fine("msp430-gcc -mmcu=msp430g2553 -g -o adc adc.c"), but when I use an optimization flag such as -Os, -O2, or -O1 it totally breaks my code. What am I doing wrong in my code that's causing it to break when I try to do any optimization? I'm using msp430-gcc version 4.6.3 20120301 #include <msp430.h> #include <stdio.h> //for sprintf void delay(int dly); void printnumb(); void UART_Write(char dataq); int flag=0; char buffer[4]; int place = 2024; void main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer IE1 |= WDTIE; //enable interrupt BCSCTL1 = CALBC1_16MHZ; DCOCTL = CALDCO_16MHZ; P1DIR |=BIT2; P1OUT &=BIT2; P1SEL |=0b00000110;//page 43 on msp430g2553 datasheet P1SEL2|=0b00000110;//page 329 UCA0CTL1 |= UCSWRST + UCSSEL_2; UCA0BR0=104; UCA0BR1=0; UCA0MCTL =0b00110001;//modulation control p 431 UCA0CTL1 &=~UCSWRST; __enable_interrupt(); while(1){ printnumb(); delay(2000); } } #pragma vector=WDT_VECTOR __interrupt void watchdog_timer(void) { flag=1; } void delay(int dly){ dly= dly*2; int cycle=0; WDTCTL = WDTPW | WDTTMSEL| WDTIS0; while(cycle<dly){ if(flag==1){ cycle++; flag=0; } } WDTCTL = WDTPW | WDTHOLD; } void printnumb(){ sprintf(buffer, "%i", place); int cnt = 0; while(cnt < 4){ UART_Write(buffer[cnt]); cnt=cnt+1; } UART_Write('\r'); UART_Write('\n'); } void UART_Write(char dataq){ while((IFG2&UCA0TXIFG)==0){ } UCA0TXBUF=dataq; }
  5. Just got the email today. "Beginning in November, a valid business email domain will be required to order free samples on TI.com. You are no longer able to use an university email domain when ordering samples online. You may, however, purchase small quantities (1
  6. @@SteveR After not receiving any emails for a week after the Webinar, I called Avnet and I eventually was transferred to somebody that knew what I was talking about and took my address. I never got the email saying that a distributor would contact me for my address. I do live in the US.
  7. Just got mine today A strange thing that I noticed is that one usb connector is a micro and the other is a mini, you would think that they would use one or the other but not both.
  8. Thanks for the answer, it' making a bit more sense to me now.
  9. Glad to see that the forums are back up I've been trying to figure out how to configure the DCO to get an MCLK frequency of 25 MHz. I've read some guides about DCO configuration but haven't found much of anything (apart from the datasheet) that explains configuring the FLL to get accurate frequencies. I've been pointed to using UCS_LFXT1Start(), UCS_clockSignalInit(), and UCS_initFLLSettle() but have never used those functions before. Of course, it couldn't have been as easy as the G2553 and just use the calibrated clock configuration setting.
  10. Ok I'm now reading the datasheet and looking at your code. It appears that you need to sent 2 bytes of data before you send the start/sync command for continuous conversion mode. The first byte is the WREG instruction 01000100 to point to the second register then issue 00000100 to set continuous conversion mode. I could be wrong, but that's how I'm interpreting it. By the way, you also need to configure another register to use your external reference, but at this point I would recommend keeping it simple and just stick to the internal reference.
  11. One problem with your configuration is that since you are powering the adc with 5v, the DOUT pin is close to 5v and the msp430g2553 isn't 5 volt tolerant. From looking at the datasheet, you should not have any problems powering the adc chip with 3.3v which would solve that issue. Have you grounded the CLK pin (not SCLK) on the adc?
  12. I wonder why they didn't opt to go with a cheaper, slower shipping option instead. I can wait a week to receive my items.
  13. I just got the email today that my .edu email account can still be used to obtain samples after getting the earlier email the other day saying that it could no longer be used.
  14. @@Fred it's not so much that I have a particular fear of SMD packages, it's more about the convince for me to throw components on a breadboard easy. I love the flexibility to build and teardown easily (although once you circuit has more than a few components, things can start to get a little hectic.) What you mention above are certainly options, but breakout boards and such mean shelling out additional cash (and as I don't currently have any sort of steady job, I have to watch my spending) and my soldering equipment is terrible. With that all said, I still should pick up some perfboard sometime to move some of my circuits off the breadboard. Sorry if I went a bit off-topic. Anyways, the new FRAM board looks nice. I like the idea on an on-board LCD and the price isn't bad.
  15. As a previous poster mentioned, I too would love to see DIP packages for the newer chips.