Forum: Compiler & IDEs MSP430F169 I2C slave receiver mode


von Nicola (Gast)


Lesenswert?

Hello,

I have a problem with the peripheric I2C of this uC (MSP430F169) in
slave receiver mode. The own adress interrupt is provocated only 20% of
time.
Have you an exemple code ("C" or assembler) in this working mode ?

Thank you.

von Rainer (Gast)


Lesenswert?

Hallo,

I use the µC MSP430F169. I have problems with the hardware I2C, too.
A few axamples I have only found on the TI-site.
I use it in the master mode. Writint to a EEprom is ok, but I can't
read from it.
I can see the coffect answer-byte from the EEprom on the bus on the
oscilloscope but the µC dont't catch it!?!

Do you have example code in "C" for this mode?

Oder irgendjemand auch auf Deutsch; allerdings dennoch in "C" :-)

Gruß Rainer

von Oliver (Gast)


Lesenswert?

Did u add the pull-up resistors properly?

von Rainer (Gast)


Lesenswert?

Hi,

i dont't have anymore Problems witch the i2c-EEPROM.
The "Receive-Interrupt-Routine" works.

Now I have only problems with the permanent writing to the I2C-LCD.
On every programm-loop there is a comman to write to the LCD.
That takes five or ten minutes good; but then the µP hangs.

And    i    don't    know    why   !

Rainer

von arshad (Gast)


Lesenswert?

Hi
i use MSP430F169 and i use it in the master mode.i found Slaa 208 code
on TI side .but it does not work and i am not getting any signal on
oscilloscope.Should i change the code? can u plz give me some other
code in `c´for this mode in which i can use EEPROM .

Gruß
 Arshad Mahmood

von KoF (Gast)


Lesenswert?

download the slac015.zip from ti!
there are codesamples for msp430f14x-16x in c

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.