Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Comp.Arch.Embedded | Not able to change contents of I2CRB of MSP430


Advertise Here

There are 4 messages in this thread.

You are currently looking at messages 0 to 4.

Not able to change contents of I2CRB of MSP430 - Narottam - 2006-02-02 04:23:00

Hello All,

  I am using IAR C/C++ compiler for MSP430. In the project I am sending
some data through MSP430 to another chip through I2C.I have made MSP430 
as slave. While debugging I want to change manually the contains of I2CRB
through register window,but its not allowing me to do,again the contains
will come to its default value. I found in the header file supplied with
the IAR package of MSP430,they made I2CRB as READ_ONLY.
   Is there any reason to do so? If not then how can I change the contains
of I2CRB register while debugging?

Thanks in advance.




Re: Not able to change contents of I2CRB of MSP430 - Antti Keskinen - 2006-02-02 06:59:00

"Narottam" <n...@gmail.com> wrote in message 
news:A...@giganews.com...
> Hello All,
>
>  I am using IAR C/C++ compiler for MSP430. In the project I am sending
> some data through MSP430 to another chip through I2C.I have made MSP430
> as slave. While debugging I want to change manually the contains of I2CRB
> through register window,but its not allowing me to do,again the contains
> will come to its default value. I found in the header file supplied with
> the IAR package of MSP430,they made I2CRB as READ_ONLY.
>   Is there any reason to do so? If not then how can I change the contains
> of I2CRB register while debugging?
>
> Thanks in advance.
>

Please be more specific. What is the chip you're using. MSP430 is a group of 
microcontrollers from Texas Instruments, and not all of them have a I2C 
interface. Some have a software I2C through SPI/UART, some have a hardware 
I2C.

State the precise chip name and perhaps we can help you more.

Regards,
Antti Keskinen 



Re: Not able to change contents of I2CRB of MSP430 - Narottam - 2006-02-03 05:57:00

>"Narottam" <n...@gmail.com> wrote in message 
>news:A...@giganews.com...
>> Hello All,
>>
>>  I am using IAR C/C++ compiler for MSP430. In the project I am sending
>> some data through MSP430 to another chip through I2C.I have made
MSP430
>> as slave. While debugging I want to change manually the contains of
I2CRB
>> through register window,but its not allowing me to do,again the
contains
>> will come to its default value. I found in the header file supplied
with
>> the IAR package of MSP430,they made I2CRB as READ_ONLY.
>>   Is there any reason to do so? If not then how can I change the
contains
>> of I2CRB register while debugging?
>>
>> Thanks in advance.
>>
>
>Please be more specific. What is the chip you're using. MSP430 is a group
of 
>microcontrollers from Texas Instruments, and not all of them have a I2C 
>interface. Some have a software I2C through SPI/UART, some have a
hardware 
>I2C.
>
>State the precise chip name and perhaps we can help you more.
>
>Regards,
>Antti Keskinen 
>
>
>

I am using msp430F155.


Re: Not able to change contents of I2CRB of MSP430 - Antti Keskinen - 2006-02-03 16:41:00

Hey again !

To independently set something in the MSP430F155, it seems you need to use 
the JTAG interface. Since you're debugging, I can only assume you have a 
JTAG connection set up with the device already and the IAR environment is 
monitoring this interface somehow. Have a look at the following document:

http://focus.ti.com/lit/an/slaa149a/slaa149a.pdf

In it, chapter 3.3 on page 18 explains how to read and write to non-FLASH 
locations on the chip using the JTAG connectivity. If this is not viable for 
you, then the next best solution I can think of is to write a debug routine 
into the I2C master chip which writes the desired debug data into the 
MSP430.

Hope this helps.

- Antti Keskinen

"Narottam" <n...@gmail.com> wrote in message 
news:s...@giganews.com...
> >"Narottam" <n...@gmail.com> wrote in message
>>news:A...@giganews.com...
>>> Hello All,
>>>
>>>  I am using IAR C/C++ compiler for MSP430. In the project I am sending
>>> some data through MSP430 to another chip through I2C.I have made
> MSP430
>>> as slave. While debugging I want to change manually the contains of
> I2CRB
>>> through register window,but its not allowing me to do,again the
> contains
>>> will come to its default value. I found in the header file supplied
> with
>>> the IAR package of MSP430,they made I2CRB as READ_ONLY.
>>>   Is there any reason to do so? If not then how can I change the
> contains
>>> of I2CRB register while debugging?
>>>
>>> Thanks in advance.
>>>
>>
>>Please be more specific. What is the chip you're using. MSP430 is a group
> of
>>microcontrollers from Texas Instruments, and not all of them have a I2C
>>interface. Some have a software I2C through SPI/UART, some have a
> hardware
>>I2C.
>>
>>State the precise chip name and perhaps we can help you more.
>>
>>Regards,
>>Antti Keskinen
>>
>>
>>
>
> I am using msp430F155.
>