I2COUT

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

I2COUT

Post by danlee58 » Fri Jan 25, 2013 6:11 pm

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 » Sun Jan 27, 2013 2:05 am

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