I2COUT

Questions on control of serial busses
Post Reply
danlee58
Posts: 210
Joined: Thu Jan 17, 2013 2:29 am

I2COUT

Post by danlee58 »

I'm trying to send a byte to an 8 bit DAC on the I2C bus from a PRO. I need to use P1(17), and P1(18) as SDA & SCL. Can I use I2COUT as is or can I modify the Function to use those pins?



danlee58
Posts: 210
Joined: Thu Jan 17, 2013 2:29 am

Re: I2COUT

Post by danlee58 »

I need to set P(17) to SCL1, and P(18) to SDA1, then PINSEL1 to (PINSEL1 || 0x010100). I can't find where this is done.

Also, I probably need a new version of Libarm7 for the PRO. I still have the Armmite version.

Post Reply