MCF52233 SDA and SCL

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

MCF52233 SDA and SCL

Jump to solution
491 Views
anthonyrios
Contributor I

I am working communicating with a magnetometer through I2C.  I am pretty confident our code is right for the I2C as far as init, read and write.  We also added external pull up resistors from the data lines to VDD.  We are not getting any clock signal from SCL or data from SDA.  Do these pins need to be configured in some way?

Labels (1)
1 Solution
416 Views
anthonyrios
Contributor I

My partner figured it out.  It turns out the

MCF_GPIO_PASPAR = 0X05

This sets the PASPAR1 and PASPAR0 corresponding to SCL and SDA pins to primary function which is needed for the I2C.

View solution in original post

1 Reply
417 Views
anthonyrios
Contributor I

My partner figured it out.  It turns out the

MCF_GPIO_PASPAR = 0X05

This sets the PASPAR1 and PASPAR0 corresponding to SCL and SDA pins to primary function which is needed for the I2C.