Hi,
In order to have it send once for each buttonpress you could do something like
Code:
Start:
  IF PortC.1 = 0 then       ' Button is pressed
    Serout portb.0, 2,["A"]
    Pause 10                    ' Allow for debounce, may need tweaking, or can possibly be removed
    While PortC.1 = 0 : WEND     ' Loop here untill button is released.
    Pause 25                    ' Allow for debounce on release
  ENDIF
Goto Start
If the #CONFIG/#ENDCONFIG gives you an error then I'd concentrate on fixing that error. Don't leave the block blank like that, either set it properly or remove it altogether and let PBP insert its default. If you don't know what the default is for your particular PIC then look in the DEVICE_ If you leave it empty like that I think what you'll end up with is what the CONFIG word is by default on an erased PIC - is that what you want?

/Henrik.