So I have a project I am already using the PWM output but i need another oscillating output that is no available on the pic I'm using. The program will run in a cycle that coincides with each PWM cycle so I had a thought, using basic as the language, have a "bit" type variable and add 1 to it each time I get round to "that" line of the program, in this way I should get a 0 1 0 1 0 1 0 1..... output, right ? or is there another way of doing it with complicated program lines, I just need a toggling output, frequency and duty are not much of a problem.