MCF52233 SDA and SCL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
802件の閲覧回数
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 解決策
727件の閲覧回数
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 返信
728件の閲覧回数
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.