In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lboucher wrote: Hey John Thanks for the awesomely detailed responce. I got a responce from a guy name Phil in australia who works with this chip. He caught 2 things i missed, and one I had tested but wouldn't do anything without the other 2 gotchas. The thing i had thought off was that MODE1 register had to be changed to turn on the oscilator, then wait 500 us. Gotcha 1 was that I didn't realize what an I2C restart was and how to use it. Gotcha 2 I had to enable to LED0-3 banks. Now everything works fine. Here is his responce. Ok, you need to set the LEDOUTx registers, they are off by default and take the 9622 out of sleep mode in Mode 1 register. Pay attention to Table 5 and table 10 Sending Sequence is (send i2c start) Address control register Mode 1 Register (turn off sleep) Pause >500uS so osc starts (restart)... this is what is called a repeated start without a stop command Address control register ledout0 (turn on led output) ledout1 (turn on led output) ledout2 (turn on led output) ledout3 (turn on led output) (send i2c stop) Now you can send the channel data (send i2c start) address control register (set to autoinc and start at pwm0) pwm0 . . . pwm15 (send i2c stop) You shouldn't need to set anything in the Mode 2 Register. grppwm and grpfreq can be left at default values ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=440673#m441000 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)