PWM and I2C


Closed Thread
Results 1 to 4 of 4

Thread: PWM and I2C

  1. #1
    GRob's Avatar
    GRob Guest

    Default PWM and I2C

    Hi

    I have an application where I want to dim 4 LED circuits (all at different intensities and continually changing) using PWM. The two options I am looking at as a micro have a maximum of two HPWM outputs, so I am looking for a chip that will talk I2C and drive 2 or 4 PWM outputs. I have located the Philips PCA9530 but it seems hard to come by in small quantities, likewise with a Mitsubishi/Renesas M66242. Any ideas? I could go down the line of a I2C DAC and then a seperate Analogue driven PWM but it seems a roundabout way to do it.

    Cheers
    Grant

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Hum... great link if your application do only that. Simple and easy to do indeed.

    In case you want to do something else than fading in/out, you can use internal timer to produce as many outputs as you want.

    In the main program you set the Duty Cycle and then in the Interrupts you set the outputs regarding the duty you set. By this way you don't need any external parts too.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    GRob's Avatar
    GRob Guest


    Did you find this post helpful? Yes | No

    Default

    Cheers

    I am using a picaxe (maybe this is not the best forum to be on??) so my speed is not fast and I have been led to believe through web searching that it would be a struggle to do 4 software PWM alongside other processing on a picaxe (4Mhz). I do not have the programming skills to do this project with assembly code on a std pic, - hence my roundabout way of approaching it with an external quad PWM device.

    GR

Similar Threads

  1. SPI vs I2C
    By Tobias in forum Serial
    Replies: 1
    Last Post: - 3rd July 2007, 23:21
  2. Lots of PWM???
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th March 2007, 04:59
  3. Still new to PicBasic - i2c questions
    By cometboy in forum mel PIC BASIC
    Replies: 4
    Last Post: - 13th November 2006, 18:27

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts