Jump to content
43oh

Search the Community

Showing results for tags 'i2c'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

  1. Hi to all, are you interested in assembler language programming? if so, this could be of interest to you. the basic idea is a 5kB kernel embedded on a MSP430FRxxxx, capable of downloading source files, interpreting and compiling them. Associated with a minimalist IDE: a text editor, a generic preprocessor and a terminal to communicate with the embedded kernel. What is the craziest wish of a microcontroller programmer? In my opinion, it would be that once his source is modified, he clicks on the "build" shortcut of the editor and in a second, the program is compiled on the targ
  2. I'm following the attached I2C example code provided by TI. The MCU is put into LPM0 with three interrupts enabled. On a pending RX interrupt, the ISR stores one byte of the receive buffer and clears the LPM0 SR bits taking the MCU out of LPM0 (lines 133-135). What's the reason for exiting LPM0? And why isn't the __bic_SR_register_on_exit(LPM0_bits) used for the NACIFG and BCNTIFG? msp430fr235x_euscib0_i2c_10.c
  3. I have found a very simple LCD display "DfRobot LCD for Arduino with rgb backlight". It seems like a good way to have a display with projects but the problem is that for some reason Energia cannot process the code. No matter how I try, i just get an error message: Error compiling for board MSP-EXP430G2ET w/ MSP430G2553. Is there any way to use such displays with Energia? the code is very simple #include <Wire.h> #include "DFRobot_RGBLCD.h" const int colorR = 255; const int colorG = 0; const int colorB = 0; DFRobot_RGBLCD lcd(16,2); //
  4. Hello there, I am currently trying to write a custom firmware for an existing board I have. The I2C pin are connected to pins 3/4 of the cc3200, but in the standard case on the Launchpad is PIN 1/2 which won't work for me. So I stepped into the Wire.c and changed the begin() part: void TwoWire::begin(void) { MAP_PRCMPeripheralClkEnable(PRCM_I2CA0, PRCM_RUN_MODE_CLK); MAP_PinModeSet(PIN_01, PIN_MODE_0); MAP_PinModeSet(PIN_02, PIN_MODE_0); //MAP_PinTypeI2C(PIN_01, PIN_MODE_1); //MAP_PinTypeI2C(PIN_02, PIN_MODE_1); MAP_PinTypeI2C(PIN_03, PIN_MODE_5)
  5. I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast). In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia. I went through the wire and twi libraries and found the following, In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code, UCBzCTL1 |= UCSSEL_2; // SMCLK Is this the line of code that sets the clock speed? Also in the twi.h lib
  6. I am trying (for quite long time) to write to EEPROM 64 bytes of data in 4 chunks (as EEPROM's page size is 16 bytes). Unfortunately, the MCU sends few extra bytes every time it transmits. For example, if I send 16 bytes, it transmits 22, with 6 last bytes being of unknown origin to me. For example, I send 15 text bytes within for(...) cycle xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx but see on the scope xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx BF F6 FD D7 3A C0 I tried another approach: send 15 bytes + 00. My program stops at 00, then I try to replace 00 with wh
  7. I2c not working with energia. Below is the code attached. Please help Master Reader #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); // start serial for output } void loop() { Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } delay(500); } Slave Sender .
  8. hello I am getting a cc3200 launchpad and mpu9250, there I want to get the sensor data. I am using the Energia IDE, could anyone have a suggestion for the library of mpu9250 used in Energia IDE? There I just found the library used in Arduino IDE. Is that universal? best wishes
  9. I have been trying to use this i2c code on energia. it works perfectly fine on arduino. i am new to tiva and need help using energia libraries with the multiple i2c ports. any help is appreciated trialEnergua.ino Adafruit_PWMServoDriver.h Adafruit_PWMServoDriver.cpp
  10. Interfacing without I2C 1. browse for "Liquid Crystal" folder in C:\Program Files (x86)\energia-1.8.7E21\hardware\energia\msp430\libraries or on the path where you downloaded the energia. 2. copy the folder and paste it to C:\Program Files (x86)\energia-1.8.7E21\libraries. note that this library is made for MSP430. You need to follow the pin convention of cc3200 launchpad. 3. open energia and change the rename the pin number as one given in the launchpad schematic. Make sure you dont use the pins that are connected to push buttons. try using the pins that are less multifunc
  11. Hello, I am trying to port Sparkfun's library to get the apds-9960 Gesture Sensor working on my Tiva C 1294 board. I set up the library like you normally would with ardunio while changing the interrupt pin and uploaded the code to my board with no issues. The only problem is when I go to serial monitor I get nothing printed to screen. Are there any other steps I need to take in order to convert this code to work on my Tiva board? I also tried moving to code composer studio but I cant find many clean tutorials on how to use it. I also have a MSP432 that I might try to get his working on if
  12. Hello all, I#ve got issues working with i2c (in another thread) but I wonder if anyone has gotten i2c working between 2 tivac connected boards using the master_writer and slave_receiver sketches? I can't seem to get any i2c working at all with the 1.8.7e21 version of energia. Can you make it work? Cheers Sol
  13. Hey all, I've currently got an issue where i2c just isn't working with energia, I've opened an issue on github but haven't gotten any replies. Is there a better way to get some eyes on this? Would anyone here mind taking a look? https://github.com/energia/tivac-core/issues/41 Cheers Sol
  14. This is a start to a bigger project and will be expanded on. Temperurature sensor for Mash -- MSP430, LM75B, possible other sensors, thermal couple. (working on code and proof of concept) Temperurature sensor for fermentation -- TBD Specific gravity sensor -- TBD User Interface -- TBD automation of pumps gas lines and equipment -- Requirements: Food safe, easily cleaned. probes and sensors sealed...... What I want is mash temp monitoring and logging to help me improve my brew days and procedure and maybe add a heater to keep
  15. Hi, At a previous project I turn on and off power to ST LIS3DH Accelerometer using a MOSFET Circuitry. This is so to make sure the I2C Sensor is not consuming current when not in use. A colleague of mine designed to power a ST LSM303AGR from one of the MCU IO Pins. The MCU IO voltage is enough to power the ST LSM303AGR, so, should work. But, powering I2C Sensor from MCU IO Pins is not the usual way and new to me. Do you think that powering the ST LSM303AGR from one of the MCU IO Pin is okay or is not recommended? Regards, Markel
  16. Hello, I am trying to get RED, IR and GREEN led value in real time from MAX30101 sensor. I am using MSP430F5438A as my MCU. My IDE is CCS. The protocol required to communicate with the sensor is I2C. Now my problem is I am not any value except 0 in my read and write pointer (Indicated in the comment in my code). I am supposed to get some value in between 0 to 32. I'm attaching the link for the datasheet for the sensor: https://datasheets.maximintegrated.com/en/ds/MAX30101.pdf I know the datasheet is a whole lot. But I am referring page 17 which they have a pseudo code how to burs
  17. Hello, I'm working on msp430fr4133 board and interface SHTC3 (SENSIRION) sensor. I'm working on energia v.18 IDE. I've library of SHTC3 sensor based library.this library perfectly working in Arduino board. But same library and its example sht-detect not working in energia IDE. When I refer SHTC3 compatible library file .h and .cpp. if I'm comparing datasheet and library files then in .cpp not mention any hex address e.g Reset,ID, measure, sleep, wake up. So,I have a 2 queries : (i) How this file working in arduino without addresses ? (ii) How to make energia compa
  18. Hi everyone I am beginner and I want to use the adxl345 with msp430g2553 with I2C, but the example that I am using don´t working, always send 0 in the axes x,y and z. I use energia 1.6.10e18, the circuit have the pull'up resistor in SDA and SCL pines, and I remove the jumper of the green led. I used the same code but with arduino and it working but with enegia not, help me please. My launchpad is MSP-EXP430G2 rev 1.5 The SCL is connected in pin 14 and the SDA in pin 15. My OS is windows 7 When i put this function "Wire.setModule(0)" the mcu does make nothing, the uar
  19. Hello, everyone! Has anyone used the I2C display module with the TM4C123 Launchpad? I'm trying to use this code as a test, but I was not successful. The version of the library I am using is 1.2.1 I accept other suggestions for using the i2c display. Thanks in advance! The code: #include <Wire.h> #include <LiquidCrystal_I2C.h> // Start the I2C address at 0x27 position LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE); void setup() { lcd.begin (16,2); } void loop() { lcd.setCursor(0,0); lcd.print("test line 1"); lcd.setCursor(1,1); lcd.print("te
  20. Hi, I posted a question on e2e but I found interesting to ask here too. I'm trying to port the Adafruit MCP4725 library to MSP430 using the Driverlib. I'm testing with launchpad EXP43FR2433 running at 1MHz and I would not want to use interruption to keep the code more portable. The sequence to write some value on DAC is relatively simple. - Set address -> send start -> send write cmd -> send upper byte -> send lower byte -> send stop. Using the following code one byte of the value is lost. msp43x_I2C_setSlaveAddress(EUSCI_B0_BASE, _i2caddr); ms
  21. I am working on TM4C1294XL board and through Energia platform. I am trying to interface HMC5883L of GY-80 with TM4C1294XL board. I am getting static outputs irrespective of whether I initialize all the essential registers or initialize none, the static outputs do not change in both cases. I am pasting the code below, I suspect that something should be wrong with the code as there nothing much to do in connection (only four wires needed). #include "Wire.h" #define cra 0x00 #define crb 0x01 #define modeReg 0x02 #define data_X_MSB 0x03 #define data_X_LSB 0x04 #define data_Y_MSB 0x07 #defin
  22. I am trying to interface GY-80 (only adxl345) to TM4C1294XL board using Energia. But outputs comes out to be 0. And also there comes this error "Failed to load dynamic library: 'ftd2xx.dll' " while uploading but the code gets uploaded successfully. I am pasting the code below, can somebody tell me where i am doing it wrong? #include "Wire.h" #define Power_Register 0x2D #define BW_rate 0x2C #define Int_enable 0x2E #define dataFormat 0x31 #define X_Axis_Register_DATAX0 0x32 #define X_Axis_Register_DATAX1 0x33 #define Y_Axis_Register_DATAY0 0x34 #define Y_Axis_Register_DATAY1 0x35 #define Z
  23. Hi everyone. I'm new to this forum and new to TI mcu. Planing to get a launchpad with msp430g2553 I have experience with atmegas, and arduino ide. I have a project to have some sensors around with batteries and a central receiver to publish to internet, the will comunicate vía nrf24l01 which is a SPI device and in the array of sensors some of them are I2C. As I see the description I2C and SPI share the pin in Msp430G2, so my question: is possible to use both in the same project in a reliable way? I did this project with atmega328 and arduino ide but I read the msp4
  24. I'm trying to connect the HDC2010 temperature sensor to the MSP430FR5969 Launchpad. I'm using the HDC2010 EVM, which consists of a MSP430F5528 (which handles USB communications to the GUI tool) and a HDC2010 (connected over I2C). The portion with the HDC2010 can be broken off from the main board in order to use it with another MCU. I'm attempting to connect it to a MSP430FR5969 Launchpad which has the SHARP Memory LCD (uses SPI) connected to it. I couldn't find a ready made library for the HDC2010 & MSP430, so I copied over some code from the Arduino library. To check whethe
  25. Hi fellows, I have some facing some problems with interface on sensor TMP006, now I have done the I2C driver in CMSIS, the problem is in the TMP006 file, I can not configure the registers to make the conection with i2c protocol I2C.c I2C.h tmp006.c tmp006.h
×
×
  • Create New...