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?
Solved! Go to Solution.
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.
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.