Help me writing a code for i2c in mc68hc908lk24

Status
Not open for further replies.

ragabs

Full Member level 1
Joined
Jun 28, 2005
Messages
96
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,111
i2c for mc68hc908lk24

dear all
can u help me to write code for i2c module in mc68hc908lk24?

i already write one but it makes the two pins sda and scl to go low.

if u send me a sample code it will be very useful.

thanx
 

Re: i2c for mc68hc908lk24

I recently made code for I2C module for Freescale uC 9S12DP256, writen in C and using ICC12 compiler. are u interested?

best regards,
 

Re: i2c for mc68hc908lk24

yes ofcourse i think it will be a good guide to debug my code.
can u send it to me? i think it will be very helpeful.

thanx lbdgwgt
 

Re: i2c for mc68hc908lk24

Here it is, hope it helps. I am using the internal I2C module of the uC.
If it helps, don't forget to click the "Helped me" button

best regards,
 

    ragabs

    Points: 2
    Helpful Answer Positive Rating
Re: i2c for mc68hc908lk24

thank you
i compare my code with urs and i found that they were almost the same but the difference is the sequence

u first load the adress register then enable the i2c module;
i made the apposite.

now it seems working good needs the traditional debugging steps .

thank u again
i will press helped me
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…