I posted on the PICBasic forum, but then realised this is more of an electronics 'techie' type problem than a programmming one (I've got the actual programming bit sorted in my head)
So I found this little circuit that works well for my needs - the circuit takes one small analogue signal into an opamp & when a SPST switch is flicked, the opamp output changes from non-inverting to inverting.

I've changed the circuit to illustrate my needs - it normally switches a ground to the non inverting pin - that's fine if you're using dual rail/supply opamp circuits - but all my circuit is single rail & therefore my opamp pins input pins aren't biased at ground potential .....my circuit uses a single rail of 5V - therefore all my opamps are biased at VCC/2 .... 2.5V.
So therefore rather than switch a ground to the non inverting pin as in the original circuit (which would have been easy to do with a PIC!) ...I'm faced with having to switch 2.5V - so I'm looking for a way to get the PIC to do this with the lowest component count possible! Also, I want to avoid relays as I just don't have the PCB real estate available.
Suggestions welcome!
So I found this little circuit that works well for my needs - the circuit takes one small analogue signal into an opamp & when a SPST switch is flicked, the opamp output changes from non-inverting to inverting.

I've changed the circuit to illustrate my needs - it normally switches a ground to the non inverting pin - that's fine if you're using dual rail/supply opamp circuits - but all my circuit is single rail & therefore my opamp pins input pins aren't biased at ground potential .....my circuit uses a single rail of 5V - therefore all my opamps are biased at VCC/2 .... 2.5V.
So therefore rather than switch a ground to the non inverting pin as in the original circuit (which would have been easy to do with a PIC!) ...I'm faced with having to switch 2.5V - so I'm looking for a way to get the PIC to do this with the lowest component count possible! Also, I want to avoid relays as I just don't have the PCB real estate available.
Suggestions welcome!