MCF52233 SDA and SCL

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

MCF52233 SDA and SCL

跳至解决方案
1,068 次查看
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?

标签 (1)
1 解答
993 次查看
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.

在原帖中查看解决方案

1 回复
994 次查看
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.