Art, Thanks for your reply. PWM with a single LED or port (LED1 var PortB.1) or single port (PortB.1) will work with PWM however I have been unable to get indexing to work with the PWM in any shape, form, or fashion. Some LED will light up but will not be the one you addressed. I think the problem must be within the PWM command structure. It will not recognize the indexing as a port location. I tried several versions of your suggestion of array declaration, no luck. I think indexing in some form should work but I have not figured it out yet. I have the routine working with Select Case approach but an indexing method would reduce the code considerably. Work continues…
Bookmarks