Sorry for the confusion. I was asking for comments on a specific idea, not for a discussion about alternative suggestions. As one of my coworkers used to say, there are many ways to skin the electronic cat and I'm sure other solutions would work as well or even better than my idea but that's not what I am asking for.
The cathodes of each group of LEDs must be switched to control each group of 4 LEDs independently. The anode common to ground is controlled by a single pwm output to control the brightness of both groups of 4 LEDs. Both groups will be at the same brightness if both are active.
There are actually two groups as described above. Each of these two groups must have independent pwm modulation control. For my PIC18F25K22, that uses the available pwm channels. IF I had 4 channels of pwm, I would not need to switch the cathodes of each group of 4 LEDs, but in the range of hardware I wish to use, this isn't an option.
Again, sorry for any hard feelings caused, but I want to evaluate the proposed solution rather than come up with something different.
Thanks,
Jon