1 Reply Latest reply on Jan 18, 2011 11:44 AM by user_11959055

    Quick architecture question

    chris.saunders

       Hi all,

         

       

         

      I'm thinking about using a PSOC (CY8C24794) in a project and would like to know if I can assign a PWM block to multiple outputs, i.e. I'd like to dim 8 independent LEDs. I appreciate I could do this with hardware but it would be a huge advantage if I could do this on chip.

         

       

         

      Thanks for your time on what I know is a datasheet question.

         

      Cheers

         

      Chris

        • 1. Re: Quick architecture question
          user_11959055

          This can be done fairly easily and with a wide variety of resources.  The PWM can be connected to output row 2 for example, then use two adjacent output interconnects 2 and 1. Use output row 1 interconnect and turn on all ouput drivers and select input B (row 2) use the output interconnect Row 2 and turn on all output drivers.  You will now have 8 Global output columns with the same PWM signal.  These can now be hooked up to 8 output pins using Ports 0 and 1 (four from each port).

             

          Alternately you could use only four global output columns and use 2 pins from 4 ports to accomplish the same thing or by selecting only even numbered ports, you can get by with only using 4 global outputs.  Here is an example of the last.

             

          The LEDs can then be turned on and off by external signals from the other end of the LED or by software turning off the output driver.