Help me for- Multi-Master I2C MC68HC908LJ24

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Help me for- Multi-Master I2C MC68HC908LJ24

4,035件の閲覧回数
Vijay
Contributor I
Hi All
        Can anybody please help me about onchip I2C module in MC68HC908LJ24.
I am interfacing external RTC through I2C interface. But I am unable to read successive registers contents of RTC. It is reading only first register and not increamenting the address.
       If anybody has Example code for MMIIC module (I2C) pls send me the example code. Thanks..
 
Regards,
Vijay
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

969件の閲覧回数
Ellery
Contributor I
One of the features of the MC68HC908LJ24 is an on-board RTC.
Why would you design to use an external RTC?
0 件の賞賛
返信

969件の閲覧回数
Muhammad
Contributor I

Hi

I've read your message but I'm sorry I can't help because I'm facing a problem with the IIC interface on my LK24.

I need to know the proper sequence of initializing the MMIIC module.

Can you help me?!

Thanks in advance.

Best regards

 

0 件の賞賛
返信

969件の閲覧回数
Vijay
Contributor I
Hi Muhammad,
           I am giving you code for initialization of MMIIC Module. Please follow this sequence :
 
   MMCR_MMEN      = 1;              // Enable IIC;
  MIMCR_MMBB     = 1;              // Clear bus busy flag;
  MMCR_MMTXAK   = 1;            // Clear Ack flag.
  MIMCR_MMRW     = 0;            // R/W bit = 0;
  MIMCR_MMAST    = 0;            // Slave mode 
  MIMCR_MMNAKIF = 0;
  MIMCR_MMALIF    = 0;             // Clear flags;
   MMSR                    = 0;             // Clear all flags (Status register);
  MIMCR_MMBR      = 0;             // Set speed to 25kHz for Bus = 4MHz;
 
Best Regards,
Vijay
 
0 件の賞賛
返信