Hi,

In helping you out I also added my experience. It really feels good when a puzzle gets solved. If you hadn't given the hints that it is jumping to the interrupt even without a button pressed I couldn't have pointed it out. So the credit goes to you for all the labour and time spent.This is only the beginning now concentrate on the PWM part and add some sparkle to your design.

I myself do not rely on the PBP interrupt and tend to use asm as my apps demand.It is not that tough if you give it a try. I am a complete self-taught without much of an academic background. My schedule doesn't permit me always to be active in this forum still I love to.

I am myself very much facinated with RGB LEDs and plan to design an ambilight as in the Phillips plasma TVs. (I cannot afford a LCD or Plasma)But everytime my hobby gets the least attention due to job pressure. I am still in my struggling phase to establish myself as a PIC programmer. I live in a city where neither PICs nor RGB LEDs are easily available. I have to get them from another metro and it is costly in terms of our economy. Still with all of you around I know I am not alone. Thanks to this forum and all PICers out there.

Have a great PICing time.

Regards

Sougata