EmbeddedRelated.com

MSP430 I2C communication(2)

Started by Songsongsong in MSP43012 years ago 1 reply

Hi everyone, I should transmit and receive data from master(MSP430f5338) to slave sensor(LSM303DLM) by I2C communication. I want to read data of...

Hi everyone, I should transmit and receive data from master(MSP430f5338) to slave sensor(LSM303DLM) by I2C communication. I want to read data of x, y and z, so I can't receive multiple bytes because I have to change register continuously. I made some codes using example codes from this group and TI example code. But there are two problems in my code. First, the slave address register UCB0I2C...


MSP430F5338 I2C communication

Started by Songsongsong in MSP43012 years ago 2 replies

Hi group, I have to receive data from slave sensor(LSM303DLM:Accelerometer) by I2C. However I don't know well how I make code of trasmit &...

Hi group, I have to receive data from slave sensor(LSM303DLM:Accelerometer) by I2C. However I don't know well how I make code of trasmit & receive. Here is my code of I2C register setting. But I don't know how to approach next of this code. I just want to transmit slave address, register address and data. And then receive data from slave sensor continuously. There are many example codes in ...


Assembly language - comparing two unknown, signed 16-bit integers

Started by David Feldman in MSP43012 years ago 5 replies

I am translating a few dozen lines of c code to msp430 assembler (so I am doing this manually rather than trying to integrate a small amount of...

I am translating a few dozen lines of c code to msp430 assembler (so I am doing this manually rather than trying to integrate a small amount of inline C to what is otherwise an assembly language program). I have several places where two 16-bit signed integers are being compared arithmetically. Either number may be negative, zero or positive, but is not known prior to assembly time (for examp...


Re: Assembly language - comparing two unknown, signed 16-bit integer

Started by David Feldman in MSP43012 years ago 1 reply

Thank you, Al - I was able download your chapter, have printed it, and will study it before going further. I need to concentrate on how signed...

Thank you, Al - I was able download your chapter, have printed it, and will study it before going further. I need to concentrate on how signed integers compare, particularly when one integer is opposite sign of the other. Dave > i HAVE A RATHER LONG WINDED EXPLANATION OF THIS in a chapter of a book > i started to write a few years ago. If you want a copy of that let me > know. I have als


Problems with IAR Kickstart

Started by Peter Grey in MSP43012 years ago 23 replies
IAR

I have moved from Windows XP to Windows 7. I have installed version 5.40.6 (slac050ah.zip) and am getting some problems. Whenever I turn off...

I have moved from Windows XP to Windows 7. I have installed version 5.40.6 (slac050ah.zip) and am getting some problems. Whenever I turn off and on again the program locks up and gives me an error message of "could not open file 'C:\Program Files(x86)IAR SYSTEMS....\obj\Q9602_testing.r43". I have to remove the program and then re-install to get it to work. Any suggestions would be very ...


Disassembly, source windows out of sync

Started by Wanda in MSP43012 years ago 4 replies
IAR

in iar kickstart as i step through the program i noticed that my disassembly and source are out of sync. I know the program downloaded and I have...

in iar kickstart as i step through the program i noticed that my disassembly and source are out of sync. I know the program downloaded and I have determined that the program is executing the code correctly in the disassembly window but the disassembly doesn't line up with the source shown in the source window. In fact, the program counter is stopping at a commented line. My target is an MSP43...


IAR complier warning/error on size mismatch

Started by sureshaps in MSP43012 years ago 3 replies
IAR

Hi All, may I check if there is any setting to make IAR to throw error/warning whenever value contained in large sized variable(32 bit) is...

Hi All, may I check if there is any setting to make IAR to throw error/warning whenever value contained in large sized variable(32 bit) is assingned to small one(16bit) . in one of our function we assign 32bit global variable to a local variable of size 16 bit unknowingly and end up in truncated value in local var which caused big havoc. Thanks in advance. Suresh --------...


Assembler BIS instruction and register indirect as destination - can't assemble this line of code

Started by David Feldman in MSP43012 years ago 20 replies

I am doing some programmed bit-serial I/O using MSP430 assembly language and would like to improve execution speed. My target device is...

I am doing some programmed bit-serial I/O using MSP430 assembly language and would like to improve execution speed. My target device is MSP430G2553. My code includes a number of source lines all very similar (but obviously not identical) to this: bis.b #4, &P2OUT ; Original code bis.b #4, &P2OUT ; Original code bis.b ...


Suddenly unable to program chip

Started by baxtercodeworks in MSP43012 years ago 6 replies

I've been using the MSP430F1121A for some time. The app was written with the IAR kickstart v3.2. And I use the Debugger with TI hardware...

I've been using the MSP430F1121A for some time. The app was written with the IAR kickstart v3.2. And I use the Debugger with TI hardware Emulator to program the chip. This has been working fine until I got a new batch of chips (perhaps 4 months ago?), now I get a message "Chosen derivative (MSP430F1121) and actual hardware (Device unknown) do not match. I did have one old chip left over,...


MSP430-RF2500 reading a packet problem

Started by Kostas Panagiotakis in MSP43012 years ago 1 reply

Hello my name is Kostas and I want to ask you a question regarding the MSP4= 30 eZ430-RF2500 development tool. I'm trying to send a...

Hello my name is Kostas and I want to ask you a question regarding the MSP4= 30 eZ430-RF2500 development tool. I'm trying to send a packet,=A0from one board to another, by pressing the o= n board button. The packet contains the letter "A". When the packet is rece= ived I want to check if it contains the letter and if it does, to turn on t= he red light on the board. The problem is that I cann...


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright