Help me for- Multi-Master I2C MC68HC908LJ24

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

Help me for- Multi-Master I2C MC68HC908LJ24

4,016 Views
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
Labels (1)
0 Kudos
Reply
3 Replies

950 Views
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 Kudos
Reply

950 Views
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 Kudos
Reply

950 Views
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 Kudos
Reply