Jump to content

Search the Community

Showing results for tags 'SPI'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





  1. As my first "real" project on the TM4C129x series, I am trying to port my software for the Nokia 5100 LCD (originally written for the ATMega series). I seem to having issues setting the PWM bit rate. Here are the functions for setting up SPI on SSI3: #include "Nokia5110_LCD.h" // PORT K #define CS GPIO_PIN_7 #define RST GPIO_PIN_6 #define BACKL GPIO_PIN_4 #define DC GPIO_PIN_5 // private function prototypes void LCDWrite(uint8_t dc, uint8_t data); void Nokia5110LCDIni(void) { MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOQ); // used for SSI: tx, rx, clk MAP_SysCtlPeripheralEnabl
  2. Hello everyone, I'm basically trying to port over Arduino's SD card library (which utilizes SPI communication) to Energia, and am starting by testing whether I am able to properly initialize the SD card or not. First, I made sure that the Arduino library worked on an AT Mega 2560 and SD card that I have (it did). I then moved on to porting the library for Energia. I changed the pin mapping and the SPI settings to work for the F5529 and so far I can prove with a logic analyzer that the SD initialization function commands the CS, SCLK, MISO, and MOSI SPI lines in the exact same manner fo
  3. WS2812 driver for Tiva is available here
  4. I'm trying to get my Tiva C (lm4f120) to read a adxl345 (accelerometer) and output the x, y and z values. I'm using the SSI2 peripheral, and everything seems to be wired correctly. By moving the adxl345 around, I can get the values to change, however they seem to overflow or something weird. They seem to tend toward 65535 when it should be reading 0. 65332 279 65519 65313 274 65528 65289 273 0 65271 275 1 65259 274 38 65318 238 69 65304 220 135 65303 207 134 65312 125 202 65308 67 242 65311 87 214 65316 69 222 65312 66 221 65310 68 219 65305 63 224 65513 65434 65430 58 68 65509
  5. I'm in the middle of a project using the f5529 launchpad and Energia. I'm trying to use both the USB and the I2C port at the same time. I can initialize the USB and see it enumerate in the windows device manager and I can read/write to it and it works properly. But as soon as I try to enable the I2C port using the USCI_B1 the USB dies and can no longer be read or written to. The example codes in Energia work for both the USB examples and for the TMP006 example, so the harware is OK. But trying to get them both to play at the same time is a nogo. What am I missing? #include <
  6. Well, everything is on the title. I2C slave runs fine on the Stellaris now Tiva C Series LaunchPad but I can't find how to implement SPI slave. Thank you for your help!
  7. I am using Atollic. This is the link to the datasheet of the memory - http://www.atmel.in/Images/Atmel-5165-SEEPROM-AT25512-Datasheet.pdf I have some doubts - can you please resolve them? 1. When I check the clock on the Oscilloscope - I don't get a square wave (it's something like a square wave with it's upper part curved), why is that happening? Is it OK to not to have a perfectly square wave? 2. What's wrong with the code below, I am trying to read the status register of the EEPROM. received_val remains 0 even after completely executing the code (I am debugging step by step)
  8. Hi everyone. First of all, i am new with msp430 microcontrollers and i have a project that i think it is hard for beginners but i must do it I will take the data from accelerometer and write it to the eeprom. I will use msp430g2230. eeprom and accelerometer both are communicating with SPI. I must sample the data at least 1Hz. I just learned about registers and SPI and worked on msp430ware codes about SPI communication a little bit. Where can i start this project? What are your suggestions and do you know any source related to my project?
  9. I am new to Energia I want to experimint with SPI How can i see what methods are included in SPI.h ?
  10. Hi Guys, I have been trying to interface CC2500 with my G2 launchpad, i am unable to do so. i interfaced cc2500 with the default spi configuration given in the SPI library with Energia. P2.0 - CS (active low) P1.5 - SCLK P1.6 - MISO aka SOMI P1.7 - MOSI aka SIMO P19- GD0 GDO2 pin is hanging i found a library which i used to code, the code initially checks the value in the registers of cc2500 and serially prints it and matches it with the default values. i have attached the thumbnails of serial output. when my CS pin is connected i get "o" output for all reisters and when i leave it open i
  11. Good day for all, I want to know if exist the nrf24l01 library on Mpy or if the SPI library is available. Thanks!
  12. Hi, I'm trying to make a clock with a Tiny RTC module and a iTead 5110 Nokia LCD. I'm using Adafruit RTClib and the energia LCD_5110_SPI. Each library an device are working fine separately but when put together it stops working, is it possible to have SPI and I2C device working simultaneously? Thanks.
  13. Hi guys! I am trying to interface with SPI flash,I am trying to write byte to buffer 1 and after read it, The byte i have send and recived are not the same. Cant figure out my fault. /* * main.c */ #include "msp430.h" #include "stdint.h" #define SPIRXBUF UCB0RXBUF #define SPI_SEND(x) UCB0TXBUF=x #define SPITXREADY (IFG2&UCB0TXIFG) /* Wait for TX to be ready */ #define SPITXDONE (UCB0STAT&UCBUSY) /* Wait for TX to finish */ #define SPIRXREADY (IFG2&UCB0RXIFG) /* Wait for TX to be ready */ #define SPIRXFG_CLR IFG2 &= ~UCB0RXIFG #define dummy 0xff #define
  14. I'm writing an SPI driver for MSP430F5528 chip. I'm using the driverlib from TI for working with the SPI. I need to send 3 bytes. When I'm sending the 3 bytes one after the other, only the third byte is actually sent, like the first two were overriden. I tried waiting until the SPI bus won't be busy. but than I get gaps between the bytes, the CLK stops between them and the perihpheral doesn't work. I tried also turning the SPI's TX interrupt, and wait until the interrupt occurr, but aperently, the bytes are overriden like before. Here's some code for reference: GPIO_setAsOutputPin
  15. Hello, I try to write my own library for the MSP430G2553 and and the 2.2" ILI9341 display. I know RobG has made one but this project is basically for learning about LCDs and SPI. I took the code from http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S and modified it for the MSP430G2553. It worked fine but only as solftware SPI. Now I want to use the hardware SPI. Here ist my code: #include <msp430g2553.h> #define LCD_MISO BIT1 #define LCD_CLK BIT4 #define LCD_MOSI BIT2 #define LCD_DC BIT0 #define LCD_CS BIT3 #define LCD_REST BIT5 void LCD_Writ_Bus
  16. So you now build all of your projects on breadboard, and the Launchpad just gets used as a progammer/debugger adaptor. The 20 pin DIP socket gahters dust. I have put this to use by writing a SPI-UART adaptor that runs on a 2553 in the DIP socket, while using the Launchpad to debug my project. The project code can thus output console data using a bit-banged SPI output. This only consumes port pins, no timers or UARTS, and is not timing-critical, as the data output is synchronous. This shows how you would use it: ... and here it is on my desk... Code is at https://github.com
  17. In this day and age, we should not need to use any keys or buttons. I have done away with the key remote in my car using this simple setup. I came to the same conclusion as this gentlemen in using the apple nike+ sensor to provide a proximity sensor to the car. https://www.sparkfun.com/tutorials/135 His code lacks a couple things that I was looking for. 1) decoding of the apple serial protocol so that i can use any NRF module 2) detection of when to stop strobing the remote (when the key is inserted) 3) ability to open the trunk and since I can detect when the key is inserted,
  18. The 23LC1024 1 Mbit SPI SRAM module from Microchip features SDI and SQI interfaces. As the clock rate can go up to 20 MHz, SDI —with 2 lines— doubles and SQI —with 4 lines— quadruples the flow of data. How to implement those interfaces on the MSP430G2553 and LM4F120H5QR? Reference: http://ww1.microchip.com/downloads/en/DeviceDoc/25142A.pdf Same post on http://forum.43oh.com/topic/3943-help-sdi-and-sqi-interfaces-on-msp430g2553/
  19. The 23LC1024 1 Mbit SPI SRAM module from Microchip features SDI and SQI interfaces. As the clock rate can go up to 20 MHz, SDI
  20. Hi All, I am trying to use the MSP430G2553 on a TI -Launchpad to Communicate with a bunch of sensors, My problem is that i need to use I2C for one (eeprom) and SPI for another (display LCD). But according to the energia pin mapping here, the I2C pins and the SPI are on the same pins (p1_7 (UCB0SOMI) and p1_6 (UCB0SIMO)). How do i shift the MISO and MOSI pins to p1_1 and p1_2 , i know its supported by the G2553 hardware since the pins correspond to UCA0SOMI UCA0SIMO. Can someone please point me to the changes i need to make in the Energia core for this to happen? Please help... Than
  21. Hi, I have working code for msp430g2452 which sends data via spi as 8 bit at once. Could somebody, please, say how to change this code to send the data as 16 bit at once? Thanks a lot in advance. #include <msp430.h> // #define PIN_SCLK BIT5 //1.5 #define PIN_DATA BIT6 //1.6 #define PIN_CS1 BIT4 //1.4 #define PIN_CS2 BIT0 //1.0 #define PIN_RED BIT0 //1.0 #define SELECT(PIN) P1OUT &= ~PIN #define DESELECT(PIN) P1OUT |= PIN // #define M_DECODEMODE 0x09 #define M_INTENSITY 0x0A #define M_SCANLIMIT 0x0B #define M_SHUTDOWN 0x0C #define M_DISPLAYTEST 0x0F
  22. Hello! I know I've been posting loads of problems which you have all been very helpful with and I appreciate it. I'm at the last stage in my project where I have to send an image as a byte array (values from 0-255) via serial communication, use H/W UART to receive bytes and map them onto my RGB LED display to create the image. I've configured the UART at 115200 BAUD, clock at 18MHz, I'm using the UCA0 ISR routine to map the received bytes into a 3D array "image[8][8][3]" where the 1st, 2nd, and 3rd terms are row, column, RGB component, respectively. I am seeing results on the display whe
  23. Hello everyone! I'm continuing my project of creating an RGB LED matrix capable of displaying live images being transmitted from a laptop via a serial cable to the MSP430G2553. At the moment, I'm coding four 8x8 Common Anode RGB LED matrices joined together to create a 16x16 display. Hardware I'm using: - 3 * TLC5940s (one for each colour) - 2 * 74HC595 shift registers (drives the columns/anodes) I'm using code provided by RobG from this link <http://forum.43oh.com/topic/2315-tlc5940-examples/> and this one <http://forum.43oh.com/topic/3328-rgb-to-hsv-conversion-with
  24. I'm trying to make a Sanguino (Arduino derivative board) talk to a MSP430G2553 Launchpad over SPI. The idea is for the Master to send a constant string "Hello, world!\n" and have the Slave write it to a serial terminal. I'm using this for the master: #include <SPI.h> void setup (void) { Serial.begin(9600); digitalWrite(SS, HIGH); SPI.begin (); SPI.setClockDivider(SPI_CLOCK_DIV8); } void loop (void) { char c; // enable Slave Select digitalWrite(SS, LOW); // SS is pin 10 // send test string for (const char * p = "Hello, world!\n" ; c = *p; p++) { SPI.
  25. Surprisingly, the MSP430G2553 seems to require an extra initial mock reading data[0] = SPI.transfer(0); before starting to read the right address. Unfortunately, I can't provide logic analyser trace as the signal on the MSP430G2553 is below the threshold of my logic analyser which doesn't feature adjustable threshold. On the LM4F and on the MSP430G2553 with the initial mock reading data[0] = SPI.transfer(0); On the MSP430G2553 without the initial mock reading data[0] = SPI.transfer(0); The first reading returns ?. Commenting lines 72 and 73 on usci_spi.cpp as sugge
  • Create New...