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. Simao

    uDMA SPI doubt

    Hi there, please bear with me, english is not my mother tongue, I have a doubt about SPI reading through udma. In order to get the clock to perform a reading of spi via udma , Do I need to start a udma write also in the TX channel, or as soon as I start the RX udma all the clocks are generated internaly without any further write. I mean, after the first write (dummy) which will start the receiving proccess?? I hope i've made myself clear. Thanks in advance Simao
  2. I want to use nRF24l01 RF wireless modules with MSP 430f247 processor. There is a project done on MSP430G2553 with the same wireless module; https://github.com/spirilis/msprf24/wiki#library-usage I want to use USCIB_0 part for communication interface. I replaced output pins in the program. When I debug the program step by step I have seen no signal at SPI line. Do you have any suggestion?
  3. Hi, if this is the wrong forum please direct me elsewhere. I have an AS5048A chip that I've successfully pulled data from using an Arduino board. Datasheet for AS5048A - http://www.ams.com/eng/content/download/438523/1341157/file/AS5048_Datasheet.pdf I finally pulled my LM4F120 eval kit that I got last year out and started playing with it. I'm not having any success reading data from the chip with it, though. My embedded experience is limited to the higher level abstractions of Arduino stuff and I occasionally feel like I'm just flapping my arms uselessly. I will say that being able t
  4. I tested the lauchpad FR5969 with the new version of energia. After having changed both HIL.dll and MSP430.dll files in the directory E: \ ENERGIA_V13 \ energia-0101E0013 \ hardware \ tools \ msp430 \ mspdebug, I managed to correctly program the FR5969 launchpad. Searching the memory.x file in the E: \ ENERGIA_V13 \ energia-0101E0013 \ hardware \ tools \ msp430 \ msp430 \ lib \ ldscripts \ msp430fr5969, I saw that the compiler does not take advantage of the characteristics of FRAM which allows sharing of 64 kbytes memory between program space and ram space. Indeed it currently use
  5. Tracking down the reason why my SHARP Memory LCD library does not work on Tiva and C3200 LaunchPads, I noticed that Energia's SPI.setBitOrder is not implemented for these platforms. Digging a bit deeper (i.e. TivaWare and datasheet) I can't see a register to control SPI bit order. Two questions: - Did I miss something or does the SSI peripheral not support LSB bit order? - If not, ARM has an RBIT instruction that would be helpful in a workaround. Any way to invoke this with GCC on a variable without resorting to inline assembly?
  6. 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
  7. WS2812 driver for Tiva is available here
  8. 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 <
  9. 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!
  10. 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)
  11. 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?
  12. I am new to Energia I want to experimint with SPI How can i see what methods are included in SPI.h ?
  13. Good day for all, I want to know if exist the nrf24l01 library on Mpy or if the SPI library is available. Thanks!
  14. 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
  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. 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
  17. 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
  18. 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,
  19. 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
  20. 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
  21. 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
  22. 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/
  23. 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
  24. 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
  25. Hello! My library for interacting an MSP430g2553 with a TM1638 (SPI 3-wire mode) Description MSP430G2xx3 - USCI_A0 SPI Master Interface to TM1638, Read/Write command, key scanning, show digit and switch LEDs on board. TM1638 - Driver for Led's indicator, 10 segment output lines, 8 grid output lines, 8 segment/key - 3 lines scanning. Features Support for the TM1638; Support for dimming the display and LEDs; Reading simultaneous button presses Connection diagramm: Code: #include "msp430g2553.h" // MSP430 Ports Define #define LED_RED BIT0 //RED Led #define LED_GRE BIT6 //Green Led #def
  • Create New...