how can I initlize MPC 5604 IIC bus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how can I initlize MPC 5604 IIC bus

868 Views
Learner123
Contributor II

i want to initlize IIC register so i can write byte to AT24C08 eeprom .could you give me example and guide me?

thanks in advance 

0 Kudos
Reply
3 Replies

853 Views
PetrS
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

845 Views
Learner123
Contributor II

do i need to set I2C register IBIF?.

IBSR.B.IBIF=1;

i mean when i send one byte,do I need to set the register IBIF to 1 and continue my transmission ?

thanks in advance

0 Kudos
Reply

828 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

It is recommended that transfer complete situations are detected using the IBIF flag. So once set it have to be cleared so you can detect setting again. Clearing is done by writing 1 to the bit.

BR, Petr