Hi,

> Any help will be appreciated

In an effort help you understand what's wrong with your original code I tried to give you some advice in my previous response but apparently that didn't help, so....

For two buttons and one LED:
Code:
Main:

  If PB1 = 1 THEN   ' Button 1 is pressed 
    HIGH LED1   ' Turn on LED 1
  ENDIF

  IF PB2 = 1 THEN    ' Button 2 is pressed
    LOW LED1    ' Turn off LED 1
  ENDIF

Goto Main
That's it, rinse and repeat for as many buttons and LEDs as you want.

/Henrik.