Help me for- Multi-Master I2C MC68HC908LJ24

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Help me for- Multi-Master I2C MC68HC908LJ24

4,017 次查看
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 回复数

951 次查看
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 项奖励
回复

951 次查看
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 项奖励
回复

951 次查看
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 项奖励
回复