‎06-30-2010
06:48 PM
1,082 Views
lanceu
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has anyone been able to make the i2c work on the mpc5668g? Here is my setup:
- I set the ibfd to 0xbf (mul=4, icr=3f). I figure let's get going at the slowest rate before bumping it up
- I set ibad to my address (I've tried various addresses with no differing results)
- I set ibcr to 0 (clear mdis)
- I set PC11 and PC12 to function 3 and ODE
- I set ibcr to 0x20 (master mode)
- I set ibcr to 0x30 (master/transmit mode)
- As soon as I do this ibsr gets set to 0x92 (TCF, IBAL, IBIF), and because IBAL is set ibcr gets set to 0x10 (master mode disabled)
Any ideas what I'm doing wrong? Sample code for this part would help.
Thanks,
Lance
Solved! Go to Solution.
1 Solution
‎06-30-2010
11:47 PM
678 Views
lanceu
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Through sheer desperation I tried setting up PC11 and PC12 as function2, and my problem went away. I guess this is a typo in the manual.
-Lance
1 Reply
‎06-30-2010
11:47 PM
679 Views
lanceu
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Through sheer desperation I tried setting up PC11 and PC12 as function2, and my problem went away. I guess this is a typo in the manual.
-Lance