Jump to content

iesalais

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. iesalais

    Small Compilation Error Please Help

    sorry about that. im using the Red MSP-EXP432P401R . using the latest version of Energia on windows you think you can help me port these 2 lines of code to energia? i failed to find anything online and i already looked at the Porting an Arduino library to Energia guide. TCCR1B = (TCCR1B & 0xF8) | 1 ; //generates the MCKL signal analogWrite (clock, 128) ; i mean, there should be a way to "generate the MCLK signal" using energia right? any help would be great P.S. i have 'clock' = pin 6 on msp432 (supposed to be my MCLK pin, not sure if its the proper Pin to use)
  2. iesalais

    MSP432 Hardware SPI Issue

    Thank you for the response rei, unfortunately, none of those options worked. I guess its like you say, I will need to dig deep into the adafruit library. thank you
  3. Hello, I'm trying to run a code I found for a water depth sensor MS5540C and I'm coming across a compilation error: "error: 'TCCR1B' was not declared in this scope" anyone know what is going on? code can be found here http://www.fut-electronics.com/wp-content/uploads/2015/10/water_depth_sensor_MS5540C_Arduino_tutorial.pdf thank you!
  4. iesalais

    MSP432 Hardware SPI Issue

    Hello, I've been trying to run an example called "graphicstest" from adafruit's ST7735 library on a TFT display using an MSP432. My problem is that, for some reason, software SPI works but not hardware SPI. The example "graphicstest" has an option to switch to software SPI by setting the MOSI and SCK pins to whatever i want and when i do that it works, the program does it's little test, but the problem with that is that it runs VERY slow so i kinda need this to work at its intended speed by using hardware SPI. if i hook up MOSI pin to P1.6 and SCK to P1.5 on my MSP432, nothing happens while using hardware SPI. but once i switch to software SPI and set MOSI as pin 15(P1.6) and SCK as pin 7(P1.5), it works. Can anyone help explain what is going on? P.S. this is what the code looks like when changing from Hardware to Software: // For the breakout, you can use any 2 or 3 pins // These pins will also work for the 1.8" TFT shield #define TFT_CS 18 //P3.0 on MSP432 #define TFT_RST 5 #define TFT_DC 8 // Option 1 (recommended): must use the hardware SPI pins // (for UNO thats sclk = 13 and sid = 11) and pin 10 must be // an output. This is much faster - also required if you want // to use the microSD card (see the image drawing example) Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); // Option 2: use any pins but a little slower! #define TFT_SCLK 7 // set these to be whatever pins you like! #define TFT_MOSI 15 // set these to be whatever pins you like! //Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
×